Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/data-schema

Package Overview
Dependencies
Maintainers
0
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/data-schema - npm Package Compare versions

Comparing version 1.6.3 to 1.7.0

dist/cjs/runtime/internals/ai/createDeleteConversationFunction.js

10

dist/cjs/runtime/internals/ai/getCustomUserAgentDetails.js

@@ -21,7 +21,7 @@ 'use strict';

AiAction["ListConversations"] = "3";
AiAction["SendMessage"] = "4";
AiAction["ListMessages"] = "5";
AiAction["OnMessage"] = "6";
AiAction["Generation"] = "7";
AiAction["Delete"] = "8";
AiAction["DeleteConversation"] = "4";
AiAction["SendMessage"] = "5";
AiAction["ListMessages"] = "6";
AiAction["OnMessage"] = "7";
AiAction["Generation"] = "8";
})(AiAction || (exports.AiAction = AiAction = {}));

@@ -28,0 +28,0 @@ const getCustomUserAgentDetails = (action) => ({

@@ -10,2 +10,3 @@ 'use strict';

const createListConversationsFunction_1 = require("../../ai/createListConversationsFunction");
const createDeleteConversationFunction_1 = require("../../ai/createDeleteConversationFunction");
function generateConversationsProperty(client, apiGraphQLConfig, getInternals) {

@@ -43,2 +44,3 @@ const modelIntrospection = apiGraphQLConfig?.modelIntrospection;

get: (0, createGetConversationFunction_1.createGetConversationFunction)(client, conversationModelIntrospection, name, conversationModel, conversationMessageModel, getInternals),
delete: (0, createDeleteConversationFunction_1.createDeleteConversationFunction)(client, conversationModelIntrospection, name, conversationModel, conversationMessageModel, getInternals),
list: (0, createListConversationsFunction_1.createListConversationsFunction)(client, conversationModelIntrospection, name, conversationModel, conversationMessageModel, getInternals),

@@ -45,0 +47,0 @@ };

@@ -20,2 +20,5 @@ import type { Subscription } from 'rxjs';

}
interface ConversationRouteDeleteInput {
id: string;
}
interface ConversationRouteListInput {

@@ -41,2 +44,8 @@ limit?: number;

*
* Deletes an existing {@link Conversation} based on ID.
*/
delete: (input: ConversationRouteDeleteInput) => SingularReturnValue<Conversation>;
/**
* @experimental
*
* Lists all existing {@link Conversation}s on the current conversation route.

@@ -43,0 +52,0 @@ */

@@ -16,7 +16,7 @@ import { CustomUserAgentDetails } from '../../bridge-types';

ListConversations = "3",
SendMessage = "4",
ListMessages = "5",
OnMessage = "6",
Generation = "7",
Delete = "8"
DeleteConversation = "4",
SendMessage = "5",
ListMessages = "6",
OnMessage = "7",
Generation = "8"
}

@@ -23,0 +23,0 @@ export declare const getCustomUserAgentDetails: (action: AiAction) => CustomUserAgentDetails;

{
"name": "@aws-amplify/data-schema",
"version": "1.6.3",
"version": "1.7.0",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "repository": {

@@ -32,2 +32,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

interface ConversationRouteDeleteInput {
id: string;
}
interface ConversationRouteListInput {

@@ -54,2 +58,8 @@ limit?: number;

*
* Deletes an existing {@link Conversation} based on ID.
*/
delete: (input: ConversationRouteDeleteInput) => SingularReturnValue<Conversation>;
/**
* @experimental
*
* Lists all existing {@link Conversation}s on the current conversation route.

@@ -56,0 +66,0 @@ */

@@ -24,7 +24,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

ListConversations = '3',
SendMessage = '4',
ListMessages = '5',
OnMessage = '6',
Generation = '7',
Delete = '8',
DeleteConversation = '4',
SendMessage = '5',
ListMessages = '6',
OnMessage = '7',
Generation = '8',
}

@@ -31,0 +31,0 @@

@@ -14,2 +14,3 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

import { createListConversationsFunction } from '../../ai/createListConversationsFunction';
import { createDeleteConversationFunction } from '../../ai/createDeleteConversationFunction';

@@ -80,2 +81,10 @@ export function generateConversationsProperty(

),
delete: createDeleteConversationFunction(
client,
conversationModelIntrospection,
name,
conversationModel,
conversationMessageModel,
getInternals,
),
list: createListConversationsFunction(

@@ -82,0 +91,0 @@ client,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc