@aws-sdk/client-appsync 3.927.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist-cjs/index.js +2888 -2933
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/AppSyncClient.js +2 -0
  4. package/dist-es/commands/AssociateApiCommand.js +3 -9
  5. package/dist-es/commands/AssociateMergedGraphqlApiCommand.js +3 -9
  6. package/dist-es/commands/AssociateSourceGraphqlApiCommand.js +3 -9
  7. package/dist-es/commands/CreateApiCacheCommand.js +3 -9
  8. package/dist-es/commands/CreateApiCommand.js +3 -9
  9. package/dist-es/commands/CreateApiKeyCommand.js +3 -9
  10. package/dist-es/commands/CreateChannelNamespaceCommand.js +3 -9
  11. package/dist-es/commands/CreateDataSourceCommand.js +3 -9
  12. package/dist-es/commands/CreateDomainNameCommand.js +3 -9
  13. package/dist-es/commands/CreateFunctionCommand.js +3 -9
  14. package/dist-es/commands/CreateGraphqlApiCommand.js +3 -9
  15. package/dist-es/commands/CreateResolverCommand.js +3 -9
  16. package/dist-es/commands/CreateTypeCommand.js +3 -9
  17. package/dist-es/commands/DeleteApiCacheCommand.js +3 -9
  18. package/dist-es/commands/DeleteApiCommand.js +3 -9
  19. package/dist-es/commands/DeleteApiKeyCommand.js +3 -9
  20. package/dist-es/commands/DeleteChannelNamespaceCommand.js +3 -9
  21. package/dist-es/commands/DeleteDataSourceCommand.js +3 -9
  22. package/dist-es/commands/DeleteDomainNameCommand.js +3 -9
  23. package/dist-es/commands/DeleteFunctionCommand.js +3 -9
  24. package/dist-es/commands/DeleteGraphqlApiCommand.js +3 -9
  25. package/dist-es/commands/DeleteResolverCommand.js +3 -9
  26. package/dist-es/commands/DeleteTypeCommand.js +3 -9
  27. package/dist-es/commands/DisassociateApiCommand.js +3 -9
  28. package/dist-es/commands/DisassociateMergedGraphqlApiCommand.js +3 -9
  29. package/dist-es/commands/DisassociateSourceGraphqlApiCommand.js +3 -9
  30. package/dist-es/commands/EvaluateCodeCommand.js +3 -9
  31. package/dist-es/commands/EvaluateMappingTemplateCommand.js +3 -9
  32. package/dist-es/commands/FlushApiCacheCommand.js +3 -9
  33. package/dist-es/commands/GetApiAssociationCommand.js +3 -9
  34. package/dist-es/commands/GetApiCacheCommand.js +3 -9
  35. package/dist-es/commands/GetApiCommand.js +3 -9
  36. package/dist-es/commands/GetChannelNamespaceCommand.js +3 -9
  37. package/dist-es/commands/GetDataSourceCommand.js +3 -9
  38. package/dist-es/commands/GetDataSourceIntrospectionCommand.js +3 -9
  39. package/dist-es/commands/GetDomainNameCommand.js +3 -9
  40. package/dist-es/commands/GetFunctionCommand.js +3 -9
  41. package/dist-es/commands/GetGraphqlApiCommand.js +3 -9
  42. package/dist-es/commands/GetGraphqlApiEnvironmentVariablesCommand.js +3 -9
  43. package/dist-es/commands/GetIntrospectionSchemaCommand.js +3 -9
  44. package/dist-es/commands/GetResolverCommand.js +3 -9
  45. package/dist-es/commands/GetSchemaCreationStatusCommand.js +3 -9
  46. package/dist-es/commands/GetSourceApiAssociationCommand.js +3 -9
  47. package/dist-es/commands/GetTypeCommand.js +3 -9
  48. package/dist-es/commands/ListApiKeysCommand.js +3 -9
  49. package/dist-es/commands/ListApisCommand.js +3 -9
  50. package/dist-es/commands/ListChannelNamespacesCommand.js +3 -9
  51. package/dist-es/commands/ListDataSourcesCommand.js +3 -9
  52. package/dist-es/commands/ListDomainNamesCommand.js +3 -9
  53. package/dist-es/commands/ListFunctionsCommand.js +3 -9
  54. package/dist-es/commands/ListGraphqlApisCommand.js +3 -9
  55. package/dist-es/commands/ListResolversByFunctionCommand.js +3 -9
  56. package/dist-es/commands/ListResolversCommand.js +3 -9
  57. package/dist-es/commands/ListSourceApiAssociationsCommand.js +3 -9
  58. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  59. package/dist-es/commands/ListTypesByAssociationCommand.js +3 -9
  60. package/dist-es/commands/ListTypesCommand.js +3 -9
  61. package/dist-es/commands/PutGraphqlApiEnvironmentVariablesCommand.js +3 -9
  62. package/dist-es/commands/StartDataSourceIntrospectionCommand.js +3 -9
  63. package/dist-es/commands/StartSchemaCreationCommand.js +3 -9
  64. package/dist-es/commands/StartSchemaMergeCommand.js +3 -9
  65. package/dist-es/commands/TagResourceCommand.js +3 -9
  66. package/dist-es/commands/UntagResourceCommand.js +3 -9
  67. package/dist-es/commands/UpdateApiCacheCommand.js +3 -9
  68. package/dist-es/commands/UpdateApiCommand.js +3 -9
  69. package/dist-es/commands/UpdateApiKeyCommand.js +3 -9
  70. package/dist-es/commands/UpdateChannelNamespaceCommand.js +3 -9
  71. package/dist-es/commands/UpdateDataSourceCommand.js +3 -9
  72. package/dist-es/commands/UpdateDomainNameCommand.js +3 -9
  73. package/dist-es/commands/UpdateFunctionCommand.js +3 -9
  74. package/dist-es/commands/UpdateGraphqlApiCommand.js +3 -9
  75. package/dist-es/commands/UpdateResolverCommand.js +3 -9
  76. package/dist-es/commands/UpdateSourceApiAssociationCommand.js +3 -9
  77. package/dist-es/commands/UpdateTypeCommand.js +3 -9
  78. package/dist-es/runtimeConfig.shared.js +2 -0
  79. package/dist-es/schemas/schemas_0.js +2716 -0
  80. package/dist-types/AppSyncClient.d.ts +10 -1
  81. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  82. package/dist-types/runtimeConfig.d.ts +1 -0
  83. package/dist-types/runtimeConfig.native.d.ts +1 -0
  84. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  85. package/dist-types/schemas/schemas_0.d.ts +321 -0
  86. package/dist-types/ts3.4/AppSyncClient.d.ts +4 -0
  87. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  88. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  89. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  90. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  91. package/dist-types/ts3.4/schemas/schemas_0.d.ts +326 -0
  92. package/package.json +5 -5
  93. package/dist-es/protocols/Aws_restJson1.js +0 -2384
  94. package/dist-types/protocols/Aws_restJson1.d.ts +0 -668
  95. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -893
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateGraphqlApiCommand, se_UpdateGraphqlApiCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateGraphqlApi } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateGraphqlApiCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSDeepdishControlPlaneService", "UpdateGraphqlApi", {})
17
13
  .n("AppSyncClient", "UpdateGraphqlApiCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateGraphqlApiCommand)
20
- .de(de_UpdateGraphqlApiCommand)
14
+ .sc(UpdateGraphqlApi)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateResolverCommand, se_UpdateResolverCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateResolver } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateResolverCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSDeepdishControlPlaneService", "UpdateResolver", {})
17
13
  .n("AppSyncClient", "UpdateResolverCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateResolverCommand)
20
- .de(de_UpdateResolverCommand)
14
+ .sc(UpdateResolver)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateSourceApiAssociationCommand, se_UpdateSourceApiAssociationCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateSourceApiAssociation } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateSourceApiAssociationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSDeepdishControlPlaneService", "UpdateSourceApiAssociation", {})
17
13
  .n("AppSyncClient", "UpdateSourceApiAssociationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateSourceApiAssociationCommand)
20
- .de(de_UpdateSourceApiAssociationCommand)
14
+ .sc(UpdateSourceApiAssociation)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateTypeCommand, se_UpdateTypeCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateType } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateTypeCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSDeepdishControlPlaneService", "UpdateType", {})
17
13
  .n("AppSyncClient", "UpdateTypeCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateTypeCommand)
20
- .de(de_UpdateTypeCommand)
14
+ .sc(UpdateType)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.appsync" }),
25
27
  serviceId: config?.serviceId ?? "AppSync",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,