@aws-amplify/data-schema 1.13.2 → 1.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/cjs/SchemaProcessor.js +4 -3
  2. package/dist/cjs/SchemaProcessor.js.map +1 -1
  3. package/dist/cjs/ai/ConversationSchemaGraphQLTypes.js +190 -0
  4. package/dist/cjs/ai/ConversationSchemaGraphQLTypes.js.map +1 -0
  5. package/dist/cjs/ai/ConversationSchemaProcessor.js +52 -0
  6. package/dist/cjs/ai/ConversationSchemaProcessor.js.map +1 -0
  7. package/dist/esm/Authorization.d.ts +3 -0
  8. package/dist/esm/SchemaProcessor.mjs +3 -2
  9. package/dist/esm/SchemaProcessor.mjs.map +1 -1
  10. package/dist/esm/ai/ConversationSchemaGraphQLTypes.d.ts +1 -0
  11. package/dist/esm/ai/ConversationSchemaGraphQLTypes.mjs +188 -0
  12. package/dist/esm/ai/ConversationSchemaGraphQLTypes.mjs.map +1 -0
  13. package/dist/esm/ai/ConversationSchemaProcessor.d.ts +6 -0
  14. package/dist/esm/ai/ConversationSchemaProcessor.mjs +50 -0
  15. package/dist/esm/ai/ConversationSchemaProcessor.mjs.map +1 -0
  16. package/dist/esm/index.d.ts +1 -1
  17. package/dist/meta/cjs.tsbuildinfo +1 -1
  18. package/package.json +1 -1
  19. package/src/Authorization.ts +3 -0
  20. package/src/SchemaProcessor.ts +3 -5
  21. package/src/ai/ConversationSchemaGraphQLTypes.ts +185 -0
  22. package/src/ai/ConversationSchemaProcessor.ts +63 -0
  23. package/src/index.ts +1 -1
  24. package/dist/cjs/ai/ConversationSchemaTypes.js +0 -239
  25. package/dist/cjs/ai/ConversationSchemaTypes.js.map +0 -1
  26. package/dist/esm/ai/ConversationSchemaTypes.d.ts +0 -7
  27. package/dist/esm/ai/ConversationSchemaTypes.mjs +0 -237
  28. package/dist/esm/ai/ConversationSchemaTypes.mjs.map +0 -1
  29. package/src/ai/ConversationSchemaTypes.ts +0 -286
@@ -0,0 +1 @@
1
+ export declare const CONVERSATION_SCHEMA_GRAPHQL_TYPES = "enum ConversationParticipantRole {\n user\n assistant\n}\n\ninterface ConversationMessage {\n id: ID!\n conversationId: ID!\n associatedUserMessageId: ID\n role: ConversationParticipantRole\n content: [ContentBlock]\n aiContext: AWSJSON\n toolConfiguration: ToolConfiguration\n createdAt: AWSDateTime\n updatedAt: AWSDateTime\n owner: String\n}\n\ninput DocumentBlockSourceInput {\n bytes: String\n}\n\ninput DocumentBlockInput {\n format: String!\n name: String!\n source: DocumentBlockSourceInput!\n}\n\ninput ImageBlockSourceInput {\n bytes: String\n}\n\ninput ImageBlockInput {\n format: String!\n source: ImageBlockSourceInput!\n}\n\ninput ToolUseBlockInput {\n toolUseId: String!\n name: String!\n input: AWSJSON!\n}\n\ninput ToolResultContentBlockInput {\n document: DocumentBlockInput\n image: ImageBlockInput\n json: AWSJSON\n text: String\n}\n\ninput ToolResultBlockInput {\n content: [ToolResultContentBlockInput!]!\n toolUseId: String!\n status: String\n}\n\ntype DocumentBlockSource {\n bytes: String\n}\n\ntype DocumentBlock {\n format: String!\n name: String!\n source: DocumentBlockSource!\n}\n\ntype ImageBlock {\n format: String!\n source: ImageBlockSource!\n}\n\ntype ImageBlockSource {\n bytes: String\n}\n\ntype ToolUseBlock {\n toolUseId: String!\n name: String!\n input: AWSJSON!\n}\n\ntype ToolResultContentBlock {\n document: DocumentBlock\n image: ImageBlock\n json: AWSJSON\n text: String\n}\n\ntype ToolResultBlock {\n content: [ToolResultContentBlock!]!\n toolUseId: String!\n status: String\n}\n\ntype ContentBlockText {\n text: String\n}\n\ntype ContentBlockImage {\n image: ImageBlock\n}\n\ntype ContentBlockDocument {\n document: DocumentBlock\n}\n\ntype ContentBlockToolUse {\n toolUse: ToolUseBlock\n}\n\ntype ContentBlockToolResult {\n toolResult: ToolResultBlock\n}\n\ninput ContentBlockInput {\n text: String\n document: DocumentBlockInput\n image: ImageBlockInput\n toolResult: ToolResultBlockInput\n toolUse: ToolUseBlockInput\n}\n\ntype ContentBlock {\n text: String\n document: DocumentBlock\n image: ImageBlock\n toolResult: ToolResultBlock\n toolUse: ToolUseBlock\n}\n\ninput ToolConfigurationInput {\n tools: [ToolInput]\n}\n\ninput ToolInput {\n toolSpec: ToolSpecificationInput\n}\n\ninput ToolSpecificationInput {\n name: String!\n description: String\n inputSchema: ToolInputSchemaInput!\n}\n\ninput ToolInputSchemaInput {\n json: AWSJSON\n}\n\ntype ToolConfiguration {\n tools: [Tool]\n}\n\ntype Tool {\n toolSpec: ToolSpecification\n}\n\ntype ToolSpecification {\n name: String!\n description: String\n inputSchema: ToolInputSchema!\n}\n\ntype ToolInputSchema {\n json: AWSJSON\n}\n\ntype ConversationMessageStreamPart @aws_cognito_user_pools {\n id: ID!\n owner: String\n conversationId: ID!\n associatedUserMessageId: ID!\n contentBlockIndex: Int\n contentBlockText: String\n contentBlockDeltaIndex: Int\n contentBlockToolUse: ToolUseBlock\n contentBlockDoneAtIndex: Int\n stopReason: String\n errors: [ConversationTurnError]\n}\n\ntype ConversationTurnError @aws_cognito_user_pools {\n message: String!\n errorType: String!\n}";
@@ -0,0 +1,188 @@
1
+ const CONVERSATION_SCHEMA_GRAPHQL_TYPES =
2
+ /* GraphQL */ `enum ConversationParticipantRole {
3
+ user
4
+ assistant
5
+ }
6
+
7
+ interface ConversationMessage {
8
+ id: ID!
9
+ conversationId: ID!
10
+ associatedUserMessageId: ID
11
+ role: ConversationParticipantRole
12
+ content: [ContentBlock]
13
+ aiContext: AWSJSON
14
+ toolConfiguration: ToolConfiguration
15
+ createdAt: AWSDateTime
16
+ updatedAt: AWSDateTime
17
+ owner: String
18
+ }
19
+
20
+ input DocumentBlockSourceInput {
21
+ bytes: String
22
+ }
23
+
24
+ input DocumentBlockInput {
25
+ format: String!
26
+ name: String!
27
+ source: DocumentBlockSourceInput!
28
+ }
29
+
30
+ input ImageBlockSourceInput {
31
+ bytes: String
32
+ }
33
+
34
+ input ImageBlockInput {
35
+ format: String!
36
+ source: ImageBlockSourceInput!
37
+ }
38
+
39
+ input ToolUseBlockInput {
40
+ toolUseId: String!
41
+ name: String!
42
+ input: AWSJSON!
43
+ }
44
+
45
+ input ToolResultContentBlockInput {
46
+ document: DocumentBlockInput
47
+ image: ImageBlockInput
48
+ json: AWSJSON
49
+ text: String
50
+ }
51
+
52
+ input ToolResultBlockInput {
53
+ content: [ToolResultContentBlockInput!]!
54
+ toolUseId: String!
55
+ status: String
56
+ }
57
+
58
+ type DocumentBlockSource {
59
+ bytes: String
60
+ }
61
+
62
+ type DocumentBlock {
63
+ format: String!
64
+ name: String!
65
+ source: DocumentBlockSource!
66
+ }
67
+
68
+ type ImageBlock {
69
+ format: String!
70
+ source: ImageBlockSource!
71
+ }
72
+
73
+ type ImageBlockSource {
74
+ bytes: String
75
+ }
76
+
77
+ type ToolUseBlock {
78
+ toolUseId: String!
79
+ name: String!
80
+ input: AWSJSON!
81
+ }
82
+
83
+ type ToolResultContentBlock {
84
+ document: DocumentBlock
85
+ image: ImageBlock
86
+ json: AWSJSON
87
+ text: String
88
+ }
89
+
90
+ type ToolResultBlock {
91
+ content: [ToolResultContentBlock!]!
92
+ toolUseId: String!
93
+ status: String
94
+ }
95
+
96
+ type ContentBlockText {
97
+ text: String
98
+ }
99
+
100
+ type ContentBlockImage {
101
+ image: ImageBlock
102
+ }
103
+
104
+ type ContentBlockDocument {
105
+ document: DocumentBlock
106
+ }
107
+
108
+ type ContentBlockToolUse {
109
+ toolUse: ToolUseBlock
110
+ }
111
+
112
+ type ContentBlockToolResult {
113
+ toolResult: ToolResultBlock
114
+ }
115
+
116
+ input ContentBlockInput {
117
+ text: String
118
+ document: DocumentBlockInput
119
+ image: ImageBlockInput
120
+ toolResult: ToolResultBlockInput
121
+ toolUse: ToolUseBlockInput
122
+ }
123
+
124
+ type ContentBlock {
125
+ text: String
126
+ document: DocumentBlock
127
+ image: ImageBlock
128
+ toolResult: ToolResultBlock
129
+ toolUse: ToolUseBlock
130
+ }
131
+
132
+ input ToolConfigurationInput {
133
+ tools: [ToolInput]
134
+ }
135
+
136
+ input ToolInput {
137
+ toolSpec: ToolSpecificationInput
138
+ }
139
+
140
+ input ToolSpecificationInput {
141
+ name: String!
142
+ description: String
143
+ inputSchema: ToolInputSchemaInput!
144
+ }
145
+
146
+ input ToolInputSchemaInput {
147
+ json: AWSJSON
148
+ }
149
+
150
+ type ToolConfiguration {
151
+ tools: [Tool]
152
+ }
153
+
154
+ type Tool {
155
+ toolSpec: ToolSpecification
156
+ }
157
+
158
+ type ToolSpecification {
159
+ name: String!
160
+ description: String
161
+ inputSchema: ToolInputSchema!
162
+ }
163
+
164
+ type ToolInputSchema {
165
+ json: AWSJSON
166
+ }
167
+
168
+ type ConversationMessageStreamPart @aws_cognito_user_pools {
169
+ id: ID!
170
+ owner: String
171
+ conversationId: ID!
172
+ associatedUserMessageId: ID!
173
+ contentBlockIndex: Int
174
+ contentBlockText: String
175
+ contentBlockDeltaIndex: Int
176
+ contentBlockToolUse: ToolUseBlock
177
+ contentBlockDoneAtIndex: Int
178
+ stopReason: String
179
+ errors: [ConversationTurnError]
180
+ }
181
+
182
+ type ConversationTurnError @aws_cognito_user_pools {
183
+ message: String!
184
+ errorType: String!
185
+ }`;
186
+
187
+ export { CONVERSATION_SCHEMA_GRAPHQL_TYPES };
188
+ //# sourceMappingURL=ConversationSchemaGraphQLTypes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationSchemaGraphQLTypes.mjs","sources":["../../../src/ai/ConversationSchemaGraphQLTypes.ts"],"sourcesContent":["export const CONVERSATION_SCHEMA_GRAPHQL_TYPES = \n/* GraphQL */ `enum ConversationParticipantRole {\n user\n assistant\n}\n\ninterface ConversationMessage {\n id: ID!\n conversationId: ID!\n associatedUserMessageId: ID\n role: ConversationParticipantRole\n content: [ContentBlock]\n aiContext: AWSJSON\n toolConfiguration: ToolConfiguration\n createdAt: AWSDateTime\n updatedAt: AWSDateTime\n owner: String\n}\n\ninput DocumentBlockSourceInput {\n bytes: String\n}\n\ninput DocumentBlockInput {\n format: String!\n name: String!\n source: DocumentBlockSourceInput!\n}\n\ninput ImageBlockSourceInput {\n bytes: String\n}\n\ninput ImageBlockInput {\n format: String!\n source: ImageBlockSourceInput!\n}\n\ninput ToolUseBlockInput {\n toolUseId: String!\n name: String!\n input: AWSJSON!\n}\n\ninput ToolResultContentBlockInput {\n document: DocumentBlockInput\n image: ImageBlockInput\n json: AWSJSON\n text: String\n}\n\ninput ToolResultBlockInput {\n content: [ToolResultContentBlockInput!]!\n toolUseId: String!\n status: String\n}\n\ntype DocumentBlockSource {\n bytes: String\n}\n\ntype DocumentBlock {\n format: String!\n name: String!\n source: DocumentBlockSource!\n}\n\ntype ImageBlock {\n format: String!\n source: ImageBlockSource!\n}\n\ntype ImageBlockSource {\n bytes: String\n}\n\ntype ToolUseBlock {\n toolUseId: String!\n name: String!\n input: AWSJSON!\n}\n\ntype ToolResultContentBlock {\n document: DocumentBlock\n image: ImageBlock\n json: AWSJSON\n text: String\n}\n\ntype ToolResultBlock {\n content: [ToolResultContentBlock!]!\n toolUseId: String!\n status: String\n}\n\ntype ContentBlockText {\n text: String\n}\n\ntype ContentBlockImage {\n image: ImageBlock\n}\n\ntype ContentBlockDocument {\n document: DocumentBlock\n}\n\ntype ContentBlockToolUse {\n toolUse: ToolUseBlock\n}\n\ntype ContentBlockToolResult {\n toolResult: ToolResultBlock\n}\n\ninput ContentBlockInput {\n text: String\n document: DocumentBlockInput\n image: ImageBlockInput\n toolResult: ToolResultBlockInput\n toolUse: ToolUseBlockInput\n}\n\ntype ContentBlock {\n text: String\n document: DocumentBlock\n image: ImageBlock\n toolResult: ToolResultBlock\n toolUse: ToolUseBlock\n}\n\ninput ToolConfigurationInput {\n tools: [ToolInput]\n}\n\ninput ToolInput {\n toolSpec: ToolSpecificationInput\n}\n\ninput ToolSpecificationInput {\n name: String!\n description: String\n inputSchema: ToolInputSchemaInput!\n}\n\ninput ToolInputSchemaInput {\n json: AWSJSON\n}\n\ntype ToolConfiguration {\n tools: [Tool]\n}\n\ntype Tool {\n toolSpec: ToolSpecification\n}\n\ntype ToolSpecification {\n name: String!\n description: String\n inputSchema: ToolInputSchema!\n}\n\ntype ToolInputSchema {\n json: AWSJSON\n}\n\ntype ConversationMessageStreamPart @aws_cognito_user_pools {\n id: ID!\n owner: String\n conversationId: ID!\n associatedUserMessageId: ID!\n contentBlockIndex: Int\n contentBlockText: String\n contentBlockDeltaIndex: Int\n contentBlockToolUse: ToolUseBlock\n contentBlockDoneAtIndex: Int\n stopReason: String\n errors: [ConversationTurnError]\n}\n\ntype ConversationTurnError @aws_cognito_user_pools {\n message: String!\n errorType: String!\n}`;\n"],"names":[],"mappings":"AAAY,MAAC,iCAAiC;AAC9C,cAAc,CAAC;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;"}
@@ -0,0 +1,6 @@
1
+ import { LambdaFunctionDefinition } from "@aws-amplify/data-schema-types";
2
+ import { InternalConversationType } from "./ConversationType";
3
+ export declare const createConversationField: (typeDef: InternalConversationType, typeName: string) => {
4
+ field: string;
5
+ functionHandler: LambdaFunctionDefinition;
6
+ };
@@ -0,0 +1,50 @@
1
+ import { capitalize } from '../runtime/utils/stringTransformation.mjs';
2
+
3
+ const createConversationField = (typeDef, typeName) => {
4
+ const { aiModel, systemPrompt, handler, tools } = typeDef;
5
+ const args = {
6
+ aiModel: aiModel.resourcePath,
7
+ // This is done to escape newlines in potentially multi-line system prompts
8
+ // e.g.
9
+ // realtorChat: a.conversation({
10
+ // aiModel: a.ai.model('Claude 3 Haiku'),
11
+ // systemPrompt: `You are a helpful real estate assistant
12
+ // Respond in the poetic form of haiku.`,
13
+ // }),
14
+ //
15
+ // It doesn't affect non multi-line string inputs for system prompts
16
+ systemPrompt: systemPrompt.replace(/\r?\n/g, '\\n'),
17
+ };
18
+ const argsString = Object.entries(args)
19
+ .map(([key, value]) => `${key}: "${value}"`)
20
+ .join(', ');
21
+ const functionHandler = {};
22
+ let handlerString = '';
23
+ if (handler) {
24
+ const functionName = `Fn${capitalize(typeName)}`;
25
+ const eventVersion = handler.eventVersion;
26
+ handlerString = `, handler: { functionName: "${functionName}", eventVersion: "${eventVersion}" }`;
27
+ functionHandler[functionName] = handler;
28
+ }
29
+ const toolsString = tools?.length
30
+ ? `, tools: [${getConversationToolsString(tools)}]`
31
+ : '';
32
+ const conversationDirective = `@conversation(${argsString}${handlerString}${toolsString})`;
33
+ const field = `${typeName}(conversationId: ID!, content: [ContentBlockInput], aiContext: AWSJSON, toolConfiguration: ToolConfigurationInput): ConversationMessage ${conversationDirective} @aws_cognito_user_pools`;
34
+ return { field, functionHandler };
35
+ };
36
+ const isRef = (query) => query?.data?.type === 'ref';
37
+ const getConversationToolsString = (tools) => tools
38
+ .map((tool) => {
39
+ const { query, description } = tool;
40
+ if (!isRef(query)) {
41
+ throw new Error(`Unexpected query was found in tool ${tool}.`);
42
+ }
43
+ // TODO: add validation for query / auth (cup) / etc
44
+ const queryName = query.data.link;
45
+ return `{ name: "${queryName}", description: "${description}" }`;
46
+ })
47
+ .join(', ');
48
+
49
+ export { createConversationField };
50
+ //# sourceMappingURL=ConversationSchemaProcessor.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationSchemaProcessor.mjs","sources":["../../../src/ai/ConversationSchemaProcessor.ts"],"sourcesContent":["import { capitalize } from \"../runtime/utils\";\nexport const createConversationField = (typeDef, typeName) => {\n const { aiModel, systemPrompt, handler, tools } = typeDef;\n const args = {\n aiModel: aiModel.resourcePath,\n // This is done to escape newlines in potentially multi-line system prompts\n // e.g.\n // realtorChat: a.conversation({\n // aiModel: a.ai.model('Claude 3 Haiku'),\n // systemPrompt: `You are a helpful real estate assistant\n // Respond in the poetic form of haiku.`,\n // }),\n //\n // It doesn't affect non multi-line string inputs for system prompts\n systemPrompt: systemPrompt.replace(/\\r?\\n/g, '\\\\n'),\n };\n const argsString = Object.entries(args)\n .map(([key, value]) => `${key}: \"${value}\"`)\n .join(', ');\n const functionHandler = {};\n let handlerString = '';\n if (handler) {\n const functionName = `Fn${capitalize(typeName)}`;\n const eventVersion = handler.eventVersion;\n handlerString = `, handler: { functionName: \"${functionName}\", eventVersion: \"${eventVersion}\" }`;\n functionHandler[functionName] = handler;\n }\n const toolsString = tools?.length\n ? `, tools: [${getConversationToolsString(tools)}]`\n : '';\n const conversationDirective = `@conversation(${argsString}${handlerString}${toolsString})`;\n const field = `${typeName}(conversationId: ID!, content: [ContentBlockInput], aiContext: AWSJSON, toolConfiguration: ToolConfigurationInput): ConversationMessage ${conversationDirective} @aws_cognito_user_pools`;\n return { field, functionHandler };\n};\nconst isRef = (query) => query?.data?.type === 'ref';\nconst getConversationToolsString = (tools) => tools\n .map((tool) => {\n const { query, description } = tool;\n if (!isRef(query)) {\n throw new Error(`Unexpected query was found in tool ${tool}.`);\n }\n // TODO: add validation for query / auth (cup) / etc\n const queryName = query.data.link;\n return `{ name: \"${queryName}\", description: \"${description}\" }`;\n})\n .join(', ');\n"],"names":[],"mappings":";;AACY,MAAC,uBAAuB,GAAG,CAAC,OAAO,EAAE,QAAQ,KAAK;AAC9D,IAAI,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;AAC9D,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,OAAO,EAAE,OAAO,CAAC,YAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,YAAY,EAAE,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC;AAC3D,KAAK,CAAC;AACN,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;AAC3C,SAAS,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AACpD,SAAS,IAAI,CAAC,IAAI,CAAC,CAAC;AACpB,IAAI,MAAM,eAAe,GAAG,EAAE,CAAC;AAC/B,IAAI,IAAI,aAAa,GAAG,EAAE,CAAC;AAC3B,IAAI,IAAI,OAAO,EAAE;AACjB,QAAQ,MAAM,YAAY,GAAG,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACzD,QAAQ,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAClD,QAAQ,aAAa,GAAG,CAAC,4BAA4B,EAAE,YAAY,CAAC,kBAAkB,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;AAC1G,QAAQ,eAAe,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC;AAChD,KAAK;AACL,IAAI,MAAM,WAAW,GAAG,KAAK,EAAE,MAAM;AACrC,UAAU,CAAC,UAAU,EAAE,0BAA0B,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC3D,UAAU,EAAE,CAAC;AACb,IAAI,MAAM,qBAAqB,GAAG,CAAC,cAAc,EAAE,UAAU,CAAC,EAAE,aAAa,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AAC/F,IAAI,MAAM,KAAK,GAAG,CAAC,EAAE,QAAQ,CAAC,wIAAwI,EAAE,qBAAqB,CAAC,wBAAwB,CAAC,CAAC;AACxN,IAAI,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACtC,EAAE;AACF,MAAM,KAAK,GAAG,CAAC,KAAK,KAAK,KAAK,EAAE,IAAI,EAAE,IAAI,KAAK,KAAK,CAAC;AACrD,MAAM,0BAA0B,GAAG,CAAC,KAAK,KAAK,KAAK;AACnD,KAAK,GAAG,CAAC,CAAC,IAAI,KAAK;AACnB,IAAI,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;AACxC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;AACvB,QAAQ,MAAM,IAAI,KAAK,CAAC,CAAC,mCAAmC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,KAAK;AACL;AACA,IAAI,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AACtC,IAAI,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;AACrE,CAAC,CAAC;AACF,KAAK,IAAI,CAAC,IAAI,CAAC;;;;"}
@@ -3,7 +3,7 @@ import { ClientSchema } from './ClientSchema';
3
3
  export { a };
4
4
  export type { ClientSchema };
5
5
  export type { CombinedModelSchema } from './CombineSchema';
6
- export type { Authorization } from './Authorization';
6
+ export type { Authorization, ResourceAuthorization } from './Authorization';
7
7
  export type { CustomOperation } from './CustomOperation';
8
8
  export type { ModelField, Nullable, Json } from './ModelField';
9
9
  export type { ModelSchema, RDSModelSchema } from './ModelSchema';