@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,112 +0,0 @@
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.unifiedBackendOutputSchema = exports.aiConversationOutputKey = exports.functionOutputKey = exports.storageOutputKey = exports.graphqlOutputKey = exports.authOutputKey = exports.customOutputKey = exports.platformOutputKey = void 0;
|
18
|
-
const zod_1 = require("zod");
|
19
|
-
const index_js_1 = require("./auth/index.js");
|
20
|
-
const index_js_2 = require("./graphql/index.js");
|
21
|
-
const index_js_3 = require("./storage/index.js");
|
22
|
-
const index_js_4 = require("./stack/index.js");
|
23
|
-
const custom_1 = require("./custom");
|
24
|
-
const index_js_5 = require("./function/index.js");
|
25
|
-
const index_js_6 = require("./ai/conversation/index.js");
|
26
|
-
/**
|
27
|
-
* The auth, graphql and storage exports here are duplicated from the submodule exports in the package.json file
|
28
|
-
* This is because these types need to be consumed in CDK Constructs that may be JSII classes. JSII only supports
|
29
|
-
* CommonJS modules which can't interpret submodule exports
|
30
|
-
*/
|
31
|
-
/**
|
32
|
-
* ---------- Platform exports ----------
|
33
|
-
*/
|
34
|
-
exports.platformOutputKey = 'AWS::Amplify::Platform';
|
35
|
-
__exportStar(require("./platform/index.js"), exports);
|
36
|
-
/**
|
37
|
-
* ---------- Custom exports ----------
|
38
|
-
*/
|
39
|
-
exports.customOutputKey = 'AWS::Amplify::Custom';
|
40
|
-
__exportStar(require("./custom/index.js"), exports);
|
41
|
-
/**
|
42
|
-
* ---------- Auth exports ----------
|
43
|
-
*/
|
44
|
-
/**
|
45
|
-
* re-export the auth output schema
|
46
|
-
*/
|
47
|
-
__exportStar(require("./auth/index.js"), exports);
|
48
|
-
/**
|
49
|
-
* Expected key that auth output is stored under
|
50
|
-
*/
|
51
|
-
exports.authOutputKey = 'AWS::Amplify::Auth';
|
52
|
-
/**
|
53
|
-
* ---------- GraphQL exports ----------
|
54
|
-
*/
|
55
|
-
/**
|
56
|
-
* re-export the graphql output schema
|
57
|
-
*/
|
58
|
-
__exportStar(require("./graphql/index.js"), exports);
|
59
|
-
/**
|
60
|
-
* Expected key that graphql output is stored under
|
61
|
-
*/
|
62
|
-
exports.graphqlOutputKey = 'AWS::Amplify::GraphQL';
|
63
|
-
/**
|
64
|
-
* ---------- Storage exports ----------
|
65
|
-
*/
|
66
|
-
/**
|
67
|
-
* re-export the storage output schema
|
68
|
-
*/
|
69
|
-
__exportStar(require("./storage/index.js"), exports);
|
70
|
-
/**
|
71
|
-
* Expected key that storage output is stored under
|
72
|
-
*/
|
73
|
-
exports.storageOutputKey = 'AWS::Amplify::Storage';
|
74
|
-
/**
|
75
|
-
* ---------- Function exports ----------
|
76
|
-
*/
|
77
|
-
/**
|
78
|
-
* re-export the function output schema
|
79
|
-
*/
|
80
|
-
__exportStar(require("./function/index.js"), exports);
|
81
|
-
/**
|
82
|
-
* Expected key that function output is stored under
|
83
|
-
*/
|
84
|
-
exports.functionOutputKey = 'AWS::Amplify::Function';
|
85
|
-
/**
|
86
|
-
* ---------- AI conversation exports ----------
|
87
|
-
*/
|
88
|
-
/**
|
89
|
-
* re-export the AI conversation output schema
|
90
|
-
*/
|
91
|
-
__exportStar(require("./ai/conversation/index.js"), exports);
|
92
|
-
/**
|
93
|
-
* Expected key that AI conversation output is stored under
|
94
|
-
*/
|
95
|
-
exports.aiConversationOutputKey = 'AWS::Amplify::AI::Conversation';
|
96
|
-
/**
|
97
|
-
* ---------- Unified exports ----------
|
98
|
-
*/
|
99
|
-
/**
|
100
|
-
* Defines the unified expected shape of Amplify backend output.
|
101
|
-
* As new constructs are added that need to contribute backend output, entries should be added here so that client config generation is aware of these outputs
|
102
|
-
*/
|
103
|
-
exports.unifiedBackendOutputSchema = zod_1.z.object({
|
104
|
-
[exports.platformOutputKey]: index_js_4.versionedStackOutputSchema.optional(),
|
105
|
-
[exports.authOutputKey]: index_js_1.versionedAuthOutputSchema.optional(),
|
106
|
-
[exports.graphqlOutputKey]: index_js_2.versionedGraphqlOutputSchema.optional(),
|
107
|
-
[exports.storageOutputKey]: index_js_3.versionedStorageOutputSchema.optional(),
|
108
|
-
[exports.customOutputKey]: custom_1.versionedCustomOutputSchema.optional(),
|
109
|
-
[exports.functionOutputKey]: index_js_5.versionedFunctionOutputSchema.optional(),
|
110
|
-
[exports.aiConversationOutputKey]: index_js_6.versionedAIConversationOutputSchema.optional(),
|
111
|
-
});
|
112
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw2QkFBd0I7QUFDeEIsOENBQTREO0FBQzVELGlEQUFrRTtBQUNsRSxpREFBa0U7QUFDbEUsK0NBQThEO0FBQzlELHFDQUF1RDtBQUN2RCxrREFBb0U7QUFDcEUseURBQWlGO0FBRWpGOzs7O0dBSUc7QUFFSDs7R0FFRztBQUVVLFFBQUEsaUJBQWlCLEdBQUcsd0JBQXdCLENBQUM7QUFFMUQsc0RBQW9DO0FBRXBDOztHQUVHO0FBRVUsUUFBQSxlQUFlLEdBQUcsc0JBQXNCLENBQUM7QUFFdEQsb0RBQWtDO0FBRWxDOztHQUVHO0FBRUg7O0dBRUc7QUFDSCxrREFBZ0M7QUFFaEM7O0dBRUc7QUFDVSxRQUFBLGFBQWEsR0FBRyxvQkFBb0IsQ0FBQztBQUVsRDs7R0FFRztBQUVIOztHQUVHO0FBQ0gscURBQW1DO0FBRW5DOztHQUVHO0FBQ1UsUUFBQSxnQkFBZ0IsR0FBRyx1QkFBdUIsQ0FBQztBQUV4RD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VGhpcyB0eXBlIGlzIGEgc3Vic2V0IG9mIHRoZSBCYWNrZW5kT3V0cHV0IHR5cGUgdGhhdCBpcyBleHBvc2VkIGJ5IHRoZSBwbGF0Zm9ybS5cbiAqIEl0IHJlcHJlc2VudHMgQmFja2VuZE91dHB1dCB0aGF0IGhhcyBiZWVuIHZhbGlkYXRlZCBhZ2FpbnN0IHRoZSBzY2hlbWEgb2Yga25vd24gb3V0cHV0IHZhbHVlc1xuICovXG5leHBvcnQgdHlwZSBVbmlmaWVkQmFja2VuZE91dHB1dCA9IHouaW5mZXI8dHlwZW9mIHVuaWZpZWRCYWNrZW5kT3V0cHV0U2NoZW1hPjtcbiJdfQ==
|
@@ -1,18 +0,0 @@
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./stack_metadata_schemas.js"), exports);
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGxhdGZvcm0vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhEQUE0QyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3RhY2tfbWV0YWRhdGFfc2NoZW1hcy5qcyc7XG4iXX0=
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
/**
|
3
|
-
* The types here are meant to be used internally when reading / writing backend output to stack metadata.
|
4
|
-
*
|
5
|
-
* They represent broader metadata types than the category-specific metadata objects that allows the platform to interact with metadata in a category-agnostic way
|
6
|
-
* They should not be exposed in public APIs (although they currently are under the "platform" submodule export so they can be consumed by both the backend and client-config packages
|
7
|
-
*/
|
8
|
-
/**
|
9
|
-
* Data schema for storing a backend output entry using stack metadata
|
10
|
-
*/
|
11
|
-
export declare const backendOutputEntryStackMetadataSchema: z.ZodObject<{
|
12
|
-
version: z.ZodString;
|
13
|
-
stackOutputs: z.ZodArray<z.ZodString, "many">;
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
15
|
-
version: string;
|
16
|
-
stackOutputs: string[];
|
17
|
-
}, {
|
18
|
-
version: string;
|
19
|
-
stackOutputs: string[];
|
20
|
-
}>;
|
21
|
-
/**
|
22
|
-
* Inferred type from backendOutputEntryStackMetadataSchema
|
23
|
-
*/
|
24
|
-
export type BackendOutputEntryStackMetadata = z.infer<typeof backendOutputEntryStackMetadataSchema>;
|
25
|
-
/**
|
26
|
-
* Data schema for storing backend output using stack metadata
|
27
|
-
*/
|
28
|
-
export declare const backendOutputStackMetadataSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
29
|
-
version: z.ZodString;
|
30
|
-
stackOutputs: z.ZodArray<z.ZodString, "many">;
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
32
|
-
version: string;
|
33
|
-
stackOutputs: string[];
|
34
|
-
}, {
|
35
|
-
version: string;
|
36
|
-
stackOutputs: string[];
|
37
|
-
}>>;
|
38
|
-
/**
|
39
|
-
* Inferred type from backendOutputStackMetadataSchema
|
40
|
-
*/
|
41
|
-
export type BackendOutputStackMetadata = z.infer<typeof backendOutputStackMetadataSchema>;
|
42
|
-
//# sourceMappingURL=stack_metadata_schemas.d.ts.map
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.backendOutputStackMetadataSchema = exports.backendOutputEntryStackMetadataSchema = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
/**
|
6
|
-
* The types here are meant to be used internally when reading / writing backend output to stack metadata.
|
7
|
-
*
|
8
|
-
* They represent broader metadata types than the category-specific metadata objects that allows the platform to interact with metadata in a category-agnostic way
|
9
|
-
* They should not be exposed in public APIs (although they currently are under the "platform" submodule export so they can be consumed by both the backend and client-config packages
|
10
|
-
*/
|
11
|
-
/**
|
12
|
-
* Data schema for storing a backend output entry using stack metadata
|
13
|
-
*/
|
14
|
-
exports.backendOutputEntryStackMetadataSchema = zod_1.z.object({
|
15
|
-
version: zod_1.z.string(),
|
16
|
-
stackOutputs: zod_1.z.array(zod_1.z.string()),
|
17
|
-
});
|
18
|
-
/**
|
19
|
-
* Data schema for storing backend output using stack metadata
|
20
|
-
*/
|
21
|
-
exports.backendOutputStackMetadataSchema = zod_1.z.record(exports.backendOutputEntryStackMetadataSchema);
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhY2tfbWV0YWRhdGFfc2NoZW1hcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wbGF0Zm9ybS9zdGFja19tZXRhZGF0YV9zY2hlbWFzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF3QjtBQUV4Qjs7Ozs7R0FLRztBQUVIOztHQUVHO0FBQ1UsUUFBQSxxQ0FBcUMsR0FBRyxPQUFDLENBQUMsTUFBTSxDQUFDO0lBQzVELE9B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CBiYWNrZW5kT3V0cHV0RW50cnlTdGFja01ldGFkYXRhU2NoZW1hID0gei5vYmplY3Qoe1xuICB2ZXJzaW9uOiB6LnN0cmluZygpLFxuICBzdGFja091dHB1dHM6IHouYXJyYXkoei5zdHJpbmcoKSksXG59KTtcblxuLyoqXG4gKiBJbmZlcnJlZCB0eXBlIGZyb20gYmFja2VuZE91dHB1dEVudHJ5U3RhY2tNZXRhZGF0YVNjaGVtYVxuICovXG5leHBvcnQgdHlwZSBCYWNrZW5kT3V0cHV0RW50cnlTdGFja01ldGFkYXRhID0gei5pbmZlcjxcbiAgdHlwZW9mIGJhY2tlbmRPdXRwdXRFbnRyeVN0YWNrTWV0YWRhdGFTY2hlbWFcbj47XG5cbi8qKlxuICogRGF0YSBzY2hlbWEgZm9yIHN0b3JpbmcgYmFja2VuZCBvdXRwdXQgdXNpbmcgc3RhY2sgbWV0YWRhdGFcbiAqL1xuZXhwb3J0IGNvbnN0IGJhY2tlbmRPdXRwdXRTdGFja01ldGFkYXRhU2NoZW1hID0gei5yZWNvcmQoXG4gIGJhY2tlbmRPdXRwdXRFbnRyeVN0YWNrTWV0YWRhdGFTY2hlbWFcbik7XG5cbi8qKlxuICogSW5mZXJyZWQgdHlwZSBmcm9tIGJhY2tlbmRPdXRwdXRTdGFja01ldGFkYXRhU2NoZW1hXG4gKi9cbmV4cG9ydCB0eXBlIEJhY2tlbmRPdXRwdXRTdGFja01ldGFkYXRhID0gei5pbmZlcjxcbiAgdHlwZW9mIGJhY2tlbmRPdXRwdXRTdGFja01ldGFkYXRhU2NoZW1hXG4+O1xuIl19
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare const versionedStackOutputSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
|
3
|
-
version: z.ZodLiteral<"1">;
|
4
|
-
payload: z.ZodObject<{
|
5
|
-
deploymentType: z.ZodString;
|
6
|
-
region: z.ZodString;
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
8
|
-
deploymentType: string;
|
9
|
-
region: string;
|
10
|
-
}, {
|
11
|
-
deploymentType: string;
|
12
|
-
region: string;
|
13
|
-
}>;
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
15
|
-
version: "1";
|
16
|
-
payload: {
|
17
|
-
deploymentType: string;
|
18
|
-
region: string;
|
19
|
-
};
|
20
|
-
}, {
|
21
|
-
version: "1";
|
22
|
-
payload: {
|
23
|
-
deploymentType: string;
|
24
|
-
region: string;
|
25
|
-
};
|
26
|
-
}>]>;
|
27
|
-
export type StackOutput = z.infer<typeof versionedStackOutputSchema>;
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1,10 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.versionedStackOutputSchema = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const v1_js_1 = require("./v1.js");
|
6
|
-
exports.versionedStackOutputSchema = zod_1.z.discriminatedUnion('version', [
|
7
|
-
v1_js_1.stackOutputSchema,
|
8
|
-
// this is where additional stack major version schemas would go
|
9
|
-
]);
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3RhY2svaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQXdCO0FBQ3hCLG1DQUFtRTtBQUV0RCxRQUFBLDBCQUEwQixHQUFHLE9BQUMsQ0FBQyxrQkFBa0IsQ0FBQyxTQUFTLEVBQUU7SUFDeEUseUJBQW1CO0lBQ25CLGdFQUFnRTtDQUNqRSxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB6IH0gZnJvbSAnem9kJztcbmltcG9ydCB7IHN0YWNrT3V0cHV0U2NoZW1hIGFzIHN0YWNrT3V0cHV0U2NoZW1hVjEgfSBmcm9tICcuL3YxLmpzJztcblxuZXhwb3J0IGNvbnN0IHZlcnNpb25lZFN0YWNrT3V0cHV0U2NoZW1hID0gei5kaXNjcmltaW5hdGVkVW5pb24oJ3ZlcnNpb24nLCBbXG4gIHN0YWNrT3V0cHV0U2NoZW1hVjEsXG4gIC8vIHRoaXMgaXMgd2hlcmUgYWRkaXRpb25hbCBzdGFjayBtYWpvciB2ZXJzaW9uIHNjaGVtYXMgd291bGQgZ29cbl0pO1xuXG5leHBvcnQgdHlwZSBTdGFja091dHB1dCA9IHouaW5mZXI8dHlwZW9mIHZlcnNpb25lZFN0YWNrT3V0cHV0U2NoZW1hPjtcbiJdfQ==
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare const stackOutputSchema: z.ZodObject<{
|
3
|
-
version: z.ZodLiteral<"1">;
|
4
|
-
payload: z.ZodObject<{
|
5
|
-
deploymentType: z.ZodString;
|
6
|
-
region: z.ZodString;
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
8
|
-
deploymentType: string;
|
9
|
-
region: string;
|
10
|
-
}, {
|
11
|
-
deploymentType: string;
|
12
|
-
region: string;
|
13
|
-
}>;
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
15
|
-
version: "1";
|
16
|
-
payload: {
|
17
|
-
deploymentType: string;
|
18
|
-
region: string;
|
19
|
-
};
|
20
|
-
}, {
|
21
|
-
version: "1";
|
22
|
-
payload: {
|
23
|
-
deploymentType: string;
|
24
|
-
region: string;
|
25
|
-
};
|
26
|
-
}>;
|
27
|
-
//# sourceMappingURL=v1.d.ts.map
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.stackOutputSchema = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
exports.stackOutputSchema = zod_1.z.object({
|
6
|
-
version: zod_1.z.literal('1'),
|
7
|
-
payload: zod_1.z.object({
|
8
|
-
deploymentType: zod_1.z.string(),
|
9
|
-
region: zod_1.z.string(),
|
10
|
-
}),
|
11
|
-
});
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3RhY2svdjEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQXdCO0FBRVgsUUFBQSxpQkFBaUIsR0FBRyxPQUFDLENBQUMsTUFBTSxDQUFDO0lBQ3hDLE9BQU8sRUFBRSxPQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQztJQUN2QixPQUFPLEVBQUUsT0FBQyxDQUFDLE1BQU0sQ0FBQztRQUNoQixjQUFjLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtRQUMxQixNQUFNLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtLQUNuQixDQUFDO0NBQ0gsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgeiB9IGZyb20gJ3pvZCc7XG5cbmV4cG9ydCBjb25zdCBzdGFja091dHB1dFNjaGVtYSA9IHoub2JqZWN0KHtcbiAgdmVyc2lvbjogei5saXRlcmFsKCcxJyksXG4gIHBheWxvYWQ6IHoub2JqZWN0KHtcbiAgICBkZXBsb3ltZW50VHlwZTogei5zdHJpbmcoKSxcbiAgICByZWdpb246IHouc3RyaW5nKCksXG4gIH0pLFxufSk7XG4iXX0=
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare const versionedStorageOutputSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
|
3
|
-
version: z.ZodLiteral<"1">;
|
4
|
-
payload: z.ZodObject<{
|
5
|
-
bucketName: z.ZodString;
|
6
|
-
storageRegion: z.ZodString;
|
7
|
-
buckets: z.ZodOptional<z.ZodString>;
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
9
|
-
bucketName: string;
|
10
|
-
storageRegion: string;
|
11
|
-
buckets?: string | undefined;
|
12
|
-
}, {
|
13
|
-
bucketName: string;
|
14
|
-
storageRegion: string;
|
15
|
-
buckets?: string | undefined;
|
16
|
-
}>;
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
18
|
-
version: "1";
|
19
|
-
payload: {
|
20
|
-
bucketName: string;
|
21
|
-
storageRegion: string;
|
22
|
-
buckets?: string | undefined;
|
23
|
-
};
|
24
|
-
}, {
|
25
|
-
version: "1";
|
26
|
-
payload: {
|
27
|
-
bucketName: string;
|
28
|
-
storageRegion: string;
|
29
|
-
buckets?: string | undefined;
|
30
|
-
};
|
31
|
-
}>]>;
|
32
|
-
export type StorageOutput = z.infer<typeof versionedStorageOutputSchema>;
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1,10 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.versionedStorageOutputSchema = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const v1_js_1 = require("./v1.js");
|
6
|
-
exports.versionedStorageOutputSchema = zod_1.z.discriminatedUnion('version', [
|
7
|
-
v1_js_1.storageOutputSchema,
|
8
|
-
// this is where additional storage major version schemas would go
|
9
|
-
]);
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3RvcmFnZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2QkFBd0I7QUFDeEIsbUNBQXVFO0FBRTFELFFBQUEsNEJBQTRCLEdBQUcsT0FBQyxDQUFDLGtCQUFrQixDQUFDLFNBQVMsRUFBRTtJQUMxRSwyQkFBcUI7SUFDckIsa0VBQWtFO0NBQ25FLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHogfSBmcm9tICd6b2QnO1xuaW1wb3J0IHsgc3RvcmFnZU91dHB1dFNjaGVtYSBhcyBzdG9yYWdlT3V0cHV0U2NoZW1hVjEgfSBmcm9tICcuL3YxLmpzJztcblxuZXhwb3J0IGNvbnN0IHZlcnNpb25lZFN0b3JhZ2VPdXRwdXRTY2hlbWEgPSB6LmRpc2NyaW1pbmF0ZWRVbmlvbigndmVyc2lvbicsIFtcbiAgc3RvcmFnZU91dHB1dFNjaGVtYVYxLFxuICAvLyB0aGlzIGlzIHdoZXJlIGFkZGl0aW9uYWwgc3RvcmFnZSBtYWpvciB2ZXJzaW9uIHNjaGVtYXMgd291bGQgZ29cbl0pO1xuXG5leHBvcnQgdHlwZSBTdG9yYWdlT3V0cHV0ID0gei5pbmZlcjx0eXBlb2YgdmVyc2lvbmVkU3RvcmFnZU91dHB1dFNjaGVtYT47XG4iXX0=
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare const storageOutputSchema: z.ZodObject<{
|
3
|
-
version: z.ZodLiteral<"1">;
|
4
|
-
payload: z.ZodObject<{
|
5
|
-
bucketName: z.ZodString;
|
6
|
-
storageRegion: z.ZodString;
|
7
|
-
buckets: z.ZodOptional<z.ZodString>;
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
9
|
-
bucketName: string;
|
10
|
-
storageRegion: string;
|
11
|
-
buckets?: string | undefined;
|
12
|
-
}, {
|
13
|
-
bucketName: string;
|
14
|
-
storageRegion: string;
|
15
|
-
buckets?: string | undefined;
|
16
|
-
}>;
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
18
|
-
version: "1";
|
19
|
-
payload: {
|
20
|
-
bucketName: string;
|
21
|
-
storageRegion: string;
|
22
|
-
buckets?: string | undefined;
|
23
|
-
};
|
24
|
-
}, {
|
25
|
-
version: "1";
|
26
|
-
payload: {
|
27
|
-
bucketName: string;
|
28
|
-
storageRegion: string;
|
29
|
-
buckets?: string | undefined;
|
30
|
-
};
|
31
|
-
}>;
|
32
|
-
//# sourceMappingURL=v1.d.ts.map
|
@@ -1,33 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.storageOutputSchema = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const storageAccessActionEnum = zod_1.z.enum([
|
6
|
-
'read',
|
7
|
-
'get',
|
8
|
-
'list',
|
9
|
-
'write',
|
10
|
-
'delete',
|
11
|
-
]);
|
12
|
-
const pathSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.object({
|
13
|
-
guest: zod_1.z.array(storageAccessActionEnum).optional(),
|
14
|
-
authenticated: zod_1.z.array(storageAccessActionEnum).optional(),
|
15
|
-
groups: zod_1.z.array(storageAccessActionEnum).optional(),
|
16
|
-
entity: zod_1.z.array(storageAccessActionEnum).optional(),
|
17
|
-
resource: zod_1.z.array(storageAccessActionEnum).optional(),
|
18
|
-
}));
|
19
|
-
const bucketSchema = zod_1.z.object({
|
20
|
-
name: zod_1.z.string(),
|
21
|
-
bucketName: zod_1.z.string(),
|
22
|
-
storageRegion: zod_1.z.string(),
|
23
|
-
paths: pathSchema.optional(),
|
24
|
-
});
|
25
|
-
exports.storageOutputSchema = zod_1.z.object({
|
26
|
-
version: zod_1.z.literal('1'),
|
27
|
-
payload: zod_1.z.object({
|
28
|
-
bucketName: zod_1.z.string(),
|
29
|
-
storageRegion: zod_1.z.string(),
|
30
|
-
buckets: zod_1.z.string(zod_1.z.array(bucketSchema)).optional(), // JSON serialized array of bucketSchema
|
31
|
-
}),
|
32
|
-
});
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3RvcmFnZS92MS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO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Skub3B0aW9uYWwoKSxcbiAgfSlcbik7XG5cbmNvbnN0IGJ1Y2tldFNjaGVtYSA9IHoub2JqZWN0KHtcbiAgbmFtZTogei5zdHJpbmcoKSxcbiAgYnVja2V0TmFtZTogei5zdHJpbmcoKSxcbiAgc3RvcmFnZVJlZ2lvbjogei5zdHJpbmcoKSxcbiAgcGF0aHM6IHBhdGhTY2hlbWEub3B0aW9uYWwoKSxcbn0pO1xuXG5leHBvcnQgY29uc3Qgc3RvcmFnZU91dHB1dFNjaGVtYSA9IHoub2JqZWN0KHtcbiAgdmVyc2lvbjogei5saXRlcmFsKCcxJyksXG4gIHBheWxvYWQ6IHoub2JqZWN0KHtcbiAgICBidWNrZXROYW1lOiB6LnN0cmluZygpLFxuICAgIHN0b3JhZ2VSZWdpb246IHouc3RyaW5nKCksXG4gICAgYnVja2V0czogei5zdHJpbmcoei5hcnJheShidWNrZXRTY2hlbWEpKS5vcHRpb25hbCgpLCAvLyBKU09OIHNlcmlhbGl6ZWQgYXJyYXkgb2YgYnVja2V0U2NoZW1hXG4gIH0pLFxufSk7XG4iXX0=
|
@@ -1,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "@aws-amplify/backend-output-schemas",
|
3
|
-
"version": "1.3.0",
|
4
|
-
"type": "commonjs",
|
5
|
-
"publishConfig": {
|
6
|
-
"access": "public"
|
7
|
-
},
|
8
|
-
"exports": {
|
9
|
-
".": {
|
10
|
-
"types": "./lib/index.d.ts",
|
11
|
-
"import": "./lib/index.js",
|
12
|
-
"require": "./lib/index.js"
|
13
|
-
}
|
14
|
-
},
|
15
|
-
"main": "lib/index.js",
|
16
|
-
"types": "lib/index.d.ts",
|
17
|
-
"scripts": {
|
18
|
-
"update:api": "api-extractor run --local"
|
19
|
-
},
|
20
|
-
"license": "Apache-2.0",
|
21
|
-
"devDependencies": {
|
22
|
-
"@aws-amplify/plugin-types": "^1.2.0"
|
23
|
-
},
|
24
|
-
"peerDependencies": {
|
25
|
-
"zod": "^3.22.2"
|
26
|
-
}
|
27
|
-
}
|
@@ -1,101 +0,0 @@
|
|
1
|
-
import { util } from '@aws-appsync/utils';
|
2
|
-
import * as ddb from '@aws-appsync/utils/dynamodb';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Sends a request to the attached data source
|
6
|
-
* @param {import('@aws-appsync/utils').Context} ctx the context
|
7
|
-
* @returns {*} the request
|
8
|
-
*/
|
9
|
-
export function request(ctx) {
|
10
|
-
if (!ctx.args.input.stopReason) {
|
11
|
-
runtime.earlyReturn(ctx.prev.result);
|
12
|
-
}
|
13
|
-
const { id, createdAt, updatedAt } = ctx.stash.defaultValues;
|
14
|
-
const { events } = ctx.prev.result;
|
15
|
-
|
16
|
-
const content = reduceChunks(events);
|
17
|
-
const assistantMessage = {
|
18
|
-
__typename: 'ConversationMessageCustomChat',
|
19
|
-
role: 'assistant',
|
20
|
-
createdAt,
|
21
|
-
updatedAt,
|
22
|
-
conversationId: ctx.args.input.conversationId,
|
23
|
-
associatedUserMessageId: ctx.args.input.associatedUserMessageId,
|
24
|
-
owner: ctx.args.owner,
|
25
|
-
content
|
26
|
-
}
|
27
|
-
// TODO: check if `stopReason` really means end of turn.
|
28
|
-
// `put` if it does
|
29
|
-
// `update` if it doesn't
|
30
|
-
return ddb.put({ key: { id }, item: assistantMessage })
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
/**
|
35
|
-
* Returns the resolver result
|
36
|
-
* @param {import('@aws-appsync/utils').Context} ctx the context
|
37
|
-
* @returns {*} the result
|
38
|
-
*/
|
39
|
-
export function response(ctx) {
|
40
|
-
// this makes us return a message to the client. Maybe that's ok if / when we're streaming the text back as true
|
41
|
-
// chunk representations (with index, etc).
|
42
|
-
if (ctx.args.input.stopReason) {
|
43
|
-
return {
|
44
|
-
// differentiating with `<id>#response` for now. But this is no bueno.
|
45
|
-
// either the sentinel value needs to be included in the last chunk with content
|
46
|
-
// --- or ---
|
47
|
-
// we need to represent it in the client message type
|
48
|
-
// --- or ---
|
49
|
-
// we could potentially just throw an error here, but that's bad.
|
50
|
-
id: `${ctx.args.input.associatedUserMessageId}#response`,
|
51
|
-
createdAt: ctx.stash.defaultValues.createdAt,
|
52
|
-
updatedAt: ctx.stash.defaultValues.updatedAt,
|
53
|
-
conversationId: ctx.args.input.conversationId
|
54
|
-
};
|
55
|
-
}
|
56
|
-
return ctx.prev.result;
|
57
|
-
}
|
58
|
-
|
59
|
-
// TODO: handle toolUse blocks
|
60
|
-
function reduceChunks(events) {
|
61
|
-
// we're limited by the AppSync JS runtime as to what we can do here.
|
62
|
-
// so the code is uhh... a little creative.
|
63
|
-
function sortEvents(a, b) {
|
64
|
-
if (a.contentBlockIndex !== b.contentBlockIndex) {
|
65
|
-
return a.contentBlockIndex - b.contentBlockIndex;
|
66
|
-
}
|
67
|
-
return a.contentBlockDeltaIndex - b.contentBlockDeltaIndex;
|
68
|
-
}
|
69
|
-
|
70
|
-
// arrow functions and inline `function` declarations are not supported for sort.
|
71
|
-
events.sort(sortEvents);
|
72
|
-
|
73
|
-
// Group events by contentBlockIndex
|
74
|
-
const groupedEvents = events.reduce(function(acc, event) {
|
75
|
-
if (!acc[event.contentBlockIndex]) {
|
76
|
-
acc[event.contentBlockIndex] = [];
|
77
|
-
}
|
78
|
-
|
79
|
-
if (event.contentBlockText) {
|
80
|
-
acc[event.contentBlockIndex].push(event.contentBlockText);
|
81
|
-
}
|
82
|
-
|
83
|
-
if (event.contentBlockToolUse) {
|
84
|
-
acc[event.contentBlockIndex].push(event.contentBlockToolUse);
|
85
|
-
}
|
86
|
-
return acc;
|
87
|
-
}, {});
|
88
|
-
|
89
|
-
// Concatenate text for each content block
|
90
|
-
const content = Object.keys(groupedEvents).map((index) => {
|
91
|
-
const contentBlock = groupedEvents[index];
|
92
|
-
// toolUse blocks are sent as a single event.
|
93
|
-
if (contentBlock.length === 1 && contentBlock[0].toolUseId) {
|
94
|
-
return { toolUse: contentBlock[0] };
|
95
|
-
}
|
96
|
-
// text blocks are chunked so we join them.
|
97
|
-
return { text: contentBlock.join('') };
|
98
|
-
});
|
99
|
-
|
100
|
-
return content;
|
101
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
|
-
export declare const assistantStreamingMutationReduceChunksResolver: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
4
|
-
//# sourceMappingURL=assistant-streaming-mutation-reduce-chunks-resolver.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"assistant-streaming-mutation-reduce-chunks-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AASzF,eAAO,MAAM,8CAA8C,WAAY,kCAAkC,KAAG,uBAY3G,CAAC"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.assistantStreamingMutationReduceChunksResolver = void 0;
|
7
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
9
|
-
const path_1 = __importDefault(require("path"));
|
10
|
-
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
11
|
-
const assistantStreamingMutationReduceChunksResolver = (config) => {
|
12
|
-
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'assistant-streaming-mutation-reduce-chunks-resolver-fn.template.js'), 'utf8');
|
13
|
-
const fieldName = (0, graphql_transformer_common_1.toUpper)(config.field.name.value);
|
14
|
-
const substitutions = {
|
15
|
-
CONVERSATION_MESSAGE_TYPE_NAME: `ConversationMessage${fieldName}`,
|
16
|
-
};
|
17
|
-
Object.entries(substitutions).forEach(([key, value]) => {
|
18
|
-
const replaced = resolver.replace(new RegExp(`\\[\\[${key}\\]\\]`, 'g'), value);
|
19
|
-
resolver = replaced;
|
20
|
-
});
|
21
|
-
const templateName = `Mutation.${config.field.name.value}.assistant-response-stream.js`;
|
22
|
-
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
|
23
|
-
};
|
24
|
-
exports.assistantStreamingMutationReduceChunksResolver = assistantStreamingMutationReduceChunksResolver;
|
25
|
-
//# sourceMappingURL=assistant-streaming-mutation-reduce-chunks-resolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"assistant-streaming-mutation-reduce-chunks-resolver.js","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AAExB,2EAAqD;AAQ9C,MAAM,8CAA8C,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACpI,IAAI,QAAQ,GAAG,YAAE,CAAC,YAAY,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oEAAoE,CAAC,EAAE,MAAM,CAAC,CAAC;IACnI,MAAM,SAAS,GAAG,IAAA,oCAAO,EAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG;QACpB,8BAA8B,EAAE,sBAAsB,SAAS,EAAE;KAClE,CAAC;IACF,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACrD,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAChF,QAAQ,GAAG,QAAQ,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,YAAY,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,+BAA+B,CAAC;IACxF,OAAO,0CAAe,CAAC,+BAA+B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACjF,CAAC,CAAC;AAZW,QAAA,8CAA8C,kDAYzD"}
|