@aws-amplify/graphql-api-construct 1.12.0-gen2-migration.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (399) hide show
  1. package/.jsii +496 -215
  2. package/API.md +3 -11
  3. package/CHANGELOG.md +39 -3
  4. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  5. package/lib/amplify-graphql-api.js +9 -10
  6. package/lib/amplify-graphql-definition.js +1 -1
  7. package/lib/model-datasource-strategy-types.d.ts +1 -19
  8. package/lib/model-datasource-strategy-types.js +1 -1
  9. package/lib/sql-model-datasource-strategy.js +1 -1
  10. package/lib/types.d.ts +11 -2
  11. package/lib/types.js +1 -1
  12. package/node_modules/@aws-amplify/ai-constructs/README.md +66 -0
  13. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.d.ts +28 -0
  14. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.js +74 -0
  15. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.d.ts +3 -0
  16. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.js +6 -0
  17. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +30 -0
  18. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +191 -0
  19. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +30 -0
  20. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +47 -0
  21. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +18 -0
  22. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +66 -0
  23. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/default_handler.d.ts +8 -0
  24. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/default_handler.js +10 -0
  25. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/event_tools_provider.d.ts +15 -0
  26. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/event_tools_provider.js +32 -0
  27. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_query_factory.d.ts +9 -0
  28. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_query_factory.js +44 -0
  29. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.d.ts +22 -0
  30. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.js +48 -0
  31. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/index.d.ts +3 -0
  32. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/index.js +6 -0
  33. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/types.d.ts +3 -0
  34. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/types.js +3 -0
  35. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.d.ts +4 -0
  36. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.js +6 -0
  37. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +61 -0
  38. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +3 -0
  39. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/test-assets/custom_handler.d.ts +5 -0
  40. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/test-assets/custom_handler.js +11 -0
  41. package/node_modules/@aws-amplify/ai-constructs/lib/index.d.ts +3 -0
  42. package/node_modules/@aws-amplify/ai-constructs/lib/index.internal.d.ts +4 -0
  43. package/node_modules/@aws-amplify/ai-constructs/lib/index.internal.js +34 -0
  44. package/node_modules/@aws-amplify/ai-constructs/lib/index.js +29 -0
  45. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/README.md +9 -0
  46. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.d.ts +4 -0
  47. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.js +3 -0
  48. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.d.ts +66 -0
  49. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.js +3 -0
  50. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.d.ts +5 -0
  51. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.js +3 -0
  52. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.d.ts +56 -0
  53. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.js +3 -0
  54. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.d.ts +6 -0
  55. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.js +3 -0
  56. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.d.ts +22 -0
  57. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.js +3 -0
  58. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.d.ts +8 -0
  59. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.js +3 -0
  60. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.d.ts +7 -0
  61. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.js +3 -0
  62. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.d.ts +35 -0
  63. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.js +3 -0
  64. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.d.ts +24 -0
  65. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.js +3 -0
  66. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.d.ts +17 -0
  67. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.js +3 -0
  68. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.d.ts +8 -0
  69. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.js +3 -0
  70. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.d.ts +8 -0
  71. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.js +3 -0
  72. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.d.ts +14 -0
  73. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.js +3 -0
  74. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.d.ts +23 -0
  75. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.js +39 -0
  76. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.d.ts +11 -0
  77. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.js +3 -0
  78. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.d.ts +10 -0
  79. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.js +3 -0
  80. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.d.ts +16 -0
  81. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.js +3 -0
  82. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.d.ts +27 -0
  83. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.js +3 -0
  84. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.d.ts +10 -0
  85. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.js +3 -0
  86. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.d.ts +10 -0
  87. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.js +3 -0
  88. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.d.ts +5 -0
  89. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.js +3 -0
  90. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.d.ts +4 -0
  91. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.js +3 -0
  92. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/package.json +24 -0
  93. package/node_modules/@aws-amplify/ai-constructs/package.json +37 -0
  94. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +27 -1
  95. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
  96. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +6 -1
  97. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
  98. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +27 -21
  99. package/node_modules/@aws-amplify/graphql-conversation-transformer/API.md +33 -0
  100. package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +10 -0
  101. package/node_modules/@aws-amplify/graphql-conversation-transformer/LICENSE +201 -0
  102. package/node_modules/@aws-amplify/graphql-conversation-transformer/README.md +145 -0
  103. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts +13 -0
  104. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts.map +1 -0
  105. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +111 -0
  106. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -0
  107. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.d.ts +10 -0
  108. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.d.ts.map +1 -0
  109. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.js +81 -0
  110. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.js.map +1 -0
  111. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts +39 -0
  112. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts.map +1 -0
  113. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js +35 -0
  114. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js.map +1 -0
  115. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.d.ts +2 -0
  116. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.d.ts.map +1 -0
  117. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.js +6 -0
  118. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.js.map +1 -0
  119. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.d.ts +3 -0
  120. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.d.ts.map +1 -0
  121. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.js +62 -0
  122. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.js.map +1 -0
  123. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts +3 -0
  124. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts.map +1 -0
  125. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js +77 -0
  126. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js.map +1 -0
  127. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.d.ts +3 -0
  128. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.d.ts.map +1 -0
  129. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.js +57 -0
  130. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.js.map +1 -0
  131. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts +3 -0
  132. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts.map +1 -0
  133. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js +34 -0
  134. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js.map +1 -0
  135. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts +5 -0
  136. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts.map +1 -0
  137. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js +104 -0
  138. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js.map +1 -0
  139. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.d.ts +6 -0
  140. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.d.ts.map +1 -0
  141. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.js +3 -0
  142. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.js.map +1 -0
  143. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts +3 -0
  144. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts.map +1 -0
  145. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.js +59 -0
  146. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.js.map +1 -0
  147. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts +3 -0
  148. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts.map +1 -0
  149. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js +50 -0
  150. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js.map +1 -0
  151. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts +3 -0
  152. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts.map +1 -0
  153. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js +45 -0
  154. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js.map +1 -0
  155. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts +12 -0
  156. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts.map +1 -0
  157. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js +68 -0
  158. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js.map +1 -0
  159. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts +15 -0
  160. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts.map +1 -0
  161. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js +44 -0
  162. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js.map +1 -0
  163. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +20 -0
  164. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -0
  165. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +184 -0
  166. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -0
  167. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.d.ts +5 -0
  168. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.d.ts.map +1 -0
  169. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.js +81 -0
  170. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.js.map +1 -0
  171. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.d.ts +25 -0
  172. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.d.ts.map +1 -0
  173. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.js +116 -0
  174. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.js.map +1 -0
  175. package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +82 -0
  176. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +25 -1
  177. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +19 -13
  178. package/node_modules/@aws-amplify/graphql-directives/API.md +6 -0
  179. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +14 -0
  180. package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
  181. package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.d.ts +3 -0
  182. package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.d.ts.map +1 -0
  183. package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js +31 -0
  184. package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js.map +1 -0
  185. package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.d.ts +3 -0
  186. package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.d.ts.map +1 -0
  187. package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.js +24 -0
  188. package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.js.map +1 -0
  189. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts +2 -0
  190. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts.map +1 -1
  191. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js +5 -1
  192. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js.map +1 -1
  193. package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts.map +1 -1
  194. package/node_modules/@aws-amplify/graphql-directives/lib/index.js +2 -0
  195. package/node_modules/@aws-amplify/graphql-directives/lib/index.js.map +1 -1
  196. package/node_modules/@aws-amplify/graphql-directives/package.json +13 -6
  197. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +17 -1
  198. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +17 -13
  199. package/node_modules/@aws-amplify/graphql-generation-transformer/API.md +26 -0
  200. package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +11 -0
  201. package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +201 -0
  202. package/node_modules/@aws-amplify/graphql-generation-transformer/README.md +85 -0
  203. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.d.ts +32 -0
  204. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.d.ts.map +1 -0
  205. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.js +119 -0
  206. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.js.map +1 -0
  207. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.d.ts +2 -0
  208. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.d.ts.map +1 -0
  209. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.js +6 -0
  210. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.js.map +1 -0
  211. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.d.ts +7 -0
  212. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.d.ts.map +1 -0
  213. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js +72 -0
  214. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js.map +1 -0
  215. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.d.ts +5 -0
  216. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.d.ts.map +1 -0
  217. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.js +78 -0
  218. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.js.map +1 -0
  219. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.d.ts +27 -0
  220. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.d.ts.map +1 -0
  221. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js +31 -0
  222. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js.map +1 -0
  223. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.d.ts +4 -0
  224. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.d.ts.map +1 -0
  225. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.js +29 -0
  226. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.js.map +1 -0
  227. package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +78 -0
  228. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +17 -1
  229. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +17 -13
  230. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +25 -1
  231. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +18 -14
  232. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +27 -1
  233. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  234. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +21 -17
  235. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +27 -4
  236. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
  237. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +2 -47
  238. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
  239. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  240. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  241. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  242. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +2 -2
  243. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
  244. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +22 -4
  245. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
  246. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
  247. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +11 -11
  248. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
  249. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts +0 -2
  250. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts.map +1 -1
  251. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js +2 -4
  252. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js.map +1 -1
  253. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.d.ts +10 -4
  254. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.d.ts.map +1 -1
  255. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js +91 -37
  256. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js.map +1 -1
  257. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.d.ts +1 -1
  258. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.d.ts.map +1 -1
  259. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.js +2 -2
  260. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.js.map +1 -1
  261. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.d.ts.map +1 -1
  262. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.js +1 -3
  263. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.js.map +1 -1
  264. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts +0 -1
  265. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts.map +1 -1
  266. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js +0 -3
  267. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js.map +1 -1
  268. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +2 -2
  269. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
  270. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +21 -16
  271. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +23 -1
  272. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.d.ts.map +1 -1
  273. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js +3 -0
  274. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js.map +1 -1
  275. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  276. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +17 -13
  277. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +34 -1
  278. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
  279. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +13 -0
  280. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
  281. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.d.ts.map +1 -1
  282. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js +13 -0
  283. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js.map +1 -1
  284. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.d.ts.map +1 -1
  285. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +13 -0
  286. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
  287. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.d.ts.map +1 -1
  288. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js +7 -0
  289. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js.map +1 -1
  290. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts.map +1 -1
  291. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +7 -8
  292. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +1 -1
  293. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
  294. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +7 -1
  295. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
  296. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +19 -15
  297. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +31 -1
  298. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.d.ts.map +1 -1
  299. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +3 -0
  300. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js.map +1 -1
  301. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  302. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +22 -16
  303. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +25 -1
  304. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +18 -14
  305. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +33 -2
  306. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
  307. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +8 -2
  308. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
  309. package/node_modules/@aws-amplify/graphql-transformer/package.json +32 -23
  310. package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +8 -2
  311. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +54 -7
  312. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +20 -3
  313. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.d.ts +2 -1
  314. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.d.ts.map +1 -1
  315. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js +3 -9
  316. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js.map +1 -1
  317. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.d.ts +5 -11
  318. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.d.ts.map +1 -1
  319. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js +6 -31
  320. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js.map +1 -1
  321. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +2 -1
  322. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  323. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +8 -3
  324. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  325. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts +3 -3
  326. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts.map +1 -1
  327. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js +12 -16
  328. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js.map +1 -1
  329. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts +6 -2
  330. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts.map +1 -1
  331. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js +71 -23
  332. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js.map +1 -1
  333. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.d.ts.map +1 -1
  334. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js +1 -1
  335. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js.map +1 -1
  336. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.d.ts +20 -0
  337. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.d.ts.map +1 -0
  338. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.js +89 -0
  339. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.js.map +1 -0
  340. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.d.ts +4 -0
  341. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.d.ts.map +1 -0
  342. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.js +10 -0
  343. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.js.map +1 -0
  344. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.d.ts +21 -0
  345. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.d.ts.map +1 -0
  346. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.js +3 -0
  347. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.js.map +1 -0
  348. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.d.ts +4 -0
  349. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.d.ts.map +1 -0
  350. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.js +44 -0
  351. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.js.map +1 -0
  352. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.d.ts +21 -0
  353. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.d.ts.map +1 -0
  354. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.js +27 -0
  355. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.js.map +1 -0
  356. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +1 -2
  357. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
  358. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +1 -9
  359. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
  360. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +19 -13
  361. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +13 -23
  362. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +20 -3
  363. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts +3 -4
  364. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts.map +1 -1
  365. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.js.map +1 -1
  366. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts +1 -1
  367. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts.map +1 -1
  368. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.js.map +1 -1
  369. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +1 -6
  370. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
  371. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
  372. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts +4 -4
  373. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts.map +1 -1
  374. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts +1 -0
  375. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts.map +1 -1
  376. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transform-parameters.d.ts +1 -1
  377. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transform-parameters.d.ts.map +1 -1
  378. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +14 -7
  379. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +3 -10
  380. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/index.ts +0 -1
  381. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +0 -10
  382. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transform-host-provider.ts +5 -1
  383. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/synth-parameters.ts +1 -0
  384. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transform-parameters.ts +1 -3
  385. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  386. package/node_modules/graphql-mapping-template/CHANGELOG.md +12 -0
  387. package/node_modules/graphql-mapping-template/LICENSE +201 -0
  388. package/node_modules/graphql-mapping-template/package.json +13 -5
  389. package/node_modules/graphql-transformer-common/API.md +0 -1
  390. package/node_modules/graphql-transformer-common/CHANGELOG.md +9 -3
  391. package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts +0 -1
  392. package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts.map +1 -1
  393. package/node_modules/graphql-transformer-common/lib/ResourceConstants.js +0 -1
  394. package/node_modules/graphql-transformer-common/lib/ResourceConstants.js.map +1 -1
  395. package/node_modules/graphql-transformer-common/package.json +13 -6
  396. package/package.json +42 -31
  397. package/src/amplify-graphql-api.ts +7 -8
  398. package/src/model-datasource-strategy-types.ts +0 -21
  399. package/src/types.ts +12 -2
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "@aws-amplify/graphql-conversation-transformer",
3
+ "version": "0.2.0",
4
+ "description": "Amplify GraphQL @conversation transformer",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/aws-amplify/amplify-category-api.git",
8
+ "directory": "packages/amplify-graphql-conversation-transformer"
9
+ },
10
+ "author": "Amazon Web Services",
11
+ "license": "Apache-2.0",
12
+ "main": "lib/index.js",
13
+ "types": "lib/index.d.ts",
14
+ "keywords": [],
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "scripts": {
19
+ "build": "tsc",
20
+ "watch": "tsc -w",
21
+ "clean": "rimraf ./lib",
22
+ "test": "jest",
23
+ "extract-api": "ts-node ../../scripts/extract-api.ts"
24
+ },
25
+ "dependencies": {
26
+ "@aws-amplify/ai-constructs": "^0.1.2",
27
+ "@aws-amplify/graphql-directives": "2.1.0",
28
+ "@aws-amplify/graphql-index-transformer": "3.0.2",
29
+ "@aws-amplify/graphql-model-transformer": "3.0.2",
30
+ "@aws-amplify/graphql-relational-transformer": "3.0.2",
31
+ "@aws-amplify/graphql-transformer-core": "3.1.0",
32
+ "@aws-amplify/graphql-transformer-interfaces": "4.1.0",
33
+ "graphql": "^15.5.0",
34
+ "graphql-mapping-template": "5.0.1",
35
+ "graphql-transformer-common": "5.0.1",
36
+ "immer": "^9.0.12"
37
+ },
38
+ "devDependencies": {
39
+ "@aws-amplify/graphql-transformer-test-utils": "1.0.1"
40
+ },
41
+ "peerDependencies": {
42
+ "aws-cdk-lib": "^2.152.0",
43
+ "constructs": "^10.3.0"
44
+ },
45
+ "jest": {
46
+ "transform": {
47
+ "^.+\\.(ts|tsx)?$": "ts-jest"
48
+ },
49
+ "testRegex": "(src/__tests__/.*.test.ts)$",
50
+ "moduleFileExtensions": [
51
+ "ts",
52
+ "tsx",
53
+ "js",
54
+ "jsx",
55
+ "json",
56
+ "node"
57
+ ],
58
+ "collectCoverage": true,
59
+ "coverageProvider": "v8",
60
+ "coverageThreshold": {
61
+ "global": {
62
+ "branches": 85,
63
+ "functions": 90,
64
+ "lines": 90
65
+ }
66
+ },
67
+ "coverageReporters": [
68
+ "clover",
69
+ "text"
70
+ ],
71
+ "modulePathIgnorePatterns": [
72
+ "overrides"
73
+ ],
74
+ "collectCoverageFrom": [
75
+ "src/**/*.ts"
76
+ ],
77
+ "coveragePathIgnorePatterns": [
78
+ "/__tests__/"
79
+ ]
80
+ },
81
+ "gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
82
+ }
@@ -3,7 +3,31 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [2.3.11-gen2-migration.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.10...@aws-amplify/graphql-default-value-transformer@2.3.11-gen2-migration.0) (2024-07-15)
6
+ ## [3.0.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@3.0.1...@aws-amplify/graphql-default-value-transformer@3.0.2) (2024-09-06)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
9
+
10
+ ## [3.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@3.0.0...@aws-amplify/graphql-default-value-transformer@3.0.1) (2024-08-28)
11
+
12
+ **Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
13
+
14
+ # [3.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.13...@aws-amplify/graphql-default-value-transformer@3.0.0) (2024-08-20)
15
+
16
+ - feat!: bump version for v2 transformer packages ([7dac35c](https://github.com/aws-amplify/amplify-category-api/commit/7dac35cceb971b256b5688b0745ef82afc78b641))
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ - distinguish from LTS version
21
+
22
+ ## [2.3.13](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.12...@aws-amplify/graphql-default-value-transformer@2.3.13) (2024-08-12)
23
+
24
+ **Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
25
+
26
+ ## [2.3.12](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.11...@aws-amplify/graphql-default-value-transformer@2.3.12) (2024-07-25)
27
+
28
+ **Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
29
+
30
+ ## [2.3.11](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.10...@aws-amplify/graphql-default-value-transformer@2.3.11) (2024-07-15)
7
31
 
8
32
  **Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
9
33
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-default-value-transformer",
3
- "version": "2.3.11-gen2-migration.0",
3
+ "version": "3.0.2",
4
4
  "description": "Amplify GraphQL default value transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,8 @@
15
15
  "graphql",
16
16
  "cloudformation",
17
17
  "aws",
18
- "amplify"
18
+ "amplify",
19
+ "transformer"
19
20
  ],
20
21
  "publishConfig": {
21
22
  "access": "public"
@@ -29,23 +30,25 @@
29
30
  "extract-api": "ts-node ../../scripts/extract-api.ts"
30
31
  },
31
32
  "dependencies": {
32
- "@aws-amplify/graphql-directives": "1.1.0",
33
- "@aws-amplify/graphql-transformer-core": "2.10.0-gen2-migration.0",
34
- "@aws-amplify/graphql-transformer-interfaces": "3.11.0-gen2-migration.0",
33
+ "@aws-amplify/graphql-directives": "2.1.0",
34
+ "@aws-amplify/graphql-transformer-core": "3.1.0",
35
+ "@aws-amplify/graphql-transformer-interfaces": "4.1.0",
35
36
  "graphql": "^15.5.0",
36
- "graphql-mapping-template": "4.20.16",
37
- "graphql-transformer-common": "4.32.0-gen2-migration.0",
37
+ "graphql-mapping-template": "5.0.1",
38
+ "graphql-transformer-common": "5.0.1",
38
39
  "libphonenumber-js": "1.9.47"
39
40
  },
40
41
  "devDependencies": {
41
- "@aws-amplify/graphql-model-transformer": "2.12.0-gen2-migration.0",
42
- "@aws-amplify/graphql-transformer-test-utils": "0.5.6-gen2-migration.0"
42
+ "@aws-amplify/graphql-model-transformer": "3.0.2",
43
+ "@aws-amplify/graphql-transformer-test-utils": "1.0.1"
43
44
  },
44
45
  "jest": {
45
46
  "transform": {
46
47
  "^.+\\.tsx?$": "ts-jest"
47
48
  },
48
- "testURL": "http://localhost",
49
+ "testEnvironmentOptions": {
50
+ "url": "http://localhost"
51
+ },
49
52
  "testRegex": "(src/__tests__/.*\\.(test|spec))\\.(jsx?|tsx?)$",
50
53
  "moduleFileExtensions": [
51
54
  "ts",
@@ -68,13 +71,16 @@
68
71
  "clover",
69
72
  "text"
70
73
  ],
71
- "testEnvironment": "../../FixJestEnvironment.js",
72
74
  "collectCoverageFrom": [
73
75
  "src/**/*.ts"
74
76
  ],
75
77
  "coveragePathIgnorePatterns": [
76
78
  "/__tests__/"
77
- ]
79
+ ],
80
+ "snapshotFormat": {
81
+ "escapeString": true,
82
+ "printBasicPrototype": true
83
+ }
78
84
  },
79
- "gitHead": "95431091fe3a13ae97a1f57a0bffb23f49c7e569"
85
+ "gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
80
86
  }
@@ -40,6 +40,9 @@ export const BelongsToDirective: Directive;
40
40
  // @public (undocumented)
41
41
  export const ConnectionDirectiveV1: Directive;
42
42
 
43
+ // @public (undocumented)
44
+ export const ConversationDirective: Directive;
45
+
43
46
  // @public (undocumented)
44
47
  export const DefaultDirective: Directive;
45
48
 
@@ -69,6 +72,9 @@ export const FunctionDirective: Directive;
69
72
  // @public (undocumented)
70
73
  export const FunctionDirectiveV1: Directive;
71
74
 
75
+ // @public (undocumented)
76
+ export const GenerationDirective: Directive;
77
+
72
78
  // @public (undocumented)
73
79
  export const HasManyDirective: Directive<HasManyDirectiveDefaults>;
74
80
 
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-directives@2.0.0...@aws-amplify/graphql-directives@2.1.0) (2024-09-06)
7
+
8
+ ### Features
9
+
10
+ - **graphql-directives:** add conversation and generation directive definitions ([#2810](https://github.com/aws-amplify/amplify-category-api/issues/2810)) ([fbb9d38](https://github.com/aws-amplify/amplify-category-api/commit/fbb9d380d41a2fae5af1628b0eba00907871f014))
11
+
12
+ # [2.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-directives@1.1.0...@aws-amplify/graphql-directives@2.0.0) (2024-08-20)
13
+
14
+ - feat!: bump version for v2 transformer packages ([7dac35c](https://github.com/aws-amplify/amplify-category-api/commit/7dac35cceb971b256b5688b0745ef82afc78b641))
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ - distinguish from LTS version
19
+
6
20
  # [1.1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-directives@1.0.1...@aws-amplify/graphql-directives@1.1.0) (2024-04-26)
7
21
 
8
22
  ### Features
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2017 - 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,3 @@
1
+ import { Directive } from './directive';
2
+ export declare const ConversationDirective: Directive;
3
+ //# sourceMappingURL=conversation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/directives/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA0BxC,eAAO,MAAM,qBAAqB,EAAE,SAInC,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationDirective = void 0;
4
+ const name = 'conversation';
5
+ const definition = `
6
+ directive @${name}(
7
+ aiModel: String!
8
+ systemPrompt: String!
9
+ functionName: String
10
+ tools: [ToolMap]
11
+ inferenceConfiguration: ConversationInferenceConfiguration
12
+ ) on FIELD_DEFINITION
13
+
14
+ input ToolMap {
15
+ name: String
16
+ description: String
17
+ }
18
+
19
+ input ConversationInferenceConfiguration {
20
+ maxTokens: Int
21
+ temperature: Float
22
+ topP: Float
23
+ }
24
+ `;
25
+ const defaults = {};
26
+ exports.ConversationDirective = {
27
+ name,
28
+ definition,
29
+ defaults,
30
+ };
31
+ //# sourceMappingURL=conversation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../src/directives/conversation.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,cAAc,CAAC;AAC5B,MAAM,UAAU,GAAiB;eAClB,IAAI;;;;;;;;;;;;;;;;;;CAkBlB,CAAC;AAEF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,qBAAqB,GAAc;IAC9C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Directive } from './directive';
2
+ export declare const GenerationDirective: Directive;
3
+ //# sourceMappingURL=generation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../../src/directives/generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAmBxC,eAAO,MAAM,mBAAmB,EAAE,SAIjC,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenerationDirective = void 0;
4
+ const name = 'generation';
5
+ const definition = `
6
+ directive @${name}(
7
+ aiModel: String!
8
+ systemPrompt: String!
9
+ inferenceConfiguration: GenerationInferenceConfiguration
10
+ ) on FIELD_DEFINITION
11
+
12
+ input GenerationInferenceConfiguration {
13
+ maxTokens: Int
14
+ temperature: Float
15
+ topP: Float
16
+ }
17
+ `;
18
+ const defaults = {};
19
+ exports.GenerationDirective = {
20
+ name,
21
+ definition,
22
+ defaults,
23
+ };
24
+ //# sourceMappingURL=generation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generation.js","sourceRoot":"","sources":["../../src/directives/generation.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,YAAY,CAAC;AAC1B,MAAM,UAAU,GAAiB;eAClB,IAAI;;;;;;;;;;;CAWlB,CAAC;AAEF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,mBAAmB,GAAc;IAC5C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -5,7 +5,9 @@ export { AuthDirective } from './auth';
5
5
  export { BelongsToDirective } from './belongs-to';
6
6
  export { DefaultDirective } from './default';
7
7
  export { DeprecatedDirective } from './deprecated';
8
+ export { ConversationDirective } from './conversation';
8
9
  export { FunctionDirective } from './function';
10
+ export { GenerationDirective } from './generation';
9
11
  export { HasManyDirective, HasManyDirectiveDefaults } from './has-many';
10
12
  export { HasOneDirective } from './has-one';
11
13
  export { HttpDirective, HttpDirectiveDefaults } from './http';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/directives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChE,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/directives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChE,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC"}
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.SqlDirective = exports.SearchableDirective = exports.RefersToDirective = exports.PrimaryKeyDirective = exports.PredictionsDirective = exports.ModelDirective = exports.MapsToDirective = exports.ManyToManyDirective = exports.IndexDirective = exports.HttpDirective = exports.HasOneDirective = exports.HasManyDirective = exports.FunctionDirective = exports.DeprecatedDirective = exports.DefaultDirective = exports.BelongsToDirective = exports.AuthDirective = void 0;
17
+ exports.SqlDirective = exports.SearchableDirective = exports.RefersToDirective = exports.PrimaryKeyDirective = exports.PredictionsDirective = exports.ModelDirective = exports.MapsToDirective = exports.ManyToManyDirective = exports.IndexDirective = exports.HttpDirective = exports.HasOneDirective = exports.HasManyDirective = exports.GenerationDirective = exports.FunctionDirective = exports.ConversationDirective = exports.DeprecatedDirective = exports.DefaultDirective = exports.BelongsToDirective = exports.AuthDirective = void 0;
18
18
  __exportStar(require("./appsync"), exports);
19
19
  __exportStar(require("./v1"), exports);
20
20
  var auth_1 = require("./auth");
@@ -25,8 +25,12 @@ var default_1 = require("./default");
25
25
  Object.defineProperty(exports, "DefaultDirective", { enumerable: true, get: function () { return default_1.DefaultDirective; } });
26
26
  var deprecated_1 = require("./deprecated");
27
27
  Object.defineProperty(exports, "DeprecatedDirective", { enumerable: true, get: function () { return deprecated_1.DeprecatedDirective; } });
28
+ var conversation_1 = require("./conversation");
29
+ Object.defineProperty(exports, "ConversationDirective", { enumerable: true, get: function () { return conversation_1.ConversationDirective; } });
28
30
  var function_1 = require("./function");
29
31
  Object.defineProperty(exports, "FunctionDirective", { enumerable: true, get: function () { return function_1.FunctionDirective; } });
32
+ var generation_1 = require("./generation");
33
+ Object.defineProperty(exports, "GenerationDirective", { enumerable: true, get: function () { return generation_1.GenerationDirective; } });
30
34
  var has_many_1 = require("./has-many");
31
35
  Object.defineProperty(exports, "HasManyDirective", { enumerable: true, get: function () { return has_many_1.HasManyDirective; } });
32
36
  var has_one_1 = require("./has-one");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/directives/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,4CAA0B;AAC1B,uCAAqB;AACrB,+BAAuC;AAA9B,qGAAA,aAAa,OAAA;AACtB,2CAAkD;AAAzC,gHAAA,kBAAkB,OAAA;AAC3B,qCAA6C;AAApC,2GAAA,gBAAgB,OAAA;AACzB,2CAAmD;AAA1C,iHAAA,mBAAmB,OAAA;AAC5B,uCAA+C;AAAtC,6GAAA,iBAAiB,OAAA;AAC1B,uCAAwE;AAA/D,4GAAA,gBAAgB,OAAA;AACzB,qCAA4C;AAAnC,0GAAA,eAAe,OAAA;AACxB,+BAA8D;AAArD,qGAAA,aAAa,OAAA;AACtB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,+CAAkF;AAAzE,mHAAA,mBAAmB,OAAA;AAC5B,qCAA4C;AAAnC,0GAAA,eAAe,OAAA;AACxB,iCAAyC;AAAhC,uGAAA,cAAc,OAAA;AACvB,6CAAqD;AAA5C,mHAAA,oBAAoB,OAAA;AAC7B,6CAAoD;AAA3C,kHAAA,mBAAmB,OAAA;AAC5B,yCAAgD;AAAvC,8GAAA,iBAAiB,OAAA;AAC1B,2CAAmD;AAA1C,iHAAA,mBAAmB,OAAA;AAC5B,6BAAqC;AAA5B,mGAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/directives/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,4CAA0B;AAC1B,uCAAqB;AACrB,+BAAuC;AAA9B,qGAAA,aAAa,OAAA;AACtB,2CAAkD;AAAzC,gHAAA,kBAAkB,OAAA;AAC3B,qCAA6C;AAApC,2GAAA,gBAAgB,OAAA;AACzB,2CAAmD;AAA1C,iHAAA,mBAAmB,OAAA;AAC5B,+CAAuD;AAA9C,qHAAA,qBAAqB,OAAA;AAC9B,uCAA+C;AAAtC,6GAAA,iBAAiB,OAAA;AAC1B,2CAAmD;AAA1C,iHAAA,mBAAmB,OAAA;AAC5B,uCAAwE;AAA/D,4GAAA,gBAAgB,OAAA;AACzB,qCAA4C;AAAnC,0GAAA,eAAe,OAAA;AACxB,+BAA8D;AAArD,qGAAA,aAAa,OAAA;AACtB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,+CAAkF;AAAzE,mHAAA,mBAAmB,OAAA;AAC5B,qCAA4C;AAAnC,0GAAA,eAAe,OAAA;AACxB,iCAAyC;AAAhC,uGAAA,cAAc,OAAA;AACvB,6CAAqD;AAA5C,mHAAA,oBAAoB,OAAA;AAC7B,6CAAoD;AAA3C,kHAAA,mBAAmB,OAAA;AAC5B,yCAAgD;AAAvC,8GAAA,iBAAiB,OAAA;AAC1B,2CAAmD;AAA1C,iHAAA,mBAAmB,OAAA;AAC5B,6BAAqC;AAA5B,mGAAA,YAAY,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAqC9C,eAAO,MAAM,iBAAiB,EAAE,SAAS,SAAS,EAQjD,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAkB5C,CAAC;AAKF,eAAO,MAAM,iBAAiB,EAAE,SAAS,SAAS,EAA2C,CAAC;AAE9F,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAU5C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAuC9C,eAAO,MAAM,iBAAiB,EAAE,SAAS,SAAS,EAQjD,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAoB5C,CAAC;AAKF,eAAO,MAAM,iBAAiB,EAAE,SAAS,SAAS,EAA2C,CAAC;AAE9F,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAU5C,CAAC"}
@@ -31,7 +31,9 @@ exports.V2Directives = [
31
31
  directives_1.BelongsToDirective,
32
32
  directives_1.DefaultDirective,
33
33
  directives_1.DeprecatedDirective,
34
+ directives_1.ConversationDirective,
34
35
  directives_1.FunctionDirective,
36
+ directives_1.GenerationDirective,
35
37
  directives_1.HasManyDirective,
36
38
  directives_1.HasOneDirective,
37
39
  directives_1.HttpDirective,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAE7B,6CAkCsB;AAET,QAAA,iBAAiB,GAAyB;IACrD,+BAAkB;IAClB,6BAAgB;IAChB,yCAA4B;IAC5B,4BAAe;IACf,+BAAkB;IAClB,6BAAgB;IAChB,kCAAqB;CACtB,CAAC;AAGW,QAAA,YAAY,GAAyB;IAChD,0BAAa;IACb,+BAAkB;IAClB,6BAAgB;IAChB,gCAAmB;IACnB,8BAAiB;IACjB,6BAAgB;IAChB,4BAAe;IACf,0BAAa;IACb,2BAAc;IACd,gCAAmB;IACnB,4BAAe;IACf,2BAAc;IACd,iCAAoB;IACpB,gCAAmB;IACnB,8BAAiB;IACjB,gCAAmB;IACnB,yBAAY;CACb,CAAC;AAKW,QAAA,iBAAiB,GAAyB,yBAAiB,CAAC,MAAM,CAAC,oBAAY,CAAC,CAAC;AAEjF,QAAA,YAAY,GAAyB;IAChD,4BAAe;IACf,kCAAqB;IACrB,gCAAmB;IACnB,4BAAe;IACf,2BAAc;IACd,6BAAgB;IAChB,mCAAsB;IACtB,kCAAqB;IACrB,iCAAoB;CACrB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAE7B,6CAoCsB;AAET,QAAA,iBAAiB,GAAyB;IACrD,+BAAkB;IAClB,6BAAgB;IAChB,yCAA4B;IAC5B,4BAAe;IACf,+BAAkB;IAClB,6BAAgB;IAChB,kCAAqB;CACtB,CAAC;AAGW,QAAA,YAAY,GAAyB;IAChD,0BAAa;IACb,+BAAkB;IAClB,6BAAgB;IAChB,gCAAmB;IACnB,kCAAqB;IACrB,8BAAiB;IACjB,gCAAmB;IACnB,6BAAgB;IAChB,4BAAe;IACf,0BAAa;IACb,2BAAc;IACd,gCAAmB;IACnB,4BAAe;IACf,2BAAc;IACd,iCAAoB;IACpB,gCAAmB;IACnB,8BAAiB;IACjB,gCAAmB;IACnB,yBAAY;CACb,CAAC;AAKW,QAAA,iBAAiB,GAAyB,yBAAiB,CAAC,MAAM,CAAC,oBAAY,CAAC,CAAC;AAEjF,QAAA,YAAY,GAAyB;IAChD,4BAAe;IACf,kCAAqB;IACrB,gCAAmB;IACnB,4BAAe;IACf,2BAAc;IACd,6BAAgB;IAChB,mCAAsB;IACtB,kCAAqB;IACrB,iCAAoB;CACrB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-directives",
3
- "version": "1.1.0",
3
+ "version": "2.1.0",
4
4
  "description": "Directive definitions for Amplify GraphQL transformers.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,8 @@
14
14
  "keywords": [
15
15
  "graphql",
16
16
  "aws",
17
- "amplify"
17
+ "amplify",
18
+ "directives"
18
19
  ],
19
20
  "publishConfig": {
20
21
  "access": "public"
@@ -30,7 +31,9 @@
30
31
  "transform": {
31
32
  "^.+\\.tsx?$": "ts-jest"
32
33
  },
33
- "testURL": "http://localhost",
34
+ "testEnvironmentOptions": {
35
+ "url": "http://localhost"
36
+ },
34
37
  "testRegex": "(src/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
35
38
  "moduleFileExtensions": [
36
39
  "ts",
@@ -53,13 +56,17 @@
53
56
  "clover",
54
57
  "text"
55
58
  ],
56
- "testEnvironment": "../../FixJestEnvironment.js",
57
59
  "collectCoverageFrom": [
58
60
  "src/**/*.ts"
59
61
  ],
60
62
  "coveragePathIgnorePatterns": [
61
63
  "/__tests__/",
62
64
  "src/directives/directive.ts"
63
- ]
64
- }
65
+ ],
66
+ "snapshotFormat": {
67
+ "escapeString": true,
68
+ "printBasicPrototype": true
69
+ }
70
+ },
71
+ "gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
65
72
  }