@aws-amplify/graphql-api-construct 1.14.0 → 1.15.1-ai-streaming.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. package/.jsii +91 -34
  2. package/CHANGELOG.md +15 -0
  3. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  4. package/lib/amplify-graphql-api.js +1 -1
  5. package/lib/amplify-graphql-definition.js +1 -1
  6. package/lib/internal/authorization-modes.js +3 -3
  7. package/lib/sql-model-datasource-strategy.js +1 -1
  8. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.d.ts +12 -1
  9. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.js +19 -2
  10. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.d.ts +2 -2
  11. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.js +1 -1
  12. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +13 -1
  13. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +182 -45
  14. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.d.ts +44 -0
  15. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +173 -0
  16. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +3 -5
  17. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +10 -7
  18. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +11 -2
  19. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +9 -23
  20. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.d.ts +33 -0
  21. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.js +38 -0
  22. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/default_handler.d.ts +1 -1
  23. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/event_tools_provider.js +2 -2
  24. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.d.ts +11 -11
  25. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.js +10 -24
  26. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/executable_tool_factory.d.ts +7 -0
  27. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/executable_tool_factory.js +16 -0
  28. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.d.ts +22 -0
  29. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.js +47 -0
  30. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.d.ts +3 -2
  31. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.js +4 -2
  32. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +22 -11
  33. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
  34. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/README.md +4 -0
  35. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/index.d.ts +23 -0
  36. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/index.js +10 -0
  37. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/v1.d.ts +22 -0
  38. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/v1.js +11 -0
  39. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.d.ts +113 -0
  40. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.js +10 -0
  41. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.d.ts +112 -0
  42. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.js +30 -0
  43. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/index.d.ts +23 -0
  44. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/index.js +10 -0
  45. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/v1.d.ts +22 -0
  46. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/v1.js +11 -0
  47. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/index.d.ts +23 -0
  48. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/index.js +10 -0
  49. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/v1.d.ts +22 -0
  50. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/v1.js +11 -0
  51. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.d.ts +59 -0
  52. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.js +12 -0
  53. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.d.ts +59 -0
  54. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.js +25 -0
  55. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/index.d.ts +508 -0
  56. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/index.js +112 -0
  57. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/index.d.ts +2 -0
  58. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/index.js +18 -0
  59. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.d.ts +42 -0
  60. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.js +22 -0
  61. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.d.ts +28 -0
  62. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.js +10 -0
  63. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.d.ts +27 -0
  64. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.js +12 -0
  65. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.d.ts +33 -0
  66. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.js +10 -0
  67. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.d.ts +32 -0
  68. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.js +33 -0
  69. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/package.json +27 -0
  70. package/node_modules/@aws-amplify/ai-constructs/package.json +9 -2
  71. package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +2 -0
  72. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +6 -0
  73. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts +1 -0
  74. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
  75. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +18 -0
  76. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
  77. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +13 -14
  78. package/node_modules/@aws-amplify/graphql-conversation-transformer/API.md +2 -1
  79. package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +15 -0
  80. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts +2 -0
  81. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts.map +1 -1
  82. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +36 -5
  83. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -1
  84. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts +2 -1
  85. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts.map +1 -1
  86. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js +2 -2
  87. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js.map +1 -1
  88. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver-fn.template.js +16 -33
  89. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts.map +1 -1
  90. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js +10 -1
  91. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js.map +1 -1
  92. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver-fn.template.js +101 -0
  93. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.d.ts +4 -0
  94. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.d.ts.map +1 -0
  95. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.js +25 -0
  96. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.js.map +1 -0
  97. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver-fn.template.js +121 -0
  98. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.d.ts +4 -0
  99. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.d.ts.map +1 -0
  100. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.js +25 -0
  101. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.js.map +1 -0
  102. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver-fn.template.js +1 -0
  103. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts +2 -3
  104. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts.map +1 -1
  105. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js +10 -4
  106. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js.map +1 -1
  107. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver-fn.template.js +28 -5
  108. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts +2 -2
  109. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts.map +1 -1
  110. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js +21 -4
  111. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js.map +1 -1
  112. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver-fn.template.js +8 -0
  113. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.d.ts +4 -0
  114. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.d.ts.map +1 -0
  115. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{message-history-resolver.js → list-messages-init-resolver.js} +6 -6
  116. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.js.map +1 -0
  117. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver-fn.template.js +2 -1
  118. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts +2 -1
  119. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts.map +1 -1
  120. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js +23 -5
  121. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js.map +1 -1
  122. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts +2 -1
  123. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts.map +1 -1
  124. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js +4 -2
  125. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js.map +1 -1
  126. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts.map +1 -1
  127. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js +3 -2
  128. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js.map +1 -1
  129. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +5 -1
  130. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -1
  131. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +66 -30
  132. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -1
  133. package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +12 -11
  134. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +6 -0
  135. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.d.ts.map +1 -1
  136. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js +19 -7
  137. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js.map +1 -1
  138. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -9
  139. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +6 -0
  140. package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.js +1 -1
  141. package/node_modules/@aws-amplify/graphql-directives/package.json +1 -1
  142. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
  143. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +7 -8
  144. package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +7 -0
  145. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock-resolver-fn.template.js +24 -9
  146. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.d.ts.map +1 -1
  147. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js +11 -1
  148. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js.map +1 -1
  149. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.d.ts.map +1 -1
  150. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js +2 -1
  151. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js.map +1 -1
  152. package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +7 -8
  153. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
  154. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +7 -8
  155. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
  156. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +8 -9
  157. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -0
  158. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  159. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +11 -12
  160. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -0
  161. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  162. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  163. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  164. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/dynamodb/query.js +1 -1
  165. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/dynamodb/query.js.map +1 -1
  166. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +7 -8
  167. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
  168. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  169. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +7 -8
  170. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -0
  171. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +9 -10
  172. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -0
  173. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  174. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +8 -9
  175. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
  176. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +8 -9
  177. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +10 -0
  178. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +1 -1
  179. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
  180. package/node_modules/@aws-amplify/graphql-transformer/package.json +19 -19
  181. package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +1 -1
  182. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +13 -7
  183. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +10 -0
  184. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  185. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  186. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +4 -2
  187. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  188. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts +9 -9
  189. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts.map +1 -1
  190. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js.map +1 -1
  191. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +2 -0
  192. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
  193. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +13 -1
  194. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
  195. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -6
  196. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +4 -0
  197. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -4
  198. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  199. package/package.json +23 -23
  200. package/src/internal/authorization-modes.ts +2 -2
  201. package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +0 -201
  202. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver-fn.template.js +0 -40
  203. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts +0 -4
  204. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts.map +0 -1
  205. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.js.map +0 -1
  206. package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +0 -201
  207. package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +0 -201
  208. package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +0 -201
  209. package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +0 -201
  210. package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +0 -201
  211. package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +0 -201
  212. package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +0 -201
  213. package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +0 -201
  214. package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +0 -201
  215. package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +0 -201
  216. package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +0 -201
  217. package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +0 -201
  218. package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +0 -201
@@ -0,0 +1,508 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The auth, graphql and storage exports here are duplicated from the submodule exports in the package.json file
4
+ * This is because these types need to be consumed in CDK Constructs that may be JSII classes. JSII only supports
5
+ * CommonJS modules which can't interpret submodule exports
6
+ */
7
+ /**
8
+ * ---------- Platform exports ----------
9
+ */
10
+ export declare const platformOutputKey = "AWS::Amplify::Platform";
11
+ export * from './platform/index.js';
12
+ /**
13
+ * ---------- Custom exports ----------
14
+ */
15
+ export declare const customOutputKey = "AWS::Amplify::Custom";
16
+ export * from './custom/index.js';
17
+ /**
18
+ * ---------- Auth exports ----------
19
+ */
20
+ /**
21
+ * re-export the auth output schema
22
+ */
23
+ export * from './auth/index.js';
24
+ /**
25
+ * Expected key that auth output is stored under
26
+ */
27
+ export declare const authOutputKey = "AWS::Amplify::Auth";
28
+ /**
29
+ * ---------- GraphQL exports ----------
30
+ */
31
+ /**
32
+ * re-export the graphql output schema
33
+ */
34
+ export * from './graphql/index.js';
35
+ /**
36
+ * Expected key that graphql output is stored under
37
+ */
38
+ export declare const graphqlOutputKey = "AWS::Amplify::GraphQL";
39
+ /**
40
+ * ---------- Storage exports ----------
41
+ */
42
+ /**
43
+ * re-export the storage output schema
44
+ */
45
+ export * from './storage/index.js';
46
+ /**
47
+ * Expected key that storage output is stored under
48
+ */
49
+ export declare const storageOutputKey = "AWS::Amplify::Storage";
50
+ /**
51
+ * ---------- Function exports ----------
52
+ */
53
+ /**
54
+ * re-export the function output schema
55
+ */
56
+ export * from './function/index.js';
57
+ /**
58
+ * Expected key that function output is stored under
59
+ */
60
+ export declare const functionOutputKey = "AWS::Amplify::Function";
61
+ /**
62
+ * ---------- AI conversation exports ----------
63
+ */
64
+ /**
65
+ * re-export the AI conversation output schema
66
+ */
67
+ export * from './ai/conversation/index.js';
68
+ /**
69
+ * Expected key that AI conversation output is stored under
70
+ */
71
+ export declare const aiConversationOutputKey = "AWS::Amplify::AI::Conversation";
72
+ /**
73
+ * ---------- Unified exports ----------
74
+ */
75
+ /**
76
+ * Defines the unified expected shape of Amplify backend output.
77
+ * 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
78
+ */
79
+ export declare const unifiedBackendOutputSchema: z.ZodObject<{
80
+ "AWS::Amplify::Platform": z.ZodOptional<z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
81
+ version: z.ZodLiteral<"1">;
82
+ payload: z.ZodObject<{
83
+ deploymentType: z.ZodString;
84
+ region: z.ZodString;
85
+ }, "strip", z.ZodTypeAny, {
86
+ deploymentType: string;
87
+ region: string;
88
+ }, {
89
+ deploymentType: string;
90
+ region: string;
91
+ }>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ version: "1";
94
+ payload: {
95
+ deploymentType: string;
96
+ region: string;
97
+ };
98
+ }, {
99
+ version: "1";
100
+ payload: {
101
+ deploymentType: string;
102
+ region: string;
103
+ };
104
+ }>]>>;
105
+ "AWS::Amplify::Auth": z.ZodOptional<z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
106
+ version: z.ZodLiteral<"1">;
107
+ payload: z.ZodObject<{
108
+ authRegion: z.ZodString;
109
+ userPoolId: z.ZodString;
110
+ webClientId: z.ZodString;
111
+ identityPoolId: z.ZodString;
112
+ allowUnauthenticatedIdentities: z.ZodOptional<z.ZodString>;
113
+ usernameAttributes: z.ZodOptional<z.ZodString>;
114
+ signupAttributes: z.ZodOptional<z.ZodString>;
115
+ passwordPolicyMinLength: z.ZodOptional<z.ZodString>;
116
+ passwordPolicyRequirements: z.ZodOptional<z.ZodString>;
117
+ mfaConfiguration: z.ZodOptional<z.ZodString>;
118
+ mfaTypes: z.ZodOptional<z.ZodString>;
119
+ verificationMechanisms: z.ZodOptional<z.ZodString>;
120
+ socialProviders: z.ZodOptional<z.ZodString>;
121
+ oauthCognitoDomain: z.ZodOptional<z.ZodString>;
122
+ oauthScope: z.ZodOptional<z.ZodString>;
123
+ oauthRedirectSignIn: z.ZodOptional<z.ZodString>;
124
+ oauthRedirectSignOut: z.ZodOptional<z.ZodString>;
125
+ oauthClientId: z.ZodOptional<z.ZodString>;
126
+ oauthResponseType: z.ZodOptional<z.ZodString>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ authRegion: string;
129
+ userPoolId: string;
130
+ webClientId: string;
131
+ identityPoolId: string;
132
+ allowUnauthenticatedIdentities?: string | undefined;
133
+ usernameAttributes?: string | undefined;
134
+ signupAttributes?: string | undefined;
135
+ passwordPolicyMinLength?: string | undefined;
136
+ passwordPolicyRequirements?: string | undefined;
137
+ mfaConfiguration?: string | undefined;
138
+ mfaTypes?: string | undefined;
139
+ verificationMechanisms?: string | undefined;
140
+ socialProviders?: string | undefined;
141
+ oauthCognitoDomain?: string | undefined;
142
+ oauthScope?: string | undefined;
143
+ oauthRedirectSignIn?: string | undefined;
144
+ oauthRedirectSignOut?: string | undefined;
145
+ oauthClientId?: string | undefined;
146
+ oauthResponseType?: string | undefined;
147
+ }, {
148
+ authRegion: string;
149
+ userPoolId: string;
150
+ webClientId: string;
151
+ identityPoolId: string;
152
+ allowUnauthenticatedIdentities?: string | undefined;
153
+ usernameAttributes?: string | undefined;
154
+ signupAttributes?: string | undefined;
155
+ passwordPolicyMinLength?: string | undefined;
156
+ passwordPolicyRequirements?: string | undefined;
157
+ mfaConfiguration?: string | undefined;
158
+ mfaTypes?: string | undefined;
159
+ verificationMechanisms?: string | undefined;
160
+ socialProviders?: string | undefined;
161
+ oauthCognitoDomain?: string | undefined;
162
+ oauthScope?: string | undefined;
163
+ oauthRedirectSignIn?: string | undefined;
164
+ oauthRedirectSignOut?: string | undefined;
165
+ oauthClientId?: string | undefined;
166
+ oauthResponseType?: string | undefined;
167
+ }>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ version: "1";
170
+ payload: {
171
+ authRegion: string;
172
+ userPoolId: string;
173
+ webClientId: string;
174
+ identityPoolId: string;
175
+ allowUnauthenticatedIdentities?: string | undefined;
176
+ usernameAttributes?: string | undefined;
177
+ signupAttributes?: string | undefined;
178
+ passwordPolicyMinLength?: string | undefined;
179
+ passwordPolicyRequirements?: string | undefined;
180
+ mfaConfiguration?: string | undefined;
181
+ mfaTypes?: string | undefined;
182
+ verificationMechanisms?: string | undefined;
183
+ socialProviders?: string | undefined;
184
+ oauthCognitoDomain?: string | undefined;
185
+ oauthScope?: string | undefined;
186
+ oauthRedirectSignIn?: string | undefined;
187
+ oauthRedirectSignOut?: string | undefined;
188
+ oauthClientId?: string | undefined;
189
+ oauthResponseType?: string | undefined;
190
+ };
191
+ }, {
192
+ version: "1";
193
+ payload: {
194
+ authRegion: string;
195
+ userPoolId: string;
196
+ webClientId: string;
197
+ identityPoolId: string;
198
+ allowUnauthenticatedIdentities?: string | undefined;
199
+ usernameAttributes?: string | undefined;
200
+ signupAttributes?: string | undefined;
201
+ passwordPolicyMinLength?: string | undefined;
202
+ passwordPolicyRequirements?: string | undefined;
203
+ mfaConfiguration?: string | undefined;
204
+ mfaTypes?: string | undefined;
205
+ verificationMechanisms?: string | undefined;
206
+ socialProviders?: string | undefined;
207
+ oauthCognitoDomain?: string | undefined;
208
+ oauthScope?: string | undefined;
209
+ oauthRedirectSignIn?: string | undefined;
210
+ oauthRedirectSignOut?: string | undefined;
211
+ oauthClientId?: string | undefined;
212
+ oauthResponseType?: string | undefined;
213
+ };
214
+ }>]>>;
215
+ "AWS::Amplify::GraphQL": z.ZodOptional<z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
216
+ version: z.ZodLiteral<"1">;
217
+ payload: z.ZodObject<{
218
+ awsAppsyncRegion: z.ZodString;
219
+ awsAppsyncApiEndpoint: z.ZodString;
220
+ awsAppsyncAuthenticationType: z.ZodEnum<["API_KEY", "AWS_LAMBDA", "AWS_IAM", "OPENID_CONNECT", "AMAZON_COGNITO_USER_POOLS"]>;
221
+ awsAppsyncAdditionalAuthenticationTypes: z.ZodOptional<z.ZodString>;
222
+ awsAppsyncConflictResolutionMode: z.ZodOptional<z.ZodString>;
223
+ awsAppsyncApiKey: z.ZodOptional<z.ZodString>;
224
+ awsAppsyncApiId: z.ZodString;
225
+ amplifyApiModelSchemaS3Uri: z.ZodString;
226
+ }, "strip", z.ZodTypeAny, {
227
+ awsAppsyncRegion: string;
228
+ awsAppsyncApiEndpoint: string;
229
+ awsAppsyncAuthenticationType: "API_KEY" | "AWS_LAMBDA" | "AWS_IAM" | "OPENID_CONNECT" | "AMAZON_COGNITO_USER_POOLS";
230
+ awsAppsyncApiId: string;
231
+ amplifyApiModelSchemaS3Uri: string;
232
+ awsAppsyncAdditionalAuthenticationTypes?: string | undefined;
233
+ awsAppsyncConflictResolutionMode?: string | undefined;
234
+ awsAppsyncApiKey?: string | undefined;
235
+ }, {
236
+ awsAppsyncRegion: string;
237
+ awsAppsyncApiEndpoint: string;
238
+ awsAppsyncAuthenticationType: "API_KEY" | "AWS_LAMBDA" | "AWS_IAM" | "OPENID_CONNECT" | "AMAZON_COGNITO_USER_POOLS";
239
+ awsAppsyncApiId: string;
240
+ amplifyApiModelSchemaS3Uri: string;
241
+ awsAppsyncAdditionalAuthenticationTypes?: string | undefined;
242
+ awsAppsyncConflictResolutionMode?: string | undefined;
243
+ awsAppsyncApiKey?: string | undefined;
244
+ }>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ version: "1";
247
+ payload: {
248
+ awsAppsyncRegion: string;
249
+ awsAppsyncApiEndpoint: string;
250
+ awsAppsyncAuthenticationType: "API_KEY" | "AWS_LAMBDA" | "AWS_IAM" | "OPENID_CONNECT" | "AMAZON_COGNITO_USER_POOLS";
251
+ awsAppsyncApiId: string;
252
+ amplifyApiModelSchemaS3Uri: string;
253
+ awsAppsyncAdditionalAuthenticationTypes?: string | undefined;
254
+ awsAppsyncConflictResolutionMode?: string | undefined;
255
+ awsAppsyncApiKey?: string | undefined;
256
+ };
257
+ }, {
258
+ version: "1";
259
+ payload: {
260
+ awsAppsyncRegion: string;
261
+ awsAppsyncApiEndpoint: string;
262
+ awsAppsyncAuthenticationType: "API_KEY" | "AWS_LAMBDA" | "AWS_IAM" | "OPENID_CONNECT" | "AMAZON_COGNITO_USER_POOLS";
263
+ awsAppsyncApiId: string;
264
+ amplifyApiModelSchemaS3Uri: string;
265
+ awsAppsyncAdditionalAuthenticationTypes?: string | undefined;
266
+ awsAppsyncConflictResolutionMode?: string | undefined;
267
+ awsAppsyncApiKey?: string | undefined;
268
+ };
269
+ }>]>>;
270
+ "AWS::Amplify::Storage": z.ZodOptional<z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
271
+ version: z.ZodLiteral<"1">;
272
+ payload: z.ZodObject<{
273
+ bucketName: z.ZodString;
274
+ storageRegion: z.ZodString;
275
+ buckets: z.ZodOptional<z.ZodString>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ bucketName: string;
278
+ storageRegion: string;
279
+ buckets?: string | undefined;
280
+ }, {
281
+ bucketName: string;
282
+ storageRegion: string;
283
+ buckets?: string | undefined;
284
+ }>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ version: "1";
287
+ payload: {
288
+ bucketName: string;
289
+ storageRegion: string;
290
+ buckets?: string | undefined;
291
+ };
292
+ }, {
293
+ version: "1";
294
+ payload: {
295
+ bucketName: string;
296
+ storageRegion: string;
297
+ buckets?: string | undefined;
298
+ };
299
+ }>]>>;
300
+ "AWS::Amplify::Custom": z.ZodOptional<z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
301
+ version: z.ZodLiteral<"1">;
302
+ payload: z.ZodObject<{
303
+ customOutputs: z.ZodString;
304
+ }, "strip", z.ZodTypeAny, {
305
+ customOutputs: string;
306
+ }, {
307
+ customOutputs: string;
308
+ }>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ version: "1";
311
+ payload: {
312
+ customOutputs: string;
313
+ };
314
+ }, {
315
+ version: "1";
316
+ payload: {
317
+ customOutputs: string;
318
+ };
319
+ }>]>>;
320
+ "AWS::Amplify::Function": z.ZodOptional<z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
321
+ version: z.ZodLiteral<"1">;
322
+ payload: z.ZodObject<{
323
+ definedFunctions: z.ZodString;
324
+ }, "strip", z.ZodTypeAny, {
325
+ definedFunctions: string;
326
+ }, {
327
+ definedFunctions: string;
328
+ }>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ version: "1";
331
+ payload: {
332
+ definedFunctions: string;
333
+ };
334
+ }, {
335
+ version: "1";
336
+ payload: {
337
+ definedFunctions: string;
338
+ };
339
+ }>]>>;
340
+ "AWS::Amplify::AI::Conversation": z.ZodOptional<z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
341
+ version: z.ZodLiteral<"1">;
342
+ payload: z.ZodObject<{
343
+ definedConversationHandlers: z.ZodString;
344
+ }, "strip", z.ZodTypeAny, {
345
+ definedConversationHandlers: string;
346
+ }, {
347
+ definedConversationHandlers: string;
348
+ }>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ version: "1";
351
+ payload: {
352
+ definedConversationHandlers: string;
353
+ };
354
+ }, {
355
+ version: "1";
356
+ payload: {
357
+ definedConversationHandlers: string;
358
+ };
359
+ }>]>>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ "AWS::Amplify::Platform"?: {
362
+ version: "1";
363
+ payload: {
364
+ deploymentType: string;
365
+ region: string;
366
+ };
367
+ } | undefined;
368
+ "AWS::Amplify::Custom"?: {
369
+ version: "1";
370
+ payload: {
371
+ customOutputs: string;
372
+ };
373
+ } | undefined;
374
+ "AWS::Amplify::Auth"?: {
375
+ version: "1";
376
+ payload: {
377
+ authRegion: string;
378
+ userPoolId: string;
379
+ webClientId: string;
380
+ identityPoolId: string;
381
+ allowUnauthenticatedIdentities?: string | undefined;
382
+ usernameAttributes?: string | undefined;
383
+ signupAttributes?: string | undefined;
384
+ passwordPolicyMinLength?: string | undefined;
385
+ passwordPolicyRequirements?: string | undefined;
386
+ mfaConfiguration?: string | undefined;
387
+ mfaTypes?: string | undefined;
388
+ verificationMechanisms?: string | undefined;
389
+ socialProviders?: string | undefined;
390
+ oauthCognitoDomain?: string | undefined;
391
+ oauthScope?: string | undefined;
392
+ oauthRedirectSignIn?: string | undefined;
393
+ oauthRedirectSignOut?: string | undefined;
394
+ oauthClientId?: string | undefined;
395
+ oauthResponseType?: string | undefined;
396
+ };
397
+ } | undefined;
398
+ "AWS::Amplify::GraphQL"?: {
399
+ version: "1";
400
+ payload: {
401
+ awsAppsyncRegion: string;
402
+ awsAppsyncApiEndpoint: string;
403
+ awsAppsyncAuthenticationType: "API_KEY" | "AWS_LAMBDA" | "AWS_IAM" | "OPENID_CONNECT" | "AMAZON_COGNITO_USER_POOLS";
404
+ awsAppsyncApiId: string;
405
+ amplifyApiModelSchemaS3Uri: string;
406
+ awsAppsyncAdditionalAuthenticationTypes?: string | undefined;
407
+ awsAppsyncConflictResolutionMode?: string | undefined;
408
+ awsAppsyncApiKey?: string | undefined;
409
+ };
410
+ } | undefined;
411
+ "AWS::Amplify::Storage"?: {
412
+ version: "1";
413
+ payload: {
414
+ bucketName: string;
415
+ storageRegion: string;
416
+ buckets?: string | undefined;
417
+ };
418
+ } | undefined;
419
+ "AWS::Amplify::Function"?: {
420
+ version: "1";
421
+ payload: {
422
+ definedFunctions: string;
423
+ };
424
+ } | undefined;
425
+ "AWS::Amplify::AI::Conversation"?: {
426
+ version: "1";
427
+ payload: {
428
+ definedConversationHandlers: string;
429
+ };
430
+ } | undefined;
431
+ }, {
432
+ "AWS::Amplify::Platform"?: {
433
+ version: "1";
434
+ payload: {
435
+ deploymentType: string;
436
+ region: string;
437
+ };
438
+ } | undefined;
439
+ "AWS::Amplify::Custom"?: {
440
+ version: "1";
441
+ payload: {
442
+ customOutputs: string;
443
+ };
444
+ } | undefined;
445
+ "AWS::Amplify::Auth"?: {
446
+ version: "1";
447
+ payload: {
448
+ authRegion: string;
449
+ userPoolId: string;
450
+ webClientId: string;
451
+ identityPoolId: string;
452
+ allowUnauthenticatedIdentities?: string | undefined;
453
+ usernameAttributes?: string | undefined;
454
+ signupAttributes?: string | undefined;
455
+ passwordPolicyMinLength?: string | undefined;
456
+ passwordPolicyRequirements?: string | undefined;
457
+ mfaConfiguration?: string | undefined;
458
+ mfaTypes?: string | undefined;
459
+ verificationMechanisms?: string | undefined;
460
+ socialProviders?: string | undefined;
461
+ oauthCognitoDomain?: string | undefined;
462
+ oauthScope?: string | undefined;
463
+ oauthRedirectSignIn?: string | undefined;
464
+ oauthRedirectSignOut?: string | undefined;
465
+ oauthClientId?: string | undefined;
466
+ oauthResponseType?: string | undefined;
467
+ };
468
+ } | undefined;
469
+ "AWS::Amplify::GraphQL"?: {
470
+ version: "1";
471
+ payload: {
472
+ awsAppsyncRegion: string;
473
+ awsAppsyncApiEndpoint: string;
474
+ awsAppsyncAuthenticationType: "API_KEY" | "AWS_LAMBDA" | "AWS_IAM" | "OPENID_CONNECT" | "AMAZON_COGNITO_USER_POOLS";
475
+ awsAppsyncApiId: string;
476
+ amplifyApiModelSchemaS3Uri: string;
477
+ awsAppsyncAdditionalAuthenticationTypes?: string | undefined;
478
+ awsAppsyncConflictResolutionMode?: string | undefined;
479
+ awsAppsyncApiKey?: string | undefined;
480
+ };
481
+ } | undefined;
482
+ "AWS::Amplify::Storage"?: {
483
+ version: "1";
484
+ payload: {
485
+ bucketName: string;
486
+ storageRegion: string;
487
+ buckets?: string | undefined;
488
+ };
489
+ } | undefined;
490
+ "AWS::Amplify::Function"?: {
491
+ version: "1";
492
+ payload: {
493
+ definedFunctions: string;
494
+ };
495
+ } | undefined;
496
+ "AWS::Amplify::AI::Conversation"?: {
497
+ version: "1";
498
+ payload: {
499
+ definedConversationHandlers: string;
500
+ };
501
+ } | undefined;
502
+ }>;
503
+ /**
504
+ * This type is a subset of the BackendOutput type that is exposed by the platform.
505
+ * It represents BackendOutput that has been validated against the schema of known output values
506
+ */
507
+ export type UnifiedBackendOutput = z.infer<typeof unifiedBackendOutputSchema>;
508
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,112 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw2QkFBd0I7QUFDeEIsOENBQTREO0FBQzVELGlEQUFrRTtBQUNsRSxpREFBa0U7QUFDbEUsK0NBQThEO0FBQzlELHFDQUF1RDtBQUN2RCxrREFBb0U7QUFDcEUseURBQWlGO0FBRWpGOzs7O0dBSUc7QUFFSDs7R0FFRztBQUVVLFFBQUEsaUJBQWlCLEdBQUcsd0JBQXdCLENBQUM7QUFFMUQsc0RBQW9DO0FBRXBDOztHQUVHO0FBRVUsUUFBQSxlQUFlLEdBQUcsc0JBQXNCLENBQUM7QUFFdEQsb0RBQWtDO0FBRWxDOztHQUVHO0FBRUg7O0dBRUc7QUFDSCxrREFBZ0M7QUFFaEM7O0dBRUc7QUFDVSxRQUFBLGFBQWEsR0FBRyxvQkFBb0IsQ0FBQztBQUVsRDs7R0FFRztBQUVIOztHQUVHO0FBQ0gscURBQW1DO0FBRW5DOztHQUVHO0FBQ1UsUUFBQSxnQkFBZ0IsR0FBRyx1QkFBdUIsQ0FBQztBQUV4RDs7R0FFRztBQUVIOztHQUVHO0FBQ0gscURBQW1DO0FBRW5DOztHQUVHO0FBQ1UsUUFBQSxnQkFBZ0IsR0FBRyx1QkFBdUIsQ0FBQztBQUV4RDs7R0FFRztBQUVIO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lcHJlc2VudHMgQmFja2VuZE91dHB1dCB0aGF0IGhhcyBiZWVuIHZhbGlkYXRlZCBhZ2FpbnN0IHRoZSBzY2hlbWEgb2Yga25vd24gb3V0cHV0IHZhbHVlc1xuICovXG5leHBvcnQgdHlwZSBVbmlmaWVkQmFja2VuZE91dHB1dCA9IHouaW5mZXI8dHlwZW9mIHVuaWZpZWRCYWNrZW5kT3V0cHV0U2NoZW1hPjtcbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './stack_metadata_schemas.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
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=