@aws-sdk/client-amplifyuibuilder 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 (52) hide show
  1. package/dist-cjs/index.js +1806 -1860
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/AmplifyUIBuilderClient.js +2 -0
  4. package/dist-es/commands/CreateComponentCommand.js +3 -9
  5. package/dist-es/commands/CreateFormCommand.js +3 -9
  6. package/dist-es/commands/CreateThemeCommand.js +3 -9
  7. package/dist-es/commands/DeleteComponentCommand.js +3 -9
  8. package/dist-es/commands/DeleteFormCommand.js +3 -9
  9. package/dist-es/commands/DeleteThemeCommand.js +3 -9
  10. package/dist-es/commands/ExchangeCodeForTokenCommand.js +3 -10
  11. package/dist-es/commands/ExportComponentsCommand.js +3 -9
  12. package/dist-es/commands/ExportFormsCommand.js +3 -9
  13. package/dist-es/commands/ExportThemesCommand.js +3 -9
  14. package/dist-es/commands/GetCodegenJobCommand.js +3 -9
  15. package/dist-es/commands/GetComponentCommand.js +3 -9
  16. package/dist-es/commands/GetFormCommand.js +3 -9
  17. package/dist-es/commands/GetMetadataCommand.js +3 -9
  18. package/dist-es/commands/GetThemeCommand.js +3 -9
  19. package/dist-es/commands/ListCodegenJobsCommand.js +3 -9
  20. package/dist-es/commands/ListComponentsCommand.js +3 -9
  21. package/dist-es/commands/ListFormsCommand.js +3 -9
  22. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  23. package/dist-es/commands/ListThemesCommand.js +3 -9
  24. package/dist-es/commands/PutMetadataFlagCommand.js +3 -9
  25. package/dist-es/commands/RefreshTokenCommand.js +3 -10
  26. package/dist-es/commands/StartCodegenJobCommand.js +3 -9
  27. package/dist-es/commands/TagResourceCommand.js +3 -9
  28. package/dist-es/commands/UntagResourceCommand.js +3 -9
  29. package/dist-es/commands/UpdateComponentCommand.js +3 -9
  30. package/dist-es/commands/UpdateFormCommand.js +3 -9
  31. package/dist-es/commands/UpdateThemeCommand.js +3 -9
  32. package/dist-es/models/models_0.js +0 -28
  33. package/dist-es/runtimeConfig.shared.js +2 -0
  34. package/dist-es/schemas/schemas_0.js +1744 -0
  35. package/dist-types/AmplifyUIBuilderClient.d.ts +10 -1
  36. package/dist-types/models/models_0.d.ts +0 -24
  37. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  38. package/dist-types/runtimeConfig.d.ts +1 -0
  39. package/dist-types/runtimeConfig.native.d.ts +1 -0
  40. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  41. package/dist-types/schemas/schemas_0.d.ts +201 -0
  42. package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +4 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +0 -18
  44. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  45. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  46. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  47. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  48. package/dist-types/ts3.4/schemas/schemas_0.d.ts +208 -0
  49. package/package.json +5 -6
  50. package/dist-es/protocols/Aws_restJson1.js +0 -1614
  51. package/dist-types/protocols/Aws_restJson1.d.ts +0 -254
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -341
@@ -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_StartCodegenJobCommand, se_StartCodegenJobCommand } from "../protocols/Aws_restJson1";
4
+ import { StartCodegenJob } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartCodegenJobCommand 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("AmplifyUIBuilder", "StartCodegenJob", {})
17
13
  .n("AmplifyUIBuilderClient", "StartCodegenJobCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartCodegenJobCommand)
20
- .de(de_StartCodegenJobCommand)
14
+ .sc(StartCodegenJob)
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_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand 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("AmplifyUIBuilder", "TagResource", {})
17
13
  .n("AmplifyUIBuilderClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
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_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand 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("AmplifyUIBuilder", "UntagResource", {})
17
13
  .n("AmplifyUIBuilderClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
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_UpdateComponentCommand, se_UpdateComponentCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateComponent } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateComponentCommand 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("AmplifyUIBuilder", "UpdateComponent", {})
17
13
  .n("AmplifyUIBuilderClient", "UpdateComponentCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateComponentCommand)
20
- .de(de_UpdateComponentCommand)
14
+ .sc(UpdateComponent)
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_UpdateFormCommand, se_UpdateFormCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateForm } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateFormCommand 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("AmplifyUIBuilder", "UpdateForm", {})
17
13
  .n("AmplifyUIBuilderClient", "UpdateFormCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateFormCommand)
20
- .de(de_UpdateFormCommand)
14
+ .sc(UpdateForm)
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_UpdateThemeCommand, se_UpdateThemeCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateTheme } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateThemeCommand 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("AmplifyUIBuilder", "UpdateTheme", {})
17
13
  .n("AmplifyUIBuilderClient", "UpdateThemeCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateThemeCommand)
20
- .de(de_UpdateThemeCommand)
14
+ .sc(UpdateTheme)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { AmplifyUIBuilderServiceException as __BaseException } from "./AmplifyUIBuilderServiceException";
3
2
  export const CodegenJobGenericDataSourceType = {
4
3
  DATA_STORE: "DataStore",
@@ -204,30 +203,3 @@ export class UnauthorizedException extends __BaseException {
204
203
  Object.setPrototypeOf(this, UnauthorizedException.prototype);
205
204
  }
206
205
  }
207
- export const ExchangeCodeForTokenRequestBodyFilterSensitiveLog = (obj) => ({
208
- ...obj,
209
- ...(obj.code && { code: SENSITIVE_STRING }),
210
- ...(obj.clientId && { clientId: SENSITIVE_STRING }),
211
- });
212
- export const ExchangeCodeForTokenRequestFilterSensitiveLog = (obj) => ({
213
- ...obj,
214
- ...(obj.request && { request: ExchangeCodeForTokenRequestBodyFilterSensitiveLog(obj.request) }),
215
- });
216
- export const ExchangeCodeForTokenResponseFilterSensitiveLog = (obj) => ({
217
- ...obj,
218
- ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
219
- ...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
220
- });
221
- export const RefreshTokenRequestBodyFilterSensitiveLog = (obj) => ({
222
- ...obj,
223
- ...(obj.token && { token: SENSITIVE_STRING }),
224
- ...(obj.clientId && { clientId: SENSITIVE_STRING }),
225
- });
226
- export const RefreshTokenRequestFilterSensitiveLog = (obj) => ({
227
- ...obj,
228
- ...(obj.refreshTokenBody && { refreshTokenBody: RefreshTokenRequestBodyFilterSensitiveLog(obj.refreshTokenBody) }),
229
- });
230
- export const RefreshTokenResponseFilterSensitiveLog = (obj) => ({
231
- ...obj,
232
- ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
233
- });
@@ -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.amplifyuibuilder" }),
25
27
  serviceId: config?.serviceId ?? "AmplifyUIBuilder",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,