@aws-amplify/graphql-api-construct 1.15.1 → 1.16.0-ai-streaming.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +30 -30
- package/CHANGELOG.md +15 -0
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +9 -12
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/internal/metadata.d.ts +4 -0
- package/lib/internal/metadata.js +42 -0
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.d.ts +12 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.js +22 -2
- 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 +8 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +196 -34
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +34 -8
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +5 -3
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +20 -5
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +3 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +6 -7
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.js +38 -0
- 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 +3 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/executable_tool_factory.d.ts +7 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/executable_tool_factory.js +16 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.d.ts +2 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.js +4 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.d.ts +3 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.js +4 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +47 -14
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/README.md +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/index.d.ts +23 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/v1.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/v1.js +11 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.d.ts +113 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.d.ts +112 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.js +30 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/index.d.ts +23 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/v1.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/v1.js +11 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/index.d.ts +23 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/v1.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/v1.js +11 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.d.ts +59 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.js +12 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.d.ts +59 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.js +25 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/index.d.ts +508 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/index.js +112 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/index.d.ts +2 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/index.js +18 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.d.ts +42 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.js +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.d.ts +28 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.d.ts +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.js +12 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.d.ts +33 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.d.ts +32 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.js +33 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/package.json +27 -0
- package/node_modules/@aws-amplify/ai-constructs/package.json +9 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +0 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts +4 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +20 -9
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js +8 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +12 -12
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts +3 -0
- 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 +53 -5
- 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/assistant-streaming-mutation-reduce-chunks-resolver-fn.template.js +105 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.js +25 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver-fn.template.js +125 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.js +25 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver-fn.template.js +14 -1
- 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 +8 -1
- 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 +3 -2
- 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 +1 -0
- 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 +19 -0
- 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 +10 -10
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-directives/package.json +2 -2
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -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 +10 -10
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +8 -8
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -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 +7 -7
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer/package.json +17 -17
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +3 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +6 -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/graphql-utils.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js +6 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +4 -4
- package/node_modules/graphql-transformer-common/API.md +3 -0
- package/node_modules/graphql-transformer-common/CHANGELOG.md +6 -0
- package/node_modules/graphql-transformer-common/LICENSE +201 -0
- package/node_modules/graphql-transformer-common/lib/definition.d.ts +1 -0
- package/node_modules/graphql-transformer-common/lib/definition.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/definition.js +20 -1
- package/node_modules/graphql-transformer-common/lib/definition.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +3 -2
- package/package.json +21 -21
- package/src/amplify-graphql-api.ts +12 -12
- package/src/internal/metadata.ts +40 -0
@@ -1,8 +1,11 @@
|
|
1
1
|
import * as bedrock from '@aws-sdk/client-bedrock-runtime';
|
2
|
-
import * as
|
3
|
-
export type
|
2
|
+
import * as jsonSchemaToTypeScript from 'json-schema-to-ts';
|
3
|
+
export type JSONSchema = jsonSchemaToTypeScript.JSONSchema;
|
4
|
+
export type FromJSONSchema<TJSONSchema extends JSONSchema> = jsonSchemaToTypeScript.FromSchema<TJSONSchema>;
|
5
|
+
export type ToolInputSchema<TJSONSchema extends JSONSchema> = {
|
6
|
+
json: TJSONSchema;
|
7
|
+
};
|
4
8
|
export type ToolResultContentBlock = bedrock.ToolResultContentBlock;
|
5
|
-
export type ToolExecutionInput = smithy.DocumentType;
|
6
9
|
export type ConversationMessage = {
|
7
10
|
role: 'user' | 'assistant';
|
8
11
|
content: Array<ConversationMessageContentBlock>;
|
@@ -13,15 +16,22 @@ export type ConversationMessageContentBlock = bedrock.ContentBlock | {
|
|
13
16
|
bytes: string;
|
14
17
|
};
|
15
18
|
};
|
19
|
+
text?: never;
|
20
|
+
document?: never;
|
21
|
+
toolUse?: never;
|
22
|
+
toolResult?: never;
|
23
|
+
guardContent?: never;
|
24
|
+
$unknown?: never;
|
16
25
|
};
|
17
|
-
export type ToolDefinition = {
|
26
|
+
export type ToolDefinition<TJSONSchema extends JSONSchema = JSONSchema> = {
|
18
27
|
name: string;
|
19
28
|
description: string;
|
20
|
-
inputSchema: ToolInputSchema
|
29
|
+
inputSchema: ToolInputSchema<TJSONSchema>;
|
21
30
|
};
|
22
31
|
export type ConversationTurnEvent = {
|
23
32
|
conversationId: string;
|
24
33
|
currentMessageId: string;
|
34
|
+
streamResponse?: boolean;
|
25
35
|
responseMutation: {
|
26
36
|
name: string;
|
27
37
|
inputTypeName: string;
|
@@ -39,14 +49,8 @@ export type ConversationTurnEvent = {
|
|
39
49
|
};
|
40
50
|
};
|
41
51
|
request: {
|
42
|
-
headers:
|
43
|
-
authorization: string;
|
44
|
-
};
|
52
|
+
headers: Record<string, string>;
|
45
53
|
};
|
46
|
-
/**
|
47
|
-
* @deprecated This field is going to be removed in upcoming releases.
|
48
|
-
*/
|
49
|
-
messages?: Array<ConversationMessage>;
|
50
54
|
messageHistoryQuery: {
|
51
55
|
getQueryName: string;
|
52
56
|
getQueryInputTypeName: string;
|
@@ -65,7 +69,36 @@ export type ConversationTurnEvent = {
|
|
65
69
|
clientTools?: Array<ToolDefinition>;
|
66
70
|
};
|
67
71
|
};
|
68
|
-
export type ExecutableTool = ToolDefinition & {
|
69
|
-
execute: (input:
|
72
|
+
export type ExecutableTool<TJSONSchema extends JSONSchema = JSONSchema, TToolInput = FromJSONSchema<TJSONSchema>> = ToolDefinition<TJSONSchema> & {
|
73
|
+
execute: (input: TToolInput) => Promise<ToolResultContentBlock>;
|
70
74
|
};
|
75
|
+
export type StreamingResponseChunk = {
|
76
|
+
conversationId: string;
|
77
|
+
associatedUserMessageId: string;
|
78
|
+
contentBlockIndex: number;
|
79
|
+
} & ({
|
80
|
+
contentBlockText: string;
|
81
|
+
contentBlockDeltaIndex: number;
|
82
|
+
contentBlockDoneAtIndex?: never;
|
83
|
+
contentBlockToolUse?: never;
|
84
|
+
stopReason?: never;
|
85
|
+
} | {
|
86
|
+
contentBlockDoneAtIndex: number;
|
87
|
+
contentBlockText?: never;
|
88
|
+
contentBlockDeltaIndex?: never;
|
89
|
+
contentBlockToolUse?: never;
|
90
|
+
stopReason?: never;
|
91
|
+
} | {
|
92
|
+
contentBlockToolUse: string;
|
93
|
+
contentBlockDoneAtIndex?: never;
|
94
|
+
contentBlockText?: never;
|
95
|
+
contentBlockDeltaIndex?: never;
|
96
|
+
stopReason?: never;
|
97
|
+
} | {
|
98
|
+
stopReason: string;
|
99
|
+
contentBlockDoneAtIndex?: never;
|
100
|
+
contentBlockText?: never;
|
101
|
+
contentBlockDeltaIndex?: never;
|
102
|
+
contentBlockToolUse?: never;
|
103
|
+
});
|
71
104
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udmVyc2F0aW9uL3J1bnRpbWUvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsIn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O1xuICAgICAgY29udGVudEJsb2NrRG9uZUF0SW5kZXg/OiBuZXZlcjtcbiAgICAgIGNvbnRlbnRCbG9ja1Rvb2xVc2U/OiBuZXZlcjtcbiAgICAgIHN0b3BSZWFzb24/OiBuZXZlcjtcbiAgICB9XG4gIHwge1xuICAgICAgLy8gZW5kIG9mIGJsb2NrLiBhcHBsaWNhYmxlIHRvIHRleHQgYmxvY2tzXG4gICAgICBjb250ZW50QmxvY2tEb25lQXRJbmRleDogbnVtYmVyO1xuICAgICAgY29udGVudEJsb2NrVGV4dD86IG5ldmVyO1xuICAgICAgY29udGVudEJsb2NrRGVsdGFJbmRleD86IG5ldmVyO1xuICAgICAgY29udGVudEJsb2NrVG9vbFVzZT86IG5ldmVyO1xuICAgICAgc3RvcFJlYXNvbj86IG5ldmVyO1xuICAgIH1cbiAgfCB7XG4gICAgICAvLyB0b29sIHVzZVxuICAgICAgY29udGVudEJsb2NrVG9vbFVzZTogc3RyaW5nOyAvLyBzZXJpYWxpemVkIGpzb24gd2l0aCBmdWxsIHRvb2wgdXNlIGJsb2NrXG4gICAgICBjb250ZW50QmxvY2tEb25lQXRJbmRleD86IG5ldmVyO1xuICAgICAgY29udGVudEJsb2NrVGV4dD86IG5ldmVyO1xuICAgICAgY29udGVudEJsb2NrRGVsdGFJbmRleD86IG5ldmVyO1xuICAgICAgc3RvcFJlYXNvbj86IG5ldmVyO1xuICAgIH1cbiAgfCB7XG4gICAgICAvLyB0dXJuIGNvbXBsZXRlXG4gICAgICBzdG9wUmVhc29uOiBzdHJpbmc7XG4gICAgICBjb250ZW50QmxvY2tEb25lQXRJbmRleD86IG5ldmVyO1xuICAgICAgY29udGVudEJsb2NrVGV4dD86IG5ldmVyO1xuICAgICAgY29udGVudEJsb2NrRGVsdGFJbmRleD86IG5ldmVyO1xuICAgICAgY29udGVudEJsb2NrVG9vbFVzZT86IG5ldmVyO1xuICAgIH1cbik7XG4iXX0=
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const versionedAIConversationOutputSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
|
3
|
+
version: z.ZodLiteral<"1">;
|
4
|
+
payload: z.ZodObject<{
|
5
|
+
definedConversationHandlers: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
definedConversationHandlers: string;
|
8
|
+
}, {
|
9
|
+
definedConversationHandlers: string;
|
10
|
+
}>;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
version: "1";
|
13
|
+
payload: {
|
14
|
+
definedConversationHandlers: string;
|
15
|
+
};
|
16
|
+
}, {
|
17
|
+
version: "1";
|
18
|
+
payload: {
|
19
|
+
definedConversationHandlers: string;
|
20
|
+
};
|
21
|
+
}>]>;
|
22
|
+
export type AIConversationOutput = z.infer<typeof versionedAIConversationOutputSchema>;
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.versionedAIConversationOutputSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const v1_1 = require("./v1");
|
6
|
+
exports.versionedAIConversationOutputSchema = zod_1.z.discriminatedUnion('version', [
|
7
|
+
v1_1.aiConversationOutputSchema,
|
8
|
+
// this is where additional function major version schemas would go
|
9
|
+
]);
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYWkvY29udmVyc2F0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF3QjtBQUN4Qiw2QkFBa0Y7QUFFckUsUUFBQSxtQ0FBbUMsR0FBRyxPQUFDLENBQUMsa0JBQWtCLENBQ3JFLFNBQVMsRUFDVDtJQUNFLCtCQUE0QjtJQUM1QixtRUFBbUU7Q0FDcEUsQ0FDRixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgeiB9IGZyb20gJ3pvZCc7XG5pbXBvcnQgeyBhaUNvbnZlcnNhdGlvbk91dHB1dFNjaGVtYSBhcyBhaUNvbnZlcnNhdGlvbk91dHB1dFNjaGVtYVYxIH0gZnJvbSAnLi92MSc7XG5cbmV4cG9ydCBjb25zdCB2ZXJzaW9uZWRBSUNvbnZlcnNhdGlvbk91dHB1dFNjaGVtYSA9IHouZGlzY3JpbWluYXRlZFVuaW9uKFxuICAndmVyc2lvbicsXG4gIFtcbiAgICBhaUNvbnZlcnNhdGlvbk91dHB1dFNjaGVtYVYxLFxuICAgIC8vIHRoaXMgaXMgd2hlcmUgYWRkaXRpb25hbCBmdW5jdGlvbiBtYWpvciB2ZXJzaW9uIHNjaGVtYXMgd291bGQgZ29cbiAgXVxuKTtcblxuZXhwb3J0IHR5cGUgQUlDb252ZXJzYXRpb25PdXRwdXQgPSB6LmluZmVyPFxuICB0eXBlb2YgdmVyc2lvbmVkQUlDb252ZXJzYXRpb25PdXRwdXRTY2hlbWFcbj47XG4iXX0=
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const aiConversationOutputSchema: z.ZodObject<{
|
3
|
+
version: z.ZodLiteral<"1">;
|
4
|
+
payload: z.ZodObject<{
|
5
|
+
definedConversationHandlers: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
definedConversationHandlers: string;
|
8
|
+
}, {
|
9
|
+
definedConversationHandlers: string;
|
10
|
+
}>;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
version: "1";
|
13
|
+
payload: {
|
14
|
+
definedConversationHandlers: string;
|
15
|
+
};
|
16
|
+
}, {
|
17
|
+
version: "1";
|
18
|
+
payload: {
|
19
|
+
definedConversationHandlers: string;
|
20
|
+
};
|
21
|
+
}>;
|
22
|
+
//# sourceMappingURL=v1.d.ts.map
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.aiConversationOutputSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.aiConversationOutputSchema = zod_1.z.object({
|
6
|
+
version: zod_1.z.literal('1'),
|
7
|
+
payload: zod_1.z.object({
|
8
|
+
definedConversationHandlers: zod_1.z.string(), // JSON array as string
|
9
|
+
}),
|
10
|
+
});
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYWkvY29udmVyc2F0aW9uL3YxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF3QjtBQUVYLFFBQUEsMEJBQTBCLEdBQUcsT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUNqRCxPQUFPLEVBQUUsT0FBQyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUM7SUFDdkIsT0FBTyxFQUFFLE9BQUMsQ0FBQyxNQUFNLENBQUM7UUFDaEIsMkJBQTJCLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxFQUFFLHVCQUF1QjtLQUNqRSxDQUFDO0NBQ0gsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgeiB9IGZyb20gJ3pvZCc7XG5cbmV4cG9ydCBjb25zdCBhaUNvbnZlcnNhdGlvbk91dHB1dFNjaGVtYSA9IHoub2JqZWN0KHtcbiAgdmVyc2lvbjogei5saXRlcmFsKCcxJyksXG4gIHBheWxvYWQ6IHoub2JqZWN0KHtcbiAgICBkZWZpbmVkQ29udmVyc2F0aW9uSGFuZGxlcnM6IHouc3RyaW5nKCksIC8vIEpTT04gYXJyYXkgYXMgc3RyaW5nXG4gIH0pLFxufSk7XG4iXX0=
|
@@ -0,0 +1,113 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const versionedAuthOutputSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
|
3
|
+
version: z.ZodLiteral<"1">;
|
4
|
+
payload: z.ZodObject<{
|
5
|
+
authRegion: z.ZodString;
|
6
|
+
userPoolId: z.ZodString;
|
7
|
+
webClientId: z.ZodString;
|
8
|
+
identityPoolId: z.ZodString;
|
9
|
+
allowUnauthenticatedIdentities: z.ZodOptional<z.ZodString>;
|
10
|
+
usernameAttributes: z.ZodOptional<z.ZodString>;
|
11
|
+
signupAttributes: z.ZodOptional<z.ZodString>;
|
12
|
+
passwordPolicyMinLength: z.ZodOptional<z.ZodString>;
|
13
|
+
passwordPolicyRequirements: z.ZodOptional<z.ZodString>;
|
14
|
+
mfaConfiguration: z.ZodOptional<z.ZodString>;
|
15
|
+
mfaTypes: z.ZodOptional<z.ZodString>;
|
16
|
+
verificationMechanisms: z.ZodOptional<z.ZodString>;
|
17
|
+
socialProviders: z.ZodOptional<z.ZodString>;
|
18
|
+
oauthCognitoDomain: z.ZodOptional<z.ZodString>;
|
19
|
+
oauthScope: z.ZodOptional<z.ZodString>;
|
20
|
+
oauthRedirectSignIn: z.ZodOptional<z.ZodString>;
|
21
|
+
oauthRedirectSignOut: z.ZodOptional<z.ZodString>;
|
22
|
+
oauthClientId: z.ZodOptional<z.ZodString>;
|
23
|
+
oauthResponseType: z.ZodOptional<z.ZodString>;
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
25
|
+
authRegion: string;
|
26
|
+
userPoolId: string;
|
27
|
+
webClientId: string;
|
28
|
+
identityPoolId: string;
|
29
|
+
allowUnauthenticatedIdentities?: string | undefined;
|
30
|
+
usernameAttributes?: string | undefined;
|
31
|
+
signupAttributes?: string | undefined;
|
32
|
+
passwordPolicyMinLength?: string | undefined;
|
33
|
+
passwordPolicyRequirements?: string | undefined;
|
34
|
+
mfaConfiguration?: string | undefined;
|
35
|
+
mfaTypes?: string | undefined;
|
36
|
+
verificationMechanisms?: string | undefined;
|
37
|
+
socialProviders?: string | undefined;
|
38
|
+
oauthCognitoDomain?: string | undefined;
|
39
|
+
oauthScope?: string | undefined;
|
40
|
+
oauthRedirectSignIn?: string | undefined;
|
41
|
+
oauthRedirectSignOut?: string | undefined;
|
42
|
+
oauthClientId?: string | undefined;
|
43
|
+
oauthResponseType?: string | undefined;
|
44
|
+
}, {
|
45
|
+
authRegion: string;
|
46
|
+
userPoolId: string;
|
47
|
+
webClientId: string;
|
48
|
+
identityPoolId: string;
|
49
|
+
allowUnauthenticatedIdentities?: string | undefined;
|
50
|
+
usernameAttributes?: string | undefined;
|
51
|
+
signupAttributes?: string | undefined;
|
52
|
+
passwordPolicyMinLength?: string | undefined;
|
53
|
+
passwordPolicyRequirements?: string | undefined;
|
54
|
+
mfaConfiguration?: string | undefined;
|
55
|
+
mfaTypes?: string | undefined;
|
56
|
+
verificationMechanisms?: string | undefined;
|
57
|
+
socialProviders?: string | undefined;
|
58
|
+
oauthCognitoDomain?: string | undefined;
|
59
|
+
oauthScope?: string | undefined;
|
60
|
+
oauthRedirectSignIn?: string | undefined;
|
61
|
+
oauthRedirectSignOut?: string | undefined;
|
62
|
+
oauthClientId?: string | undefined;
|
63
|
+
oauthResponseType?: string | undefined;
|
64
|
+
}>;
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
66
|
+
version: "1";
|
67
|
+
payload: {
|
68
|
+
authRegion: string;
|
69
|
+
userPoolId: string;
|
70
|
+
webClientId: string;
|
71
|
+
identityPoolId: string;
|
72
|
+
allowUnauthenticatedIdentities?: string | undefined;
|
73
|
+
usernameAttributes?: string | undefined;
|
74
|
+
signupAttributes?: string | undefined;
|
75
|
+
passwordPolicyMinLength?: string | undefined;
|
76
|
+
passwordPolicyRequirements?: string | undefined;
|
77
|
+
mfaConfiguration?: string | undefined;
|
78
|
+
mfaTypes?: string | undefined;
|
79
|
+
verificationMechanisms?: string | undefined;
|
80
|
+
socialProviders?: string | undefined;
|
81
|
+
oauthCognitoDomain?: string | undefined;
|
82
|
+
oauthScope?: string | undefined;
|
83
|
+
oauthRedirectSignIn?: string | undefined;
|
84
|
+
oauthRedirectSignOut?: string | undefined;
|
85
|
+
oauthClientId?: string | undefined;
|
86
|
+
oauthResponseType?: string | undefined;
|
87
|
+
};
|
88
|
+
}, {
|
89
|
+
version: "1";
|
90
|
+
payload: {
|
91
|
+
authRegion: string;
|
92
|
+
userPoolId: string;
|
93
|
+
webClientId: string;
|
94
|
+
identityPoolId: string;
|
95
|
+
allowUnauthenticatedIdentities?: string | undefined;
|
96
|
+
usernameAttributes?: string | undefined;
|
97
|
+
signupAttributes?: string | undefined;
|
98
|
+
passwordPolicyMinLength?: string | undefined;
|
99
|
+
passwordPolicyRequirements?: string | undefined;
|
100
|
+
mfaConfiguration?: string | undefined;
|
101
|
+
mfaTypes?: string | undefined;
|
102
|
+
verificationMechanisms?: string | undefined;
|
103
|
+
socialProviders?: string | undefined;
|
104
|
+
oauthCognitoDomain?: string | undefined;
|
105
|
+
oauthScope?: string | undefined;
|
106
|
+
oauthRedirectSignIn?: string | undefined;
|
107
|
+
oauthRedirectSignOut?: string | undefined;
|
108
|
+
oauthClientId?: string | undefined;
|
109
|
+
oauthResponseType?: string | undefined;
|
110
|
+
};
|
111
|
+
}>]>;
|
112
|
+
export type AuthOutput = z.infer<typeof versionedAuthOutputSchema>;
|
113
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.versionedAuthOutputSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const v1_js_1 = require("./v1.js");
|
6
|
+
exports.versionedAuthOutputSchema = zod_1.z.discriminatedUnion('version', [
|
7
|
+
v1_js_1.authOutputSchema,
|
8
|
+
// this is where additional auth major version schemas would go
|
9
|
+
]);
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXV0aC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2QkFBd0I7QUFDeEIsbUNBQWlFO0FBRXBELFFBQUEseUJBQXlCLEdBQUcsT0FBQyxDQUFDLGtCQUFrQixDQUFDLFNBQVMsRUFBRTtJQUN2RSx3QkFBa0I7SUFDbEIsK0RBQStEO0NBQ2hFLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHogfSBmcm9tICd6b2QnO1xuaW1wb3J0IHsgYXV0aE91dHB1dFNjaGVtYSBhcyBhdXRoT3V0cHV0U2NoZW1hVjEgfSBmcm9tICcuL3YxLmpzJztcblxuZXhwb3J0IGNvbnN0IHZlcnNpb25lZEF1dGhPdXRwdXRTY2hlbWEgPSB6LmRpc2NyaW1pbmF0ZWRVbmlvbigndmVyc2lvbicsIFtcbiAgYXV0aE91dHB1dFNjaGVtYVYxLFxuICAvLyB0aGlzIGlzIHdoZXJlIGFkZGl0aW9uYWwgYXV0aCBtYWpvciB2ZXJzaW9uIHNjaGVtYXMgd291bGQgZ29cbl0pO1xuXG5leHBvcnQgdHlwZSBBdXRoT3V0cHV0ID0gei5pbmZlcjx0eXBlb2YgdmVyc2lvbmVkQXV0aE91dHB1dFNjaGVtYT47XG4iXX0=
|
@@ -0,0 +1,112 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const authOutputSchema: z.ZodObject<{
|
3
|
+
version: z.ZodLiteral<"1">;
|
4
|
+
payload: z.ZodObject<{
|
5
|
+
authRegion: z.ZodString;
|
6
|
+
userPoolId: z.ZodString;
|
7
|
+
webClientId: z.ZodString;
|
8
|
+
identityPoolId: z.ZodString;
|
9
|
+
allowUnauthenticatedIdentities: z.ZodOptional<z.ZodString>;
|
10
|
+
usernameAttributes: z.ZodOptional<z.ZodString>;
|
11
|
+
signupAttributes: z.ZodOptional<z.ZodString>;
|
12
|
+
passwordPolicyMinLength: z.ZodOptional<z.ZodString>;
|
13
|
+
passwordPolicyRequirements: z.ZodOptional<z.ZodString>;
|
14
|
+
mfaConfiguration: z.ZodOptional<z.ZodString>;
|
15
|
+
mfaTypes: z.ZodOptional<z.ZodString>;
|
16
|
+
verificationMechanisms: z.ZodOptional<z.ZodString>;
|
17
|
+
socialProviders: z.ZodOptional<z.ZodString>;
|
18
|
+
oauthCognitoDomain: z.ZodOptional<z.ZodString>;
|
19
|
+
oauthScope: z.ZodOptional<z.ZodString>;
|
20
|
+
oauthRedirectSignIn: z.ZodOptional<z.ZodString>;
|
21
|
+
oauthRedirectSignOut: z.ZodOptional<z.ZodString>;
|
22
|
+
oauthClientId: z.ZodOptional<z.ZodString>;
|
23
|
+
oauthResponseType: z.ZodOptional<z.ZodString>;
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
25
|
+
authRegion: string;
|
26
|
+
userPoolId: string;
|
27
|
+
webClientId: string;
|
28
|
+
identityPoolId: string;
|
29
|
+
allowUnauthenticatedIdentities?: string | undefined;
|
30
|
+
usernameAttributes?: string | undefined;
|
31
|
+
signupAttributes?: string | undefined;
|
32
|
+
passwordPolicyMinLength?: string | undefined;
|
33
|
+
passwordPolicyRequirements?: string | undefined;
|
34
|
+
mfaConfiguration?: string | undefined;
|
35
|
+
mfaTypes?: string | undefined;
|
36
|
+
verificationMechanisms?: string | undefined;
|
37
|
+
socialProviders?: string | undefined;
|
38
|
+
oauthCognitoDomain?: string | undefined;
|
39
|
+
oauthScope?: string | undefined;
|
40
|
+
oauthRedirectSignIn?: string | undefined;
|
41
|
+
oauthRedirectSignOut?: string | undefined;
|
42
|
+
oauthClientId?: string | undefined;
|
43
|
+
oauthResponseType?: string | undefined;
|
44
|
+
}, {
|
45
|
+
authRegion: string;
|
46
|
+
userPoolId: string;
|
47
|
+
webClientId: string;
|
48
|
+
identityPoolId: string;
|
49
|
+
allowUnauthenticatedIdentities?: string | undefined;
|
50
|
+
usernameAttributes?: string | undefined;
|
51
|
+
signupAttributes?: string | undefined;
|
52
|
+
passwordPolicyMinLength?: string | undefined;
|
53
|
+
passwordPolicyRequirements?: string | undefined;
|
54
|
+
mfaConfiguration?: string | undefined;
|
55
|
+
mfaTypes?: string | undefined;
|
56
|
+
verificationMechanisms?: string | undefined;
|
57
|
+
socialProviders?: string | undefined;
|
58
|
+
oauthCognitoDomain?: string | undefined;
|
59
|
+
oauthScope?: string | undefined;
|
60
|
+
oauthRedirectSignIn?: string | undefined;
|
61
|
+
oauthRedirectSignOut?: string | undefined;
|
62
|
+
oauthClientId?: string | undefined;
|
63
|
+
oauthResponseType?: string | undefined;
|
64
|
+
}>;
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
66
|
+
version: "1";
|
67
|
+
payload: {
|
68
|
+
authRegion: string;
|
69
|
+
userPoolId: string;
|
70
|
+
webClientId: string;
|
71
|
+
identityPoolId: string;
|
72
|
+
allowUnauthenticatedIdentities?: string | undefined;
|
73
|
+
usernameAttributes?: string | undefined;
|
74
|
+
signupAttributes?: string | undefined;
|
75
|
+
passwordPolicyMinLength?: string | undefined;
|
76
|
+
passwordPolicyRequirements?: string | undefined;
|
77
|
+
mfaConfiguration?: string | undefined;
|
78
|
+
mfaTypes?: string | undefined;
|
79
|
+
verificationMechanisms?: string | undefined;
|
80
|
+
socialProviders?: string | undefined;
|
81
|
+
oauthCognitoDomain?: string | undefined;
|
82
|
+
oauthScope?: string | undefined;
|
83
|
+
oauthRedirectSignIn?: string | undefined;
|
84
|
+
oauthRedirectSignOut?: string | undefined;
|
85
|
+
oauthClientId?: string | undefined;
|
86
|
+
oauthResponseType?: string | undefined;
|
87
|
+
};
|
88
|
+
}, {
|
89
|
+
version: "1";
|
90
|
+
payload: {
|
91
|
+
authRegion: string;
|
92
|
+
userPoolId: string;
|
93
|
+
webClientId: string;
|
94
|
+
identityPoolId: string;
|
95
|
+
allowUnauthenticatedIdentities?: string | undefined;
|
96
|
+
usernameAttributes?: string | undefined;
|
97
|
+
signupAttributes?: string | undefined;
|
98
|
+
passwordPolicyMinLength?: string | undefined;
|
99
|
+
passwordPolicyRequirements?: string | undefined;
|
100
|
+
mfaConfiguration?: string | undefined;
|
101
|
+
mfaTypes?: string | undefined;
|
102
|
+
verificationMechanisms?: string | undefined;
|
103
|
+
socialProviders?: string | undefined;
|
104
|
+
oauthCognitoDomain?: string | undefined;
|
105
|
+
oauthScope?: string | undefined;
|
106
|
+
oauthRedirectSignIn?: string | undefined;
|
107
|
+
oauthRedirectSignOut?: string | undefined;
|
108
|
+
oauthClientId?: string | undefined;
|
109
|
+
oauthResponseType?: string | undefined;
|
110
|
+
};
|
111
|
+
}>;
|
112
|
+
//# sourceMappingURL=v1.d.ts.map
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.authOutputSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
// The values stored in the stack output is converted to string.
|
6
|
+
exports.authOutputSchema = zod_1.z.object({
|
7
|
+
version: zod_1.z.literal('1'),
|
8
|
+
payload: zod_1.z.object({
|
9
|
+
authRegion: zod_1.z.string(),
|
10
|
+
userPoolId: zod_1.z.string(),
|
11
|
+
webClientId: zod_1.z.string(),
|
12
|
+
identityPoolId: zod_1.z.string(),
|
13
|
+
allowUnauthenticatedIdentities: zod_1.z.optional(zod_1.z.string()),
|
14
|
+
usernameAttributes: zod_1.z.string().optional(),
|
15
|
+
signupAttributes: zod_1.z.string().optional(),
|
16
|
+
passwordPolicyMinLength: zod_1.z.string().optional(),
|
17
|
+
passwordPolicyRequirements: zod_1.z.string().optional(),
|
18
|
+
mfaConfiguration: zod_1.z.string().optional(),
|
19
|
+
mfaTypes: zod_1.z.string().optional(),
|
20
|
+
verificationMechanisms: zod_1.z.string().optional(),
|
21
|
+
socialProviders: zod_1.z.string().optional(),
|
22
|
+
oauthCognitoDomain: zod_1.z.string().optional(),
|
23
|
+
oauthScope: zod_1.z.string().optional(),
|
24
|
+
oauthRedirectSignIn: zod_1.z.string().optional(),
|
25
|
+
oauthRedirectSignOut: zod_1.z.string().optional(),
|
26
|
+
oauthClientId: zod_1.z.string().optional(),
|
27
|
+
oauthResponseType: zod_1.z.string().optional(),
|
28
|
+
}),
|
29
|
+
});
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXV0aC92MS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2QkFBd0I7QUFFeEIsZ0VBQWdFO0FBQ25ELFFBQUEsZ0JBQWdCLEdBQUcsT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUN2QyxPQUFPLEVBQUUsT0FBQyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUM7SUFDdkIsT0FBTyxFQUFFLE9BQUMsQ0FBQyxNQUFNLENBQUM7UUFDaEIsVUFBVSxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUU7UUFDdEIsVUFBVSxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUU7UUFDdEIsV0FBVyxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUU7UUFDdkIsY0FBYyxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUU7UUFFMUIsOEJBQThCLEVBQUUsT0FBQyxDQUFDLFFBQVEsQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLENBQUM7UUFFdEQsa0JBQWtCLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLFFBQVEsRUFBRTtRQUN6QyxnQkFBZ0IsRUFBRSxPQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsUUFBUSxFQUFFO1FBQ3ZDLHVCQUF1QixFQUFFLE9BQUMsQ0FBQyxNQU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hdXRoQ29nbml0b0RvbWFpbjogei5zdHJpbmcoKS5vcHRpb25hbCgpLFxuICAgIG9hdXRoU2NvcGU6IHouc3RyaW5nKCkub3B0aW9uYWwoKSwgLy8gSlNPTiBhcnJheSBhcyBzdHJpbmdcbiAgICBvYXV0aFJlZGlyZWN0U2lnbkluOiB6LnN0cmluZygpLm9wdGlvbmFsKCksXG4gICAgb2F1dGhSZWRpcmVjdFNpZ25PdXQ6IHouc3RyaW5nKCkub3B0aW9uYWwoKSxcbiAgICBvYXV0aENsaWVudElkOiB6LnN0cmluZygpLm9wdGlvbmFsKCksXG4gICAgb2F1dGhSZXNwb25zZVR5cGU6IHouc3RyaW5nKCkub3B0aW9uYWwoKSxcbiAgfSksXG59KTtcbiJdfQ==
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const versionedCustomOutputSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
|
3
|
+
version: z.ZodLiteral<"1">;
|
4
|
+
payload: z.ZodObject<{
|
5
|
+
customOutputs: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
customOutputs: string;
|
8
|
+
}, {
|
9
|
+
customOutputs: string;
|
10
|
+
}>;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
version: "1";
|
13
|
+
payload: {
|
14
|
+
customOutputs: string;
|
15
|
+
};
|
16
|
+
}, {
|
17
|
+
version: "1";
|
18
|
+
payload: {
|
19
|
+
customOutputs: string;
|
20
|
+
};
|
21
|
+
}>]>;
|
22
|
+
export type CustomOutput = z.infer<typeof versionedCustomOutputSchema>;
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.versionedCustomOutputSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const v1_js_1 = require("./v1.js");
|
6
|
+
exports.versionedCustomOutputSchema = zod_1.z.discriminatedUnion('version', [
|
7
|
+
v1_js_1.customOutputSchema,
|
8
|
+
// this is where additional custom major version schemas would go
|
9
|
+
]);
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY3VzdG9tL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF3QjtBQUN4QixtQ0FBcUU7QUFFeEQsUUFBQSwyQkFBMkIsR0FBRyxPQUFDLENBQUMsa0JBQWtCLENBQUMsU0FBUyxFQUFFO0lBQ3pFLDBCQUFvQjtJQUNwQixpRUFBaUU7Q0FDbEUsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgeiB9IGZyb20gJ3pvZCc7XG5pbXBvcnQgeyBjdXN0b21PdXRwdXRTY2hlbWEgYXMgY3VzdG9tT3V0cHV0U2NoZW1hVjEgfSBmcm9tICcuL3YxLmpzJztcblxuZXhwb3J0IGNvbnN0IHZlcnNpb25lZEN1c3RvbU91dHB1dFNjaGVtYSA9IHouZGlzY3JpbWluYXRlZFVuaW9uKCd2ZXJzaW9uJywgW1xuICBjdXN0b21PdXRwdXRTY2hlbWFWMSxcbiAgLy8gdGhpcyBpcyB3aGVyZSBhZGRpdGlvbmFsIGN1c3RvbSBtYWpvciB2ZXJzaW9uIHNjaGVtYXMgd291bGQgZ29cbl0pO1xuXG5leHBvcnQgdHlwZSBDdXN0b21PdXRwdXQgPSB6LmluZmVyPHR5cGVvZiB2ZXJzaW9uZWRDdXN0b21PdXRwdXRTY2hlbWE+O1xuIl19
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const customOutputSchema: z.ZodObject<{
|
3
|
+
version: z.ZodLiteral<"1">;
|
4
|
+
payload: z.ZodObject<{
|
5
|
+
customOutputs: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
customOutputs: string;
|
8
|
+
}, {
|
9
|
+
customOutputs: string;
|
10
|
+
}>;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
version: "1";
|
13
|
+
payload: {
|
14
|
+
customOutputs: string;
|
15
|
+
};
|
16
|
+
}, {
|
17
|
+
version: "1";
|
18
|
+
payload: {
|
19
|
+
customOutputs: string;
|
20
|
+
};
|
21
|
+
}>;
|
22
|
+
//# sourceMappingURL=v1.d.ts.map
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.customOutputSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.customOutputSchema = zod_1.z.object({
|
6
|
+
version: zod_1.z.literal('1'),
|
7
|
+
payload: zod_1.z.object({
|
8
|
+
customOutputs: zod_1.z.string(), // serialized Partial<ClientConfig>
|
9
|
+
}),
|
10
|
+
});
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY3VzdG9tL3YxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF3QjtBQUVYLFFBQUEsa0JBQWtCLEdBQUcsT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUN6QyxPQUFPLEVBQUUsT0FBQyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUM7SUFDdkIsT0FBTyxFQUFFLE9BQUMsQ0FBQyxNQUFNLENBQUM7UUFDaEIsYUFBYSxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxtQ0FBbUM7S0FDL0QsQ0FBQztDQUNILENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHogfSBmcm9tICd6b2QnO1xuXG5leHBvcnQgY29uc3QgY3VzdG9tT3V0cHV0U2NoZW1hID0gei5vYmplY3Qoe1xuICB2ZXJzaW9uOiB6LmxpdGVyYWwoJzEnKSxcbiAgcGF5bG9hZDogei5vYmplY3Qoe1xuICAgIGN1c3RvbU91dHB1dHM6IHouc3RyaW5nKCksIC8vIHNlcmlhbGl6ZWQgUGFydGlhbDxDbGllbnRDb25maWc+XG4gIH0pLFxufSk7XG4iXX0=
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const versionedFunctionOutputSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
|
3
|
+
version: z.ZodLiteral<"1">;
|
4
|
+
payload: z.ZodObject<{
|
5
|
+
definedFunctions: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
definedFunctions: string;
|
8
|
+
}, {
|
9
|
+
definedFunctions: string;
|
10
|
+
}>;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
version: "1";
|
13
|
+
payload: {
|
14
|
+
definedFunctions: string;
|
15
|
+
};
|
16
|
+
}, {
|
17
|
+
version: "1";
|
18
|
+
payload: {
|
19
|
+
definedFunctions: string;
|
20
|
+
};
|
21
|
+
}>]>;
|
22
|
+
export type FunctionOutput = z.infer<typeof versionedFunctionOutputSchema>;
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.versionedFunctionOutputSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const v1_1 = require("./v1");
|
6
|
+
exports.versionedFunctionOutputSchema = zod_1.z.discriminatedUnion('version', [
|
7
|
+
v1_1.functionOutputSchema,
|
8
|
+
// this is where additional function major version schemas would go
|
9
|
+
]);
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZnVuY3Rpb24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQXdCO0FBQ3hCLDZCQUFzRTtBQUV6RCxRQUFBLDZCQUE2QixHQUFHLE9BQUMsQ0FBQyxrQkFBa0IsQ0FBQyxTQUFTLEVBQUU7SUFDM0UseUJBQXNCO0lBQ3RCLG1FQUFtRTtDQUNwRSxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB6IH0gZnJvbSAnem9kJztcbmltcG9ydCB7IGZ1bmN0aW9uT3V0cHV0U2NoZW1hIGFzIGZ1bmN0aW9uT3V0cHV0U2NoZW1hVjEgfSBmcm9tICcuL3YxJztcblxuZXhwb3J0IGNvbnN0IHZlcnNpb25lZEZ1bmN0aW9uT3V0cHV0U2NoZW1hID0gei5kaXNjcmltaW5hdGVkVW5pb24oJ3ZlcnNpb24nLCBbXG4gIGZ1bmN0aW9uT3V0cHV0U2NoZW1hVjEsXG4gIC8vIHRoaXMgaXMgd2hlcmUgYWRkaXRpb25hbCBmdW5jdGlvbiBtYWpvciB2ZXJzaW9uIHNjaGVtYXMgd291bGQgZ29cbl0pO1xuXG5leHBvcnQgdHlwZSBGdW5jdGlvbk91dHB1dCA9IHouaW5mZXI8dHlwZW9mIHZlcnNpb25lZEZ1bmN0aW9uT3V0cHV0U2NoZW1hPjtcbiJdfQ==
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const functionOutputSchema: z.ZodObject<{
|
3
|
+
version: z.ZodLiteral<"1">;
|
4
|
+
payload: z.ZodObject<{
|
5
|
+
definedFunctions: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
definedFunctions: string;
|
8
|
+
}, {
|
9
|
+
definedFunctions: string;
|
10
|
+
}>;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
version: "1";
|
13
|
+
payload: {
|
14
|
+
definedFunctions: string;
|
15
|
+
};
|
16
|
+
}, {
|
17
|
+
version: "1";
|
18
|
+
payload: {
|
19
|
+
definedFunctions: string;
|
20
|
+
};
|
21
|
+
}>;
|
22
|
+
//# sourceMappingURL=v1.d.ts.map
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.functionOutputSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.functionOutputSchema = zod_1.z.object({
|
6
|
+
version: zod_1.z.literal('1'),
|
7
|
+
payload: zod_1.z.object({
|
8
|
+
definedFunctions: zod_1.z.string(), // JSON array as string
|
9
|
+
}),
|
10
|
+
});
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZnVuY3Rpb24vdjEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQXdCO0FBRVgsUUFBQSxvQkFBb0IsR0FBRyxPQUFDLENBQUMsTUFBTSxDQUFDO0lBQzNDLE9BQU8sRUFBRSxPQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQztJQUN2QixPQUFPLEVBQUUsT0FBQyxDQUFDLE1BQU0sQ0FBQztRQUNoQixnQkFBZ0IsRUFBRSxPQUFDLENBQUMsTUFBTSxFQUFFLEVBQUUsdUJBQXVCO0tBQ3RELENBQUM7Q0FDSCxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB6IH0gZnJvbSAnem9kJztcblxuZXhwb3J0IGNvbnN0IGZ1bmN0aW9uT3V0cHV0U2NoZW1hID0gei5vYmplY3Qoe1xuICB2ZXJzaW9uOiB6LmxpdGVyYWwoJzEnKSxcbiAgcGF5bG9hZDogei5vYmplY3Qoe1xuICAgIGRlZmluZWRGdW5jdGlvbnM6IHouc3RyaW5nKCksIC8vIEpTT04gYXJyYXkgYXMgc3RyaW5nXG4gIH0pLFxufSk7XG4iXX0=
|