@aws-amplify/graphql-api-construct 1.16.0-ai-streaming.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +20 -20
- package/CHANGELOG.md +5 -3
- 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/conversation_handler_construct.d.ts +1 -12
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.js +2 -22
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.d.ts +2 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +2 -8
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +34 -196
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +8 -34
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +3 -5
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +5 -20
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +1 -3
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +7 -6
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/default_handler.d.ts +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/event_tools_provider.js +2 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.d.ts +7 -7
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.js +2 -3
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.d.ts +1 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.js +2 -4
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.d.ts +2 -3
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.js +2 -4
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +14 -47
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/package.json +2 -9
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +2 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +2 -4
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts +3 -4
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +9 -20
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js +1 -8
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +12 -12
- package/node_modules/@aws-amplify/graphql-conversation-transformer/API.md +0 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +3 -3
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/conversation-directive-configuration.d.ts +44 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/conversation-directive-configuration.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/conversation-directive-configuration.js +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/conversation-directive-configuration.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/conversation-model.d.ts +10 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/conversation-model.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/{session-model.js → conversation-model.js} +18 -24
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/conversation-model.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts +10 -13
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +46 -99
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/name-values.d.ts +14 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/name-values.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/name-values.js +30 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/name-values.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts +1 -30
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js +1 -41
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-response-pipeline-definition.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-response-pipeline-definition.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-response-pipeline-definition.js +53 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-response-pipeline-definition.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-response-subscription-pipeline-definition.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-response-subscription-pipeline-definition.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-response-subscription-pipeline-definition.js +21 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-response-subscription-pipeline-definition.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/generate-resolver.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/generate-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/generate-resolver.js +41 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/generate-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.js +15 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.d.ts +2 -3
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.js +11 -13
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/resolver-function-definition.d.ts +23 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/resolver-function-definition.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/resolver-function-definition.js +18 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/resolver-function-definition.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/send-message-pipeline-definition.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/send-message-pipeline-definition.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/send-message-pipeline-definition.js +85 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/send-message-pipeline-definition.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{assistant-messages-subscription-resolver-fn.template.js → templates/assistant-messages-subscription-resolver-fn.template.js} +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{invoke-lambda-resolver-fn.template.js → templates/invoke-lambda-resolver-fn.template.js} +8 -16
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{list-messages-init-resolver-fn.template.js → templates/list-messages-init-resolver-fn.template.js} +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/{utils → tools}/graphql-json-schema-type.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/graphql-json-schema-type.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/{utils → tools}/graphql-json-schema-type.js +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/{utils → tools}/graphql-json-schema-type.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/{utils/tools.d.ts → tools/process-tools.d.ts} +8 -14
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/process-tools.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/{utils/tools.js → tools/process-tools.js} +21 -21
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/process-tools.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts +3 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js +65 -16
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts +2 -3
- 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 +18 -20
- 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 +2 -8
- 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 +44 -116
- 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 +11 -11
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +0 -4
- package/node_modules/@aws-amplify/graphql-directives/package.json +2 -3
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +7 -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 +10 -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 +6 -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 +6 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +8 -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 +7 -7
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +17 -17
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +0 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +2 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +2 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js +1 -6
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +4 -4
- package/node_modules/graphql-transformer-common/API.md +1 -3
- package/node_modules/graphql-transformer-common/CHANGELOG.md +9 -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/lib/definition.d.ts +0 -1
- package/node_modules/graphql-transformer-common/lib/definition.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/definition.js +1 -20
- package/node_modules/graphql-transformer-common/lib/definition.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +2 -2
- package/package.json +21 -21
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.d.ts +0 -22
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.js +0 -38
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/executable_tool_factory.d.ts +0 -7
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/executable_tool_factory.js +0 -16
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/README.md +0 -4
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/index.d.ts +0 -23
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/index.js +0 -10
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/v1.d.ts +0 -22
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/v1.js +0 -11
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.d.ts +0 -113
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.js +0 -10
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.d.ts +0 -112
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.js +0 -30
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/index.d.ts +0 -23
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/index.js +0 -10
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/v1.d.ts +0 -22
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/v1.js +0 -11
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/index.d.ts +0 -23
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/index.js +0 -10
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/v1.d.ts +0 -22
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/v1.js +0 -11
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.d.ts +0 -59
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.js +0 -12
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.d.ts +0 -59
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.js +0 -25
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/index.d.ts +0 -508
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/index.js +0 -112
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/index.d.ts +0 -2
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/index.js +0 -18
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.d.ts +0 -42
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.js +0 -22
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.d.ts +0 -28
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.js +0 -10
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.d.ts +0 -27
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.js +0 -12
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.d.ts +0 -33
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.js +0 -10
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.d.ts +0 -32
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.js +0 -33
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/package.json +0 -27
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.d.ts +0 -10
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.js +0 -16
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js +0 -25
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver-fn.template.js +0 -105
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.js +0 -25
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver-fn.template.js +0 -125
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.js +0 -25
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.js +0 -16
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts +0 -3
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js +0 -22
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js +0 -84
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts +0 -5
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js +0 -34
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js +0 -25
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-directives/LICENSE +0 -201
- /package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{assistant-mutation-resolver-fn.template.js → templates/assistant-mutation-resolver-fn.template.js} +0 -0
- /package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{auth-resolver-fn.template.js → templates/auth-resolver-fn.template.js} +0 -0
- /package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{init-resolver-fn.template.js → templates/init-resolver-fn.template.js} +0 -0
- /package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{verify-session-owner-resolver-fn.template.js → templates/verify-session-owner-resolver-fn.template.js} +0 -0
- /package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{write-message-to-table-resolver-fn.template.js → templates/write-message-to-table-resolver-fn.template.js} +0 -0
@@ -1,105 +0,0 @@
|
|
1
|
-
import { util } from '@aws-appsync/utils';
|
2
|
-
import * as ddb from '@aws-appsync/utils/dynamodb';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Sends a request to the attached data source
|
6
|
-
* @param {import('@aws-appsync/utils').Context} ctx the context
|
7
|
-
* @returns {*} the request
|
8
|
-
*/
|
9
|
-
export function request(ctx) {
|
10
|
-
if (!ctx.args.input.stopReason) {
|
11
|
-
runtime.earlyReturn(ctx.prev.result);
|
12
|
-
}
|
13
|
-
const { id, createdAt, updatedAt } = ctx.stash.defaultValues;
|
14
|
-
const { events } = ctx.prev.result;
|
15
|
-
|
16
|
-
const content = reduceChunks(events);
|
17
|
-
const assistantMessage = {
|
18
|
-
__typename: 'ConversationMessageCustomChat',
|
19
|
-
role: 'assistant',
|
20
|
-
createdAt,
|
21
|
-
updatedAt,
|
22
|
-
conversationId: ctx.args.input.conversationId,
|
23
|
-
associatedUserMessageId: ctx.args.input.associatedUserMessageId,
|
24
|
-
owner: ctx.args.owner,
|
25
|
-
content
|
26
|
-
}
|
27
|
-
// TODO: check if `stopReason` really means end of turn.
|
28
|
-
// `put` if it does
|
29
|
-
// `update` if it doesn't
|
30
|
-
return ddb.put({ key: { id }, item: assistantMessage })
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
/**
|
35
|
-
* Returns the resolver result
|
36
|
-
* @param {import('@aws-appsync/utils').Context} ctx the context
|
37
|
-
* @returns {*} the result
|
38
|
-
*/
|
39
|
-
export function response(ctx) {
|
40
|
-
// this makes us return a message to the client. Maybe that's ok if / when we're streaming the text back as true
|
41
|
-
// chunk representations (with index, etc).
|
42
|
-
if (ctx.args.input.stopReason) {
|
43
|
-
const { createdAt } = ctx.stash.defaultValues;
|
44
|
-
const { conversationId } = ctx.result;
|
45
|
-
const { owner } = ctx.args;
|
46
|
-
return {
|
47
|
-
// differentiating with `<id>#response` for now. But this is no bueno.
|
48
|
-
// either the sentinel value needs to be included in the last chunk with content
|
49
|
-
// --- or ---
|
50
|
-
// we need to represent it in the client message type
|
51
|
-
// --- or ---
|
52
|
-
// we could potentially just throw an error here, but that's bad.
|
53
|
-
__typename: 'ConversationMessageStreamPart',
|
54
|
-
id: `${ctx.args.input.associatedUserMessageId}#stream`,
|
55
|
-
createdAt,
|
56
|
-
owner,
|
57
|
-
conversationId,
|
58
|
-
...ctx.args.input,
|
59
|
-
};
|
60
|
-
}
|
61
|
-
return ctx.prev.result;
|
62
|
-
}
|
63
|
-
|
64
|
-
function reduceChunks(events) {
|
65
|
-
// we're limited by the AppSync JS runtime as to what we can do here.
|
66
|
-
// so the code is uhh... a little creative.
|
67
|
-
function sortEvents(a, b) {
|
68
|
-
if (a.contentBlockIndex !== b.contentBlockIndex) {
|
69
|
-
return a.contentBlockIndex - b.contentBlockIndex;
|
70
|
-
}
|
71
|
-
return a.contentBlockDeltaIndex - b.contentBlockDeltaIndex;
|
72
|
-
}
|
73
|
-
|
74
|
-
// arrow functions and inline `function` declarations are not supported for sort.
|
75
|
-
events.sort(sortEvents);
|
76
|
-
|
77
|
-
// Group events by contentBlockIndex
|
78
|
-
const groupedEvents = events.reduce(function(acc, event) {
|
79
|
-
if (!acc[event.contentBlockIndex]) {
|
80
|
-
acc[event.contentBlockIndex] = [];
|
81
|
-
}
|
82
|
-
|
83
|
-
if (event.contentBlockText) {
|
84
|
-
acc[event.contentBlockIndex].push(event.contentBlockText);
|
85
|
-
}
|
86
|
-
|
87
|
-
if (event.contentBlockToolUse) {
|
88
|
-
acc[event.contentBlockIndex].push(event.contentBlockToolUse);
|
89
|
-
}
|
90
|
-
return acc;
|
91
|
-
}, {});
|
92
|
-
|
93
|
-
// Concatenate text for each content block
|
94
|
-
const content = Object.keys(groupedEvents).map((index) => {
|
95
|
-
const contentBlock = groupedEvents[index];
|
96
|
-
// toolUse blocks are sent as a single event.
|
97
|
-
if (contentBlock.length === 1 && contentBlock[0].toolUse) {
|
98
|
-
return { toolUse: contentBlock[0].toolUse };
|
99
|
-
}
|
100
|
-
// text blocks are chunked so we join them.
|
101
|
-
return { text: contentBlock.join('') };
|
102
|
-
});
|
103
|
-
|
104
|
-
return content;
|
105
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
|
-
export declare const assistantStreamingMutationReduceChunksResolver: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
4
|
-
//# sourceMappingURL=assistant-streaming-mutation-reduce-chunks-resolver.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"assistant-streaming-mutation-reduce-chunks-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AASzF,eAAO,MAAM,8CAA8C,WAAY,kCAAkC,KAAG,uBAY3G,CAAC"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.assistantStreamingMutationReduceChunksResolver = void 0;
|
7
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
9
|
-
const path_1 = __importDefault(require("path"));
|
10
|
-
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
11
|
-
const assistantStreamingMutationReduceChunksResolver = (config) => {
|
12
|
-
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'assistant-streaming-mutation-reduce-chunks-resolver-fn.template.js'), 'utf8');
|
13
|
-
const fieldName = (0, graphql_transformer_common_1.toUpper)(config.field.name.value);
|
14
|
-
const substitutions = {
|
15
|
-
CONVERSATION_MESSAGE_TYPE_NAME: `ConversationMessage${fieldName}`,
|
16
|
-
};
|
17
|
-
Object.entries(substitutions).forEach(([key, value]) => {
|
18
|
-
const replaced = resolver.replace(new RegExp(`\\[\\[${key}\\]\\]`, 'g'), value);
|
19
|
-
resolver = replaced;
|
20
|
-
});
|
21
|
-
const templateName = `Mutation.${config.field.name.value}.assistant-response-stream-reduce-chunks.js`;
|
22
|
-
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
|
23
|
-
};
|
24
|
-
exports.assistantStreamingMutationReduceChunksResolver = assistantStreamingMutationReduceChunksResolver;
|
25
|
-
//# sourceMappingURL=assistant-streaming-mutation-reduce-chunks-resolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"assistant-streaming-mutation-reduce-chunks-resolver.js","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AAExB,2EAAqD;AAQ9C,MAAM,8CAA8C,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACpI,IAAI,QAAQ,GAAG,YAAE,CAAC,YAAY,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oEAAoE,CAAC,EAAE,MAAM,CAAC,CAAC;IACnI,MAAM,SAAS,GAAG,IAAA,oCAAO,EAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG;QACpB,8BAA8B,EAAE,sBAAsB,SAAS,EAAE;KAClE,CAAC;IACF,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACrD,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAChF,QAAQ,GAAG,QAAQ,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,YAAY,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,6CAA6C,CAAC;IACtG,OAAO,0CAAe,CAAC,+BAA+B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACjF,CAAC,CAAC;AAZW,QAAA,8CAA8C,kDAYzD"}
|
@@ -1,125 +0,0 @@
|
|
1
|
-
import { util } from '@aws-appsync/utils';
|
2
|
-
import * as ddb from '@aws-appsync/utils/dynamodb';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Sends a request to the attached data source
|
6
|
-
* @param {import('@aws-appsync/utils').Context} ctx the context
|
7
|
-
* @returns {*} the request
|
8
|
-
*/
|
9
|
-
export function request(ctx) {
|
10
|
-
const {
|
11
|
-
// required
|
12
|
-
conversationId,
|
13
|
-
associatedUserMessageId,
|
14
|
-
contentBlockIndex,
|
15
|
-
// text chunk
|
16
|
-
contentBlockText,
|
17
|
-
contentBlockDeltaIndex,
|
18
|
-
// tool use
|
19
|
-
contentBlockToolUse,
|
20
|
-
// block complete
|
21
|
-
contentBlockDoneAtIndex,
|
22
|
-
// turn complete
|
23
|
-
stopReason,
|
24
|
-
} = ctx.args.input;
|
25
|
-
|
26
|
-
const { owner } = ctx.args;
|
27
|
-
const streamId = `${associatedUserMessageId}#stream`;
|
28
|
-
|
29
|
-
if (stopReason) {
|
30
|
-
// should we be writing the turn complete chunk here?
|
31
|
-
// probably not. It's just the marker for us to reconcile the chunks.
|
32
|
-
return ddb.get({ key: { id: streamId } });
|
33
|
-
}
|
34
|
-
|
35
|
-
// not using this yet. we'll need to enable ttl on the table first.
|
36
|
-
const now = util.time.nowEpochSeconds()
|
37
|
-
const ttl = now + 60 * 60 * 24; // 1 day
|
38
|
-
|
39
|
-
const event = {
|
40
|
-
contentBlockIndex,
|
41
|
-
contentBlockDeltaIndex,
|
42
|
-
contentBlockText,
|
43
|
-
contentBlockToolUse,
|
44
|
-
contentBlockDoneAtIndex,
|
45
|
-
};
|
46
|
-
|
47
|
-
// AppSync JS runtime doesn't support Object.fromEntries
|
48
|
-
const chunk = Object.keys(event)
|
49
|
-
.filter((k) => event[k] != null)
|
50
|
-
.reduce((a, k) => ({ ...a, [k]: event[k] }), {});
|
51
|
-
|
52
|
-
// TODO: Use expression names for all attributes.
|
53
|
-
// reference: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html
|
54
|
-
const setExpression = 'SET events = list_append(if_not_exists(events, :empty_list), :events), conversationId = :conversationId, #owner = :owner'
|
55
|
-
const id = streamId
|
56
|
-
return {
|
57
|
-
operation: 'UpdateItem',
|
58
|
-
key: util.dynamodb.toMapValues({ id }),
|
59
|
-
update: {
|
60
|
-
expression: setExpression,
|
61
|
-
expressionValues: util.dynamodb.toMapValues({
|
62
|
-
':events': [chunk],
|
63
|
-
':empty_list': [],
|
64
|
-
':conversationId': conversationId,
|
65
|
-
':owner': owner,
|
66
|
-
}),
|
67
|
-
expressionNames: {
|
68
|
-
'#owner': 'owner',
|
69
|
-
},
|
70
|
-
},
|
71
|
-
};
|
72
|
-
}
|
73
|
-
|
74
|
-
/**
|
75
|
-
* Returns the resolver result
|
76
|
-
* @param {import('@aws-appsync/utils').Context} ctx the context
|
77
|
-
* @returns {*} the result
|
78
|
-
*/
|
79
|
-
export function response(ctx) {
|
80
|
-
console.log('>>> response function ctx <<<', ctx);
|
81
|
-
if (ctx.error) {
|
82
|
-
util.error(ctx.error.message, ctx.error.type);
|
83
|
-
}
|
84
|
-
|
85
|
-
const { conversationId } = ctx.result;
|
86
|
-
const { owner } = ctx.args;
|
87
|
-
|
88
|
-
if (ctx.args.input.contentBlockToolUse && ctx.args.input.contentBlockToolUse.toolUse) {
|
89
|
-
console.log('>>> contentBlockToolUse <<<', ctx.args.input.contentBlockToolUse);
|
90
|
-
|
91
|
-
return {
|
92
|
-
__typename: 'ConversationMessageStreamPart',
|
93
|
-
...ctx.args.input,
|
94
|
-
id: `${ctx.args.input.associatedUserMessageId}#stream`,
|
95
|
-
owner,
|
96
|
-
conversationId,
|
97
|
-
contentBlockToolUse: ctx.args.input.contentBlockToolUse.toolUse,
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
if (ctx.args.input.contentBlockText) {
|
102
|
-
console.log('>>> contentBlockText <<<', ctx.args.input.contentBlockText);
|
103
|
-
return {
|
104
|
-
__typename: 'ConversationMessageStreamPart',
|
105
|
-
...ctx.args.input,
|
106
|
-
id: `${ctx.args.input.associatedUserMessageId}#stream`,
|
107
|
-
owner,
|
108
|
-
conversationId,
|
109
|
-
};
|
110
|
-
}
|
111
|
-
|
112
|
-
if (ctx.args.input.contentBlockDoneAtIndex) {
|
113
|
-
console.log('>>> contentBlockDoneAtIndex <<<', ctx.args.input.contentBlockDoneAtIndex);
|
114
|
-
// Do we actually need this event? It's forcing us to return a value to the client here, which is awkward... maybe.
|
115
|
-
return {
|
116
|
-
...ctx.args.input,
|
117
|
-
id: `${ctx.args.input.associatedUserMessageId}#stream`,
|
118
|
-
owner,
|
119
|
-
conversationId,
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
console.log('>>> stopReason <<<', ctx.args.input.stopReason);
|
124
|
-
return ctx.result;
|
125
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
|
-
export declare const assistantStreamingMutationResolver: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
4
|
-
//# sourceMappingURL=assistant-streaming-mutation-resolver.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"assistant-streaming-mutation-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AASzF,eAAO,MAAM,kCAAkC,WAAY,kCAAkC,KAAG,uBAY/F,CAAC"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.assistantStreamingMutationResolver = void 0;
|
7
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
9
|
-
const path_1 = __importDefault(require("path"));
|
10
|
-
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
11
|
-
const assistantStreamingMutationResolver = (config) => {
|
12
|
-
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'assistant-streaming-mutation-resolver-fn.template.js'), 'utf8');
|
13
|
-
const fieldName = (0, graphql_transformer_common_1.toUpper)(config.field.name.value);
|
14
|
-
const substitutions = {
|
15
|
-
CONVERSATION_MESSAGE_TYPE_NAME: `ConversationMessage${fieldName}`,
|
16
|
-
};
|
17
|
-
Object.entries(substitutions).forEach(([key, value]) => {
|
18
|
-
const replaced = resolver.replace(new RegExp(`\\[\\[${key}\\]\\]`, 'g'), value);
|
19
|
-
resolver = replaced;
|
20
|
-
});
|
21
|
-
const templateName = `Mutation.${config.field.name.value}.assistant-response-stream.js`;
|
22
|
-
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
|
23
|
-
};
|
24
|
-
exports.assistantStreamingMutationResolver = assistantStreamingMutationResolver;
|
25
|
-
//# sourceMappingURL=assistant-streaming-mutation-resolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"assistant-streaming-mutation-resolver.js","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-resolver.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AAExB,2EAAqD;AAQ9C,MAAM,kCAAkC,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACxH,IAAI,QAAQ,GAAG,YAAE,CAAC,YAAY,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sDAAsD,CAAC,EAAE,MAAM,CAAC,CAAC;IACrH,MAAM,SAAS,GAAG,IAAA,oCAAO,EAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG;QACpB,8BAA8B,EAAE,sBAAsB,SAAS,EAAE;KAClE,CAAC;IACF,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACrD,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAChF,QAAQ,GAAG,QAAQ,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,YAAY,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,+BAA+B,CAAC;IACxF,OAAO,0CAAe,CAAC,+BAA+B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACjF,CAAC,CAAC;AAZW,QAAA,kCAAkC,sCAY7C"}
|
package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.d.ts
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
|
-
export declare const authMappingTemplate: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
4
|
-
//# sourceMappingURL=auth-resolver.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"auth-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/auth-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAQzF,eAAO,MAAM,mBAAmB,WAAY,kCAAkC,KAAG,uBAIhF,CAAC"}
|
package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.js
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.authMappingTemplate = void 0;
|
7
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
9
|
-
const path_1 = __importDefault(require("path"));
|
10
|
-
const authMappingTemplate = (config) => {
|
11
|
-
const resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'auth-resolver-fn.template.js'), 'utf8');
|
12
|
-
const templateName = `Mutation.${config.field.name.value}.auth.js`;
|
13
|
-
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
|
14
|
-
};
|
15
|
-
exports.authMappingTemplate = authMappingTemplate;
|
16
|
-
//# sourceMappingURL=auth-resolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"auth-resolver.js","sourceRoot":"","sources":["../../src/resolvers/auth-resolver.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AASjB,MAAM,mBAAmB,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACzG,MAAM,QAAQ,GAAG,YAAE,CAAC,YAAY,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,8BAA8B,CAAC,EAAE,MAAM,CAAC,CAAC;IAC/F,MAAM,YAAY,GAAG,YAAY,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,UAAU,CAAC;IACnE,OAAO,0CAAe,CAAC,+BAA+B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACjF,CAAC,CAAC;AAJW,QAAA,mBAAmB,uBAI9B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"init-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/init-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAUlH,eAAO,MAAM,mBAAmB,QAAS,0BAA0B,KAAG,uBAYrE,CAAC"}
|
package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.initMappingTemplate = void 0;
|
7
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
9
|
-
const path_1 = __importDefault(require("path"));
|
10
|
-
const initMappingTemplate = (ctx) => {
|
11
|
-
const substitutions = {
|
12
|
-
GRAPHQL_API_ENDPOINT: ctx.api.graphqlUrl,
|
13
|
-
};
|
14
|
-
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'init-resolver-fn.template.js'), 'utf8');
|
15
|
-
Object.entries(substitutions).forEach(([key, value]) => {
|
16
|
-
const replaced = resolver.replace(new RegExp(`\\[\\[${key}\\]\\]`, 'g'), value);
|
17
|
-
resolver = replaced;
|
18
|
-
});
|
19
|
-
return graphql_transformer_core_1.MappingTemplate.inlineTemplateFromString(resolver);
|
20
|
-
};
|
21
|
-
exports.initMappingTemplate = initMappingTemplate;
|
22
|
-
//# sourceMappingURL=init-resolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"init-resolver.js","sourceRoot":"","sources":["../../src/resolvers/init-resolver.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AAQjB,MAAM,mBAAmB,GAAG,CAAC,GAA+B,EAA2B,EAAE;IAC9F,MAAM,aAAa,GAAG;QACpB,oBAAoB,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU;KACzC,CAAC;IAEF,IAAI,QAAQ,GAAG,YAAE,CAAC,YAAY,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,8BAA8B,CAAC,EAAE,MAAM,CAAC,CAAC;IAC7F,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACrD,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAChF,QAAQ,GAAG,QAAQ,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,OAAO,0CAAe,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;AAC5D,CAAC,CAAC;AAZW,QAAA,mBAAmB,uBAY9B"}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
|
-
export declare const invokeLambdaMappingTemplate: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
4
|
-
//# sourceMappingURL=invoke-lambda-resolver.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"invoke-lambda-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/invoke-lambda-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAElH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAczF,eAAO,MAAM,2BAA2B,WAAY,kCAAkC,KAAG,uBA8CxF,CAAC"}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.invokeLambdaMappingTemplate = void 0;
|
7
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
9
|
-
const path_1 = __importDefault(require("path"));
|
10
|
-
const ts_dedent_1 = __importDefault(require("ts-dedent"));
|
11
|
-
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
12
|
-
const pluralize_1 = __importDefault(require("pluralize"));
|
13
|
-
const invokeLambdaMappingTemplate = (config) => {
|
14
|
-
const { TOOL_DEFINITIONS_LINE, TOOLS_CONFIGURATION_LINE } = generateToolLines(config);
|
15
|
-
const SELECTION_SET = streamingSelectionSet;
|
16
|
-
const MODEL_CONFIGURATION_LINE = generateModelConfigurationLine(config);
|
17
|
-
const RESPONSE_MUTATION_NAME = config.responseMutationName;
|
18
|
-
const RESPONSE_MUTATION_INPUT_TYPE_NAME = config.responseMutationInputTypeName;
|
19
|
-
const MESSAGE_MODEL_NAME = config.messageModel.messageModel.name.value;
|
20
|
-
const GET_QUERY_NAME = `getConversationMessage${(0, graphql_transformer_common_1.toUpper)(config.field.name.value)}`;
|
21
|
-
const GET_QUERY_INPUT_TYPE_NAME = 'ID';
|
22
|
-
const LIST_QUERY_NAME = `listConversationMessage${(0, graphql_transformer_common_1.toUpper)((0, pluralize_1.default)(config.field.name.value))}`;
|
23
|
-
const LIST_QUERY_INPUT_TYPE_NAME = `ModelConversationMessage${(0, graphql_transformer_common_1.toUpper)(config.field.name.value)}FilterInput`;
|
24
|
-
const LIST_QUERY_LIMIT = 'undefined';
|
25
|
-
const STREAMING_RESPONSE_MUTATION_NAME = config.messageModel.assistantStreamingMutationField.name.value;
|
26
|
-
const STREAMING_RESPONSE_MUTATION_INPUT_TYPE_NAME = config.messageModel.assistantStreamingMutationInput.name.value;
|
27
|
-
const DISABLE_STREAMING_ENV_VAR = `${config.field.name.value}_DISABLE_STREAMING`;
|
28
|
-
const substitutions = {
|
29
|
-
TOOL_DEFINITIONS_LINE,
|
30
|
-
TOOLS_CONFIGURATION_LINE,
|
31
|
-
SELECTION_SET,
|
32
|
-
MODEL_CONFIGURATION_LINE,
|
33
|
-
RESPONSE_MUTATION_NAME,
|
34
|
-
RESPONSE_MUTATION_INPUT_TYPE_NAME,
|
35
|
-
MESSAGE_MODEL_NAME,
|
36
|
-
GET_QUERY_NAME,
|
37
|
-
GET_QUERY_INPUT_TYPE_NAME,
|
38
|
-
LIST_QUERY_NAME,
|
39
|
-
LIST_QUERY_INPUT_TYPE_NAME,
|
40
|
-
LIST_QUERY_LIMIT,
|
41
|
-
STREAMING_RESPONSE_MUTATION_NAME,
|
42
|
-
STREAMING_RESPONSE_MUTATION_INPUT_TYPE_NAME,
|
43
|
-
DISABLE_STREAMING_ENV_VAR,
|
44
|
-
};
|
45
|
-
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'invoke-lambda-resolver-fn.template.js'), 'utf8');
|
46
|
-
Object.entries(substitutions).forEach(([key, value]) => {
|
47
|
-
const replaced = resolver.replace(new RegExp(`\\[\\[${key}\\]\\]`, 'g'), value);
|
48
|
-
resolver = replaced;
|
49
|
-
});
|
50
|
-
const templateName = `Mutation.${config.field.name.value}.invoke-lambda.js`;
|
51
|
-
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
|
52
|
-
};
|
53
|
-
exports.invokeLambdaMappingTemplate = invokeLambdaMappingTemplate;
|
54
|
-
const generateToolLines = (config) => {
|
55
|
-
const toolDefinitions = JSON.stringify(config.toolSpec);
|
56
|
-
const TOOL_DEFINITIONS_LINE = toolDefinitions ? `const toolDefinitions = ${toolDefinitions};` : '';
|
57
|
-
const TOOLS_CONFIGURATION_LINE = toolDefinitions
|
58
|
-
? (0, ts_dedent_1.default) `const dataTools = toolDefinitions.tools;
|
59
|
-
const toolsConfiguration = {
|
60
|
-
dataTools,
|
61
|
-
clientTools,
|
62
|
-
};`
|
63
|
-
: (0, ts_dedent_1.default) `const toolsConfiguration = {
|
64
|
-
clientTools
|
65
|
-
};`;
|
66
|
-
return { TOOL_DEFINITIONS_LINE, TOOLS_CONFIGURATION_LINE };
|
67
|
-
};
|
68
|
-
const generateModelConfigurationLine = (config) => {
|
69
|
-
const { aiModel, systemPrompt } = config;
|
70
|
-
return (0, ts_dedent_1.default) `const modelConfiguration = {
|
71
|
-
modelId: '${aiModel}',
|
72
|
-
systemPrompt: ${JSON.stringify(systemPrompt)},
|
73
|
-
${generateModelInferenceConfigurationLine(config)}
|
74
|
-
};`;
|
75
|
-
};
|
76
|
-
const generateModelInferenceConfigurationLine = (config) => {
|
77
|
-
const { inferenceConfiguration } = config;
|
78
|
-
return inferenceConfiguration && Object.keys(inferenceConfiguration).length > 0
|
79
|
-
? (0, ts_dedent_1.default) `inferenceConfiguration: ${JSON.stringify(config.inferenceConfiguration)},`
|
80
|
-
: '';
|
81
|
-
};
|
82
|
-
const selectionSet = `id conversationId content { image { format source { bytes }} text toolUse { toolUseId name input } toolResult { status toolUseId content { json text image { format source { bytes }} document { format name source { bytes }} }}} role owner createdAt updatedAt`;
|
83
|
-
const streamingSelectionSet = `associatedUserMessageId contentBlockDeltaIndex contentBlockDoneAtIndex contentBlockIndex contentBlockText contentBlockToolUse { toolUseId name input } conversationId id stopReason`;
|
84
|
-
//# sourceMappingURL=invoke-lambda-resolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"invoke-lambda-resolver.js","sourceRoot":"","sources":["../../src/resolvers/invoke-lambda-resolver.ts"],"names":[],"mappings":";;;;;;AACA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AACxB,0DAA+B;AAC/B,2EAAqD;AACrD,0DAAkC;AAS3B,MAAM,2BAA2B,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACjH,MAAM,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACtF,MAAM,aAAa,GAAG,qBAAqB,CAAC;IAC5C,MAAM,wBAAwB,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC;IACxE,MAAM,sBAAsB,GAAG,MAAM,CAAC,oBAAoB,CAAC;IAC3D,MAAM,iCAAiC,GAAG,MAAM,CAAC,6BAA6B,CAAC;IAC/E,MAAM,kBAAkB,GAAG,MAAM,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;IAIvE,MAAM,cAAc,GAAG,yBAAyB,IAAA,oCAAO,EAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACnF,MAAM,yBAAyB,GAAG,IAAI,CAAC;IACvC,MAAM,eAAe,GAAG,0BAA0B,IAAA,oCAAO,EAAC,IAAA,mBAAS,EAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,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|
-
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
|
-
export declare const verifySessionOwnerSendMessageMappingTemplate: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
4
|
-
export declare const verifySessionOwnerAssistantResponseMappingTemplate: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
5
|
-
//# sourceMappingURL=verify-session-owner-resolver.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"verify-session-owner-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/verify-session-owner-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAOzF,eAAO,MAAM,4CAA4C,WAAY,kCAAkC,KAAG,uBAMzG,CAAC;AAOF,eAAO,MAAM,kDAAkD,WAAY,kCAAkC,KAAG,uBAM/G,CAAC"}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.verifySessionOwnerAssistantResponseMappingTemplate = exports.verifySessionOwnerSendMessageMappingTemplate = void 0;
|
7
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
9
|
-
const path_1 = __importDefault(require("path"));
|
10
|
-
const verifySessionOwnerSendMessageMappingTemplate = (config) => {
|
11
|
-
const substitutions = {
|
12
|
-
CONVERSATION_ID_PARENT: 'ctx.args',
|
13
|
-
};
|
14
|
-
const templateName = `Mutation.${config.field.name.value}.verify-session-owner.js`;
|
15
|
-
return verifySessionOwnerMappingTemplate(templateName, substitutions);
|
16
|
-
};
|
17
|
-
exports.verifySessionOwnerSendMessageMappingTemplate = verifySessionOwnerSendMessageMappingTemplate;
|
18
|
-
const verifySessionOwnerAssistantResponseMappingTemplate = (config) => {
|
19
|
-
const substitutions = {
|
20
|
-
CONVERSATION_ID_PARENT: 'ctx.args.input',
|
21
|
-
};
|
22
|
-
const templateName = `Mutation.${config.field.name.value}AssistantResponse.verify-session-owner.js`;
|
23
|
-
return verifySessionOwnerMappingTemplate(templateName, substitutions);
|
24
|
-
};
|
25
|
-
exports.verifySessionOwnerAssistantResponseMappingTemplate = verifySessionOwnerAssistantResponseMappingTemplate;
|
26
|
-
const verifySessionOwnerMappingTemplate = (name, substitute) => {
|
27
|
-
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'verify-session-owner-resolver-fn.template.js'), 'utf8');
|
28
|
-
Object.entries(substitute).forEach(([key, value]) => {
|
29
|
-
const replaced = resolver.replace(new RegExp(`\\[\\[${key}\\]\\]`, 'g'), value);
|
30
|
-
resolver = replaced;
|
31
|
-
});
|
32
|
-
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, name);
|
33
|
-
};
|
34
|
-
//# sourceMappingURL=verify-session-owner-resolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"verify-session-owner-resolver.js","sourceRoot":"","sources":["../../src/resolvers/verify-session-owner-resolver.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AAQjB,MAAM,4CAA4C,GAAG,CAAC,MAA0C,EAA2B,EAAE;IAClI,MAAM,aAAa,GAAG;QACpB,sBAAsB,EAAE,UAAU;KACnC,CAAC;IACF,MAAM,YAAY,GAAG,YAAY,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,0BAA0B,CAAC;IACnF,OAAO,iCAAiC,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;AACxE,CAAC,CAAC;AANW,QAAA,4CAA4C,gDAMvD;AAOK,MAAM,kDAAkD,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACxI,MAAM,aAAa,GAAG;QACpB,sBAAsB,EAAE,gBAAgB;KACzC,CAAC;IACF,MAAM,YAAY,GAAG,YAAY,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,2CAA2C,CAAC;IACpG,OAAO,iCAAiC,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;AACxE,CAAC,CAAC;AANW,QAAA,kDAAkD,sDAM7D;AAEF,MAAM,iCAAiC,GAAG,CAAC,IAAY,EAAE,UAAkC,EAAE,EAAE;IAC7F,IAAI,QAAQ,GAAG,YAAE,CAAC,YAAY,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,8CAA8C,CAAC,EAAE,MAAM,CAAC,CAAC;IAC7G,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAClD,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAChF,QAAQ,GAAG,QAAQ,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,OAAO,0CAAe,CAAC,+BAA+B,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACzE,CAAC,CAAC"}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
|
-
export declare const writeMessageToTableMappingTemplate: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
4
|
-
//# sourceMappingURL=write-message-to-table-resolver.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"write-message-to-table-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/write-message-to-table-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAQzF,eAAO,MAAM,kCAAkC,WAAY,kCAAkC,KAAG,uBAa/F,CAAC"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.writeMessageToTableMappingTemplate = void 0;
|
7
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
9
|
-
const path_1 = __importDefault(require("path"));
|
10
|
-
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
11
|
-
const writeMessageToTableMappingTemplate = (config) => {
|
12
|
-
const fieldName = config.field.name.value;
|
13
|
-
const substitutions = {
|
14
|
-
CONVERSATION_MESSAGE_TYPE_NAME: `ConversationMessage${(0, graphql_transformer_common_1.toUpper)(fieldName)}`,
|
15
|
-
};
|
16
|
-
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'write-message-to-table-resolver-fn.template.js'), 'utf8');
|
17
|
-
Object.entries(substitutions).forEach(([key, value]) => {
|
18
|
-
const replaced = resolver.replace(new RegExp(`\\[\\[${key}\\]\\]`, 'g'), value);
|
19
|
-
resolver = replaced;
|
20
|
-
});
|
21
|
-
const templateName = `Mutation.${fieldName}.write-message-to-table.js`;
|
22
|
-
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
|
23
|
-
};
|
24
|
-
exports.writeMessageToTableMappingTemplate = writeMessageToTableMappingTemplate;
|
25
|
-
//# sourceMappingURL=write-message-to-table-resolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"write-message-to-table-resolver.js","sourceRoot":"","sources":["../../src/resolvers/write-message-to-table-resolver.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AAExB,2EAAqD;AAO9C,MAAM,kCAAkC,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACxH,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;IAC1C,MAAM,aAAa,GAAG;QACpB,8BAA8B,EAAE,sBAAsB,IAAA,oCAAO,EAAC,SAAS,CAAC,EAAE;KAC3E,CAAC;IACF,IAAI,QAAQ,GAAG,YAAE,CAAC,YAAY,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,gDAAgD,CAAC,EAAE,MAAM,CAAC,CAAC;IAC/G,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACrD,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAChF,QAAQ,GAAG,QAAQ,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,YAAY,SAAS,4BAA4B,CAAC;IACvE,OAAO,0CAAe,CAAC,+BAA+B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACjF,CAAC,CAAC;AAbW,QAAA,kCAAkC,sCAa7C"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"graphql-json-schema-type.d.ts","sourceRoot":"","sources":["../../src/utils/graphql-json-schema-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAOL,QAAQ,EAET,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,UAAU,EAIX,MAAM,uCAAuC,CAAC;AAS/C,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,0BAA0B,EAC/B,MAAM,GAAE,UAAyB,GAChC,UAAU,CASZ"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/utils/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAKzF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC;AAEF,KAAK,6BAA6B,GAAG;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,UAAU,CAAC;KAClB,CAAC;IACF,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;CAC/D,CAAC;AAiFF,eAAO,MAAM,YAAY,oBAAqB,cAAc,EAAE,OAAO,0BAA0B,KAAG,KAAK,GAAG,SAyBzG,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/utils/tools.ts"],"names":[],"mappings":";;;AAAA,oFAA0F;AAG1F,2EAAkF;AAClF,yEAA4E;AAqC5E,MAAM,oBAAoB,GAAG,CAC3B,WAAqB,EACrB,GAA+B,EAC/B,YAAyB,IAAI,GAAG,EAAE,EAClC,YAAoB,EAAE,EACd,EAAE;IAEV,IAAI,IAAA,qCAAQ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