@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,21 +1,47 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
26
|
exports.ConversationFieldHandler = void 0;
|
4
27
|
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
5
|
-
const
|
6
|
-
const
|
28
|
+
const semver = __importStar(require("semver"));
|
29
|
+
const conversation_model_1 = require("../graphql-types/conversation-model");
|
7
30
|
const message_model_1 = require("../graphql-types/message-model");
|
31
|
+
const name_values_1 = require("../graphql-types/name-values");
|
8
32
|
class ConversationFieldHandler {
|
9
33
|
getDirectiveConfig(parent, definition, directive, context) {
|
10
34
|
if (parent.name.value !== 'Mutation') {
|
11
35
|
throw new graphql_transformer_core_1.InvalidDirectiveError('@conversation directive must be used on Mutation field.');
|
12
36
|
}
|
13
|
-
const
|
14
|
-
const
|
15
|
-
|
16
|
-
config
|
17
|
-
|
18
|
-
|
37
|
+
const parsedConfig = this.getConversationConfig(directive, parent, definition, context);
|
38
|
+
const conversationModels = this.createModels(parsedConfig, definition);
|
39
|
+
const supportingFields = this.createSupportingFields(parsedConfig);
|
40
|
+
const config = {
|
41
|
+
...parsedConfig,
|
42
|
+
...conversationModels,
|
43
|
+
...supportingFields,
|
44
|
+
};
|
19
45
|
this.validate(config);
|
20
46
|
return config;
|
21
47
|
}
|
@@ -25,7 +51,6 @@ class ConversationFieldHandler {
|
|
25
51
|
parent,
|
26
52
|
directive,
|
27
53
|
field: definition,
|
28
|
-
inferenceConfiguration: {},
|
29
54
|
}, (0, graphql_transformer_core_1.generateGetArgumentsInput)(context.transformParameters));
|
30
55
|
return config;
|
31
56
|
}
|
@@ -33,17 +58,39 @@ class ConversationFieldHandler {
|
|
33
58
|
if (definition.type.kind !== 'NamedType' || definition.type.name.value !== 'ConversationMessage') {
|
34
59
|
throw new graphql_transformer_core_1.InvalidDirectiveError('@conversation return type must be ConversationMessage');
|
35
60
|
}
|
36
|
-
const
|
37
|
-
const
|
38
|
-
const
|
39
|
-
const
|
40
|
-
|
41
|
-
|
42
|
-
|
61
|
+
const conversationMessageTypeName = (0, name_values_1.getConversationMessageTypeName)(config);
|
62
|
+
const conversationTypeName = (0, name_values_1.getConversationTypeName)(config);
|
63
|
+
const message = (0, message_model_1.createMessageModel)(conversationTypeName, conversationMessageTypeName, name_values_1.CONVERSATION_MESSAGES_REFERENCE_FIELD_NAME, definition.type);
|
64
|
+
const conversation = (0, conversation_model_1.createConversationModel)(conversationTypeName, conversationMessageTypeName, name_values_1.CONVERSATION_MESSAGES_REFERENCE_FIELD_NAME);
|
65
|
+
return { message, conversation };
|
66
|
+
}
|
67
|
+
createSupportingFields(config) {
|
68
|
+
const conversationMessageTypeName = (0, name_values_1.getConversationMessageTypeName)(config);
|
69
|
+
const messageSubscriptionFieldName = (0, name_values_1.getMessageSubscriptionFieldName)(config);
|
70
|
+
const assistantMutationFieldName = (0, name_values_1.getAssistantMutationFieldName)(config);
|
71
|
+
const assistantResponseSubscriptionField = (0, message_model_1.createMessageSubscription)(messageSubscriptionFieldName, conversationMessageTypeName, assistantMutationFieldName);
|
72
|
+
const assistantResponseMutationInput = (0, message_model_1.createAssistantResponseMutationInput)(conversationMessageTypeName);
|
73
|
+
const assistantResponseMutationField = (0, message_model_1.createAssistantMutationField)(assistantMutationFieldName, conversationMessageTypeName, assistantResponseMutationInput.name.value);
|
74
|
+
return {
|
75
|
+
assistantResponseMutation: { field: assistantResponseMutationField, input: assistantResponseMutationInput },
|
76
|
+
assistantResponseSubscriptionField,
|
77
|
+
};
|
43
78
|
}
|
44
79
|
validate(config) {
|
45
80
|
this.validateReturnType(config);
|
46
81
|
this.validateInferenceConfig(config);
|
82
|
+
this.validateHandler(config);
|
83
|
+
}
|
84
|
+
validateHandler(config) {
|
85
|
+
if (config.handler && config.functionName) {
|
86
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError("'functionName' and 'handler' are mutually exclusive");
|
87
|
+
}
|
88
|
+
if (config.handler) {
|
89
|
+
const eventVersion = semver.coerce(config.handler.eventVersion);
|
90
|
+
if ((eventVersion === null || eventVersion === void 0 ? void 0 : eventVersion.major) !== 1) {
|
91
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError(`Unsupported custom conversation handler. Expected eventVersion to match 1.x, received ${config.handler.eventVersion}`);
|
92
|
+
}
|
93
|
+
}
|
47
94
|
}
|
48
95
|
validateReturnType(config) {
|
49
96
|
const { field } = config;
|
@@ -52,6 +99,8 @@ class ConversationFieldHandler {
|
|
52
99
|
}
|
53
100
|
}
|
54
101
|
validateInferenceConfig(config) {
|
102
|
+
if (!config.inferenceConfiguration)
|
103
|
+
return;
|
55
104
|
const { maxTokens, temperature, topP } = config.inferenceConfiguration;
|
56
105
|
if (maxTokens !== undefined && maxTokens < 1) {
|
57
106
|
throw new graphql_transformer_core_1.InvalidDirectiveError(`@conversation directive maxTokens valid range: Minimum value of 1. Provided: ${maxTokens}`);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-field-handler.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-field-handler.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"conversation-field-handler.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-field-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oFAA2H;AAS3H,+CAAiC;AAEjC,4EAAiG;AACjG,kEAMwC;AACxC,8DAMsC;AAOtC,MAAa,wBAAwB;IAWnC,kBAAkB,CAChB,MAA8D,EAC9D,UAA+B,EAC/B,SAAwB,EACxB,OAAkD;QAElD,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,KAAK,UAAU,EAAE;YACpC,MAAM,IAAI,gDAAqB,CAAC,yDAAyD,CAAC,CAAC;SAC5F;QACD,MAAM,YAAY,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACxF,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACvE,MAAM,gBAAgB,GAAG,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG;YACb,GAAG,YAAY;YACf,GAAG,kBAAkB;YACrB,GAAG,gBAAgB;SACpB,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;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AAC,IAAI,CAAC,KAAK,KAAK,qBAAqB,EAAE;YACtF,MAAM,IAAI,gDAAqB,CAAC,uDAAuD,CAAC,CAAC;SAC1F;IACH,CAAC;IAOO,uBAAuB,CAAC,MAA0C;QACxE,IAAI,CAAC,MAAM,CAAC,sBAAsB;YAAE,OAAO;QAC3C,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,sBAAsB,CAAC;QAGvE,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,GAAG,CAAC,EAAE;YAC5C,MAAM,IAAI,gDAAqB,CAAC,gFAAgF,SAAS,EAAE,CAAC,CAAC;SAC9H;QAED,IAAI,WAAW,KAAK,SAAS,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,WAAW,GAAG,CAAC,CAAC,EAAE;YACrE,MAAM,IAAI,gDAAqB,CAC7B,sGAAsG,WAAW,EAAE,CACpH,CAAC;SACH;QAED,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,EAAE;YAChD,MAAM,IAAI,gDAAqB,CAC7B,+FAA+F,IAAI,EAAE,CACtG,CAAC;SACH;IACH,CAAC;CACF;AA/LD,4DA+LC"}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { TransformerPrepareStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
1
|
import { ModelTransformer } from '@aws-amplify/graphql-model-transformer';
|
3
2
|
import { BelongsToTransformer, HasManyTransformer } from '@aws-amplify/graphql-relational-transformer';
|
4
|
-
import { TransformerAuthProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
5
|
-
import { ConversationDirectiveConfiguration } from '../
|
3
|
+
import { TransformerAuthProvider, TransformerPrepareStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
4
|
+
import { ConversationDirectiveConfiguration } from '../conversation-directive-configuration';
|
6
5
|
export declare class ConversationPrepareHandler {
|
7
6
|
private modelTransformer;
|
8
7
|
private hasManyTransformer;
|
@@ -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,
|
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,uBAAuB,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AAC7H,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAO7F,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;IAkB3G,OAAO,CAAC,4BAA4B;CA2CrC"}
|
@@ -15,30 +15,28 @@ class ConversationPrepareHandler {
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
prepareResourcesForDirective(directive, ctx) {
|
18
|
-
const {
|
19
|
-
const
|
20
|
-
const
|
21
|
-
|
22
|
-
ctx.output.
|
23
|
-
ctx.output.
|
24
|
-
ctx.output.
|
25
|
-
ctx.output.
|
26
|
-
ctx.
|
27
|
-
ctx.
|
28
|
-
ctx.
|
29
|
-
ctx.
|
30
|
-
|
31
|
-
|
32
|
-
this.modelTransformer.object(conversationModel, conversationModelDirective, ctx);
|
33
|
-
this.modelTransformer.object(messageModel, messageModelDirective, ctx);
|
18
|
+
const { conversation, message, assistantResponseMutation, assistantResponseSubscriptionField } = directive;
|
19
|
+
const conversationName = conversation.model.name.value;
|
20
|
+
const messageName = message.model.name.value;
|
21
|
+
ctx.output.addInput(assistantResponseMutation.input);
|
22
|
+
ctx.output.addMutationFields([assistantResponseMutation.field]);
|
23
|
+
ctx.output.addSubscriptionFields([assistantResponseSubscriptionField]);
|
24
|
+
ctx.output.addObject(conversation.model);
|
25
|
+
ctx.output.addObject(message.model);
|
26
|
+
ctx.providerRegistry.registerDataSourceProvider(conversation.model, this.modelTransformer);
|
27
|
+
ctx.providerRegistry.registerDataSourceProvider(message.model, this.modelTransformer);
|
28
|
+
ctx.dataSourceStrategies[conversationName] = graphql_transformer_core_1.DDB_AMPLIFY_MANAGED_DATASOURCE_STRATEGY;
|
29
|
+
ctx.dataSourceStrategies[messageName] = graphql_transformer_core_1.DDB_AMPLIFY_MANAGED_DATASOURCE_STRATEGY;
|
30
|
+
this.modelTransformer.object(conversation.model, conversation.modelDirective, ctx);
|
31
|
+
this.modelTransformer.object(message.model, message.modelDirective, ctx);
|
34
32
|
this.modelTransformer.before(ctx);
|
35
|
-
this.belongsToTransformer.field(
|
36
|
-
this.hasManyTransformer.field(
|
33
|
+
this.belongsToTransformer.field(message.model, message.conversationField, message.belongsToConversationDirective, ctx);
|
34
|
+
this.hasManyTransformer.field(conversation.model, conversation.messagesField, conversation.hasManyMessagesDirective, ctx);
|
37
35
|
if (!this.authProvider.object) {
|
38
36
|
throw new graphql_transformer_core_1.InvalidTransformerError('No authentication provider found.');
|
39
37
|
}
|
40
|
-
this.authProvider.object(
|
41
|
-
this.authProvider.object(
|
38
|
+
this.authProvider.object(conversation.model, conversation.authDirective, ctx);
|
39
|
+
this.authProvider.object(message.model, message.authDirective, ctx);
|
42
40
|
}
|
43
41
|
}
|
44
42
|
exports.ConversationPrepareHandler = ConversationPrepareHandler;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-prepare-handler.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"conversation-prepare-handler.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":";;;AAEA,oFAAyH;AASzH,MAAa,0BAA0B;IAarC,YACE,gBAAkC,EAClC,kBAAsC,EACtC,oBAA0C,EAC1C,YAAqC;QAErC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAaD,OAAO,CAAC,GAA0C,EAAE,UAAgD;QAClG,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;YAClC,IAAI,CAAC,4BAA4B,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;SACnD;IACH,CAAC;IAcO,4BAA4B,CAAC,SAA6C,EAAE,GAA0C;QAE5H,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,yBAAyB,EAAE,kCAAkC,EAAE,GAAG,SAAS,CAAC;QAG3G,MAAM,gBAAgB,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;QACvD,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;QAG7C,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;QACrD,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC,CAAC;QAChE,GAAG,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC;QACvE,GAAG,CAAC,MAAM,CAAC,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CAAC,CAAC;QAC9E,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IACtE,CAAC;CACF;AAjGD,gEAiGC"}
|
@@ -1,21 +1,15 @@
|
|
1
1
|
import { TransformerContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
2
|
import * as cdk from 'aws-cdk-lib';
|
3
|
+
import { ConversationDirectiveConfiguration } from '../conversation-directive-configuration';
|
4
4
|
export declare class ConversationResolverGenerator {
|
5
5
|
private readonly functionNameMap?;
|
6
6
|
constructor(functionNameMap?: Record<string, cdk.aws_lambda.IFunction> | undefined);
|
7
7
|
generateResolvers(directives: ConversationDirectiveConfiguration[], ctx: TransformerContextProvider): void;
|
8
|
-
private
|
8
|
+
private generateDataSources;
|
9
9
|
private generateResolversForDirective;
|
10
|
-
private createFunctionStack;
|
11
10
|
private setupFunctionDataSource;
|
12
11
|
private setupExistingFunctionDataSource;
|
13
12
|
private setupDefaultConversationHandler;
|
14
|
-
private createConversationPipelineResolver;
|
15
|
-
private addPipelineResolverFunctions;
|
16
|
-
private createAssistantResponseResolver;
|
17
|
-
private createAssistantStreamingResponseResolver;
|
18
|
-
private createAssistantResponseSubscriptionResolver;
|
19
13
|
private addLambdaDataSource;
|
20
14
|
private addInitSlotToListMessagesPipeline;
|
21
15
|
private setupMessageTableIndex;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-resolver-generator.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"conversation-resolver-generator.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAC7G,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAInC,OAAO,EAAE,kCAAkC,EAAoC,MAAM,yCAAyC,CAAC;AAgB/H,qBAAa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;gBAAhB,eAAe,CAAC,sDAA2B;IAQxE,iBAAiB,CAAC,UAAU,EAAE,kCAAkC,EAAE,EAAE,GAAG,EAAE,0BAA0B,GAAG,IAAI;IAuB1G,OAAO,CAAC,mBAAmB;IAmC3B,OAAO,CAAC,6BAA6B;IA8BrC,OAAO,CAAC,uBAAuB;IAoB/B,OAAO,CAAC,+BAA+B;IAmBvC,OAAO,CAAC,+BAA+B;IA+BvC,OAAO,CAAC,mBAAmB;IAuB3B,OAAO,CAAC,iCAAiC;IAazC,OAAO,CAAC,sBAAsB;IAoC9B,OAAO,CAAC,uBAAuB;CAgChC"}
|
@@ -27,63 +27,52 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.ConversationResolverGenerator = void 0;
|
30
|
-
const tools_1 = require("../utils/tools");
|
31
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
32
|
-
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
33
|
-
const cdk = __importStar(require("aws-cdk-lib"));
|
34
30
|
const ai_constructs_1 = require("@aws-amplify/ai-constructs");
|
35
|
-
const graphql_transformer_core_2 = require("@aws-amplify/graphql-transformer-core");
|
36
|
-
const init_resolver_1 = require("../resolvers/init-resolver");
|
37
|
-
const auth_resolver_1 = require("../resolvers/auth-resolver");
|
38
|
-
const verify_session_owner_resolver_1 = require("../resolvers/verify-session-owner-resolver");
|
39
|
-
const write_message_to_table_resolver_1 = require("../resolvers/write-message-to-table-resolver");
|
40
|
-
const invoke_lambda_resolver_1 = require("../resolvers/invoke-lambda-resolver");
|
41
|
-
const assistant_mutation_resolver_1 = require("../resolvers/assistant-mutation-resolver");
|
42
|
-
const assistant_messages_subscription_resolver_1 = require("../resolvers/assistant-messages-subscription-resolver");
|
43
31
|
const graphql_index_transformer_1 = require("@aws-amplify/graphql-index-transformer");
|
32
|
+
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
33
|
+
const cdk = __importStar(require("aws-cdk-lib"));
|
34
|
+
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
44
35
|
const pluralize_1 = __importDefault(require("pluralize"));
|
45
|
-
const
|
46
|
-
const
|
47
|
-
const
|
36
|
+
const name_values_1 = require("../graphql-types/name-values");
|
37
|
+
const resolvers_1 = require("../resolvers");
|
38
|
+
const process_tools_1 = require("../tools/process-tools");
|
48
39
|
class ConversationResolverGenerator {
|
49
40
|
constructor(functionNameMap) {
|
50
41
|
this.functionNameMap = functionNameMap;
|
51
42
|
}
|
52
43
|
generateResolvers(directives, ctx) {
|
53
44
|
for (const directive of directives) {
|
54
|
-
|
45
|
+
directive.toolSpec = (0, process_tools_1.processTools)(directive.tools, ctx);
|
46
|
+
directive.dataSources = this.generateDataSources(directive, ctx);
|
47
|
+
this.setupMessageTableIndex(ctx, directive);
|
55
48
|
this.generateResolversForDirective(directive, ctx);
|
56
49
|
this.addInitSlotToListMessagesPipeline(ctx, directive);
|
57
50
|
}
|
58
51
|
}
|
59
|
-
|
60
|
-
const
|
61
|
-
|
62
|
-
|
63
|
-
|
52
|
+
generateDataSources(directive, ctx) {
|
53
|
+
const functionStackName = (0, name_values_1.getFunctionStackName)(directive);
|
54
|
+
const functionStack = ctx.stackManager.createStack(functionStackName);
|
55
|
+
const { functionDataSourceId, referencedFunction } = this.setupFunctionDataSource(directive, functionStack, (0, name_values_1.upperCaseConversationFieldName)(directive));
|
56
|
+
const lambdaFunctionDataSource = this.addLambdaDataSource(ctx, functionDataSourceId, referencedFunction, functionStackName);
|
57
|
+
const conversationMessageTableDataSourceName = (0, graphql_transformer_core_1.getModelDataSourceNameForTypeName)(ctx, directive.message.model.name.value);
|
58
|
+
const messageTableDataSource = ctx.api.host.getDataSource(conversationMessageTableDataSourceName);
|
59
|
+
const conversationTableDataSourceName = (0, graphql_transformer_core_1.getModelDataSourceNameForTypeName)(ctx, directive.conversation.model.name.value);
|
60
|
+
const conversationTableDataSource = ctx.api.host.getDataSource(conversationTableDataSourceName);
|
61
|
+
return {
|
62
|
+
lambdaFunctionDataSource,
|
63
|
+
messageTableDataSource,
|
64
|
+
conversationTableDataSource,
|
65
|
+
};
|
64
66
|
}
|
65
67
|
generateResolversForDirective(directive, ctx) {
|
66
|
-
const
|
67
|
-
const
|
68
|
-
const
|
69
|
-
|
70
|
-
const
|
71
|
-
|
72
|
-
const
|
73
|
-
|
74
|
-
this.setupMessageTableIndex(ctx, directive);
|
75
|
-
const initResolverFunction = (0, init_resolver_1.initMappingTemplate)(ctx);
|
76
|
-
const authResolverFunction = (0, auth_resolver_1.authMappingTemplate)(directive);
|
77
|
-
const verifySessionOwnerSendMessageResolverFunction = (0, verify_session_owner_resolver_1.verifySessionOwnerSendMessageMappingTemplate)(directive);
|
78
|
-
const verifySessionOwnerAssistantResponseResolverFunction = (0, verify_session_owner_resolver_1.verifySessionOwnerAssistantResponseMappingTemplate)(directive);
|
79
|
-
const writeMessageToTableFunction = (0, write_message_to_table_resolver_1.writeMessageToTableMappingTemplate)(directive);
|
80
|
-
this.createConversationPipelineResolver(ctx, parentName, fieldName, capitalizedFieldName, functionDataSource, invokeLambdaFunction, initResolverFunction, authResolverFunction, verifySessionOwnerSendMessageResolverFunction, writeMessageToTableFunction);
|
81
|
-
this.createAssistantResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerAssistantResponseResolverFunction);
|
82
|
-
this.createAssistantStreamingResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerAssistantResponseResolverFunction);
|
83
|
-
this.createAssistantResponseSubscriptionResolver(ctx, directive, capitalizedFieldName);
|
84
|
-
}
|
85
|
-
createFunctionStack(ctx, capitalizedFieldName) {
|
86
|
-
return ctx.stackManager.createStack(`${capitalizedFieldName}ConversationDirectiveLambdaStack`);
|
68
|
+
const parentName = directive.parent.name.value;
|
69
|
+
const fieldName = directive.field.name.value;
|
70
|
+
const conversationPipelineResolver = (0, resolvers_1.generateResolverPipeline)(resolvers_1.sendMessagePipelineDefinition, directive, ctx);
|
71
|
+
ctx.resolvers.addResolver(parentName, fieldName, conversationPipelineResolver);
|
72
|
+
const assistantResponsePipelineResolver = (0, resolvers_1.generateResolverPipeline)(resolvers_1.assistantResponsePipelineDefinition, directive, ctx);
|
73
|
+
ctx.resolvers.addResolver(parentName, directive.assistantResponseMutation.field.name.value, assistantResponsePipelineResolver);
|
74
|
+
const assistantResponseSubscriptionPipelineResolver = (0, resolvers_1.generateResolverPipeline)(resolvers_1.assistantResponseSubscriptionPipelineDefinition, directive, ctx);
|
75
|
+
ctx.resolvers.addResolver('Subscription', directive.assistantResponseSubscriptionField.name.value, assistantResponseSubscriptionPipelineResolver);
|
87
76
|
}
|
88
77
|
setupFunctionDataSource(directive, functionStack, capitalizedFieldName) {
|
89
78
|
if (directive.handler) {
|
@@ -107,11 +96,11 @@ class ConversationResolverGenerator {
|
|
107
96
|
}
|
108
97
|
return { functionDataSourceId, referencedFunction };
|
109
98
|
}
|
110
|
-
setupDefaultConversationHandler(functionStack, capitalizedFieldName,
|
99
|
+
setupDefaultConversationHandler(functionStack, capitalizedFieldName, modelId) {
|
111
100
|
const defaultConversationHandler = new ai_constructs_1.conversation.ConversationHandlerFunction(functionStack, `${capitalizedFieldName}DefaultConversationHandler`, {
|
112
101
|
models: [
|
113
102
|
{
|
114
|
-
modelId
|
103
|
+
modelId,
|
115
104
|
},
|
116
105
|
],
|
117
106
|
});
|
@@ -119,89 +108,28 @@ class ConversationResolverGenerator {
|
|
119
108
|
const referencedFunction = defaultConversationHandler.resources.lambda;
|
120
109
|
return { functionDataSourceId, referencedFunction };
|
121
110
|
}
|
122
|
-
|
123
|
-
const
|
124
|
-
const runtime = graphql_transformer_core_1.APPSYNC_JS_RUNTIME;
|
125
|
-
const conversationPipelineResolver = new graphql_transformer_core_1.TransformerResolver(parentName, fieldName, resolverResourceId, { codeMappingTemplate: invokeLambdaFunction }, ['init', 'auth', 'verifySessionOwner', 'writeMessageToTable'], ['handleLambdaResponse', 'finish'], functionDataSource, runtime);
|
126
|
-
this.addPipelineResolverFunctions(ctx, conversationPipelineResolver, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerResolverFunction, writeMessageToTableFunction);
|
127
|
-
ctx.resolvers.addResolver(parentName, fieldName, conversationPipelineResolver);
|
128
|
-
}
|
129
|
-
addPipelineResolverFunctions(ctx, resolver, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerResolverFunction, writeMessageToTableFunction) {
|
130
|
-
resolver.addJsFunctionToSlot('init', initResolverFunction);
|
131
|
-
resolver.addJsFunctionToSlot('auth', authResolverFunction);
|
132
|
-
const sessionModelName = `Conversation${capitalizedFieldName}`;
|
133
|
-
const sessionModelDDBDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, sessionModelName);
|
134
|
-
const conversationSessionDDBDataSource = ctx.api.host.getDataSource(sessionModelDDBDataSourceName);
|
135
|
-
resolver.addJsFunctionToSlot('verifySessionOwner', verifySessionOwnerResolverFunction, conversationSessionDDBDataSource);
|
136
|
-
const messageModelName = `ConversationMessage${capitalizedFieldName}`;
|
137
|
-
const messageModelDDBDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, messageModelName);
|
138
|
-
const messageDDBDataSource = ctx.api.host.getDataSource(messageModelDDBDataSourceName);
|
139
|
-
resolver.addJsFunctionToSlot('writeMessageToTable', writeMessageToTableFunction, messageDDBDataSource);
|
140
|
-
}
|
141
|
-
createAssistantResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerResolverFunction) {
|
142
|
-
const assistantResponseResolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID('Mutation', directive.responseMutationName);
|
143
|
-
const assistantResponseResolverFunction = (0, assistant_mutation_resolver_1.assistantMutationResolver)(directive);
|
144
|
-
const conversationMessageDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, `ConversationMessage${capitalizedFieldName}`);
|
145
|
-
const conversationMessageDataSource = ctx.api.host.getDataSource(conversationMessageDataSourceName);
|
146
|
-
const resolver = new graphql_transformer_core_1.TransformerResolver('Mutation', directive.responseMutationName, assistantResponseResolverResourceId, { codeMappingTemplate: assistantResponseResolverFunction }, ['init', 'auth', 'verifySessionOwner'], [], conversationMessageDataSource, graphql_transformer_core_1.APPSYNC_JS_RUNTIME);
|
147
|
-
resolver.addJsFunctionToSlot('init', initResolverFunction);
|
148
|
-
resolver.addJsFunctionToSlot('auth', authResolverFunction);
|
149
|
-
const sessionModelName = `Conversation${capitalizedFieldName}`;
|
150
|
-
const sessionModelDDBDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, sessionModelName);
|
151
|
-
const conversationSessionDDBDataSource = ctx.api.host.getDataSource(sessionModelDDBDataSourceName);
|
152
|
-
resolver.addJsFunctionToSlot('verifySessionOwner', verifySessionOwnerResolverFunction, conversationSessionDDBDataSource);
|
153
|
-
ctx.resolvers.addResolver('Mutation', directive.responseMutationName, resolver);
|
154
|
-
}
|
155
|
-
createAssistantStreamingResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerResolverFunction) {
|
156
|
-
const assistantResponseResolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID('Mutation', directive.messageModel.assistantStreamingMutationField.name.value);
|
157
|
-
const assistantResponseResolverFunction = (0, assistant_streaming_mutation_resolver_1.assistantStreamingMutationResolver)(directive);
|
158
|
-
const conversationMessageDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, `ConversationMessage${capitalizedFieldName}`);
|
159
|
-
const conversationMessageDataSource = ctx.api.host.getDataSource(conversationMessageDataSourceName);
|
160
|
-
const resolver = new graphql_transformer_core_1.TransformerResolver('Mutation', directive.messageModel.assistantStreamingMutationField.name.value, assistantResponseResolverResourceId, { codeMappingTemplate: assistantResponseResolverFunction }, ['init', 'auth', 'verifySessionOwner'], ['reduceChunks'], conversationMessageDataSource, graphql_transformer_core_1.APPSYNC_JS_RUNTIME);
|
161
|
-
resolver.addJsFunctionToSlot('init', initResolverFunction);
|
162
|
-
resolver.addJsFunctionToSlot('auth', authResolverFunction);
|
163
|
-
const sessionModelName = `Conversation${capitalizedFieldName}`;
|
164
|
-
const sessionModelDDBDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, sessionModelName);
|
165
|
-
const conversationSessionDDBDataSource = ctx.api.host.getDataSource(sessionModelDDBDataSourceName);
|
166
|
-
resolver.addJsFunctionToSlot('verifySessionOwner', verifySessionOwnerResolverFunction, conversationSessionDDBDataSource);
|
167
|
-
const reduceChunksFunction = (0, assistant_streaming_mutation_reduce_chunks_resolver_1.assistantStreamingMutationReduceChunksResolver)(directive);
|
168
|
-
resolver.addJsFunctionToSlot('reduceChunks', reduceChunksFunction, conversationMessageDataSource);
|
169
|
-
ctx.resolvers.addResolver('Mutation', directive.messageModel.assistantStreamingMutationField.name.value, resolver);
|
170
|
-
}
|
171
|
-
createAssistantResponseSubscriptionResolver(ctx, directive, capitalizedFieldName) {
|
172
|
-
const onAssistantResponseSubscriptionFieldName = `onCreateAssistantResponse${capitalizedFieldName}`;
|
173
|
-
const onAssistantResponseSubscriptionResolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID('Subscription', onAssistantResponseSubscriptionFieldName);
|
174
|
-
const onAssistantResponseSubscriptionResolverFunction = (0, assistant_messages_subscription_resolver_1.conversationMessageSubscriptionMappingTamplate)(directive);
|
175
|
-
const mappingTemplate = {
|
176
|
-
codeMappingTemplate: onAssistantResponseSubscriptionResolverFunction,
|
177
|
-
};
|
178
|
-
const onAssistantResponseSubscriptionResolver = new graphql_transformer_core_1.TransformerResolver('Subscription', onAssistantResponseSubscriptionFieldName, onAssistantResponseSubscriptionResolverResourceId, mappingTemplate, [], [], undefined, graphql_transformer_core_1.APPSYNC_JS_RUNTIME);
|
179
|
-
ctx.resolvers.addResolver('Subscription', onAssistantResponseSubscriptionFieldName, onAssistantResponseSubscriptionResolver);
|
180
|
-
}
|
181
|
-
addLambdaDataSource(ctx, functionDataSourceId, referencedFunction, capitalizedFieldName) {
|
182
|
-
const functionDataSourceScope = ctx.stackManager.getScopeFor(functionDataSourceId, `${capitalizedFieldName}ConversationDirectiveLambdaStack`);
|
111
|
+
addLambdaDataSource(ctx, functionDataSourceId, referencedFunction, functionStackName) {
|
112
|
+
const functionDataSourceScope = ctx.stackManager.getScopeFor(functionDataSourceId, functionStackName);
|
183
113
|
return ctx.api.host.addLambdaDataSource(functionDataSourceId, referencedFunction, {}, functionDataSourceScope);
|
184
114
|
}
|
185
115
|
addInitSlotToListMessagesPipeline(ctx, directive) {
|
186
|
-
const
|
187
|
-
const pluralized = (0, pluralize_1.default)(
|
116
|
+
const messageName = directive.message.model.name.value;
|
117
|
+
const pluralized = (0, pluralize_1.default)(messageName);
|
188
118
|
const listMessagesResolver = ctx.resolvers.getResolver('Query', `list${pluralized}`);
|
189
|
-
const initResolverFn = (0,
|
119
|
+
const initResolverFn = (0, resolvers_1.generateResolverFunction)(resolvers_1.listMessagesInitFunctionDefinition, directive, ctx);
|
190
120
|
listMessagesResolver.addJsFunctionToSlot('init', initResolverFn);
|
191
121
|
}
|
192
122
|
setupMessageTableIndex(ctx, directive) {
|
193
|
-
const
|
194
|
-
const
|
195
|
-
const
|
196
|
-
const
|
197
|
-
const gsiPartitionKeyName = referenceFieldName;
|
123
|
+
const messageName = directive.message.model.name.value;
|
124
|
+
const message = directive.message.model;
|
125
|
+
const conversationMessagesTable = (0, graphql_transformer_core_1.getTable)(ctx, message);
|
126
|
+
const gsiPartitionKeyName = name_values_1.CONVERSATION_MESSAGES_REFERENCE_FIELD_NAME;
|
198
127
|
const gsiPartitionKeyType = 'S';
|
199
128
|
const gsiSortKeyName = 'createdAt';
|
200
129
|
const gsiSortKeyType = 'S';
|
201
|
-
|
202
|
-
this.addGlobalSecondaryIndex(conversationMessagesTable, indexName, { name: gsiPartitionKeyName, type: gsiPartitionKeyType }, { name: gsiSortKeyName, type: gsiSortKeyType }, ctx, messageModelName);
|
130
|
+
this.addGlobalSecondaryIndex(conversationMessagesTable, ctx, messageName, name_values_1.LIST_MESSAGES_INDEX_NAME, { name: gsiPartitionKeyName, type: gsiPartitionKeyType }, { name: gsiSortKeyName, type: gsiSortKeyType });
|
203
131
|
}
|
204
|
-
addGlobalSecondaryIndex(table,
|
132
|
+
addGlobalSecondaryIndex(table, ctx, typeName, indexName, partitionKey, sortKey) {
|
205
133
|
table.addGlobalSecondaryIndex({
|
206
134
|
indexName,
|
207
135
|
projectionType: 'ALL',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-resolver-generator.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"conversation-resolver-generator.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAA0D;AAC1D,sFAAiF;AACjF,oFAAyH;AAEzH,iDAAmC;AAEnC,2EAAoF;AACpF,0DAAkC;AAElC,8DAKsC;AACtC,4CAOsB;AACtB,0DAAsD;AACtD,MAAa,6BAA6B;IACxC,YAA6B,eAA2C;QAA3C,oBAAe,GAAf,eAAe,CAA4B;IAAG,CAAC;IAQ5E,iBAAiB,CAAC,UAAgD,EAAE,GAA+B;QACjG,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;YAIlC,SAAS,CAAC,QAAQ,GAAG,IAAA,4BAAY,EAAC,SAAS,CAAC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/B,KAAK,CAAC,uBAAuB,CAAC;YAC5B,SAAS;YAET,cAAc,EAAE,KAAK;YACrB,YAAY;YACZ,OAAO;YACP,YAAY,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,8CAAiB,CAAC,UAAU,CAAC,0BAA0B,CAAC;YACjF,aAAa,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,8CAAiB,CAAC,UAAU,CAAC,2BAA2B,CAAC;SACpF,CAAC,CAAC;QAEH,MAAM,GAAG,GAAG,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC;QAErF,MAAM,QAAQ,GAAG;YACf,SAAS;YACT,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,UAAU,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE;YACrC,qBAAqB,EAAE,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,8CAAiB,CAAC,UAAU,CAAC,6BAA6B,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE;gBAChI,iBAAiB,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,8CAAiB,CAAC,UAAU,CAAC,0BAA0B,CAAC;gBACtF,kBAAkB,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,8CAAiB,CAAC,UAAU,CAAC,2BAA2B,CAAC;aACzF,CAAC;SACH,CAAC;QAEF,IAAA,mDAAuB,EAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACF;AA/QD,sEA+QC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-conversation-transformer",
|
3
|
-
"version": "0.5.0
|
3
|
+
"version": "0.5.0",
|
4
4
|
"description": "Amplify GraphQL @conversation transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -19,26 +19,26 @@
|
|
19
19
|
"build": "tsc && yarn copy-js-resolver-templates",
|
20
20
|
"watch": "tsc -w",
|
21
21
|
"clean": "rimraf ./lib",
|
22
|
-
"copy-js-resolver-templates": "cp
|
22
|
+
"copy-js-resolver-templates": "cd lib/resolvers && mkdir -p templates && cp ../../src/resolvers/templates/*.template.js templates",
|
23
23
|
"test": "jest",
|
24
24
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-amplify/ai-constructs": "0.
|
28
|
-
"@aws-amplify/graphql-directives": "2.4.
|
29
|
-
"@aws-amplify/graphql-index-transformer": "3.0.7
|
30
|
-
"@aws-amplify/graphql-model-transformer": "3.0.7
|
31
|
-
"@aws-amplify/graphql-relational-transformer": "3.0.7
|
32
|
-
"@aws-amplify/graphql-transformer-core": "3.2.2
|
27
|
+
"@aws-amplify/ai-constructs": "^0.2.0",
|
28
|
+
"@aws-amplify/graphql-directives": "2.4.0",
|
29
|
+
"@aws-amplify/graphql-index-transformer": "3.0.7",
|
30
|
+
"@aws-amplify/graphql-model-transformer": "3.0.7",
|
31
|
+
"@aws-amplify/graphql-relational-transformer": "3.0.7",
|
32
|
+
"@aws-amplify/graphql-transformer-core": "3.2.2",
|
33
33
|
"@aws-amplify/graphql-transformer-interfaces": "4.1.2",
|
34
34
|
"graphql": "^15.5.0",
|
35
35
|
"graphql-mapping-template": "5.0.1",
|
36
|
-
"graphql-transformer-common": "5.
|
36
|
+
"graphql-transformer-common": "5.1.0",
|
37
37
|
"immer": "^9.0.12",
|
38
38
|
"semver": "^7.6.3"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.6
|
41
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.6",
|
42
42
|
"esbuild": "^0.24.0"
|
43
43
|
},
|
44
44
|
"peerDependencies": {
|
@@ -81,5 +81,5 @@
|
|
81
81
|
"/__tests__/"
|
82
82
|
]
|
83
83
|
},
|
84
|
-
"gitHead": "
|
84
|
+
"gitHead": "b5f095c196b28065ff2c82b6e89894890f887bcc"
|
85
85
|
}
|
@@ -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
|
-
## [3.1.2
|
6
|
+
## [3.1.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@3.1.1...@aws-amplify/graphql-default-value-transformer@3.1.2) (2024-10-28)
|
7
7
|
|
8
8
|
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
|
9
9
|
|