@aws-sdk/client-amplifyuibuilder 3.928.0 → 3.930.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 -1902
  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 -70
  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 +16 -28
  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 -22
  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 +33 -34
  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",
@@ -27,18 +26,6 @@ export const GenericDataRelationshipType = {
27
26
  HAS_MANY: "HAS_MANY",
28
27
  HAS_ONE: "HAS_ONE",
29
28
  };
30
- export var ApiConfiguration;
31
- (function (ApiConfiguration) {
32
- ApiConfiguration.visit = (value, visitor) => {
33
- if (value.graphQLConfig !== undefined)
34
- return visitor.graphQLConfig(value.graphQLConfig);
35
- if (value.dataStoreConfig !== undefined)
36
- return visitor.dataStoreConfig(value.dataStoreConfig);
37
- if (value.noApiConfig !== undefined)
38
- return visitor.noApiConfig(value.noApiConfig);
39
- return visitor._(value.$unknown[0], value.$unknown[1]);
40
- };
41
- })(ApiConfiguration || (ApiConfiguration = {}));
42
29
  export const JSModule = {
43
30
  ES2020: "es2020",
44
31
  ESNEXT: "esnext",
@@ -52,14 +39,6 @@ export const JSTarget = {
52
39
  ES2015: "es2015",
53
40
  ES2020: "es2020",
54
41
  };
55
- export var CodegenJobRenderConfig;
56
- (function (CodegenJobRenderConfig) {
57
- CodegenJobRenderConfig.visit = (value, visitor) => {
58
- if (value.react !== undefined)
59
- return visitor.react(value.react);
60
- return visitor._(value.$unknown[0], value.$unknown[1]);
61
- };
62
- })(CodegenJobRenderConfig || (CodegenJobRenderConfig = {}));
63
42
  export const CodegenJobStatus = {
64
43
  FAILED: "failed",
65
44
  IN_PROGRESS: "in_progress",
@@ -147,18 +126,6 @@ export const TokenProviders = {
147
126
  export const FixedPosition = {
148
127
  FIRST: "first",
149
128
  };
150
- export var FieldPosition;
151
- (function (FieldPosition) {
152
- FieldPosition.visit = (value, visitor) => {
153
- if (value.fixed !== undefined)
154
- return visitor.fixed(value.fixed);
155
- if (value.rightOf !== undefined)
156
- return visitor.rightOf(value.rightOf);
157
- if (value.below !== undefined)
158
- return visitor.below(value.below);
159
- return visitor._(value.$unknown[0], value.$unknown[1]);
160
- };
161
- })(FieldPosition || (FieldPosition = {}));
162
129
  export const FormButtonsPosition = {
163
130
  BOTTOM: "bottom",
164
131
  TOP: "top",
@@ -182,16 +149,6 @@ export const LabelDecorator = {
182
149
  OPTIONAL: "optional",
183
150
  REQUIRED: "required",
184
151
  };
185
- export var FormStyleConfig;
186
- (function (FormStyleConfig) {
187
- FormStyleConfig.visit = (value, visitor) => {
188
- if (value.tokenReference !== undefined)
189
- return visitor.tokenReference(value.tokenReference);
190
- if (value.value !== undefined)
191
- return visitor.value(value.value);
192
- return visitor._(value.$unknown[0], value.$unknown[1]);
193
- };
194
- })(FormStyleConfig || (FormStyleConfig = {}));
195
152
  export class UnauthorizedException extends __BaseException {
196
153
  name = "UnauthorizedException";
197
154
  $fault = "client";
@@ -204,30 +161,3 @@ export class UnauthorizedException extends __BaseException {
204
161
  Object.setPrototypeOf(this, UnauthorizedException.prototype);
205
162
  }
206
163
  }
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,