@aws-amplify/graphql-api-construct 1.16.1-ai-streaming.0 → 1.16.1-ai-next.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +19 -19
- package/CHANGELOG.md +5 -1
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +1 -1
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +3 -4
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +174 -212
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +65 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +4 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +29 -7
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +11 -8
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +33 -25
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/errors.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/errors.js +17 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/lazy.d.ts +16 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/lazy.js +37 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +0 -19
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/README.md +9 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.d.ts +66 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.d.ts +56 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.d.ts +6 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.d.ts +7 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.d.ts +35 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.d.ts +24 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.d.ts +17 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.d.ts +14 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.d.ts +24 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.js +40 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.d.ts +11 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.d.ts +16 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.d.ts +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stack_provider.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stack_provider.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/package.json +24 -0
- package/node_modules/@aws-amplify/ai-constructs/package.json +4 -4
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +11 -12
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +5 -3
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/name-values.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/name-values.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/name-values.js +2 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/name-values.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.d.ts +4 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.js +7 -3
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-conversations-init-resolver-definition.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-conversations-init-resolver-definition.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-conversations-init-resolver-definition.js +24 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-conversations-init-resolver-definition.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{list-messages-init-resolver.d.ts → list-messages-init-resolver-definition.d.ts} +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver-definition.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{list-messages-init-resolver.js → list-messages-init-resolver-definition.js} +2 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver-definition.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-post-processing-resolver-definition.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-post-processing-resolver-definition.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-post-processing-resolver-definition.js +10 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-post-processing-resolver-definition.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/send-message-pipeline-definition.js +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/send-message-pipeline-definition.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/templates/assistant-streaming-mutation-resolver-fn.template.js +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/templates/list-conversations-init-set-index-resolver-fn.template.js +12 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/templates/list-messages-init-set-index-resolver-fn.template.js +36 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/templates/list-messages-post-processing-resolver-fn.template.js +12 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/templates/set-updated-at-conversation-table-fn.template.js +31 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +3 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +24 -3
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +9 -9
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +6 -7
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +5 -6
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +5 -6
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +5 -6
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +6 -7
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +9 -10
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +5 -6
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +5 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +7 -8
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +6 -7
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +6 -7
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +5 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +17 -17
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +3 -4
- package/node_modules/graphql-transformer-common/API.md +1 -0
- package/node_modules/graphql-transformer-common/CHANGELOG.md +1 -1
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts +1 -0
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js +1 -0
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +2 -3
- package/package.json +20 -20
- package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/templates/list-messages-init-resolver-fn.template.js +0 -8
- package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +0 -201
- package/node_modules/graphql-transformer-common/LICENSE +0 -201
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* TODO: use the latest execa.
|
3
|
+
* Issue: https://github.com/aws-amplify/amplify-backend/issues/962
|
4
|
+
* execa v8 doesn't support commonjs, so we need to use the types from v5
|
5
|
+
* https://github.com/sindresorhus/execa/issues/489#issuecomment-1109983390
|
6
|
+
*/
|
7
|
+
import { type ExecaChildProcess, type Options } from 'execa';
|
8
|
+
export type PackageManagerController = {
|
9
|
+
initializeProject: () => Promise<void>;
|
10
|
+
initializeTsConfig: (targetDir: string) => Promise<void>;
|
11
|
+
installDependencies: (packageNames: string[], type: 'dev' | 'prod') => Promise<void>;
|
12
|
+
runWithPackageManager: (args: string[] | undefined, dir: string, options?: Options<'utf8'>) => ExecaChildProcess;
|
13
|
+
getCommand: (args: string[]) => string;
|
14
|
+
allowsSignalPropagation: () => boolean;
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=package_manager_controller.d.ts.map
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFja2FnZV9tYW5hZ2VyX2NvbnRyb2xsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcGFja2FnZV9tYW5hZ2VyX2NvbnRyb2xsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogVE9ETzogdXNlIHRoZSBsYXRlc3QgZXhlY2EuXG4gKiBJc3N1ZTogaHR0cHM6Ly9naXRodWIuY29tL2F3c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
4
|
+
* The environment variable name where this SSM value will be placed at runtime
|
5
|
+
*/
|
6
|
+
name: string;
|
7
|
+
/**
|
8
|
+
* The SSM parameter path that will be fetched at runtime
|
9
|
+
*/
|
10
|
+
path: string;
|
11
|
+
};
|
12
|
+
export type ResourceAccessAcceptor = {
|
13
|
+
/**
|
14
|
+
* String used to uniquely identify this acceptor. Each instance should have it's own identifier.
|
15
|
+
*/
|
16
|
+
identifier: string;
|
17
|
+
acceptResourceAccess: (policy: Policy, ssmEnvironmentEntries: SsmEnvironmentEntry[]) => void;
|
18
|
+
};
|
19
|
+
export type ResourceAccessAcceptorFactory<RoleIdentifier extends string | undefined = undefined> = {
|
20
|
+
/**
|
21
|
+
* This type is a little wonky but basically it's saying that if RoleIdentifier is undefined, then this is a function with no props
|
22
|
+
* And if RoleIdentifier is a string then this is a function with a single roleIdentifier prop
|
23
|
+
* See https://github.com/Microsoft/TypeScript/pull/24897
|
24
|
+
*/
|
25
|
+
getResourceAccessAcceptor: (...roleIdentifier: RoleIdentifier extends string ? [RoleIdentifier] : []) => ResourceAccessAcceptor;
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=resource_access_acceptor.d.ts.map
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VfYWNjZXNzX2FjY2VwdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3Jlc291cmNlX2FjY2Vzc19hY2NlcHRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUG9saWN5IH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWlhbSc7XG5cbmV4cG9ydCB0eXBlIFNzbUVudmlyb25tZW50RW50cnkgPSB7XG4gIC8qKlxuICAgKiBU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bmN0aW9uIHdpdGggYSBzaW5nbGUgcm9sZUlkZW50aWZpZXIgcHJvcFxuICAgKiBTZWUgaHR0cHM6Ly9naXRodWIuY29tL01pY3Jvc29mdC9UeXBlU2NyaXB0L3B1bGwvMjQ4OTdcbiAgICovXG4gIGdldFJlc291cmNlQWNjZXNzQWNjZXB0b3I6IChcbiAgICAuLi5yb2xlSWRlbnRpZmllcjogUm9sZUlkZW50aWZpZXIgZXh0ZW5kcyBzdHJpbmcgPyBbUm9sZUlkZW50aWZpZXJdIDogW11cbiAgKSA9PiBSZXNvdXJjZUFjY2Vzc0FjY2VwdG9yO1xufTtcbiJdfQ==
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Implementors can validate what should be the correct resource name
|
3
|
+
*/
|
4
|
+
export type ResourceNameValidator = {
|
5
|
+
/**
|
6
|
+
* executes the validation
|
7
|
+
*/
|
8
|
+
validate: (resourceName: string) => void;
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=resource_name_validator.d.ts.map
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VfbmFtZV92YWxpZGF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcmVzb3VyY2VfbmFtZV92YWxpZGF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogSW1wbGVtZW50b3JzIGNhbiB2YWxpZGF0ZSB3aGF0IHNob3VsZCBiZSB0aGUgY29ycmVjdCByZXNvdXJjZSBuYW1lXG4gKi9cbmV4cG9ydCB0eXBlIFJlc291cmNlTmFtZVZhbGlkYXRvciA9IHtcbiAgLyoqXG4gICAqIGV4ZWN1dGVzIHRoZSB2YWxpZGF0aW9uXG4gICAqL1xuICB2YWxpZGF0ZTogKHJlc291cmNlTmFtZTogc3RyaW5nKSA9PiB2b2lkO1xufTtcbiJdfQ==
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Provides reference to underlying CDK resources.
|
3
|
+
*
|
4
|
+
* Note: we have to use object as the generic constraint rather than Record<string, unknown> so that interfaces will also satisfy the constraint
|
5
|
+
* See: https://stackoverflow.com/questions/63617344/how-to-satisfy-the-constraint-of-recordstring-unknown-with-interface
|
6
|
+
*/
|
7
|
+
export type ResourceProvider<T extends object = object> = {
|
8
|
+
resources: T;
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=resource_provider.d.ts.map
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VfcHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcmVzb3VyY2VfcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogUHJvdmlkZXMgcmVmZXJlbmNlIHRvIHVuZGVybHlpbmcgQ0RLIHJlc291cmNlcy5cbiAqXG4gKiBOb3RlOiB3ZSBoYXZlIHRvIHVzZSBvYmplY3QgYXMgdGhlIGdlbmVyaWMgY29uc3RyYWludCByYXRoZXIgdGhhbiBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPiBzbyB0aGF0IGludGVyZmFjZXMgd2lsbCBhbHNvIHNhdGlzZnkgdGhlIGNvbnN0cmFpbnRcbiAqIFNlZTogaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvNjM2MTczNDQvaG93LXRvLXNhdGlzZnktdGhlLWNvbnN0cmFpbnQtb2YtcmVjb3Jkc3RyaW5nLXVua25vd24td2l0aC1pbnRlcmZhY2VcbiAqL1xuZXhwb3J0IHR5cGUgUmVzb3VyY2VQcm92aWRlcjxUIGV4dGVuZHMgb2JqZWN0ID0gb2JqZWN0PiA9IHtcbiAgcmVzb3VyY2VzOiBUO1xufTtcbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { SsmEnvironmentEntry } from './resource_access_acceptor.js';
|
2
|
+
export type SsmEnvironmentEntriesGenerator = {
|
3
|
+
generateSsmEnvironmentEntries: (scopeContext: Record<string, string>) => SsmEnvironmentEntry[];
|
4
|
+
};
|
5
|
+
//# sourceMappingURL=ssm_environment_entries_generator.d.ts.map
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3NtX2Vudmlyb25tZW50X2VudHJpZXNfZ2VuZXJhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3NzbV9lbnZpcm9ubWVudF9lbnRyaWVzX2dlbmVyYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU3NtRW52aXJvbm1lbnRFbnRyeSB9IGZyb20gJy4vcmVzb3VyY2VfYWNjZXNzX2FjY2VwdG9yLmpzJztcblxuZXhwb3J0IHR5cGUgU3NtRW52aXJvbm1lbnRFbnRyaWVzR2VuZXJhdG9yID0ge1xuICBnZW5lcmF0ZVNzbUVudmlyb25tZW50RW50cmllczogKFxuICAgIHNjb3BlQ29udGV4dDogUmVjb3JkPHN0cmluZywgc3RyaW5nPlxuICApID0+IFNzbUVudmlyb25tZW50RW50cnlbXTtcbn07XG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhYmxlX2JhY2tlbmRfaWRlbnRpZmllcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvc3RhYmxlX2JhY2tlbmRfaWRlbnRpZmllcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIFN0YWJsZUJhY2tlbmRJZGVudGlmaWVycyA9IHtcbiAgZ2V0U3RhYmxlQmFja2VuZEhhc2g6ICgpID0+IHN0cmluZztcbn07XG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhY2tfcHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvc3RhY2tfcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFN0YWNrIH0gZnJvbSAnYXdzLWNkay1saWInO1xuXG5leHBvcnQgdHlwZSBTdGFja1Byb3ZpZGVyID0ge1xuICBzdGFjazogU3RhY2s7XG59O1xuIl19
|
package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/package.json
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"name": "@aws-amplify/plugin-types",
|
3
|
+
"version": "1.3.1",
|
4
|
+
"types": "lib/index.d.ts",
|
5
|
+
"type": "commonjs",
|
6
|
+
"publishConfig": {
|
7
|
+
"access": "public"
|
8
|
+
},
|
9
|
+
"scripts": {
|
10
|
+
"update:api": "api-extractor run --local"
|
11
|
+
},
|
12
|
+
"license": "Apache-2.0",
|
13
|
+
"peerDependencies": {
|
14
|
+
"aws-cdk-lib": "^2.158.0",
|
15
|
+
"constructs": "^10.0.0",
|
16
|
+
"@aws-sdk/types": "^3.609.0"
|
17
|
+
},
|
18
|
+
"imports": {
|
19
|
+
"#package.json": "./package.json"
|
20
|
+
},
|
21
|
+
"devDependencies": {
|
22
|
+
"execa": "^5.1.1"
|
23
|
+
}
|
24
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/ai-constructs",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.8.0",
|
4
4
|
"type": "commonjs",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -28,17 +28,17 @@
|
|
28
28
|
"dependencies": {
|
29
29
|
"@aws-amplify/backend-output-schemas": "^1.4.0",
|
30
30
|
"@aws-amplify/platform-core": "^1.1.0",
|
31
|
-
"@aws-amplify/plugin-types": "^1.
|
31
|
+
"@aws-amplify/plugin-types": "^1.3.1",
|
32
32
|
"@aws-sdk/client-bedrock-runtime": "^3.622.0",
|
33
33
|
"@smithy/types": "^3.3.0",
|
34
34
|
"json-schema-to-ts": "^3.1.1"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
-
"@aws-amplify/backend-output-storage": "^1.1.
|
37
|
+
"@aws-amplify/backend-output-storage": "^1.1.3",
|
38
38
|
"typescript": "^5.0.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
|
-
"aws-cdk-lib": "^2.
|
41
|
+
"aws-cdk-lib": "^2.158.0",
|
42
42
|
"constructs": "^10.0.0"
|
43
43
|
}
|
44
44
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
-
## [4.1.6-ai-
|
6
|
+
## [4.1.6-ai-next.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@4.1.5...@aws-amplify/graphql-auth-transformer@4.1.6-ai-next.0) (2024-11-01)
|
7
7
|
|
8
8
|
**Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
|
9
9
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-auth-transformer",
|
3
|
-
"version": "4.1.6-ai-
|
3
|
+
"version": "4.1.6-ai-next.0",
|
4
4
|
"description": "Amplify GraphQL @auth transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -31,22 +31,22 @@
|
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
33
|
"@aws-amplify/graphql-directives": "2.4.0",
|
34
|
-
"@aws-amplify/graphql-model-transformer": "3.0.8-ai-
|
35
|
-
"@aws-amplify/graphql-relational-transformer": "3.0.8-ai-
|
36
|
-
"@aws-amplify/graphql-transformer-core": "3.2.3-ai-
|
34
|
+
"@aws-amplify/graphql-model-transformer": "3.0.8-ai-next.0",
|
35
|
+
"@aws-amplify/graphql-relational-transformer": "3.0.8-ai-next.0",
|
36
|
+
"@aws-amplify/graphql-transformer-core": "3.2.3-ai-next.0",
|
37
37
|
"@aws-amplify/graphql-transformer-interfaces": "4.1.2",
|
38
38
|
"graphql": "^15.5.0",
|
39
39
|
"graphql-mapping-template": "5.0.1",
|
40
|
-
"graphql-transformer-common": "5.1.1-ai-
|
40
|
+
"graphql-transformer-common": "5.1.1-ai-next.0",
|
41
41
|
"lodash": "^4.17.21",
|
42
42
|
"md5": "^2.3.0"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
|
-
"@aws-amplify/graphql-function-transformer": "3.1.5-ai-
|
46
|
-
"@aws-amplify/graphql-index-transformer": "3.0.8-ai-
|
47
|
-
"@aws-amplify/graphql-searchable-transformer": "3.0.8-ai-
|
48
|
-
"@aws-amplify/graphql-sql-transformer": "0.4.8-ai-
|
49
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.7-ai-
|
45
|
+
"@aws-amplify/graphql-function-transformer": "3.1.5-ai-next.0",
|
46
|
+
"@aws-amplify/graphql-index-transformer": "3.0.8-ai-next.0",
|
47
|
+
"@aws-amplify/graphql-searchable-transformer": "3.0.8-ai-next.0",
|
48
|
+
"@aws-amplify/graphql-sql-transformer": "0.4.8-ai-next.0",
|
49
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.7-ai-next.0",
|
50
50
|
"@types/node": "^18.0.0"
|
51
51
|
},
|
52
52
|
"peerDependencies": {
|
@@ -92,6 +92,5 @@
|
|
92
92
|
"escapeString": true,
|
93
93
|
"printBasicPrototype": true
|
94
94
|
}
|
95
|
-
}
|
96
|
-
"gitHead": "5b48b6e74d17216a54794a93273994706fc51b3e"
|
95
|
+
}
|
97
96
|
}
|
@@ -3,11 +3,13 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
-
## [0.5.1-ai-
|
6
|
+
## [0.5.1-ai-next.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-conversation-transformer@0.5.1-ai-next.0...@aws-amplify/graphql-conversation-transformer@0.5.1-ai-next.1) (2024-11-01)
|
7
7
|
|
8
|
-
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-conversation-transformer
|
9
9
|
|
10
|
-
|
10
|
+
## [0.5.1-ai-next.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-conversation-transformer@0.5.0...@aws-amplify/graphql-conversation-transformer@0.5.1-ai-next.0) (2024-11-01)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-conversation-transformer
|
11
13
|
|
12
14
|
# [0.5.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-conversation-transformer@0.4.0...@aws-amplify/graphql-conversation-transformer@0.5.0) (2024-10-28)
|
13
15
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ConversationDirectiveConfiguration } from '../conversation-directive-configuration';
|
2
2
|
export declare const CONVERSATION_MESSAGES_REFERENCE_FIELD_NAME = "conversationId";
|
3
3
|
export declare const LIST_MESSAGES_INDEX_NAME = "gsi-ConversationMessage.conversationId.createdAt";
|
4
|
+
export declare const LIST_CONVERSATIONS_INDEX_NAME = "gsi-Conversation.typename.updatedAt";
|
4
5
|
export declare const CONVERSATION_MESSAGE_GET_QUERY_INPUT_TYPE_NAME = "ID";
|
5
6
|
export declare const getConversationTypeName: (config: ConversationDirectiveConfiguration) => string;
|
6
7
|
export declare const getConversationMessageTypeName: (config: ConversationDirectiveConfiguration) => string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"name-values.d.ts","sourceRoot":"","sources":["../../src/graphql-types/name-values.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAE7F,eAAO,MAAM,0CAA0C,mBAAmB,CAAC;AAC3E,eAAO,MAAM,wBAAwB,qDAAqD,CAAC;AAC3F,eAAO,MAAM,8CAA8C,OAAO,CAAC;AAEnE,eAAO,MAAM,uBAAuB,WAAY,kCAAkC,WACzB,CAAC;AAE1D,eAAO,MAAM,8BAA8B,WAAY,kCAAkC,WACzB,CAAC;AAEjE,eAAO,MAAM,+BAA+B,WAAY,kCAAkC,WACpB,CAAC;AAEvE,eAAO,MAAM,6BAA6B,WAAY,kCAAkC,WACpB,CAAC;AAErE,eAAO,MAAM,sCAAsC,WAAY,kCAAkC,WACvB,CAAC;AAE3E,eAAO,MAAM,oBAAoB,WAAY,kCAAkC,WACF,CAAC;AAE9E,eAAO,MAAM,kCAAkC,WAAY,kCAAkC,WAC1B,CAAC;AAEpE,eAAO,MAAM,mCAAmC,WAAY,kCAAkC,WACf,CAAC;AAEhF,eAAO,MAAM,4CAA4C,WAAY,kCAAkC,WACvB,CAAC;AAEjF,eAAO,MAAM,8BAA8B,WAAY,kCAAkC,WAAqC,CAAC"}
|
1
|
+
{"version":3,"file":"name-values.d.ts","sourceRoot":"","sources":["../../src/graphql-types/name-values.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAE7F,eAAO,MAAM,0CAA0C,mBAAmB,CAAC;AAC3E,eAAO,MAAM,wBAAwB,qDAAqD,CAAC;AAC3F,eAAO,MAAM,6BAA6B,wCAAwC,CAAC;AACnF,eAAO,MAAM,8CAA8C,OAAO,CAAC;AAEnE,eAAO,MAAM,uBAAuB,WAAY,kCAAkC,WACzB,CAAC;AAE1D,eAAO,MAAM,8BAA8B,WAAY,kCAAkC,WACzB,CAAC;AAEjE,eAAO,MAAM,+BAA+B,WAAY,kCAAkC,WACpB,CAAC;AAEvE,eAAO,MAAM,6BAA6B,WAAY,kCAAkC,WACpB,CAAC;AAErE,eAAO,MAAM,sCAAsC,WAAY,kCAAkC,WACvB,CAAC;AAE3E,eAAO,MAAM,oBAAoB,WAAY,kCAAkC,WACF,CAAC;AAE9E,eAAO,MAAM,kCAAkC,WAAY,kCAAkC,WAC1B,CAAC;AAEpE,eAAO,MAAM,mCAAmC,WAAY,kCAAkC,WACf,CAAC;AAEhF,eAAO,MAAM,4CAA4C,WAAY,kCAAkC,WACvB,CAAC;AAEjF,eAAO,MAAM,8BAA8B,WAAY,kCAAkC,WAAqC,CAAC"}
|
package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/name-values.js
CHANGED
@@ -3,11 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.upperCaseConversationFieldName = exports.getConversationMessageListQueryInputTypeName = exports.getConversationMessageListQueryName = exports.getConversationMessageGetQueryName = exports.getFunctionStackName = exports.getAssistantStreamingMutationFieldName = exports.getAssistantMutationFieldName = exports.getMessageSubscriptionFieldName = exports.getConversationMessageTypeName = exports.getConversationTypeName = exports.CONVERSATION_MESSAGE_GET_QUERY_INPUT_TYPE_NAME = exports.LIST_MESSAGES_INDEX_NAME = exports.CONVERSATION_MESSAGES_REFERENCE_FIELD_NAME = void 0;
|
6
|
+
exports.upperCaseConversationFieldName = exports.getConversationMessageListQueryInputTypeName = exports.getConversationMessageListQueryName = exports.getConversationMessageGetQueryName = exports.getFunctionStackName = exports.getAssistantStreamingMutationFieldName = exports.getAssistantMutationFieldName = exports.getMessageSubscriptionFieldName = exports.getConversationMessageTypeName = exports.getConversationTypeName = exports.CONVERSATION_MESSAGE_GET_QUERY_INPUT_TYPE_NAME = exports.LIST_CONVERSATIONS_INDEX_NAME = exports.LIST_MESSAGES_INDEX_NAME = exports.CONVERSATION_MESSAGES_REFERENCE_FIELD_NAME = void 0;
|
7
7
|
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
8
8
|
const pluralize_1 = __importDefault(require("pluralize"));
|
9
9
|
exports.CONVERSATION_MESSAGES_REFERENCE_FIELD_NAME = 'conversationId';
|
10
10
|
exports.LIST_MESSAGES_INDEX_NAME = 'gsi-ConversationMessage.conversationId.createdAt';
|
11
|
+
exports.LIST_CONVERSATIONS_INDEX_NAME = 'gsi-Conversation.typename.updatedAt';
|
11
12
|
exports.CONVERSATION_MESSAGE_GET_QUERY_INPUT_TYPE_NAME = 'ID';
|
12
13
|
const getConversationTypeName = (config) => `Conversation${(0, exports.upperCaseConversationFieldName)(config)}`;
|
13
14
|
exports.getConversationTypeName = getConversationTypeName;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"name-values.js","sourceRoot":"","sources":["../../src/graphql-types/name-values.ts"],"names":[],"mappings":";;;;;;AAAA,2EAAqD;AACrD,0DAAkC;AAGrB,QAAA,0CAA0C,GAAG,gBAAgB,CAAC;AAC9D,QAAA,wBAAwB,GAAG,kDAAkD,CAAC;AAC9E,QAAA,8CAA8C,GAAG,IAAI,CAAC;AAE5D,MAAM,uBAAuB,GAAG,CAAC,MAA0C,EAAE,EAAE,CACpF,eAAe,IAAA,sCAA8B,EAAC,MAAM,CAAC,EAAE,CAAC;AAD7C,QA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EvE,MAAM,kCAAkC,GAAG,CAAC,MAA0C,EAAE,EAAE,CAC/F,yBAAyB,IAAA,sCAA8B,EAAC,MAAM,CAAC,EAAE,CAAC;AADvD,QAAA,kCAAkC,sCACqB;AAE7D,MAAM,mCAAmC,GAAG,CAAC,MAA0C,EAAE,EAAE,CAChG,0BAA0B,IAAA,mBAAS,EAAC,IAAA,sCAA8B,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC;AADnE,QAAA,mCAAmC,uCACgC;AAEzE,MAAM,4CAA4C,GAAG,CAAC,MAA0C,EAAE,EAAE,CACzG,2BAA2B,IAAA,sCAA8B,EAAC,MAAM,CAAC,aAAa,CAAC;AADpE,QAAA,4CAA4C,gDACwB;AAE1E,MAAM,8BAA8B,GAAG,CAAC,MAA0C,EAAE,EAAE,CAAC,IAAA,oCAAO,EAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAAlH,QAAA,8BAA8B,kCAAoF"}
|
@@ -2,7 +2,9 @@ import { assistantResponsePipelineDefinition } from './assistant-response-pipeli
|
|
2
2
|
import { assistantResponseStreamPipelineDefinition } from './assistant-response-stream-pipeline-definition';
|
3
3
|
import { assistantResponseSubscriptionPipelineDefinition } from './assistant-response-subscription-pipeline-definition';
|
4
4
|
import { generateResolverFunction, generateResolverPipeline } from './generate-resolver';
|
5
|
-
import {
|
5
|
+
import { listConversationsInitFunctionDefinition } from './list-conversations-init-resolver-definition';
|
6
|
+
import { listMessagesInitFunctionDefinition } from './list-messages-init-resolver-definition';
|
7
|
+
import { listMessagesPostProcessingFunctionDefinition } from './list-messages-post-processing-resolver-definition';
|
6
8
|
import { sendMessagePipelineDefinition } from './send-message-pipeline-definition';
|
7
|
-
export { assistantResponsePipelineDefinition, assistantResponseStreamPipelineDefinition, assistantResponseSubscriptionPipelineDefinition, generateResolverFunction, generateResolverPipeline, listMessagesInitFunctionDefinition, sendMessagePipelineDefinition, };
|
9
|
+
export { assistantResponsePipelineDefinition, assistantResponseStreamPipelineDefinition, assistantResponseSubscriptionPipelineDefinition, generateResolverFunction, generateResolverPipeline, listConversationsInitFunctionDefinition, listMessagesInitFunctionDefinition, listMessagesPostProcessingFunctionDefinition, sendMessagePipelineDefinition, };
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resolvers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,yCAAyC,EAAE,MAAM,iDAAiD,CAAC;AAC5G,OAAO,EAAE,+CAA+C,EAAE,MAAM,uDAAuD,CAAC;AACxH,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resolvers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,yCAAyC,EAAE,MAAM,iDAAiD,CAAC;AAC5G,OAAO,EAAE,+CAA+C,EAAE,MAAM,uDAAuD,CAAC;AACxH,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACxG,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,4CAA4C,EAAE,MAAM,qDAAqD,CAAC;AACnH,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,OAAO,EACL,mCAAmC,EACnC,yCAAyC,EACzC,+CAA+C,EAC/C,wBAAwB,EACxB,wBAAwB,EACxB,uCAAuC,EACvC,kCAAkC,EAClC,4CAA4C,EAC5C,6BAA6B,GAC9B,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.sendMessagePipelineDefinition = exports.listMessagesInitFunctionDefinition = exports.generateResolverPipeline = exports.generateResolverFunction = exports.assistantResponseSubscriptionPipelineDefinition = exports.assistantResponseStreamPipelineDefinition = exports.assistantResponsePipelineDefinition = void 0;
|
3
|
+
exports.sendMessagePipelineDefinition = exports.listMessagesPostProcessingFunctionDefinition = exports.listMessagesInitFunctionDefinition = exports.listConversationsInitFunctionDefinition = exports.generateResolverPipeline = exports.generateResolverFunction = exports.assistantResponseSubscriptionPipelineDefinition = exports.assistantResponseStreamPipelineDefinition = exports.assistantResponsePipelineDefinition = void 0;
|
4
4
|
const assistant_response_pipeline_definition_1 = require("./assistant-response-pipeline-definition");
|
5
5
|
Object.defineProperty(exports, "assistantResponsePipelineDefinition", { enumerable: true, get: function () { return assistant_response_pipeline_definition_1.assistantResponsePipelineDefinition; } });
|
6
6
|
const assistant_response_stream_pipeline_definition_1 = require("./assistant-response-stream-pipeline-definition");
|
@@ -10,8 +10,12 @@ Object.defineProperty(exports, "assistantResponseSubscriptionPipelineDefinition"
|
|
10
10
|
const generate_resolver_1 = require("./generate-resolver");
|
11
11
|
Object.defineProperty(exports, "generateResolverFunction", { enumerable: true, get: function () { return generate_resolver_1.generateResolverFunction; } });
|
12
12
|
Object.defineProperty(exports, "generateResolverPipeline", { enumerable: true, get: function () { return generate_resolver_1.generateResolverPipeline; } });
|
13
|
-
const
|
14
|
-
Object.defineProperty(exports, "
|
13
|
+
const list_conversations_init_resolver_definition_1 = require("./list-conversations-init-resolver-definition");
|
14
|
+
Object.defineProperty(exports, "listConversationsInitFunctionDefinition", { enumerable: true, get: function () { return list_conversations_init_resolver_definition_1.listConversationsInitFunctionDefinition; } });
|
15
|
+
const list_messages_init_resolver_definition_1 = require("./list-messages-init-resolver-definition");
|
16
|
+
Object.defineProperty(exports, "listMessagesInitFunctionDefinition", { enumerable: true, get: function () { return list_messages_init_resolver_definition_1.listMessagesInitFunctionDefinition; } });
|
17
|
+
const list_messages_post_processing_resolver_definition_1 = require("./list-messages-post-processing-resolver-definition");
|
18
|
+
Object.defineProperty(exports, "listMessagesPostProcessingFunctionDefinition", { enumerable: true, get: function () { return list_messages_post_processing_resolver_definition_1.listMessagesPostProcessingFunctionDefinition; } });
|
15
19
|
const send_message_pipeline_definition_1 = require("./send-message-pipeline-definition");
|
16
20
|
Object.defineProperty(exports, "sendMessagePipelineDefinition", { enumerable: true, get: function () { return send_message_pipeline_definition_1.sendMessagePipelineDefinition; } });
|
17
21
|
//# sourceMappingURL=index.js.map
|
package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resolvers/index.ts"],"names":[],"mappings":";;;AAAA,qGAA+F;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resolvers/index.ts"],"names":[],"mappings":";;;AAAA,qGAA+F;AAU7F,oHAVO,4EAAmC,OAUP;AATrC,mHAA4G;AAU1G,0HAVO,yFAAyC,OAUP;AAT3C,+HAAwH;AAUtH,gIAVO,qGAA+C,OAUP;AATjD,2DAAyF;AAUvF,yGAVO,4CAAwB,OAUP;AACxB,yGAXiC,4CAAwB,OAWjC;AAV1B,+GAAwG;AAWtG,wHAXO,qFAAuC,OAWP;AAVzC,qGAA8F;AAW5F,mHAXO,2EAAkC,OAWP;AAVpC,2HAAmH;AAWjH,6HAXO,gGAA4C,OAWP;AAV9C,yFAAmF;AAWjF,8GAXO,gEAA6B,OAWP"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list-conversations-init-resolver-definition.d.ts","sourceRoot":"","sources":["../../src/resolvers/list-conversations-init-resolver-definition.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,0BAA0B,EAC3B,MAAM,gCAAgC,CAAC;AAMxC,eAAO,MAAM,uCAAuC,EAAE,0BAiBpD,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.listConversationsInitFunctionDefinition = void 0;
|
4
|
+
const name_values_1 = require("../graphql-types/name-values");
|
5
|
+
const resolver_function_definition_1 = require("./resolver-function-definition");
|
6
|
+
exports.listConversationsInitFunctionDefinition = (0, resolver_function_definition_1.createResolverFunctionDefinition)({
|
7
|
+
slotName: 'init',
|
8
|
+
fileName: 'list-conversations-init-set-index-resolver-fn.template.js',
|
9
|
+
generateTemplate: (0, resolver_function_definition_1.createS3AssetMappingTemplateGenerator)('Query', 'list-conversations-init', (config) => config.field.name.value),
|
10
|
+
substitutions: (config) => ({
|
11
|
+
INDEX_NAME: name_values_1.LIST_CONVERSATIONS_INDEX_NAME,
|
12
|
+
MODEL_QUERY_EXPRESSION: `{
|
13
|
+
expression: '#typename = :typename',
|
14
|
+
expressionNames: {
|
15
|
+
'#typename': '__typename',
|
16
|
+
},
|
17
|
+
expressionValues: util.dynamodb.toMapValues({
|
18
|
+
':typename': '${config.conversation.model.name.value}',
|
19
|
+
}),
|
20
|
+
}`,
|
21
|
+
SORT_DIRECTION: 'DESC',
|
22
|
+
}),
|
23
|
+
});
|
24
|
+
//# sourceMappingURL=list-conversations-init-resolver-definition.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list-conversations-init-resolver-definition.js","sourceRoot":"","sources":["../../src/resolvers/list-conversations-init-resolver-definition.ts"],"names":[],"mappings":";;;AAAA,8DAA6E;AAC7E,iFAIwC;AAM3B,QAAA,uCAAuC,GAA+B,IAAA,+DAAgC,EAAC;IAClH,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,2DAA2D;IACrE,gBAAgB,EAAE,IAAA,oEAAqC,EAAC,OAAO,EAAE,yBAAyB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;IAChI,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC1B,UAAU,EAAE,2CAA6B;QACzC,sBAAsB,EAAE;;;;;;wBAMJ,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK;;MAEtD;QACF,cAAc,EAAE,MAAM;KACvB,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ResolverFunctionDefinition } from './resolver-function-definition';
|
2
2
|
export declare const listMessagesInitFunctionDefinition: ResolverFunctionDefinition;
|
3
|
-
//# sourceMappingURL=list-messages-init-resolver.d.ts.map
|
3
|
+
//# sourceMappingURL=list-messages-init-resolver-definition.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list-messages-init-resolver-definition.d.ts","sourceRoot":"","sources":["../../src/resolvers/list-messages-init-resolver-definition.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,0BAA0B,EAC3B,MAAM,gCAAgC,CAAC;AAMxC,eAAO,MAAM,kCAAkC,EAAE,0BAO/C,CAAC"}
|
@@ -5,10 +5,10 @@ const name_values_1 = require("../graphql-types/name-values");
|
|
5
5
|
const resolver_function_definition_1 = require("./resolver-function-definition");
|
6
6
|
exports.listMessagesInitFunctionDefinition = (0, resolver_function_definition_1.createResolverFunctionDefinition)({
|
7
7
|
slotName: 'init',
|
8
|
-
fileName: 'list-messages-init-resolver-fn.template.js',
|
8
|
+
fileName: 'list-messages-init-set-index-resolver-fn.template.js',
|
9
9
|
generateTemplate: (0, resolver_function_definition_1.createS3AssetMappingTemplateGenerator)('Query', 'list-messages-init', (config) => config.field.name.value),
|
10
10
|
substitutions: () => ({
|
11
11
|
INDEX_NAME: name_values_1.LIST_MESSAGES_INDEX_NAME,
|
12
12
|
}),
|
13
13
|
});
|
14
|
-
//# sourceMappingURL=list-messages-init-resolver.js.map
|
14
|
+
//# sourceMappingURL=list-messages-init-resolver-definition.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list-messages-init-resolver-definition.js","sourceRoot":"","sources":["../../src/resolvers/list-messages-init-resolver-definition.ts"],"names":[],"mappings":";;;AAAA,8DAAwE;AACxE,iFAIwC;AAM3B,QAAA,kCAAkC,GAA+B,IAAA,+DAAgC,EAAC;IAC7G,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,sDAAsD;IAChE,gBAAgB,EAAE,IAAA,oEAAqC,EAAC,OAAO,EAAE,oBAAoB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;IAC3H,aAAa,EAAE,GAAG,EAAE,CAAC,CAAC;QACpB,UAAU,EAAE,sCAAwB;KACrC,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list-messages-post-processing-resolver-definition.d.ts","sourceRoot":"","sources":["../../src/resolvers/list-messages-post-processing-resolver-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,0BAA0B,EAC3B,MAAM,gCAAgC,CAAC;AAMxC,eAAO,MAAM,4CAA4C,EAAE,0BAIzD,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.listMessagesPostProcessingFunctionDefinition = void 0;
|
4
|
+
const resolver_function_definition_1 = require("./resolver-function-definition");
|
5
|
+
exports.listMessagesPostProcessingFunctionDefinition = (0, resolver_function_definition_1.createResolverFunctionDefinition)({
|
6
|
+
slotName: 'postDataLoad',
|
7
|
+
fileName: 'list-messages-post-processing-resolver-fn.template.js',
|
8
|
+
generateTemplate: (0, resolver_function_definition_1.createS3AssetMappingTemplateGenerator)('Query', 'list-messages-post-processing', (config) => config.field.name.value),
|
9
|
+
});
|
10
|
+
//# sourceMappingURL=list-messages-post-processing-resolver-definition.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list-messages-post-processing-resolver-definition.js","sourceRoot":"","sources":["../../src/resolvers/list-messages-post-processing-resolver-definition.ts"],"names":[],"mappings":";;;AAAA,iFAIwC;AAM3B,QAAA,4CAA4C,GAA+B,IAAA,+DAAgC,EAAC;IACvH,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,uDAAuD;IACjE,gBAAgB,EAAE,IAAA,oEAAqC,EAAC,OAAO,EAAE,+BAA+B,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;CACvI,CAAC,CAAC"}
|
@@ -30,7 +30,7 @@ function auth() {
|
|
30
30
|
function verifySessionOwner() {
|
31
31
|
return (0, resolver_function_definition_1.createResolverFunctionDefinition)({
|
32
32
|
slotName: 'verifySessionOwner',
|
33
|
-
fileName: '
|
33
|
+
fileName: 'set-updated-at-conversation-table-fn.template.js',
|
34
34
|
generateTemplate: templateGenerator('verify-session-owner'),
|
35
35
|
dataSource: (config) => config.dataSources.conversationTableDataSource,
|
36
36
|
substitutions: () => ({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"send-message-pipeline-definition.js","sourceRoot":"","sources":["../../src/resolvers/send-message-pipeline-definition.ts"],"names":[],"mappings":";;;AAAA,oFAAwE;AAExE,8DAKsC;AACtC,iFAKwC;AAK3B,QAAA,6BAA6B,GAAuB;IAC/D,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,kBAAkB,EAAE,EAAE,mBAAmB,EAAE,CAAC;IAC3E,QAAQ,EAAE,YAAY,EAAE;IACxB,aAAa,EAAE,EAAE;IACjB,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;CAClF,CAAC;AAOF,SAAS,IAAI;IACX,OAAO,IAAA,+DAAgC,EAAC;QACtC,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,8BAA8B;QACxC,gBAAgB,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,0CAAe,CAAC,wBAAwB,CAAC,IAAI,CAAC;QAC7E,aAAa,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;YAC1B,oBAAoB,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU;SACzC,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AAKD,SAAS,IAAI;IACX,OAAO,IAAA,+DAAgC,EAAC;QACtC,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,8BAA8B;QACxC,gBAAgB,EAAE,iBAAiB,CAAC,MAAM,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC;AAKD,SAAS,kBAAkB;IACzB,OAAO,IAAA,+DAAgC,EAAC;QACtC,QAAQ,EAAE,oBAAoB;QAC9B,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"send-message-pipeline-definition.js","sourceRoot":"","sources":["../../src/resolvers/send-message-pipeline-definition.ts"],"names":[],"mappings":";;;AAAA,oFAAwE;AAExE,8DAKsC;AACtC,iFAKwC;AAK3B,QAAA,6BAA6B,GAAuB;IAC/D,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,kBAAkB,EAAE,EAAE,mBAAmB,EAAE,CAAC;IAC3E,QAAQ,EAAE,YAAY,EAAE;IACxB,aAAa,EAAE,EAAE;IACjB,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;CAClF,CAAC;AAOF,SAAS,IAAI;IACX,OAAO,IAAA,+DAAgC,EAAC;QACtC,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,8BA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,SAAS,SAAS,CAAC,MAA0C;IAC3D,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;AACjC,CAAC;AAKD,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,IAAA,oEAAqC,EAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,YAAY,GAAG,mQAAmQ,CAAC;AACzR,MAAM,qBAAqB,GAAG,wNAAwN,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { util } from '@aws-appsync/utils';
|
2
|
+
|
3
|
+
export function request(ctx) {
|
4
|
+
ctx.stash.metadata.index = '[[INDEX_NAME]]';
|
5
|
+
ctx.stash.modelQueryExpression = [[MODEL_QUERY_EXPRESSION]];
|
6
|
+
ctx.args.sortDirection = '[[SORT_DIRECTION]]';
|
7
|
+
return {};
|
8
|
+
}
|
9
|
+
|
10
|
+
export function response(ctx) {
|
11
|
+
return {};
|
12
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { util } from '@aws-appsync/utils';
|
2
|
+
|
3
|
+
export function request(ctx) {
|
4
|
+
ctx.stash.metadata.index = '[[INDEX_NAME]]';
|
5
|
+
const conversationId = ctx.args?.filter?.conversationId?.eq;
|
6
|
+
if (conversationId) {
|
7
|
+
// If a conversationId was provided, we're going to execute a query
|
8
|
+
// rather than a scan. The index (gsi) we're performing this query on has
|
9
|
+
// a partitionKey of conversationId.
|
10
|
+
// We need to remove conversationId from the filter to prevent a
|
11
|
+
// DynamoDB exception:
|
12
|
+
// `Filter Expression can only contain non-primary key attributes`
|
13
|
+
delete ctx.args.filter.conversationId;
|
14
|
+
// If conversationId was the only filter, remove the filter object
|
15
|
+
// to prevent errors when the `{}` filter is combined with
|
16
|
+
// the `authFilter` further downstream.
|
17
|
+
if (Object.keys(ctx.args.filter).length === 0) {
|
18
|
+
delete ctx.args.filter;
|
19
|
+
}
|
20
|
+
ctx.stash.modelQueryExpression = {
|
21
|
+
expression: '#conversationId = :conversationId',
|
22
|
+
expressionNames: {
|
23
|
+
'#conversationId': 'conversationId',
|
24
|
+
},
|
25
|
+
expressionValues: util.dynamodb.toMapValues({
|
26
|
+
':conversationId': conversationId,
|
27
|
+
}),
|
28
|
+
};
|
29
|
+
}
|
30
|
+
ctx.args.sortDirection = 'DESC';
|
31
|
+
return {};
|
32
|
+
}
|
33
|
+
|
34
|
+
export function response(ctx) {
|
35
|
+
return {};
|
36
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export function request(ctx) {
|
2
|
+
return {};
|
3
|
+
}
|
4
|
+
|
5
|
+
export function response(ctx) {
|
6
|
+
// Conversation messages are retrieved from DynamoDB in descending order by createdAt.
|
7
|
+
// We reverse them here because the most recent messages should be last in the list for clients:
|
8
|
+
// We can't use ascending order because we can miss the most recent messages due to limits / pagination.
|
9
|
+
const { items, ...rest } = ctx.prev.result;
|
10
|
+
const reversed = items.reverse();
|
11
|
+
return { items: reversed, ...rest };
|
12
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { util } from '@aws-appsync/utils';
|
2
|
+
|
3
|
+
export function request(ctx) {
|
4
|
+
const { authFilter } = ctx.stash;
|
5
|
+
const { conversationId } = [[CONVERSATION_ID_PARENT]];
|
6
|
+
|
7
|
+
const filter = JSON.parse(util.transform.toDynamoDBFilterExpression(authFilter));
|
8
|
+
|
9
|
+
return {
|
10
|
+
operation: 'UpdateItem',
|
11
|
+
key: util.dynamodb.toMapValues({ id: conversationId }),
|
12
|
+
update: {
|
13
|
+
expression: 'SET #updatedAt = :updatedAt',
|
14
|
+
expressionValues: util.dynamodb.toMapValues({
|
15
|
+
':updatedAt': ctx.stash.defaultValues.createdAt,
|
16
|
+
}),
|
17
|
+
expressionNames: {
|
18
|
+
'#updatedAt': 'updatedAt',
|
19
|
+
},
|
20
|
+
},
|
21
|
+
condition: filter
|
22
|
+
};
|
23
|
+
}
|
24
|
+
|
25
|
+
export function response(ctx) {
|
26
|
+
if (ctx.error) {
|
27
|
+
util.error('Conversation not found', 'ResourceNotFound');
|
28
|
+
}
|
29
|
+
|
30
|
+
return ctx.result;
|
31
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-prepare-handler.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEvG,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAE7F,OAAO,EAAE,uBAAuB,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AAO7H,qBAAa,0BAA0B;IACrC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,YAAY,CAA0B;gBAU5C,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,oBAAoB,EAAE,oBAAoB,EAC1C,YAAY,EAAE,uBAAuB;IAmBvC,OAAO,CAAC,GAAG,EAAE,qCAAqC,EAAE,UAAU,EAAE,kCAAkC,EAAE,GAAG,IAAI;IAsB3G,OAAO,CAAC,4BAA4B;
|
1
|
+
{"version":3,"file":"conversation-prepare-handler.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEvG,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAE7F,OAAO,EAAE,uBAAuB,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AAO7H,qBAAa,0BAA0B;IACr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