@aws-amplify/graphql-api-construct 1.14.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +91 -34
- package/CHANGELOG.md +11 -0
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +1 -1
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/internal/authorization-modes.js +3 -3
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +3 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +8 -5
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.d.ts +44 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +173 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +10 -3
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +10 -23
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.d.ts +5 -5
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.js +9 -24
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.d.ts +21 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.js +45 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +11 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/package.json +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +2 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +18 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +13 -13
- package/node_modules/@aws-amplify/graphql-conversation-transformer/API.md +2 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +11 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +2 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js +2 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver-fn.template.js +16 -33
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js +10 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver-fn.template.js +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts +2 -3
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js +10 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver-fn.template.js +14 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts +2 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js +15 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver-fn.template.js +8 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/{message-history-resolver.js → list-messages-init-resolver.js} +6 -6
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/list-messages-init-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver-fn.template.js +2 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js +23 -5
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js +4 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +4 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +50 -30
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +12 -11
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js +19 -7
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.js +1 -1
- package/node_modules/@aws-amplify/graphql-directives/package.json +3 -2
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +7 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock-resolver-fn.template.js +24 -9
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js +11 -1
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js +2 -1
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +8 -8
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +11 -11
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/dynamodb/query.js +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/dynamodb/query.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +9 -9
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +8 -8
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +8 -8
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +19 -19
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +13 -7
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +4 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts +9 -9
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +13 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -23
- package/src/internal/authorization-modes.ts +2 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver-fn.template.js +0 -40
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.js.map +0 -1
@@ -8,16 +8,25 @@ const graphql_mapping_template_1 = require("graphql-mapping-template");
|
|
8
8
|
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
9
9
|
const validators_1 = require("./validators");
|
10
10
|
const nonStringTypes = ['Int', 'Float', 'Boolean', 'AWSTimestamp', 'AWSJSON'];
|
11
|
-
const validateFieldType = (ctx,
|
11
|
+
const validateFieldType = (ctx, config) => {
|
12
|
+
var _a, _b;
|
13
|
+
const type = config.field.type;
|
14
|
+
const argc = (_b = (_a = config.directive.arguments) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
12
15
|
const enums = ctx.output.getTypeDefinitionsOfKind(graphql_1.Kind.ENUM_TYPE_DEFINITION);
|
13
16
|
if ((0, graphql_transformer_common_1.isListType)(type) || !(0, graphql_transformer_common_1.isScalarOrEnum)(type, enums)) {
|
14
17
|
throw new graphql_transformer_core_1.InvalidDirectiveError('The @default directive may only be added to scalar or enum field types.');
|
15
18
|
}
|
19
|
+
if ((0, graphql_transformer_core_1.isPostgresModel)(ctx, config.object.name.value) && argc === 0 && (0, graphql_transformer_common_1.getBaseType)(type) !== 'Int') {
|
20
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError('The @default directive requires a value property on non-Int types.');
|
21
|
+
}
|
16
22
|
};
|
17
|
-
const validateDirectiveArguments = (
|
18
|
-
|
19
|
-
|
20
|
-
|
23
|
+
const validateDirectiveArguments = (ctx, config) => {
|
24
|
+
var _a, _b;
|
25
|
+
const argc = (_b = (_a = config.directive.arguments) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
26
|
+
const isPostgres = (0, graphql_transformer_core_1.isPostgresModel)(ctx, config.object.name.value);
|
27
|
+
if (!isPostgres && argc === 0)
|
28
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError('The @default directive requires a value property on non-Postgres datasources.');
|
29
|
+
if (argc > 1)
|
21
30
|
throw new graphql_transformer_core_1.InvalidDirectiveError('The @default directive only takes a value property');
|
22
31
|
};
|
23
32
|
const validateModelDirective = (config) => {
|
@@ -43,8 +52,8 @@ const validateDefaultValueType = (ctx, config) => {
|
|
43
52
|
};
|
44
53
|
const validate = (ctx, config) => {
|
45
54
|
validateModelDirective(config);
|
46
|
-
validateFieldType(ctx, config
|
47
|
-
validateDirectiveArguments(config
|
55
|
+
validateFieldType(ctx, config);
|
56
|
+
validateDirectiveArguments(ctx, config);
|
48
57
|
const isDynamoDB = (0, graphql_transformer_core_1.isDynamoDbModel)(ctx, config.object.name.value);
|
49
58
|
if (isDynamoDB) {
|
50
59
|
validateDefaultValueType(ctx, config);
|
@@ -74,6 +83,9 @@ class DefaultValueTransformer extends graphql_transformer_core_1.TransformerPlug
|
|
74
83
|
const input = graphql_transformer_core_1.InputObjectDefinitionWrapper.fromObject(name, config.object, ctx.inputDocument);
|
75
84
|
const fieldWrapper = input.fields.find((f) => f.name === config.field.name.value);
|
76
85
|
fieldWrapper === null || fieldWrapper === void 0 ? void 0 : fieldWrapper.makeNullable();
|
86
|
+
if ((0, graphql_transformer_core_1.isPostgresModel)(ctx, typeName)) {
|
87
|
+
ctx.output.updateInput(input.serialize());
|
88
|
+
}
|
77
89
|
}
|
78
90
|
}
|
79
91
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-default-value-transformer.js","sourceRoot":"","sources":["../src/graphql-default-value-transformer.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"graphql-default-value-transformer.js","sourceRoot":"","sources":["../src/graphql-default-value-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAS+C;AAO/C,wEAAmE;AACnE,qCAQiB;AACjB,uEAAuF;AACvF,2EAA4H;AAE5H,6CAA8C;AAE9C,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;AAE9E,MAAM,iBAAiB,GAAG,CAAC,GAA8C,EAAE,MAA0C,EAAQ,EAAE;;IAC7H,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;IAC/B,MAAM,IAAI,GAAG,MAAA,MAAA,MAAM,CAAC,SAAS,CAAC,SAAS,0CAAE,MAAM,mCAAI,CAAC,CAAC;IACrD,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,wBAAwB,CAAC,cAAI,CAAC,oBAAoB,CAA6B,CAAC;IACzG,IAAI,IAAA,uCAAU,EAAC,IAAI,CAAC,IAAI,CAAC,IAAA,2CAAc,EAAC,IAAI,EAAE,KAAK,CAAC,EAAE;QACpD,MAAM,IAAI,gDAAqB,CAAC,yEAAyE,CAAC,CAAC;KAC5G;IACD,IAAI,IAAA,0CAAe,EAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,IAAA,wCAAW,EAAC,IAAI,CAAC,KAAK,KAAK,EAAE;QAC/F,MAAM,IAAI,gDAAqB,CAAC,oEAAoE,CAAC,CAAC;KACvG;AACH,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,G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AC1E,CAAC,CAAC;QAEM,6BAAwB,GAAG,CAAC,QAAqC,EAAE,QAAkB,EAAQ,EAAE;YACrG,MAAM,GAAG,GAAG,QAAe,CAAC;YAC5B,GAAG,CAAC,oBAAoB,CACtB,MAAM,EACN,0CAAe,CAAC,2BAA2B,CAEzC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,EAC5B,GAAG,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,SAAS,iCAAiC,CAClE,CACF,CAAC;QACJ,CAAC,CAAC;IArGF,CAAC;CAsGF;AA3GD,0DA2GC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-default-value-transformer",
|
3
|
-
"version": "3.0
|
3
|
+
"version": "3.1.0",
|
4
4
|
"description": "Amplify GraphQL default value transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -30,17 +30,17 @@
|
|
30
30
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@aws-amplify/graphql-directives": "2.
|
34
|
-
"@aws-amplify/graphql-transformer-core": "3.
|
35
|
-
"@aws-amplify/graphql-transformer-interfaces": "4.1.
|
33
|
+
"@aws-amplify/graphql-directives": "2.3.0",
|
34
|
+
"@aws-amplify/graphql-transformer-core": "3.2.0",
|
35
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.2",
|
36
36
|
"graphql": "^15.5.0",
|
37
37
|
"graphql-mapping-template": "5.0.1",
|
38
38
|
"graphql-transformer-common": "5.0.1",
|
39
39
|
"libphonenumber-js": "1.9.47"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
|
-
"@aws-amplify/graphql-model-transformer": "3.0.
|
43
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.
|
42
|
+
"@aws-amplify/graphql-model-transformer": "3.0.5",
|
43
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.4"
|
44
44
|
},
|
45
45
|
"jest": {
|
46
46
|
"transform": {
|
@@ -75,12 +75,13 @@
|
|
75
75
|
"src/**/*.ts"
|
76
76
|
],
|
77
77
|
"coveragePathIgnorePatterns": [
|
78
|
-
"/__tests__/"
|
78
|
+
"/__tests__/",
|
79
|
+
"types.ts"
|
79
80
|
],
|
80
81
|
"snapshotFormat": {
|
81
82
|
"escapeString": true,
|
82
83
|
"printBasicPrototype": true
|
83
84
|
}
|
84
85
|
},
|
85
|
-
"gitHead": "
|
86
|
+
"gitHead": "d11c76ced9ad33acfded8863f144ae6f402d2bd1"
|
86
87
|
}
|
@@ -3,6 +3,12 @@
|
|
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.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-directives@2.2.0...@aws-amplify/graphql-directives@2.3.0) (2024-10-10)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- auto increment support ([#2883](https://github.com/aws-amplify/amplify-category-api/issues/2883)) ([4e66ac3](https://github.com/aws-amplify/amplify-category-api/commit/4e66ac3a9d276ca063c76a97aee791618b3c71ab))
|
11
|
+
|
6
12
|
# [2.2.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-directives@2.1.0...@aws-amplify/graphql-directives@2.2.0) (2024-09-16)
|
7
13
|
|
8
14
|
### 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.
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DefaultDirective = void 0;
|
4
4
|
const name = 'default';
|
5
5
|
const definition = `
|
6
|
-
directive @${name}(value: String
|
6
|
+
directive @${name}(value: String) on FIELD_DEFINITION
|
7
7
|
`;
|
8
8
|
const defaults = {};
|
9
9
|
exports.DefaultDirective = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-directives",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.3.0",
|
4
4
|
"description": "Directive definitions for Amplify GraphQL transformers.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -67,5 +67,6 @@
|
|
67
67
|
"escapeString": true,
|
68
68
|
"printBasicPrototype": true
|
69
69
|
}
|
70
|
-
}
|
70
|
+
},
|
71
|
+
"gitHead": "d11c76ced9ad33acfded8863f144ae6f402d2bd1"
|
71
72
|
}
|
@@ -3,6 +3,10 @@
|
|
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
|
+
## [3.1.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@3.1.1...@aws-amplify/graphql-function-transformer@3.1.2) (2024-10-10)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-function-transformer
|
9
|
+
|
6
10
|
## [3.1.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@3.1.0...@aws-amplify/graphql-function-transformer@3.1.1) (2024-10-01)
|
7
11
|
|
8
12
|
**Note:** Version bump only for package @aws-amplify/graphql-function-transformer
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-function-transformer",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.2",
|
4
4
|
"description": "Amplify GraphQL @function transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -29,18 +29,18 @@
|
|
29
29
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@aws-amplify/graphql-directives": "2.
|
33
|
-
"@aws-amplify/graphql-transformer-core": "3.
|
34
|
-
"@aws-amplify/graphql-transformer-interfaces": "4.1.
|
32
|
+
"@aws-amplify/graphql-directives": "2.3.0",
|
33
|
+
"@aws-amplify/graphql-transformer-core": "3.2.0",
|
34
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.2",
|
35
35
|
"graphql": "^15.5.0",
|
36
36
|
"graphql-mapping-template": "5.0.1",
|
37
37
|
"graphql-transformer-common": "5.0.1"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.
|
40
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.4"
|
41
41
|
},
|
42
42
|
"peerDependencies": {
|
43
|
-
"aws-cdk-lib": "^2.
|
43
|
+
"aws-cdk-lib": "^2.158.0",
|
44
44
|
"constructs": "^10.3.0"
|
45
45
|
},
|
46
46
|
"jest": {
|
@@ -83,5 +83,5 @@
|
|
83
83
|
"printBasicPrototype": true
|
84
84
|
}
|
85
85
|
},
|
86
|
-
"gitHead": "
|
86
|
+
"gitHead": "d11c76ced9ad33acfded8863f144ae6f402d2bd1"
|
87
87
|
}
|
@@ -3,6 +3,13 @@
|
|
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
|
+
## [0.2.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-generation-transformer@0.2.2...@aws-amplify/graphql-generation-transformer@0.2.3) (2024-10-10)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **generation:** gracefully handle stringified tool_use responses ([#2919](https://github.com/aws-amplify/amplify-category-api/issues/2919)) ([db34e42](https://github.com/aws-amplify/amplify-category-api/commit/db34e424069b9d2ebf2a51b3474d2f83644e3174))
|
11
|
+
- **generation:** remove trailing comma in inferenceConfig resolver code ([#2933](https://github.com/aws-amplify/amplify-category-api/issues/2933)) ([9dde73c](https://github.com/aws-amplify/amplify-category-api/commit/9dde73c09dd4f42c666c256c8543a6b94dc4a084))
|
12
|
+
|
6
13
|
## [0.2.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-generation-transformer@0.2.1...@aws-amplify/graphql-generation-transformer@0.2.2) (2024-10-01)
|
7
14
|
|
8
15
|
**Note:** Version bump only for package @aws-amplify/graphql-generation-transformer
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import { util } from '@aws-appsync/utils';
|
2
|
+
|
1
3
|
export function request(ctx) {
|
2
4
|
const toolConfig = [[TOOL_CONFIG]];
|
3
5
|
const prompt = [[SYSTEM_PROMPT]];
|
@@ -28,18 +30,31 @@ export function response(ctx) {
|
|
28
30
|
if (ctx.error) {
|
29
31
|
util.error(ctx.error.message, ctx.error.type);
|
30
32
|
}
|
31
|
-
const body = JSON.parse(ctx.result.body);
|
32
|
-
const { content } = body.output.message;
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
// Check for AccessDeniedException.
|
35
|
+
// This can happen if:
|
36
|
+
// 1. The Bedrock model isn't enabled in this region.
|
37
|
+
// 2. The IAM policy statement for the role assumed by the data source for this resolver doesn't include them model.
|
38
|
+
// This shouldn't happen because we're managing the policy statements.
|
39
|
+
// We're using a generic error description here (as opposed to using the response body)
|
40
|
+
// to prevent information about the system from leaking.
|
41
|
+
const errorType = ctx.result.headers['x-amzn-ErrorType'];
|
42
|
+
if (errorType) {
|
43
|
+
if (errorType.startsWith('AccessDeniedException')) {
|
44
|
+
const errorMessage = 'The model is disabled or this generation route is missing a necessary identity-based policy.';
|
45
|
+
util.error(errorMessage, 'AccessDeniedException');
|
46
|
+
}
|
47
|
+
|
48
|
+
util.error('', errorType);
|
36
49
|
}
|
37
50
|
|
38
|
-
const
|
39
|
-
|
40
|
-
|
51
|
+
const body = JSON.parse(ctx.result.body);
|
52
|
+
const value = body?.output?.message?.content?.[0]?.toolUse?.input?.value;
|
53
|
+
|
54
|
+
if (!value) {
|
55
|
+
util.error('Invalid Bedrock response', 'InvalidResponseException');
|
41
56
|
}
|
42
57
|
|
43
|
-
|
44
|
-
return
|
58
|
+
[[NON_STRING_RESPONSE_HANDLING]]
|
59
|
+
return value;
|
45
60
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invoke-bedrock.d.ts","sourceRoot":"","sources":["../../src/resolvers/invoke-bedrock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,qCAAqC,EAA0B,MAAM,mCAAmC,CAAC;
|
1
|
+
{"version":3,"file":"invoke-bedrock.d.ts","sourceRoot":"","sources":["../../src/resolvers/invoke-bedrock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,qCAAqC,EAA0B,MAAM,mCAAmC,CAAC;AAWlH,eAAO,MAAM,mCAAmC,WAAY,qCAAqC,KAAG,uBAyBnG,CAAC"}
|
package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js
CHANGED
@@ -7,17 +7,26 @@ exports.createInvokeBedrockResolverFunction = void 0;
|
|
7
7
|
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
9
9
|
const path_1 = __importDefault(require("path"));
|
10
|
+
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
10
11
|
const createInvokeBedrockResolverFunction = (config) => {
|
11
12
|
const { aiModel, toolConfig, inferenceConfiguration, field } = config;
|
12
13
|
const AI_MODEL = aiModel;
|
13
14
|
const TOOL_CONFIG = JSON.stringify(toolConfig);
|
14
15
|
const SYSTEM_PROMPT = JSON.stringify(config.systemPrompt);
|
15
16
|
const INFERENCE_CONFIG = getInferenceConfigResolverDefinition(inferenceConfiguration);
|
17
|
+
const NON_STRING_RESPONSE_HANDLING = stringTypedScalarTypes.includes((0, graphql_transformer_common_1.getBaseType)(config.field.type))
|
18
|
+
? ''
|
19
|
+
: `// Added for non-string scalar response types
|
20
|
+
// This catches the occasional stringified JSON response.
|
21
|
+
if (typeof value === 'string') {
|
22
|
+
return JSON.parse(value);
|
23
|
+
}`;
|
16
24
|
const resolver = generateResolver('invoke-bedrock-resolver-fn.template.js', {
|
17
25
|
AI_MODEL,
|
18
26
|
TOOL_CONFIG,
|
19
27
|
SYSTEM_PROMPT,
|
20
28
|
INFERENCE_CONFIG,
|
29
|
+
NON_STRING_RESPONSE_HANDLING,
|
21
30
|
});
|
22
31
|
const templateName = `${field.name.value}-invoke-bedrock-fn`;
|
23
32
|
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
|
@@ -33,7 +42,8 @@ const generateResolver = (fileName, values) => {
|
|
33
42
|
};
|
34
43
|
const getInferenceConfigResolverDefinition = (inferenceConfiguration) => {
|
35
44
|
return inferenceConfiguration && Object.keys(inferenceConfiguration).length > 0
|
36
|
-
? `{ inferenceConfig: ${JSON.stringify(inferenceConfiguration)} }
|
45
|
+
? `{ inferenceConfig: ${JSON.stringify(inferenceConfiguration)} }`
|
37
46
|
: 'undefined';
|
38
47
|
};
|
48
|
+
const stringTypedScalarTypes = ['String', 'ID', 'AWSJSON'];
|
39
49
|
//# sourceMappingURL=invoke-bedrock.js.map
|
package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invoke-bedrock.js","sourceRoot":"","sources":["../../src/resolvers/invoke-bedrock.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAGxE,4CAAoB;AACpB,gDAAwB;
|
1
|
+
{"version":3,"file":"invoke-bedrock.js","sourceRoot":"","sources":["../../src/resolvers/invoke-bedrock.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAGxE,4CAAoB;AACpB,gDAAwB;AACxB,2EAAyD;AAQlD,MAAM,mCAAmC,GAAG,CAAC,MAA6C,EAA2B,EAAE;IAC5H,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IACtE,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC/C,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAC1D,MAAM,gBAAgB,GAAG,oCAAoC,CAAC,sBAAs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AS,CAAC,sBAAsB,CAAC,IAAI;QAClE,CAAC,CAAC,WAAW,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/utils/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEnE,MAAM,MAAM,IAAI,GAAG;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;CACH,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,UAAU,CAAC;KAClB,CAAC;CACH,CAAC;AAiBF,eAAO,MAAM,sBAAsB,UAAW,mBAAmB,OAAO,0BAA0B,KAAG,
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/utils/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEnE,MAAM,MAAM,IAAI,GAAG;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;CACH,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,UAAU,CAAC;KAClB,CAAC;CACH,CAAC;AAiBF,eAAO,MAAM,sBAAsB,UAAW,mBAAmB,OAAO,0BAA0B,KAAG,UA8BpG,CAAC"}
|
@@ -12,11 +12,12 @@ const createResponseTypeTool = (field, ctx) => {
|
|
12
12
|
},
|
13
13
|
required: ['value'],
|
14
14
|
};
|
15
|
+
const description = 'Generate a response type for the given field.';
|
15
16
|
const tools = [
|
16
17
|
{
|
17
18
|
toolSpec: {
|
18
19
|
name: 'responseType',
|
19
|
-
description
|
20
|
+
description,
|
20
21
|
inputSchema: {
|
21
22
|
json: boxedSchema,
|
22
23
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/utils/tools.ts"],"names":[],"mappings":";;;AAEA,yEAA4E;AA2CrE,MAAM,sBAAsB,GAAG,CAAC,KAA0B,EAAE,GAA+B,EAAc,EAAE;IAChH,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACvB,MAAM,MAAM,GAAG,IAAA,yDAA8B,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAIzD,MAAM,WAAW,GAAG;QAClB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE,MAAM;SACd;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB,CAAC;
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/utils/tools.ts"],"names":[],"mappings":";;;AAEA,yEAA4E;AA2CrE,MAAM,sBAAsB,GAAG,CAAC,KAA0B,EAAE,GAA+B,EAAc,EAAE;IAChH,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACvB,MAAM,MAAM,GAAG,IAAA,yDAA8B,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAIzD,MAAM,WAAW,GAAG;QAClB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE,MAAM;SACd;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB,CAAC;IAEF,MAAM,WAAW,GAAG,+CAA+C,CAAC;IACpE,MAAM,KAAK,GAAW;QACpB;YACE,QAAQ,EAAE;gBACR,IAAI,EAAE,cAAc;gBACpB,WAAW;gBACX,WAAW,EAAE;oBACX,IAAI,EAAE,WAAW;iBAClB;aACF;SACF;KACF,CAAC;IACF,MAAM,UAAU,GAAG,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,CAAC;IACtD,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;IAEzC,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AA9BW,QAAA,sBAAsB,0BA8BjC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-generation-transformer",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.3",
|
4
4
|
"description": "Amplify GraphQL @generation transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -24,19 +24,19 @@
|
|
24
24
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-amplify/graphql-directives": "2.
|
28
|
-
"@aws-amplify/graphql-transformer-core": "3.
|
29
|
-
"@aws-amplify/graphql-transformer-interfaces": "4.1.
|
27
|
+
"@aws-amplify/graphql-directives": "2.3.0",
|
28
|
+
"@aws-amplify/graphql-transformer-core": "3.2.0",
|
29
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.2",
|
30
30
|
"graphql": "^15.5.0",
|
31
31
|
"graphql-mapping-template": "5.0.1",
|
32
32
|
"graphql-transformer-common": "5.0.1",
|
33
33
|
"immer": "^9.0.12"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.
|
36
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.4"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
39
|
-
"aws-cdk-lib": "^2.
|
39
|
+
"aws-cdk-lib": "^2.158.0",
|
40
40
|
"constructs": "^10.3.0"
|
41
41
|
},
|
42
42
|
"jest": {
|
@@ -75,5 +75,5 @@
|
|
75
75
|
"/__tests__/"
|
76
76
|
]
|
77
77
|
},
|
78
|
-
"gitHead": "
|
78
|
+
"gitHead": "d11c76ced9ad33acfded8863f144ae6f402d2bd1"
|
79
79
|
}
|
@@ -3,6 +3,10 @@
|
|
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
|
+
## [3.0.5](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@3.0.4...@aws-amplify/graphql-http-transformer@3.0.5) (2024-10-10)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|
9
|
+
|
6
10
|
## [3.0.4](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@3.0.3...@aws-amplify/graphql-http-transformer@3.0.4) (2024-10-01)
|
7
11
|
|
8
12
|
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|