@aws-amplify/graphql-api-construct 1.15.1-ai-streaming.1 → 1.16.0-gen2-migration-1015.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +142 -69
- package/API.md +11 -1
- package/CHANGELOG.md +7 -4
- 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/model-datasource-strategy-types.d.ts +19 -1
- package/lib/model-datasource-strategy-types.js +1 -1
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.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 -195
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +3 -19
- 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 +10 -32
- 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/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +15 -14
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +1 -7
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts +0 -2
- 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 +3 -34
- 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/resolvers/invoke-lambda-resolver-fn.template.js +1 -14
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js +0 -6
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js.map +1 -1
- 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 +2 -3
- 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 +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +0 -16
- 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 +12 -12
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +10 -9
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/package.json +3 -2
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +10 -9
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +201 -0
- 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 +13 -12
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +17 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +7 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +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/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +12 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js +4 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js +6 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js +205 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/.package-lock.json +13 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/LICENSE +47 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/README.md +18 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/index.js +1848 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/package.json +16 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package-lock.json +21 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package.json +11 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +14 -10
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +3 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +7 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +7 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +9 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +11 -10
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +10 -9
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +10 -9
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +1 -5
- package/node_modules/@aws-amplify/graphql-transformer/package.json +18 -18
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +11 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
- 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 +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +9 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +7 -6
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +11 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +11 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +6 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +10 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-mapping-template/CHANGELOG.md +4 -0
- package/node_modules/graphql-mapping-template/LICENSE +201 -0
- package/node_modules/graphql-mapping-template/package.json +3 -2
- package/node_modules/graphql-transformer-common/CHANGELOG.md +10 -0
- package/node_modules/graphql-transformer-common/LICENSE +201 -0
- package/node_modules/graphql-transformer-common/package.json +4 -3
- package/package.json +23 -23
- package/src/model-datasource-strategy-types.ts +21 -0
- package/src/types.ts +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.d.ts +0 -19
- 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/resolvers/assistant-streaming-mutation-reduce-chunks-resolver-fn.template.js +0 -101
- 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 -121
- 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
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-auth-transformer",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.4-gen2-migration-1015.0",
|
4
4
|
"description": "Amplify GraphQL @auth transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -30,23 +30,23 @@
|
|
30
30
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@aws-amplify/graphql-directives": "2.
|
34
|
-
"@aws-amplify/graphql-model-transformer": "3.0.
|
35
|
-
"@aws-amplify/graphql-relational-transformer": "3.0.
|
36
|
-
"@aws-amplify/graphql-transformer-core": "3.
|
37
|
-
"@aws-amplify/graphql-transformer-interfaces": "4.
|
33
|
+
"@aws-amplify/graphql-directives": "2.4.0-gen2-migration-1015.0",
|
34
|
+
"@aws-amplify/graphql-model-transformer": "3.1.0-gen2-migration-1015.0",
|
35
|
+
"@aws-amplify/graphql-relational-transformer": "3.1.0-gen2-migration-1015.0",
|
36
|
+
"@aws-amplify/graphql-transformer-core": "3.3.0-gen2-migration-1015.0",
|
37
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.2.0-gen2-migration-1015.0",
|
38
38
|
"graphql": "^15.5.0",
|
39
|
-
"graphql-mapping-template": "5.0.
|
40
|
-
"graphql-transformer-common": "5.0.
|
39
|
+
"graphql-mapping-template": "5.0.2-gen2-migration-1015.0",
|
40
|
+
"graphql-transformer-common": "5.1.0-gen2-migration-1015.0",
|
41
41
|
"lodash": "^4.17.21",
|
42
42
|
"md5": "^2.3.0"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
|
-
"@aws-amplify/graphql-function-transformer": "3.1.
|
46
|
-
"@aws-amplify/graphql-index-transformer": "3.0.
|
47
|
-
"@aws-amplify/graphql-searchable-transformer": "3.0.
|
48
|
-
"@aws-amplify/graphql-sql-transformer": "0.4.
|
49
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.
|
45
|
+
"@aws-amplify/graphql-function-transformer": "3.1.3-gen2-migration-1015.0",
|
46
|
+
"@aws-amplify/graphql-index-transformer": "3.0.6-gen2-migration-1015.0",
|
47
|
+
"@aws-amplify/graphql-searchable-transformer": "3.0.6-gen2-migration-1015.0",
|
48
|
+
"@aws-amplify/graphql-sql-transformer": "0.4.6-gen2-migration-1015.0",
|
49
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.5-gen2-migration-1015.0",
|
50
50
|
"@types/node": "^18.0.0"
|
51
51
|
},
|
52
52
|
"peerDependencies": {
|
@@ -92,5 +92,6 @@
|
|
92
92
|
"escapeString": true,
|
93
93
|
"printBasicPrototype": true
|
94
94
|
}
|
95
|
-
}
|
95
|
+
},
|
96
|
+
"gitHead": "3be96e2f9b1458117e458514e28a9bb19a21cbe8"
|
96
97
|
}
|
@@ -3,13 +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
|
-
## [0.3.1-
|
7
|
-
|
8
|
-
### Bug Fixes
|
9
|
-
|
10
|
-
- resolver logic for determining streaming based on exp env var ([b11ad67](https://github.com/aws-amplify/amplify-category-api/commit/b11ad67d4347445052a28421c962d3f9b15d7d86))
|
11
|
-
|
12
|
-
## [0.3.1-ai-streaming.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-conversation-transformer@0.3.0...@aws-amplify/graphql-conversation-transformer@0.3.1-ai-streaming.0) (2024-10-11)
|
6
|
+
## [0.3.1-gen2-migration-1015.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-conversation-transformer@0.3.0...@aws-amplify/graphql-conversation-transformer@0.3.1-gen2-migration-1015.0) (2024-10-15)
|
13
7
|
|
14
8
|
**Note:** Version bump only for package @aws-amplify/graphql-conversation-transformer
|
15
9
|
|
@@ -8,8 +8,6 @@ export type MessageModel = {
|
|
8
8
|
messageSubscription: FieldDefinitionNode;
|
9
9
|
assistantMutationInput: InputObjectTypeDefinitionNode;
|
10
10
|
assistantMutationField: FieldDefinitionNode;
|
11
|
-
assistantStreamingMutationInput: InputObjectTypeDefinitionNode;
|
12
|
-
assistantStreamingMutationField: FieldDefinitionNode;
|
13
11
|
};
|
14
12
|
export declare const createMessageModel: (conversationModelName: string, messageModelName: string, referenceFieldName: string, capitalizedFieldName: string, conversationMessageInterface: NamedTypeNode) => MessageModel;
|
15
13
|
//# sourceMappingURL=message-model.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"message-model.d.ts","sourceRoot":"","sources":["../../src/graphql-types/message-model.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EAEb,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EAEb,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAsBjB,MAAM,MAAM,YAAY,GAAG;IACzB,oBAAoB,EAAE,aAAa,CAAC;IACpC,qBAAqB,EAAE,aAAa,CAAC;IACrC,qCAAqC,EAAE,aAAa,CAAC;IACrD,wBAAwB,EAAE,mBAAmB,CAAC;IAC9C,YAAY,EAAE,wBAAwB,CAAC;IACvC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,sBAAsB,EAAE,6BAA6B,CAAC;IACtD,sBAAsB,EAAE,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"message-model.d.ts","sourceRoot":"","sources":["../../src/graphql-types/message-model.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EAEb,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EAEb,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAsBjB,MAAM,MAAM,YAAY,GAAG;IACzB,oBAAoB,EAAE,aAAa,CAAC;IACpC,qBAAqB,EAAE,aAAa,CAAC;IACrC,qCAAqC,EAAE,aAAa,CAAC;IACrD,wBAAwB,EAAE,mBAAmB,CAAC;IAC9C,YAAY,EAAE,wBAAwB,CAAC;IACvC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,sBAAsB,EAAE,6BAA6B,CAAC;IACtD,sBAAsB,EAAE,mBAAmB,CAAC;CAC7C,CAAC;AA6BF,eAAO,MAAM,kBAAkB,0BACN,MAAM,oBACX,MAAM,sBACJ,MAAM,wBACJ,MAAM,gCACE,aAAa,KAC1C,YAmCF,CAAC"}
|
@@ -7,20 +7,14 @@ const graphql_transformer_common_1 = require("graphql-transformer-common");
|
|
7
7
|
const createMessageModel = (conversationModelName, messageModelName, referenceFieldName, capitalizedFieldName, conversationMessageInterface) => {
|
8
8
|
const messageSubscriptionFieldName = `onCreateAssistantResponse${capitalizedFieldName}`;
|
9
9
|
const assistantMutationFieldName = `createAssistantResponse${capitalizedFieldName}`;
|
10
|
-
const assistantStreamingMutationFieldName = `createAssistantResponseStream${capitalizedFieldName}`;
|
11
10
|
const messageAuthDirective = constructMessageAuthDirective();
|
12
11
|
const messageModelDirective = constructMessageModelDirective();
|
13
12
|
const messageBelongsToConversationDirective = constructMessageSessionFieldBelongsToDirective(referenceFieldName);
|
14
13
|
const messageConversationField = constructMessageSessionField(messageBelongsToConversationDirective, conversationModelName);
|
15
14
|
const messageModel = constructConversationMessageModel(messageModelName, messageConversationField, referenceFieldName, [messageModelDirective, messageAuthDirective], conversationMessageInterface);
|
16
|
-
const messageSubscription = constructMessageSubscription(messageSubscriptionFieldName, messageModelName,
|
17
|
-
assistantMutationFieldName,
|
18
|
-
assistantStreamingMutationFieldName,
|
19
|
-
]);
|
15
|
+
const messageSubscription = constructMessageSubscription(messageSubscriptionFieldName, messageModelName, assistantMutationFieldName);
|
20
16
|
const assistantMutationInput = constructAssistantResponseMutationInput(messageModelName);
|
21
17
|
const assistantMutationField = constructAssistantMutationField(assistantMutationFieldName, messageModelName, assistantMutationInput.name.value);
|
22
|
-
const assistantStreamingMutationInput = constructAssistantResponseStreamingMutationInput(messageModelName);
|
23
|
-
const assistantStreamingMutationField = constructAssistantStreamingMutationField(assistantStreamingMutationFieldName, messageModelName, assistantStreamingMutationInput.name.value);
|
24
18
|
return {
|
25
19
|
messageAuthDirective,
|
26
20
|
messageModelDirective,
|
@@ -30,8 +24,6 @@ const createMessageModel = (conversationModelName, messageModelName, referenceFi
|
|
30
24
|
messageSubscription,
|
31
25
|
assistantMutationInput,
|
32
26
|
assistantMutationField,
|
33
|
-
assistantStreamingMutationInput,
|
34
|
-
assistantStreamingMutationField,
|
35
27
|
};
|
36
28
|
};
|
37
29
|
exports.createMessageModel = createMessageModel;
|
@@ -88,8 +80,8 @@ const constructConversationMessageModel = (modelName, sessionField, referenceFie
|
|
88
80
|
};
|
89
81
|
return object;
|
90
82
|
};
|
91
|
-
const constructMessageSubscription = (subscriptionName, conversationMessageTypeName,
|
92
|
-
const awsSubscribeDirective = (0, graphql_transformer_common_1.makeDirective)('aws_subscribe', [(0, graphql_transformer_common_1.makeArgument)('mutations', (0, graphql_transformer_common_1.makeValueNode)(
|
83
|
+
const constructMessageSubscription = (subscriptionName, conversationMessageTypeName, onMutationName) => {
|
84
|
+
const awsSubscribeDirective = (0, graphql_transformer_common_1.makeDirective)('aws_subscribe', [(0, graphql_transformer_common_1.makeArgument)('mutations', (0, graphql_transformer_common_1.makeValueNode)([onMutationName]))]);
|
93
85
|
const cognitoAuthDirective = (0, graphql_transformer_common_1.makeDirective)('aws_cognito_user_pools', []);
|
94
86
|
const args = [(0, graphql_transformer_common_1.makeInputValueDefinition)('conversationId', (0, graphql_transformer_common_1.makeNamedType)('ID'))];
|
95
87
|
const subscriptionField = (0, graphql_transformer_common_1.makeField)(subscriptionName, args, (0, graphql_transformer_common_1.makeNamedType)(conversationMessageTypeName), [
|
@@ -116,27 +108,4 @@ const constructAssistantResponseMutationInput = (messageModelName) => {
|
|
116
108
|
],
|
117
109
|
};
|
118
110
|
};
|
119
|
-
const constructAssistantStreamingMutationField = (fieldName, messageModelName, inputTypeName) => {
|
120
|
-
const args = [(0, graphql_transformer_common_1.makeInputValueDefinition)('input', (0, graphql_transformer_common_1.makeNonNullType)((0, graphql_transformer_common_1.makeNamedType)(inputTypeName)))];
|
121
|
-
const cognitoAuthDirective = (0, graphql_transformer_common_1.makeDirective)('aws_cognito_user_pools', []);
|
122
|
-
const createAssistantResponseMutation = (0, graphql_transformer_common_1.makeField)(fieldName, args, (0, graphql_transformer_common_1.makeNamedType)(messageModelName), [cognitoAuthDirective]);
|
123
|
-
return createAssistantResponseMutation;
|
124
|
-
};
|
125
|
-
const constructAssistantResponseStreamingMutationInput = (messageModelName) => {
|
126
|
-
const inputName = `Create${messageModelName}AssistantStreamingInput`;
|
127
|
-
return {
|
128
|
-
kind: 'InputObjectTypeDefinition',
|
129
|
-
name: { kind: 'Name', value: inputName },
|
130
|
-
fields: [
|
131
|
-
(0, graphql_transformer_common_1.makeInputValueDefinition)('conversationId', (0, graphql_transformer_common_1.makeNonNullType)((0, graphql_transformer_common_1.makeNamedType)('ID'))),
|
132
|
-
(0, graphql_transformer_common_1.makeInputValueDefinition)('associatedUserMessageId', (0, graphql_transformer_common_1.makeNonNullType)((0, graphql_transformer_common_1.makeNamedType)('ID'))),
|
133
|
-
(0, graphql_transformer_common_1.makeInputValueDefinition)('contentBlockIndex', (0, graphql_transformer_common_1.makeNonNullType)((0, graphql_transformer_common_1.makeNamedType)('Int'))),
|
134
|
-
(0, graphql_transformer_common_1.makeInputValueDefinition)('contentBlockText', (0, graphql_transformer_common_1.makeNamedType)('String')),
|
135
|
-
(0, graphql_transformer_common_1.makeInputValueDefinition)('contentBlockDeltaIndex', (0, graphql_transformer_common_1.makeNamedType)('Int')),
|
136
|
-
(0, graphql_transformer_common_1.makeInputValueDefinition)('contentBlockToolUse', (0, graphql_transformer_common_1.makeNamedType)('String')),
|
137
|
-
(0, graphql_transformer_common_1.makeInputValueDefinition)('contentBlockDoneAtIndex', (0, graphql_transformer_common_1.makeNamedType)('Int')),
|
138
|
-
(0, graphql_transformer_common_1.makeInputValueDefinition)('stopReason', (0, graphql_transformer_common_1.makeNamedType)('String')),
|
139
|
-
],
|
140
|
-
};
|
141
|
-
};
|
142
111
|
//# sourceMappingURL=message-model.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"message-model.js","sourceRoot":"","sources":["../../src/graphql-types/message-model.ts"],"names":[],"mappings":";;;AAAA,wEAAqE;AACrE,qCAQiB;AACjB,2EAWoC;
|
1
|
+
{"version":3,"file":"message-model.js","sourceRoot":"","sources":["../../src/graphql-types/message-model.ts"],"names":[],"mappings":";;;AAAA,wEAAqE;AACrE,qCAQiB;AACjB,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IAAA,0CAAa,EAAC,gBAAgB,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC5H,OAAO,+BAA+B,CAAC;AACzC,CAAC,CAAC;AAEF,MAAM,uCAAuC,GAAG,CAAC,gBAAwB,EAAiC,EAAE;IAC1G,MAAM,SAAS,GAAG,SAAS,gBAAgB,gBAAgB,CAAC;IAC5D,OAAO;QACL,IAAI,EAAE,2BAA2B;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;QACxC,MAAM,EAAE;YACN,IAAA,qDAAwB,EAAC,gBAAgB,EAAE,IAAA,0CAAa,EAAC,IAAI,CAAC,CAAC;YAC/D,IAAA,qDAAwB,EAAC,SAAS,EAAE,IAAA,yCAAY,EAAC,IAAA,0CAAa,EAAC,mBAAmB,CAAC,CAAC,CAAC;YACrF,IAAA,qDAAwB,EAAC,yBAAyB,EAAE,IAAA,0CAAa,EAAC,IAAI,CAAC,CAAC;SACzE;KACF,CAAC;AACJ,CAAC,CAAC"}
|
@@ -7,18 +7,11 @@ export function request(ctx) {
|
|
7
7
|
[[TOOL_DEFINITIONS_LINE]]
|
8
8
|
const selectionSet = '[[SELECTION_SET]]';
|
9
9
|
|
10
|
-
const
|
10
|
+
const responseMutation = {
|
11
11
|
name: '[[RESPONSE_MUTATION_NAME]]',
|
12
12
|
inputTypeName: '[[RESPONSE_MUTATION_INPUT_TYPE_NAME]]',
|
13
13
|
selectionSet,
|
14
14
|
};
|
15
|
-
|
16
|
-
const streamingResponseMutation = {
|
17
|
-
name: '[[STREAMING_RESPONSE_MUTATION_NAME]]',
|
18
|
-
inputTypeName: '[[STREAMING_RESPONSE_MUTATION_INPUT_TYPE_NAME]]',
|
19
|
-
selectionSet,
|
20
|
-
};
|
21
|
-
|
22
15
|
const currentMessageId = ctx.stash.defaultValues.id;
|
23
16
|
[[MODEL_CONFIGURATION_LINE]]
|
24
17
|
|
@@ -35,11 +28,6 @@ export function request(ctx) {
|
|
35
28
|
listQueryLimit: [[LIST_QUERY_LIMIT]],
|
36
29
|
};
|
37
30
|
|
38
|
-
const disableStreaming = ctx.env['[[DISABLE_STREAMING_ENV_VAR]]'] === 'true';
|
39
|
-
const responseMutation = !!disableStreaming
|
40
|
-
? singleShotResponseMutation
|
41
|
-
: streamingResponseMutation;
|
42
|
-
|
43
31
|
const authHeader = request.headers['authorization'];
|
44
32
|
const payload = {
|
45
33
|
conversationId: args.conversationId,
|
@@ -50,7 +38,6 @@ export function request(ctx) {
|
|
50
38
|
request: { headers: { authorization: authHeader } },
|
51
39
|
messageHistoryQuery,
|
52
40
|
toolsConfiguration,
|
53
|
-
streamResponse: !disableStreaming,
|
54
41
|
};
|
55
42
|
|
56
43
|
return {
|
@@ -1 +1 @@
|
|
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,
|
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,uBAuCxF,CAAC"}
|
@@ -22,9 +22,6 @@ const invokeLambdaMappingTemplate = (config) => {
|
|
22
22
|
const LIST_QUERY_NAME = `listConversationMessage${(0, graphql_transformer_common_1.toUpper)((0, pluralize_1.default)(config.field.name.value))}`;
|
23
23
|
const LIST_QUERY_INPUT_TYPE_NAME = `ModelConversationMessage${(0, graphql_transformer_common_1.toUpper)(config.field.name.value)}FilterInput`;
|
24
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
25
|
const substitutions = {
|
29
26
|
TOOL_DEFINITIONS_LINE,
|
30
27
|
TOOLS_CONFIGURATION_LINE,
|
@@ -38,9 +35,6 @@ const invokeLambdaMappingTemplate = (config) => {
|
|
38
35
|
LIST_QUERY_NAME,
|
39
36
|
LIST_QUERY_INPUT_TYPE_NAME,
|
40
37
|
LIST_QUERY_LIMIT,
|
41
|
-
STREAMING_RESPONSE_MUTATION_NAME,
|
42
|
-
STREAMING_RESPONSE_MUTATION_INPUT_TYPE_NAME,
|
43
|
-
DISABLE_STREAMING_ENV_VAR,
|
44
38
|
};
|
45
39
|
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'invoke-lambda-resolver-fn.template.js'), 'utf8');
|
46
40
|
Object.entries(substitutions).forEach(([key, value]) => {
|
@@ -1 +1 @@
|
|
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,YAAY,CAAC;IACnC,MAAM,wBAAwB,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC;IACxE,MAAM,sBAAsB,GAAG,MAA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"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAOzF,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;
|
1
|
+
{"version":3,"file":"conversation-prepare-handler.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAOzF,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;CA+DrC"}
|
@@ -16,12 +16,11 @@ class ConversationPrepareHandler {
|
|
16
16
|
}
|
17
17
|
prepareResourcesForDirective(directive, ctx) {
|
18
18
|
const { conversationAuthDirective, conversationModelDirective, conversationHasManyMessagesDirective, conversationMessagesField, conversationModel, } = directive.conversationModel;
|
19
|
-
const { messageAuthDirective, messageModelDirective, messageBelongsToConversationDirective, messageConversationField, messageModel, messageSubscription, assistantMutationField, assistantMutationInput,
|
19
|
+
const { messageAuthDirective, messageModelDirective, messageBelongsToConversationDirective, messageConversationField, messageModel, messageSubscription, assistantMutationField, assistantMutationInput, } = directive.messageModel;
|
20
20
|
const sessionModelName = conversationModel.name.value;
|
21
21
|
const messageModelName = messageModel.name.value;
|
22
22
|
ctx.output.addInput(assistantMutationInput);
|
23
|
-
ctx.output.
|
24
|
-
ctx.output.addMutationFields([assistantMutationField, assistantStreamingMutationField]);
|
23
|
+
ctx.output.addMutationFields([assistantMutationField]);
|
25
24
|
ctx.output.addSubscriptionFields([messageSubscription]);
|
26
25
|
ctx.output.addObject(conversationModel);
|
27
26
|
ctx.output.addObject(messageModel);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-prepare-handler.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":";;;AAIA,oFAAyH;AAQzH,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;QAI5H,MAAM,EACJ,yBAAyB,EACzB,0BAA0B,EAC1B,oCAAoC,EACpC,yBAAyB,EACzB,iBAAiB,GAClB,GAAG,SAAS,CAAC,iBAAiB,CAAC;QAGhC,MAAM,EACJ,oBAAoB,EACpB,qBAAqB,EACrB,qCAAqC,EACrC,wBAAwB,EACxB,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,
|
1
|
+
{"version":3,"file":"conversation-prepare-handler.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":";;;AAIA,oFAAyH;AAQzH,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;QAI5H,MAAM,EACJ,yBAAyB,EACzB,0BAA0B,EAC1B,oCAAoC,EACpC,yBAAyB,EACzB,iBAAiB,GA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,CAAC;QAGlC,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,wBAAwB,EAAE,qCAAqC,EAAE,GAAG,CAAC,CAAC;QACpH,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,oCAAoC,EAAE,GAAG,CAAC,CAAC;QAGvH,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE;YAC7B,MAAM,IAAI,kDAAuB,CAAC,mCAAmC,CAAC,CAAC;SACxE;QACD,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,GAAG,CAAC,CAAC;QAC5E,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,YAAY,EAAE,oBAAoB,EAAE,GAAG,CAAC,CAAC;IACpE,CAAC;CACF;AArHD,gEAqHC"}
|
@@ -14,7 +14,6 @@ export declare class ConversationResolverGenerator {
|
|
14
14
|
private createConversationPipelineResolver;
|
15
15
|
private addPipelineResolverFunctions;
|
16
16
|
private createAssistantResponseResolver;
|
17
|
-
private createAssistantStreamingResponseResolver;
|
18
17
|
private createAssistantResponseSubscriptionResolver;
|
19
18
|
private addLambdaDataSource;
|
20
19
|
private addInitSlotToListMessagesPipeline;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-resolver-generator.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAClH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAIzF,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"conversation-resolver-generator.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAClH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAIzF,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAwBnC,qBAAa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;gBAAhB,eAAe,CAAC,sDAA2B;IAExE,iBAAiB,CAAC,UAAU,EAAE,kCAAkC,EAAE,EAAE,GAAG,EAAE,0BAA0B,GAAG,IAAI;IAQ1G,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,6BAA6B;IAgDrC,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,uBAAuB;IAkB/B,OAAO,CAAC,+BAA+B;IAmBvC,OAAO,CAAC,+BAA+B;IAgCvC,OAAO,CAAC,kCAAkC;IA6C1C,OAAO,CAAC,4BAA4B;IAkCpC,OAAO,CAAC,+BAA+B;IA2CvC,OAAO,CAAC,2CAA2C;IAqCnD,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,iCAAiC;IAazC,OAAO,CAAC,sBAAsB;IAsB9B,OAAO,CAAC,uBAAuB;CAgChC"}
|
@@ -43,7 +43,6 @@ const assistant_messages_subscription_resolver_1 = require("../resolvers/assista
|
|
43
43
|
const graphql_index_transformer_1 = require("@aws-amplify/graphql-index-transformer");
|
44
44
|
const pluralize_1 = __importDefault(require("pluralize"));
|
45
45
|
const list_messages_init_resolver_1 = require("../resolvers/list-messages-init-resolver");
|
46
|
-
const assistant_streaming_mutation_resolver_1 = require("../resolvers/assistant-streaming-mutation-resolver");
|
47
46
|
class ConversationResolverGenerator {
|
48
47
|
constructor(functionNameMap) {
|
49
48
|
this.functionNameMap = functionNameMap;
|
@@ -78,7 +77,6 @@ class ConversationResolverGenerator {
|
|
78
77
|
const writeMessageToTableFunction = (0, write_message_to_table_resolver_1.writeMessageToTableMappingTemplate)(directive);
|
79
78
|
this.createConversationPipelineResolver(ctx, parentName, fieldName, capitalizedFieldName, functionDataSource, invokeLambdaFunction, initResolverFunction, authResolverFunction, verifySessionOwnerSendMessageResolverFunction, writeMessageToTableFunction);
|
80
79
|
this.createAssistantResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerAssistantResponseResolverFunction);
|
81
|
-
this.createAssistantStreamingResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerAssistantResponseResolverFunction);
|
82
80
|
this.createAssistantResponseSubscriptionResolver(ctx, directive, capitalizedFieldName);
|
83
81
|
}
|
84
82
|
createFunctionStack(ctx, capitalizedFieldName) {
|
@@ -148,20 +146,6 @@ class ConversationResolverGenerator {
|
|
148
146
|
resolver.addJsFunctionToSlot('verifySessionOwner', verifySessionOwnerResolverFunction, conversationSessionDDBDataSource);
|
149
147
|
ctx.resolvers.addResolver('Mutation', directive.responseMutationName, resolver);
|
150
148
|
}
|
151
|
-
createAssistantStreamingResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerResolverFunction) {
|
152
|
-
const assistantResponseResolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID('Mutation', directive.messageModel.assistantStreamingMutationField.name.value);
|
153
|
-
const assistantResponseResolverFunction = (0, assistant_streaming_mutation_resolver_1.assistantStreamingMutationResolver)(directive);
|
154
|
-
const conversationMessageDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, `ConversationMessage${capitalizedFieldName}`);
|
155
|
-
const conversationMessageDataSource = ctx.api.host.getDataSource(conversationMessageDataSourceName);
|
156
|
-
const resolver = new graphql_transformer_core_1.TransformerResolver('Mutation', directive.messageModel.assistantStreamingMutationField.name.value, assistantResponseResolverResourceId, { codeMappingTemplate: assistantResponseResolverFunction }, ['init', 'auth', 'verifySessionOwner'], [], conversationMessageDataSource, graphql_transformer_core_1.APPSYNC_JS_RUNTIME);
|
157
|
-
resolver.addJsFunctionToSlot('init', initResolverFunction);
|
158
|
-
resolver.addJsFunctionToSlot('auth', authResolverFunction);
|
159
|
-
const sessionModelName = `Conversation${capitalizedFieldName}`;
|
160
|
-
const sessionModelDDBDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, sessionModelName);
|
161
|
-
const conversationSessionDDBDataSource = ctx.api.host.getDataSource(sessionModelDDBDataSourceName);
|
162
|
-
resolver.addJsFunctionToSlot('verifySessionOwner', verifySessionOwnerResolverFunction, conversationSessionDDBDataSource);
|
163
|
-
ctx.resolvers.addResolver('Mutation', directive.messageModel.assistantStreamingMutationField.name.value, resolver);
|
164
|
-
}
|
165
149
|
createAssistantResponseSubscriptionResolver(ctx, directive, capitalizedFieldName) {
|
166
150
|
const onAssistantResponseSubscriptionFieldName = `onCreateAssistantResponse${capitalizedFieldName}`;
|
167
151
|
const onAssistantResponseSubscriptionResolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID('Subscription', onAssistantResponseSubscriptionFieldName);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-resolver-generator.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0CAA8C;AAC9C,oFAAgG;AAChG,2EAAkH;AAClH,iDAAmC;AACnC,8DAA0D;AAE1D,oFAAoG;AACpG,8DAAiE;AACjE,8DAAiE;AACjE,8FAGoD;AACpD,kGAAkG;AAClG,gFAAkF;AAClF,0FAAqF;AACrF,oHAAuH;AACvH,sFAAiF;AACjF,0DAAkC;AAClC,0FAA0F;
|
1
|
+
{"version":3,"file":"conversation-resolver-generator.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0CAA8C;AAC9C,oFAAgG;AAChG,2EAAkH;AAClH,iDAAmC;AACnC,8DAA0D;AAE1D,oFAAoG;AACpG,8DAAiE;AACjE,8DAAiE;AACjE,8FAGoD;AACpD,kGAAkG;AAClG,gFA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c,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;AAjYD,sEAiYC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-conversation-transformer",
|
3
|
-
"version": "0.3.1-
|
3
|
+
"version": "0.3.1-gen2-migration-1015.0",
|
4
4
|
"description": "Amplify GraphQL @conversation transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -24,20 +24,20 @@
|
|
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.
|
29
|
-
"@aws-amplify/graphql-index-transformer": "3.0.
|
30
|
-
"@aws-amplify/graphql-model-transformer": "3.0.
|
31
|
-
"@aws-amplify/graphql-relational-transformer": "3.0.
|
32
|
-
"@aws-amplify/graphql-transformer-core": "3.
|
33
|
-
"@aws-amplify/graphql-transformer-interfaces": "4.
|
27
|
+
"@aws-amplify/ai-constructs": "^0.2.0",
|
28
|
+
"@aws-amplify/graphql-directives": "2.4.0-gen2-migration-1015.0",
|
29
|
+
"@aws-amplify/graphql-index-transformer": "3.0.6-gen2-migration-1015.0",
|
30
|
+
"@aws-amplify/graphql-model-transformer": "3.1.0-gen2-migration-1015.0",
|
31
|
+
"@aws-amplify/graphql-relational-transformer": "3.1.0-gen2-migration-1015.0",
|
32
|
+
"@aws-amplify/graphql-transformer-core": "3.3.0-gen2-migration-1015.0",
|
33
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.2.0-gen2-migration-1015.0",
|
34
34
|
"graphql": "^15.5.0",
|
35
|
-
"graphql-mapping-template": "5.0.
|
36
|
-
"graphql-transformer-common": "5.0.
|
35
|
+
"graphql-mapping-template": "5.0.2-gen2-migration-1015.0",
|
36
|
+
"graphql-transformer-common": "5.1.0-gen2-migration-1015.0",
|
37
37
|
"immer": "^9.0.12"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.
|
40
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.5-gen2-migration-1015.0",
|
41
41
|
"esbuild": "^0.24.0"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
@@ -80,5 +80,5 @@
|
|
80
80
|
"/__tests__/"
|
81
81
|
]
|
82
82
|
},
|
83
|
-
"gitHead": "
|
83
|
+
"gitHead": "3be96e2f9b1458117e458514e28a9bb19a21cbe8"
|
84
84
|
}
|
@@ -3,6 +3,10 @@
|
|
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.1-gen2-migration-1015.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@3.1.0...@aws-amplify/graphql-default-value-transformer@3.1.1-gen2-migration-1015.0) (2024-10-15)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
|
9
|
+
|
6
10
|
# [3.1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@3.0.4...@aws-amplify/graphql-default-value-transformer@3.1.0) (2024-10-10)
|
7
11
|
|
8
12
|
### Features
|