@aws-sdk/client-amplifyuibuilder 3.490.0 → 3.496.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 (46) hide show
  1. package/dist-cjs/AmplifyUIBuilder.js +1 -61
  2. package/dist-cjs/AmplifyUIBuilderClient.js +1 -43
  3. package/dist-cjs/commands/CreateComponentCommand.js +1 -28
  4. package/dist-cjs/commands/CreateFormCommand.js +1 -28
  5. package/dist-cjs/commands/CreateThemeCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteComponentCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteFormCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteThemeCommand.js +1 -28
  9. package/dist-cjs/commands/ExchangeCodeForTokenCommand.js +1 -29
  10. package/dist-cjs/commands/ExportComponentsCommand.js +1 -28
  11. package/dist-cjs/commands/ExportFormsCommand.js +1 -28
  12. package/dist-cjs/commands/ExportThemesCommand.js +1 -28
  13. package/dist-cjs/commands/GetCodegenJobCommand.js +1 -28
  14. package/dist-cjs/commands/GetComponentCommand.js +1 -28
  15. package/dist-cjs/commands/GetFormCommand.js +1 -28
  16. package/dist-cjs/commands/GetMetadataCommand.js +1 -28
  17. package/dist-cjs/commands/GetThemeCommand.js +1 -28
  18. package/dist-cjs/commands/ListCodegenJobsCommand.js +1 -28
  19. package/dist-cjs/commands/ListComponentsCommand.js +1 -28
  20. package/dist-cjs/commands/ListFormsCommand.js +1 -28
  21. package/dist-cjs/commands/ListThemesCommand.js +1 -28
  22. package/dist-cjs/commands/PutMetadataFlagCommand.js +1 -28
  23. package/dist-cjs/commands/RefreshTokenCommand.js +1 -29
  24. package/dist-cjs/commands/StartCodegenJobCommand.js +1 -28
  25. package/dist-cjs/commands/UpdateComponentCommand.js +1 -28
  26. package/dist-cjs/commands/UpdateFormCommand.js +1 -28
  27. package/dist-cjs/commands/UpdateThemeCommand.js +1 -28
  28. package/dist-cjs/commands/index.js +1 -28
  29. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  30. package/dist-cjs/extensionConfiguration.js +1 -2
  31. package/dist-cjs/index.js +3155 -11
  32. package/dist-cjs/models/AmplifyUIBuilderServiceException.js +1 -12
  33. package/dist-cjs/models/index.js +1 -4
  34. package/dist-cjs/models/models_0.js +1 -245
  35. package/dist-cjs/pagination/ExportComponentsPaginator.js +1 -7
  36. package/dist-cjs/pagination/ExportFormsPaginator.js +1 -7
  37. package/dist-cjs/pagination/ExportThemesPaginator.js +1 -7
  38. package/dist-cjs/pagination/Interfaces.js +1 -2
  39. package/dist-cjs/pagination/ListCodegenJobsPaginator.js +1 -7
  40. package/dist-cjs/pagination/ListComponentsPaginator.js +1 -7
  41. package/dist-cjs/pagination/ListFormsPaginator.js +1 -7
  42. package/dist-cjs/pagination/ListThemesPaginator.js +1 -7
  43. package/dist-cjs/pagination/index.js +1 -11
  44. package/dist-cjs/protocols/Aws_restJson1.js +1 -2206
  45. package/dist-cjs/runtimeExtensions.js +1 -22
  46. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,3156 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AmplifyUIBuilderServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./AmplifyUIBuilderClient"), exports);
6
- tslib_1.__exportStar(require("./AmplifyUIBuilder"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var AmplifyUIBuilderServiceException_1 = require("./models/AmplifyUIBuilderServiceException");
12
- Object.defineProperty(exports, "AmplifyUIBuilderServiceException", { enumerable: true, get: function () { return AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AmplifyUIBuilder: () => AmplifyUIBuilder,
25
+ AmplifyUIBuilderClient: () => AmplifyUIBuilderClient,
26
+ AmplifyUIBuilderServiceException: () => AmplifyUIBuilderServiceException,
27
+ ApiConfiguration: () => ApiConfiguration,
28
+ CodegenGenericDataFieldDataType: () => CodegenGenericDataFieldDataType,
29
+ CodegenJobGenericDataSourceType: () => CodegenJobGenericDataSourceType,
30
+ CodegenJobRenderConfig: () => CodegenJobRenderConfig,
31
+ CodegenJobStatus: () => CodegenJobStatus,
32
+ CreateComponentCommand: () => CreateComponentCommand,
33
+ CreateFormCommand: () => CreateFormCommand,
34
+ CreateThemeCommand: () => CreateThemeCommand,
35
+ DeleteComponentCommand: () => DeleteComponentCommand,
36
+ DeleteFormCommand: () => DeleteFormCommand,
37
+ DeleteThemeCommand: () => DeleteThemeCommand,
38
+ ExchangeCodeForTokenCommand: () => ExchangeCodeForTokenCommand,
39
+ ExchangeCodeForTokenRequestBodyFilterSensitiveLog: () => ExchangeCodeForTokenRequestBodyFilterSensitiveLog,
40
+ ExchangeCodeForTokenRequestFilterSensitiveLog: () => ExchangeCodeForTokenRequestFilterSensitiveLog,
41
+ ExchangeCodeForTokenResponseFilterSensitiveLog: () => ExchangeCodeForTokenResponseFilterSensitiveLog,
42
+ ExportComponentsCommand: () => ExportComponentsCommand,
43
+ ExportFormsCommand: () => ExportFormsCommand,
44
+ ExportThemesCommand: () => ExportThemesCommand,
45
+ FieldPosition: () => FieldPosition,
46
+ FixedPosition: () => FixedPosition,
47
+ FormActionType: () => FormActionType,
48
+ FormButtonsPosition: () => FormButtonsPosition,
49
+ FormDataSourceType: () => FormDataSourceType,
50
+ FormStyleConfig: () => FormStyleConfig,
51
+ GenericDataRelationshipType: () => GenericDataRelationshipType,
52
+ GetCodegenJobCommand: () => GetCodegenJobCommand,
53
+ GetComponentCommand: () => GetComponentCommand,
54
+ GetFormCommand: () => GetFormCommand,
55
+ GetMetadataCommand: () => GetMetadataCommand,
56
+ GetThemeCommand: () => GetThemeCommand,
57
+ InternalServerException: () => InternalServerException,
58
+ InvalidParameterException: () => InvalidParameterException,
59
+ JSModule: () => JSModule,
60
+ JSScript: () => JSScript,
61
+ JSTarget: () => JSTarget,
62
+ LabelDecorator: () => LabelDecorator,
63
+ ListCodegenJobsCommand: () => ListCodegenJobsCommand,
64
+ ListComponentsCommand: () => ListComponentsCommand,
65
+ ListFormsCommand: () => ListFormsCommand,
66
+ ListThemesCommand: () => ListThemesCommand,
67
+ PutMetadataFlagCommand: () => PutMetadataFlagCommand,
68
+ RefreshTokenCommand: () => RefreshTokenCommand,
69
+ RefreshTokenRequestBodyFilterSensitiveLog: () => RefreshTokenRequestBodyFilterSensitiveLog,
70
+ RefreshTokenRequestFilterSensitiveLog: () => RefreshTokenRequestFilterSensitiveLog,
71
+ RefreshTokenResponseFilterSensitiveLog: () => RefreshTokenResponseFilterSensitiveLog,
72
+ ResourceConflictException: () => ResourceConflictException,
73
+ ResourceNotFoundException: () => ResourceNotFoundException,
74
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
75
+ StartCodegenJobCommand: () => StartCodegenJobCommand,
76
+ StorageAccessLevel: () => StorageAccessLevel,
77
+ ThrottlingException: () => ThrottlingException,
78
+ TokenProviders: () => TokenProviders,
79
+ UnauthorizedException: () => UnauthorizedException,
80
+ UpdateComponentCommand: () => UpdateComponentCommand,
81
+ UpdateFormCommand: () => UpdateFormCommand,
82
+ UpdateThemeCommand: () => UpdateThemeCommand,
83
+ __Client: () => import_smithy_client.Client,
84
+ paginateExportComponents: () => paginateExportComponents,
85
+ paginateExportForms: () => paginateExportForms,
86
+ paginateExportThemes: () => paginateExportThemes,
87
+ paginateListCodegenJobs: () => paginateListCodegenJobs,
88
+ paginateListComponents: () => paginateListComponents,
89
+ paginateListForms: () => paginateListForms,
90
+ paginateListThemes: () => paginateListThemes
91
+ });
92
+ module.exports = __toCommonJS(src_exports);
93
+
94
+ // src/AmplifyUIBuilderClient.ts
95
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
96
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
97
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
98
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
99
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
100
+ var import_config_resolver = require("@smithy/config-resolver");
101
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
102
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
103
+ var import_middleware_retry = require("@smithy/middleware-retry");
104
+
105
+
106
+ // src/endpoint/EndpointParameters.ts
107
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
108
+ return {
109
+ ...options,
110
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
111
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
112
+ defaultSigningName: "amplifyuibuilder"
113
+ };
114
+ }, "resolveClientEndpointParameters");
115
+ var commonParams = {
116
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
117
+ Endpoint: { type: "builtInParams", name: "endpoint" },
118
+ Region: { type: "builtInParams", name: "region" },
119
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
120
+ };
121
+
122
+ // src/AmplifyUIBuilderClient.ts
123
+ var import_runtimeConfig = require("././runtimeConfig");
124
+
125
+ // src/runtimeExtensions.ts
126
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
127
+ var import_protocol_http = require("@smithy/protocol-http");
128
+ var import_smithy_client = require("@smithy/smithy-client");
129
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
130
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
131
+ const extensionConfiguration = {
132
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
133
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
134
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
135
+ };
136
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
137
+ return {
138
+ ...runtimeConfig,
139
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
140
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
141
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
142
+ };
143
+ }, "resolveRuntimeExtensions");
144
+
145
+ // src/AmplifyUIBuilderClient.ts
146
+ var _AmplifyUIBuilderClient = class _AmplifyUIBuilderClient extends import_smithy_client.Client {
147
+ constructor(...[configuration]) {
148
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
149
+ const _config_1 = resolveClientEndpointParameters(_config_0);
150
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
151
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
152
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
153
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
154
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
155
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
156
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
157
+ super(_config_8);
158
+ this.config = _config_8;
159
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
160
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
161
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
162
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
163
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
164
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
165
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
166
+ }
167
+ /**
168
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
169
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
170
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
171
+ */
172
+ destroy() {
173
+ super.destroy();
174
+ }
175
+ };
176
+ __name(_AmplifyUIBuilderClient, "AmplifyUIBuilderClient");
177
+ var AmplifyUIBuilderClient = _AmplifyUIBuilderClient;
178
+
179
+ // src/AmplifyUIBuilder.ts
180
+
181
+
182
+ // src/commands/CreateComponentCommand.ts
183
+
184
+ var import_middleware_serde = require("@smithy/middleware-serde");
185
+
186
+ var import_types = require("@smithy/types");
187
+
188
+ // src/protocols/Aws_restJson1.ts
189
+ var import_core = require("@aws-sdk/core");
190
+ var import_core2 = require("@smithy/core");
191
+
192
+ var import_uuid = require("uuid");
193
+
194
+ // src/models/AmplifyUIBuilderServiceException.ts
195
+
196
+ var _AmplifyUIBuilderServiceException = class _AmplifyUIBuilderServiceException extends import_smithy_client.ServiceException {
197
+ /**
198
+ * @internal
199
+ */
200
+ constructor(options) {
201
+ super(options);
202
+ Object.setPrototypeOf(this, _AmplifyUIBuilderServiceException.prototype);
203
+ }
204
+ };
205
+ __name(_AmplifyUIBuilderServiceException, "AmplifyUIBuilderServiceException");
206
+ var AmplifyUIBuilderServiceException = _AmplifyUIBuilderServiceException;
207
+
208
+ // src/models/models_0.ts
209
+
210
+ var CodegenJobGenericDataSourceType = {
211
+ DATA_STORE: "DataStore"
212
+ };
213
+ var CodegenGenericDataFieldDataType = {
214
+ AWS_DATE: "AWSDate",
215
+ AWS_DATE_TIME: "AWSDateTime",
216
+ AWS_EMAIL: "AWSEmail",
217
+ AWS_IP_ADDRESS: "AWSIPAddress",
218
+ AWS_JSON: "AWSJSON",
219
+ AWS_PHONE: "AWSPhone",
220
+ AWS_TIME: "AWSTime",
221
+ AWS_TIMESTAMP: "AWSTimestamp",
222
+ AWS_URL: "AWSURL",
223
+ BOOLEAN: "Boolean",
224
+ ENUM: "Enum",
225
+ FLOAT: "Float",
226
+ ID: "ID",
227
+ INT: "Int",
228
+ MODEL: "Model",
229
+ NON_MODEL: "NonModel",
230
+ STRING: "String"
231
+ };
232
+ var GenericDataRelationshipType = {
233
+ BELONGS_TO: "BELONGS_TO",
234
+ HAS_MANY: "HAS_MANY",
235
+ HAS_ONE: "HAS_ONE"
236
+ };
237
+ var ApiConfiguration;
238
+ ((ApiConfiguration3) => {
239
+ ApiConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
240
+ if (value.graphQLConfig !== void 0)
241
+ return visitor.graphQLConfig(value.graphQLConfig);
242
+ if (value.dataStoreConfig !== void 0)
243
+ return visitor.dataStoreConfig(value.dataStoreConfig);
244
+ if (value.noApiConfig !== void 0)
245
+ return visitor.noApiConfig(value.noApiConfig);
246
+ return visitor._(value.$unknown[0], value.$unknown[1]);
247
+ }, "visit");
248
+ })(ApiConfiguration || (ApiConfiguration = {}));
249
+ var JSModule = {
250
+ ES2020: "es2020",
251
+ ESNEXT: "esnext"
252
+ };
253
+ var JSScript = {
254
+ JS: "js",
255
+ JSX: "jsx",
256
+ TSX: "tsx"
257
+ };
258
+ var JSTarget = {
259
+ ES2015: "es2015",
260
+ ES2020: "es2020"
261
+ };
262
+ var CodegenJobRenderConfig;
263
+ ((CodegenJobRenderConfig3) => {
264
+ CodegenJobRenderConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
265
+ if (value.react !== void 0)
266
+ return visitor.react(value.react);
267
+ return visitor._(value.$unknown[0], value.$unknown[1]);
268
+ }, "visit");
269
+ })(CodegenJobRenderConfig || (CodegenJobRenderConfig = {}));
270
+ var CodegenJobStatus = {
271
+ FAILED: "failed",
272
+ IN_PROGRESS: "in_progress",
273
+ SUCCEEDED: "succeeded"
274
+ };
275
+ var _InternalServerException = class _InternalServerException extends AmplifyUIBuilderServiceException {
276
+ /**
277
+ * @internal
278
+ */
279
+ constructor(opts) {
280
+ super({
281
+ name: "InternalServerException",
282
+ $fault: "server",
283
+ ...opts
284
+ });
285
+ this.name = "InternalServerException";
286
+ this.$fault = "server";
287
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
288
+ }
289
+ };
290
+ __name(_InternalServerException, "InternalServerException");
291
+ var InternalServerException = _InternalServerException;
292
+ var _InvalidParameterException = class _InvalidParameterException extends AmplifyUIBuilderServiceException {
293
+ /**
294
+ * @internal
295
+ */
296
+ constructor(opts) {
297
+ super({
298
+ name: "InvalidParameterException",
299
+ $fault: "client",
300
+ ...opts
301
+ });
302
+ this.name = "InvalidParameterException";
303
+ this.$fault = "client";
304
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
305
+ }
306
+ };
307
+ __name(_InvalidParameterException, "InvalidParameterException");
308
+ var InvalidParameterException = _InvalidParameterException;
309
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends AmplifyUIBuilderServiceException {
310
+ /**
311
+ * @internal
312
+ */
313
+ constructor(opts) {
314
+ super({
315
+ name: "ResourceNotFoundException",
316
+ $fault: "client",
317
+ ...opts
318
+ });
319
+ this.name = "ResourceNotFoundException";
320
+ this.$fault = "client";
321
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
322
+ }
323
+ };
324
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
325
+ var ResourceNotFoundException = _ResourceNotFoundException;
326
+ var _ThrottlingException = class _ThrottlingException extends AmplifyUIBuilderServiceException {
327
+ /**
328
+ * @internal
329
+ */
330
+ constructor(opts) {
331
+ super({
332
+ name: "ThrottlingException",
333
+ $fault: "client",
334
+ ...opts
335
+ });
336
+ this.name = "ThrottlingException";
337
+ this.$fault = "client";
338
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
339
+ }
340
+ };
341
+ __name(_ThrottlingException, "ThrottlingException");
342
+ var ThrottlingException = _ThrottlingException;
343
+ var _ResourceConflictException = class _ResourceConflictException extends AmplifyUIBuilderServiceException {
344
+ /**
345
+ * @internal
346
+ */
347
+ constructor(opts) {
348
+ super({
349
+ name: "ResourceConflictException",
350
+ $fault: "client",
351
+ ...opts
352
+ });
353
+ this.name = "ResourceConflictException";
354
+ this.$fault = "client";
355
+ Object.setPrototypeOf(this, _ResourceConflictException.prototype);
356
+ }
357
+ };
358
+ __name(_ResourceConflictException, "ResourceConflictException");
359
+ var ResourceConflictException = _ResourceConflictException;
360
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends AmplifyUIBuilderServiceException {
361
+ /**
362
+ * @internal
363
+ */
364
+ constructor(opts) {
365
+ super({
366
+ name: "ServiceQuotaExceededException",
367
+ $fault: "client",
368
+ ...opts
369
+ });
370
+ this.name = "ServiceQuotaExceededException";
371
+ this.$fault = "client";
372
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
373
+ }
374
+ };
375
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
376
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
377
+ var TokenProviders = {
378
+ /**
379
+ * The figma token provider.
380
+ */
381
+ FIGMA: "figma"
382
+ };
383
+ var FixedPosition = {
384
+ FIRST: "first"
385
+ };
386
+ var FieldPosition;
387
+ ((FieldPosition3) => {
388
+ FieldPosition3.visit = /* @__PURE__ */ __name((value, visitor) => {
389
+ if (value.fixed !== void 0)
390
+ return visitor.fixed(value.fixed);
391
+ if (value.rightOf !== void 0)
392
+ return visitor.rightOf(value.rightOf);
393
+ if (value.below !== void 0)
394
+ return visitor.below(value.below);
395
+ return visitor._(value.$unknown[0], value.$unknown[1]);
396
+ }, "visit");
397
+ })(FieldPosition || (FieldPosition = {}));
398
+ var FormButtonsPosition = {
399
+ BOTTOM: "bottom",
400
+ TOP: "top",
401
+ TOP_AND_BOTTOM: "top_and_bottom"
402
+ };
403
+ var FormDataSourceType = {
404
+ /**
405
+ * Will use passed in hooks to use when creating a form from scratch
406
+ */
407
+ CUSTOM: "Custom",
408
+ /**
409
+ * Will use a provided Amplify DataStore enabled API
410
+ */
411
+ DATASTORE: "DataStore"
412
+ };
413
+ var StorageAccessLevel = {
414
+ PRIVATE: "private",
415
+ PROTECTED: "protected",
416
+ PUBLIC: "public"
417
+ };
418
+ var FormActionType = {
419
+ CREATE: "create",
420
+ UPDATE: "update"
421
+ };
422
+ var LabelDecorator = {
423
+ NONE: "none",
424
+ OPTIONAL: "optional",
425
+ REQUIRED: "required"
426
+ };
427
+ var FormStyleConfig;
428
+ ((FormStyleConfig3) => {
429
+ FormStyleConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
430
+ if (value.tokenReference !== void 0)
431
+ return visitor.tokenReference(value.tokenReference);
432
+ if (value.value !== void 0)
433
+ return visitor.value(value.value);
434
+ return visitor._(value.$unknown[0], value.$unknown[1]);
435
+ }, "visit");
436
+ })(FormStyleConfig || (FormStyleConfig = {}));
437
+ var _UnauthorizedException = class _UnauthorizedException extends AmplifyUIBuilderServiceException {
438
+ /**
439
+ * @internal
440
+ */
441
+ constructor(opts) {
442
+ super({
443
+ name: "UnauthorizedException",
444
+ $fault: "client",
445
+ ...opts
446
+ });
447
+ this.name = "UnauthorizedException";
448
+ this.$fault = "client";
449
+ Object.setPrototypeOf(this, _UnauthorizedException.prototype);
450
+ }
451
+ };
452
+ __name(_UnauthorizedException, "UnauthorizedException");
453
+ var UnauthorizedException = _UnauthorizedException;
454
+ var ExchangeCodeForTokenRequestBodyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
455
+ ...obj,
456
+ ...obj.code && { code: import_smithy_client.SENSITIVE_STRING },
457
+ ...obj.clientId && { clientId: import_smithy_client.SENSITIVE_STRING }
458
+ }), "ExchangeCodeForTokenRequestBodyFilterSensitiveLog");
459
+ var ExchangeCodeForTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
460
+ ...obj,
461
+ ...obj.request && { request: ExchangeCodeForTokenRequestBodyFilterSensitiveLog(obj.request) }
462
+ }), "ExchangeCodeForTokenRequestFilterSensitiveLog");
463
+ var ExchangeCodeForTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
464
+ ...obj,
465
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
466
+ ...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING }
467
+ }), "ExchangeCodeForTokenResponseFilterSensitiveLog");
468
+ var RefreshTokenRequestBodyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
469
+ ...obj,
470
+ ...obj.token && { token: import_smithy_client.SENSITIVE_STRING },
471
+ ...obj.clientId && { clientId: import_smithy_client.SENSITIVE_STRING }
472
+ }), "RefreshTokenRequestBodyFilterSensitiveLog");
473
+ var RefreshTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
474
+ ...obj,
475
+ ...obj.refreshTokenBody && { refreshTokenBody: RefreshTokenRequestBodyFilterSensitiveLog(obj.refreshTokenBody) }
476
+ }), "RefreshTokenRequestFilterSensitiveLog");
477
+ var RefreshTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
478
+ ...obj,
479
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
480
+ }), "RefreshTokenResponseFilterSensitiveLog");
481
+
482
+ // src/protocols/Aws_restJson1.ts
483
+ var se_CreateComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
484
+ const b = (0, import_core2.requestBuilder)(input, context);
485
+ const headers = {
486
+ "content-type": "application/json"
487
+ };
488
+ b.bp("/app/{appId}/environment/{environmentName}/components");
489
+ b.p("appId", () => input.appId, "{appId}", false);
490
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
491
+ const query = (0, import_smithy_client.map)({
492
+ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
493
+ });
494
+ let body;
495
+ if (input.componentToCreate !== void 0) {
496
+ body = se_CreateComponentData(input.componentToCreate, context);
497
+ }
498
+ if (body === void 0) {
499
+ body = {};
500
+ }
501
+ body = JSON.stringify(body);
502
+ b.m("POST").h(headers).q(query).b(body);
503
+ return b.build();
504
+ }, "se_CreateComponentCommand");
505
+ var se_CreateFormCommand = /* @__PURE__ */ __name(async (input, context) => {
506
+ const b = (0, import_core2.requestBuilder)(input, context);
507
+ const headers = {
508
+ "content-type": "application/json"
509
+ };
510
+ b.bp("/app/{appId}/environment/{environmentName}/forms");
511
+ b.p("appId", () => input.appId, "{appId}", false);
512
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
513
+ const query = (0, import_smithy_client.map)({
514
+ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
515
+ });
516
+ let body;
517
+ if (input.formToCreate !== void 0) {
518
+ body = se_CreateFormData(input.formToCreate, context);
519
+ }
520
+ if (body === void 0) {
521
+ body = {};
522
+ }
523
+ body = JSON.stringify(body);
524
+ b.m("POST").h(headers).q(query).b(body);
525
+ return b.build();
526
+ }, "se_CreateFormCommand");
527
+ var se_CreateThemeCommand = /* @__PURE__ */ __name(async (input, context) => {
528
+ const b = (0, import_core2.requestBuilder)(input, context);
529
+ const headers = {
530
+ "content-type": "application/json"
531
+ };
532
+ b.bp("/app/{appId}/environment/{environmentName}/themes");
533
+ b.p("appId", () => input.appId, "{appId}", false);
534
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
535
+ const query = (0, import_smithy_client.map)({
536
+ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
537
+ });
538
+ let body;
539
+ if (input.themeToCreate !== void 0) {
540
+ body = se_CreateThemeData(input.themeToCreate, context);
541
+ }
542
+ if (body === void 0) {
543
+ body = {};
544
+ }
545
+ body = JSON.stringify(body);
546
+ b.m("POST").h(headers).q(query).b(body);
547
+ return b.build();
548
+ }, "se_CreateThemeCommand");
549
+ var se_DeleteComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
550
+ const b = (0, import_core2.requestBuilder)(input, context);
551
+ const headers = {};
552
+ b.bp("/app/{appId}/environment/{environmentName}/components/{id}");
553
+ b.p("appId", () => input.appId, "{appId}", false);
554
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
555
+ b.p("id", () => input.id, "{id}", false);
556
+ let body;
557
+ b.m("DELETE").h(headers).b(body);
558
+ return b.build();
559
+ }, "se_DeleteComponentCommand");
560
+ var se_DeleteFormCommand = /* @__PURE__ */ __name(async (input, context) => {
561
+ const b = (0, import_core2.requestBuilder)(input, context);
562
+ const headers = {};
563
+ b.bp("/app/{appId}/environment/{environmentName}/forms/{id}");
564
+ b.p("appId", () => input.appId, "{appId}", false);
565
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
566
+ b.p("id", () => input.id, "{id}", false);
567
+ let body;
568
+ b.m("DELETE").h(headers).b(body);
569
+ return b.build();
570
+ }, "se_DeleteFormCommand");
571
+ var se_DeleteThemeCommand = /* @__PURE__ */ __name(async (input, context) => {
572
+ const b = (0, import_core2.requestBuilder)(input, context);
573
+ const headers = {};
574
+ b.bp("/app/{appId}/environment/{environmentName}/themes/{id}");
575
+ b.p("appId", () => input.appId, "{appId}", false);
576
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
577
+ b.p("id", () => input.id, "{id}", false);
578
+ let body;
579
+ b.m("DELETE").h(headers).b(body);
580
+ return b.build();
581
+ }, "se_DeleteThemeCommand");
582
+ var se_ExchangeCodeForTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
583
+ const b = (0, import_core2.requestBuilder)(input, context);
584
+ const headers = {
585
+ "content-type": "application/json"
586
+ };
587
+ b.bp("/tokens/{provider}");
588
+ b.p("provider", () => input.provider, "{provider}", false);
589
+ let body;
590
+ if (input.request !== void 0) {
591
+ body = (0, import_smithy_client._json)(input.request);
592
+ }
593
+ if (body === void 0) {
594
+ body = {};
595
+ }
596
+ body = JSON.stringify(body);
597
+ b.m("POST").h(headers).b(body);
598
+ return b.build();
599
+ }, "se_ExchangeCodeForTokenCommand");
600
+ var se_ExportComponentsCommand = /* @__PURE__ */ __name(async (input, context) => {
601
+ const b = (0, import_core2.requestBuilder)(input, context);
602
+ const headers = {};
603
+ b.bp("/export/app/{appId}/environment/{environmentName}/components");
604
+ b.p("appId", () => input.appId, "{appId}", false);
605
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
606
+ const query = (0, import_smithy_client.map)({
607
+ [_nT]: [, input[_nT]]
608
+ });
609
+ let body;
610
+ b.m("GET").h(headers).q(query).b(body);
611
+ return b.build();
612
+ }, "se_ExportComponentsCommand");
613
+ var se_ExportFormsCommand = /* @__PURE__ */ __name(async (input, context) => {
614
+ const b = (0, import_core2.requestBuilder)(input, context);
615
+ const headers = {};
616
+ b.bp("/export/app/{appId}/environment/{environmentName}/forms");
617
+ b.p("appId", () => input.appId, "{appId}", false);
618
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
619
+ const query = (0, import_smithy_client.map)({
620
+ [_nT]: [, input[_nT]]
621
+ });
622
+ let body;
623
+ b.m("GET").h(headers).q(query).b(body);
624
+ return b.build();
625
+ }, "se_ExportFormsCommand");
626
+ var se_ExportThemesCommand = /* @__PURE__ */ __name(async (input, context) => {
627
+ const b = (0, import_core2.requestBuilder)(input, context);
628
+ const headers = {};
629
+ b.bp("/export/app/{appId}/environment/{environmentName}/themes");
630
+ b.p("appId", () => input.appId, "{appId}", false);
631
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
632
+ const query = (0, import_smithy_client.map)({
633
+ [_nT]: [, input[_nT]]
634
+ });
635
+ let body;
636
+ b.m("GET").h(headers).q(query).b(body);
637
+ return b.build();
638
+ }, "se_ExportThemesCommand");
639
+ var se_GetCodegenJobCommand = /* @__PURE__ */ __name(async (input, context) => {
640
+ const b = (0, import_core2.requestBuilder)(input, context);
641
+ const headers = {};
642
+ b.bp("/app/{appId}/environment/{environmentName}/codegen-jobs/{id}");
643
+ b.p("appId", () => input.appId, "{appId}", false);
644
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
645
+ b.p("id", () => input.id, "{id}", false);
646
+ let body;
647
+ b.m("GET").h(headers).b(body);
648
+ return b.build();
649
+ }, "se_GetCodegenJobCommand");
650
+ var se_GetComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
651
+ const b = (0, import_core2.requestBuilder)(input, context);
652
+ const headers = {};
653
+ b.bp("/app/{appId}/environment/{environmentName}/components/{id}");
654
+ b.p("appId", () => input.appId, "{appId}", false);
655
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
656
+ b.p("id", () => input.id, "{id}", false);
657
+ let body;
658
+ b.m("GET").h(headers).b(body);
659
+ return b.build();
660
+ }, "se_GetComponentCommand");
661
+ var se_GetFormCommand = /* @__PURE__ */ __name(async (input, context) => {
662
+ const b = (0, import_core2.requestBuilder)(input, context);
663
+ const headers = {};
664
+ b.bp("/app/{appId}/environment/{environmentName}/forms/{id}");
665
+ b.p("appId", () => input.appId, "{appId}", false);
666
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
667
+ b.p("id", () => input.id, "{id}", false);
668
+ let body;
669
+ b.m("GET").h(headers).b(body);
670
+ return b.build();
671
+ }, "se_GetFormCommand");
672
+ var se_GetMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
673
+ const b = (0, import_core2.requestBuilder)(input, context);
674
+ const headers = {};
675
+ b.bp("/app/{appId}/environment/{environmentName}/metadata");
676
+ b.p("appId", () => input.appId, "{appId}", false);
677
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
678
+ let body;
679
+ b.m("GET").h(headers).b(body);
680
+ return b.build();
681
+ }, "se_GetMetadataCommand");
682
+ var se_GetThemeCommand = /* @__PURE__ */ __name(async (input, context) => {
683
+ const b = (0, import_core2.requestBuilder)(input, context);
684
+ const headers = {};
685
+ b.bp("/app/{appId}/environment/{environmentName}/themes/{id}");
686
+ b.p("appId", () => input.appId, "{appId}", false);
687
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
688
+ b.p("id", () => input.id, "{id}", false);
689
+ let body;
690
+ b.m("GET").h(headers).b(body);
691
+ return b.build();
692
+ }, "se_GetThemeCommand");
693
+ var se_ListCodegenJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
694
+ const b = (0, import_core2.requestBuilder)(input, context);
695
+ const headers = {};
696
+ b.bp("/app/{appId}/environment/{environmentName}/codegen-jobs");
697
+ b.p("appId", () => input.appId, "{appId}", false);
698
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
699
+ const query = (0, import_smithy_client.map)({
700
+ [_nT]: [, input[_nT]],
701
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
702
+ });
703
+ let body;
704
+ b.m("GET").h(headers).q(query).b(body);
705
+ return b.build();
706
+ }, "se_ListCodegenJobsCommand");
707
+ var se_ListComponentsCommand = /* @__PURE__ */ __name(async (input, context) => {
708
+ const b = (0, import_core2.requestBuilder)(input, context);
709
+ const headers = {};
710
+ b.bp("/app/{appId}/environment/{environmentName}/components");
711
+ b.p("appId", () => input.appId, "{appId}", false);
712
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
713
+ const query = (0, import_smithy_client.map)({
714
+ [_nT]: [, input[_nT]],
715
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
716
+ });
717
+ let body;
718
+ b.m("GET").h(headers).q(query).b(body);
719
+ return b.build();
720
+ }, "se_ListComponentsCommand");
721
+ var se_ListFormsCommand = /* @__PURE__ */ __name(async (input, context) => {
722
+ const b = (0, import_core2.requestBuilder)(input, context);
723
+ const headers = {};
724
+ b.bp("/app/{appId}/environment/{environmentName}/forms");
725
+ b.p("appId", () => input.appId, "{appId}", false);
726
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
727
+ const query = (0, import_smithy_client.map)({
728
+ [_nT]: [, input[_nT]],
729
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
730
+ });
731
+ let body;
732
+ b.m("GET").h(headers).q(query).b(body);
733
+ return b.build();
734
+ }, "se_ListFormsCommand");
735
+ var se_ListThemesCommand = /* @__PURE__ */ __name(async (input, context) => {
736
+ const b = (0, import_core2.requestBuilder)(input, context);
737
+ const headers = {};
738
+ b.bp("/app/{appId}/environment/{environmentName}/themes");
739
+ b.p("appId", () => input.appId, "{appId}", false);
740
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
741
+ const query = (0, import_smithy_client.map)({
742
+ [_nT]: [, input[_nT]],
743
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
744
+ });
745
+ let body;
746
+ b.m("GET").h(headers).q(query).b(body);
747
+ return b.build();
748
+ }, "se_ListThemesCommand");
749
+ var se_PutMetadataFlagCommand = /* @__PURE__ */ __name(async (input, context) => {
750
+ const b = (0, import_core2.requestBuilder)(input, context);
751
+ const headers = {
752
+ "content-type": "application/json"
753
+ };
754
+ b.bp("/app/{appId}/environment/{environmentName}/metadata/features/{featureName}");
755
+ b.p("appId", () => input.appId, "{appId}", false);
756
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
757
+ b.p("featureName", () => input.featureName, "{featureName}", false);
758
+ let body;
759
+ if (input.body !== void 0) {
760
+ body = (0, import_smithy_client._json)(input.body);
761
+ }
762
+ if (body === void 0) {
763
+ body = {};
764
+ }
765
+ body = JSON.stringify(body);
766
+ b.m("PUT").h(headers).b(body);
767
+ return b.build();
768
+ }, "se_PutMetadataFlagCommand");
769
+ var se_RefreshTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
770
+ const b = (0, import_core2.requestBuilder)(input, context);
771
+ const headers = {
772
+ "content-type": "application/json"
773
+ };
774
+ b.bp("/tokens/{provider}/refresh");
775
+ b.p("provider", () => input.provider, "{provider}", false);
776
+ let body;
777
+ if (input.refreshTokenBody !== void 0) {
778
+ body = (0, import_smithy_client._json)(input.refreshTokenBody);
779
+ }
780
+ if (body === void 0) {
781
+ body = {};
782
+ }
783
+ body = JSON.stringify(body);
784
+ b.m("POST").h(headers).b(body);
785
+ return b.build();
786
+ }, "se_RefreshTokenCommand");
787
+ var se_StartCodegenJobCommand = /* @__PURE__ */ __name(async (input, context) => {
788
+ const b = (0, import_core2.requestBuilder)(input, context);
789
+ const headers = {
790
+ "content-type": "application/json"
791
+ };
792
+ b.bp("/app/{appId}/environment/{environmentName}/codegen-jobs");
793
+ b.p("appId", () => input.appId, "{appId}", false);
794
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
795
+ const query = (0, import_smithy_client.map)({
796
+ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
797
+ });
798
+ let body;
799
+ if (input.codegenJobToCreate !== void 0) {
800
+ body = (0, import_smithy_client._json)(input.codegenJobToCreate);
801
+ }
802
+ if (body === void 0) {
803
+ body = {};
804
+ }
805
+ body = JSON.stringify(body);
806
+ b.m("POST").h(headers).q(query).b(body);
807
+ return b.build();
808
+ }, "se_StartCodegenJobCommand");
809
+ var se_UpdateComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
810
+ const b = (0, import_core2.requestBuilder)(input, context);
811
+ const headers = {
812
+ "content-type": "application/json"
813
+ };
814
+ b.bp("/app/{appId}/environment/{environmentName}/components/{id}");
815
+ b.p("appId", () => input.appId, "{appId}", false);
816
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
817
+ b.p("id", () => input.id, "{id}", false);
818
+ const query = (0, import_smithy_client.map)({
819
+ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
820
+ });
821
+ let body;
822
+ if (input.updatedComponent !== void 0) {
823
+ body = se_UpdateComponentData(input.updatedComponent, context);
824
+ }
825
+ if (body === void 0) {
826
+ body = {};
827
+ }
828
+ body = JSON.stringify(body);
829
+ b.m("PATCH").h(headers).q(query).b(body);
830
+ return b.build();
831
+ }, "se_UpdateComponentCommand");
832
+ var se_UpdateFormCommand = /* @__PURE__ */ __name(async (input, context) => {
833
+ const b = (0, import_core2.requestBuilder)(input, context);
834
+ const headers = {
835
+ "content-type": "application/json"
836
+ };
837
+ b.bp("/app/{appId}/environment/{environmentName}/forms/{id}");
838
+ b.p("appId", () => input.appId, "{appId}", false);
839
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
840
+ b.p("id", () => input.id, "{id}", false);
841
+ const query = (0, import_smithy_client.map)({
842
+ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
843
+ });
844
+ let body;
845
+ if (input.updatedForm !== void 0) {
846
+ body = se_UpdateFormData(input.updatedForm, context);
847
+ }
848
+ if (body === void 0) {
849
+ body = {};
850
+ }
851
+ body = JSON.stringify(body);
852
+ b.m("PATCH").h(headers).q(query).b(body);
853
+ return b.build();
854
+ }, "se_UpdateFormCommand");
855
+ var se_UpdateThemeCommand = /* @__PURE__ */ __name(async (input, context) => {
856
+ const b = (0, import_core2.requestBuilder)(input, context);
857
+ const headers = {
858
+ "content-type": "application/json"
859
+ };
860
+ b.bp("/app/{appId}/environment/{environmentName}/themes/{id}");
861
+ b.p("appId", () => input.appId, "{appId}", false);
862
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
863
+ b.p("id", () => input.id, "{id}", false);
864
+ const query = (0, import_smithy_client.map)({
865
+ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
866
+ });
867
+ let body;
868
+ if (input.updatedTheme !== void 0) {
869
+ body = se_UpdateThemeData(input.updatedTheme, context);
870
+ }
871
+ if (body === void 0) {
872
+ body = {};
873
+ }
874
+ body = JSON.stringify(body);
875
+ b.m("PATCH").h(headers).q(query).b(body);
876
+ return b.build();
877
+ }, "se_UpdateThemeCommand");
878
+ var de_CreateComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
879
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
880
+ return de_CreateComponentCommandError(output, context);
881
+ }
882
+ const contents = (0, import_smithy_client.map)({
883
+ $metadata: deserializeMetadata(output)
884
+ });
885
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
886
+ contents.entity = de_Component(data, context);
887
+ return contents;
888
+ }, "de_CreateComponentCommand");
889
+ var de_CreateComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
890
+ const parsedOutput = {
891
+ ...output,
892
+ body: await parseErrorBody(output.body, context)
893
+ };
894
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
895
+ switch (errorCode) {
896
+ case "InternalServerException":
897
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
898
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
899
+ case "InvalidParameterException":
900
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
901
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
902
+ case "ResourceConflictException":
903
+ case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
904
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
905
+ case "ServiceQuotaExceededException":
906
+ case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
907
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
908
+ default:
909
+ const parsedBody = parsedOutput.body;
910
+ return throwDefaultError({
911
+ output,
912
+ parsedBody,
913
+ errorCode
914
+ });
915
+ }
916
+ }, "de_CreateComponentCommandError");
917
+ var de_CreateFormCommand = /* @__PURE__ */ __name(async (output, context) => {
918
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
919
+ return de_CreateFormCommandError(output, context);
920
+ }
921
+ const contents = (0, import_smithy_client.map)({
922
+ $metadata: deserializeMetadata(output)
923
+ });
924
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
925
+ contents.entity = de_Form(data, context);
926
+ return contents;
927
+ }, "de_CreateFormCommand");
928
+ var de_CreateFormCommandError = /* @__PURE__ */ __name(async (output, context) => {
929
+ const parsedOutput = {
930
+ ...output,
931
+ body: await parseErrorBody(output.body, context)
932
+ };
933
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
934
+ switch (errorCode) {
935
+ case "InternalServerException":
936
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
937
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
938
+ case "InvalidParameterException":
939
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
940
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
941
+ case "ResourceConflictException":
942
+ case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
943
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
944
+ case "ServiceQuotaExceededException":
945
+ case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
946
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
947
+ default:
948
+ const parsedBody = parsedOutput.body;
949
+ return throwDefaultError({
950
+ output,
951
+ parsedBody,
952
+ errorCode
953
+ });
954
+ }
955
+ }, "de_CreateFormCommandError");
956
+ var de_CreateThemeCommand = /* @__PURE__ */ __name(async (output, context) => {
957
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
958
+ return de_CreateThemeCommandError(output, context);
959
+ }
960
+ const contents = (0, import_smithy_client.map)({
961
+ $metadata: deserializeMetadata(output)
962
+ });
963
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
964
+ contents.entity = de_Theme(data, context);
965
+ return contents;
966
+ }, "de_CreateThemeCommand");
967
+ var de_CreateThemeCommandError = /* @__PURE__ */ __name(async (output, context) => {
968
+ const parsedOutput = {
969
+ ...output,
970
+ body: await parseErrorBody(output.body, context)
971
+ };
972
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
973
+ switch (errorCode) {
974
+ case "InternalServerException":
975
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
976
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
977
+ case "InvalidParameterException":
978
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
979
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
980
+ case "ResourceConflictException":
981
+ case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
982
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
983
+ case "ServiceQuotaExceededException":
984
+ case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
985
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
986
+ default:
987
+ const parsedBody = parsedOutput.body;
988
+ return throwDefaultError({
989
+ output,
990
+ parsedBody,
991
+ errorCode
992
+ });
993
+ }
994
+ }, "de_CreateThemeCommandError");
995
+ var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
996
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
997
+ return de_DeleteComponentCommandError(output, context);
998
+ }
999
+ const contents = (0, import_smithy_client.map)({
1000
+ $metadata: deserializeMetadata(output)
1001
+ });
1002
+ await (0, import_smithy_client.collectBody)(output.body, context);
1003
+ return contents;
1004
+ }, "de_DeleteComponentCommand");
1005
+ var de_DeleteComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1006
+ const parsedOutput = {
1007
+ ...output,
1008
+ body: await parseErrorBody(output.body, context)
1009
+ };
1010
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1011
+ switch (errorCode) {
1012
+ case "InternalServerException":
1013
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1014
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1015
+ case "InvalidParameterException":
1016
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1017
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1018
+ case "ResourceNotFoundException":
1019
+ case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
1020
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1021
+ default:
1022
+ const parsedBody = parsedOutput.body;
1023
+ return throwDefaultError({
1024
+ output,
1025
+ parsedBody,
1026
+ errorCode
1027
+ });
1028
+ }
1029
+ }, "de_DeleteComponentCommandError");
1030
+ var de_DeleteFormCommand = /* @__PURE__ */ __name(async (output, context) => {
1031
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1032
+ return de_DeleteFormCommandError(output, context);
1033
+ }
1034
+ const contents = (0, import_smithy_client.map)({
1035
+ $metadata: deserializeMetadata(output)
1036
+ });
1037
+ await (0, import_smithy_client.collectBody)(output.body, context);
1038
+ return contents;
1039
+ }, "de_DeleteFormCommand");
1040
+ var de_DeleteFormCommandError = /* @__PURE__ */ __name(async (output, context) => {
1041
+ const parsedOutput = {
1042
+ ...output,
1043
+ body: await parseErrorBody(output.body, context)
1044
+ };
1045
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1046
+ switch (errorCode) {
1047
+ case "InternalServerException":
1048
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1049
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1050
+ case "InvalidParameterException":
1051
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1052
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1053
+ case "ResourceNotFoundException":
1054
+ case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
1055
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1056
+ default:
1057
+ const parsedBody = parsedOutput.body;
1058
+ return throwDefaultError({
1059
+ output,
1060
+ parsedBody,
1061
+ errorCode
1062
+ });
1063
+ }
1064
+ }, "de_DeleteFormCommandError");
1065
+ var de_DeleteThemeCommand = /* @__PURE__ */ __name(async (output, context) => {
1066
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1067
+ return de_DeleteThemeCommandError(output, context);
1068
+ }
1069
+ const contents = (0, import_smithy_client.map)({
1070
+ $metadata: deserializeMetadata(output)
1071
+ });
1072
+ await (0, import_smithy_client.collectBody)(output.body, context);
1073
+ return contents;
1074
+ }, "de_DeleteThemeCommand");
1075
+ var de_DeleteThemeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1076
+ const parsedOutput = {
1077
+ ...output,
1078
+ body: await parseErrorBody(output.body, context)
1079
+ };
1080
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1081
+ switch (errorCode) {
1082
+ case "InternalServerException":
1083
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1084
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1085
+ case "InvalidParameterException":
1086
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1087
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1088
+ case "ResourceNotFoundException":
1089
+ case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
1090
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1091
+ default:
1092
+ const parsedBody = parsedOutput.body;
1093
+ return throwDefaultError({
1094
+ output,
1095
+ parsedBody,
1096
+ errorCode
1097
+ });
1098
+ }
1099
+ }, "de_DeleteThemeCommandError");
1100
+ var de_ExchangeCodeForTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1101
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1102
+ return de_ExchangeCodeForTokenCommandError(output, context);
1103
+ }
1104
+ const contents = (0, import_smithy_client.map)({
1105
+ $metadata: deserializeMetadata(output)
1106
+ });
1107
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1108
+ const doc = (0, import_smithy_client.take)(data, {
1109
+ accessToken: import_smithy_client.expectString,
1110
+ expiresIn: import_smithy_client.expectInt32,
1111
+ refreshToken: import_smithy_client.expectString
1112
+ });
1113
+ Object.assign(contents, doc);
1114
+ return contents;
1115
+ }, "de_ExchangeCodeForTokenCommand");
1116
+ var de_ExchangeCodeForTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
1117
+ const parsedOutput = {
1118
+ ...output,
1119
+ body: await parseErrorBody(output.body, context)
1120
+ };
1121
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1122
+ switch (errorCode) {
1123
+ case "InvalidParameterException":
1124
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1125
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1126
+ default:
1127
+ const parsedBody = parsedOutput.body;
1128
+ return throwDefaultError({
1129
+ output,
1130
+ parsedBody,
1131
+ errorCode
1132
+ });
1133
+ }
1134
+ }, "de_ExchangeCodeForTokenCommandError");
1135
+ var de_ExportComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1136
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1137
+ return de_ExportComponentsCommandError(output, context);
1138
+ }
1139
+ const contents = (0, import_smithy_client.map)({
1140
+ $metadata: deserializeMetadata(output)
1141
+ });
1142
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1143
+ const doc = (0, import_smithy_client.take)(data, {
1144
+ entities: (_) => de_ComponentList(_, context),
1145
+ nextToken: import_smithy_client.expectString
1146
+ });
1147
+ Object.assign(contents, doc);
1148
+ return contents;
1149
+ }, "de_ExportComponentsCommand");
1150
+ var de_ExportComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1151
+ const parsedOutput = {
1152
+ ...output,
1153
+ body: await parseErrorBody(output.body, context)
1154
+ };
1155
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1156
+ switch (errorCode) {
1157
+ case "InternalServerException":
1158
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1159
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1160
+ case "InvalidParameterException":
1161
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1162
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1163
+ default:
1164
+ const parsedBody = parsedOutput.body;
1165
+ return throwDefaultError({
1166
+ output,
1167
+ parsedBody,
1168
+ errorCode
1169
+ });
1170
+ }
1171
+ }, "de_ExportComponentsCommandError");
1172
+ var de_ExportFormsCommand = /* @__PURE__ */ __name(async (output, context) => {
1173
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1174
+ return de_ExportFormsCommandError(output, context);
1175
+ }
1176
+ const contents = (0, import_smithy_client.map)({
1177
+ $metadata: deserializeMetadata(output)
1178
+ });
1179
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1180
+ const doc = (0, import_smithy_client.take)(data, {
1181
+ entities: (_) => de_FormList(_, context),
1182
+ nextToken: import_smithy_client.expectString
1183
+ });
1184
+ Object.assign(contents, doc);
1185
+ return contents;
1186
+ }, "de_ExportFormsCommand");
1187
+ var de_ExportFormsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1188
+ const parsedOutput = {
1189
+ ...output,
1190
+ body: await parseErrorBody(output.body, context)
1191
+ };
1192
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1193
+ switch (errorCode) {
1194
+ case "InternalServerException":
1195
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1196
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1197
+ case "InvalidParameterException":
1198
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1199
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1200
+ default:
1201
+ const parsedBody = parsedOutput.body;
1202
+ return throwDefaultError({
1203
+ output,
1204
+ parsedBody,
1205
+ errorCode
1206
+ });
1207
+ }
1208
+ }, "de_ExportFormsCommandError");
1209
+ var de_ExportThemesCommand = /* @__PURE__ */ __name(async (output, context) => {
1210
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1211
+ return de_ExportThemesCommandError(output, context);
1212
+ }
1213
+ const contents = (0, import_smithy_client.map)({
1214
+ $metadata: deserializeMetadata(output)
1215
+ });
1216
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1217
+ const doc = (0, import_smithy_client.take)(data, {
1218
+ entities: (_) => de_ThemeList(_, context),
1219
+ nextToken: import_smithy_client.expectString
1220
+ });
1221
+ Object.assign(contents, doc);
1222
+ return contents;
1223
+ }, "de_ExportThemesCommand");
1224
+ var de_ExportThemesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1225
+ const parsedOutput = {
1226
+ ...output,
1227
+ body: await parseErrorBody(output.body, context)
1228
+ };
1229
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1230
+ switch (errorCode) {
1231
+ case "InternalServerException":
1232
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1233
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1234
+ case "InvalidParameterException":
1235
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1236
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1237
+ default:
1238
+ const parsedBody = parsedOutput.body;
1239
+ return throwDefaultError({
1240
+ output,
1241
+ parsedBody,
1242
+ errorCode
1243
+ });
1244
+ }
1245
+ }, "de_ExportThemesCommandError");
1246
+ var de_GetCodegenJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1247
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1248
+ return de_GetCodegenJobCommandError(output, context);
1249
+ }
1250
+ const contents = (0, import_smithy_client.map)({
1251
+ $metadata: deserializeMetadata(output)
1252
+ });
1253
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1254
+ contents.job = de_CodegenJob(data, context);
1255
+ return contents;
1256
+ }, "de_GetCodegenJobCommand");
1257
+ var de_GetCodegenJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1258
+ const parsedOutput = {
1259
+ ...output,
1260
+ body: await parseErrorBody(output.body, context)
1261
+ };
1262
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1263
+ switch (errorCode) {
1264
+ case "InternalServerException":
1265
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1266
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1267
+ case "InvalidParameterException":
1268
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1269
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1270
+ case "ResourceNotFoundException":
1271
+ case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
1272
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1273
+ case "ThrottlingException":
1274
+ case "com.amazonaws.amplifyuibuilder#ThrottlingException":
1275
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1276
+ default:
1277
+ const parsedBody = parsedOutput.body;
1278
+ return throwDefaultError({
1279
+ output,
1280
+ parsedBody,
1281
+ errorCode
1282
+ });
1283
+ }
1284
+ }, "de_GetCodegenJobCommandError");
1285
+ var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
1286
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1287
+ return de_GetComponentCommandError(output, context);
1288
+ }
1289
+ const contents = (0, import_smithy_client.map)({
1290
+ $metadata: deserializeMetadata(output)
1291
+ });
1292
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1293
+ contents.component = de_Component(data, context);
1294
+ return contents;
1295
+ }, "de_GetComponentCommand");
1296
+ var de_GetComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1297
+ const parsedOutput = {
1298
+ ...output,
1299
+ body: await parseErrorBody(output.body, context)
1300
+ };
1301
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1302
+ switch (errorCode) {
1303
+ case "InternalServerException":
1304
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1305
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1306
+ case "InvalidParameterException":
1307
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1308
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1309
+ case "ResourceNotFoundException":
1310
+ case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
1311
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1312
+ default:
1313
+ const parsedBody = parsedOutput.body;
1314
+ return throwDefaultError({
1315
+ output,
1316
+ parsedBody,
1317
+ errorCode
1318
+ });
1319
+ }
1320
+ }, "de_GetComponentCommandError");
1321
+ var de_GetFormCommand = /* @__PURE__ */ __name(async (output, context) => {
1322
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1323
+ return de_GetFormCommandError(output, context);
1324
+ }
1325
+ const contents = (0, import_smithy_client.map)({
1326
+ $metadata: deserializeMetadata(output)
1327
+ });
1328
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1329
+ contents.form = de_Form(data, context);
1330
+ return contents;
1331
+ }, "de_GetFormCommand");
1332
+ var de_GetFormCommandError = /* @__PURE__ */ __name(async (output, context) => {
1333
+ const parsedOutput = {
1334
+ ...output,
1335
+ body: await parseErrorBody(output.body, context)
1336
+ };
1337
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1338
+ switch (errorCode) {
1339
+ case "InternalServerException":
1340
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1341
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1342
+ case "InvalidParameterException":
1343
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1344
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1345
+ case "ResourceNotFoundException":
1346
+ case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
1347
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1348
+ default:
1349
+ const parsedBody = parsedOutput.body;
1350
+ return throwDefaultError({
1351
+ output,
1352
+ parsedBody,
1353
+ errorCode
1354
+ });
1355
+ }
1356
+ }, "de_GetFormCommandError");
1357
+ var de_GetMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
1358
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1359
+ return de_GetMetadataCommandError(output, context);
1360
+ }
1361
+ const contents = (0, import_smithy_client.map)({
1362
+ $metadata: deserializeMetadata(output)
1363
+ });
1364
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1365
+ const doc = (0, import_smithy_client.take)(data, {
1366
+ features: import_smithy_client._json
1367
+ });
1368
+ Object.assign(contents, doc);
1369
+ return contents;
1370
+ }, "de_GetMetadataCommand");
1371
+ var de_GetMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
1372
+ const parsedOutput = {
1373
+ ...output,
1374
+ body: await parseErrorBody(output.body, context)
1375
+ };
1376
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1377
+ switch (errorCode) {
1378
+ case "InvalidParameterException":
1379
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1380
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1381
+ case "UnauthorizedException":
1382
+ case "com.amazonaws.amplifyuibuilder#UnauthorizedException":
1383
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1384
+ default:
1385
+ const parsedBody = parsedOutput.body;
1386
+ return throwDefaultError({
1387
+ output,
1388
+ parsedBody,
1389
+ errorCode
1390
+ });
1391
+ }
1392
+ }, "de_GetMetadataCommandError");
1393
+ var de_GetThemeCommand = /* @__PURE__ */ __name(async (output, context) => {
1394
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1395
+ return de_GetThemeCommandError(output, context);
1396
+ }
1397
+ const contents = (0, import_smithy_client.map)({
1398
+ $metadata: deserializeMetadata(output)
1399
+ });
1400
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1401
+ contents.theme = de_Theme(data, context);
1402
+ return contents;
1403
+ }, "de_GetThemeCommand");
1404
+ var de_GetThemeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1405
+ const parsedOutput = {
1406
+ ...output,
1407
+ body: await parseErrorBody(output.body, context)
1408
+ };
1409
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1410
+ switch (errorCode) {
1411
+ case "InternalServerException":
1412
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1413
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1414
+ case "InvalidParameterException":
1415
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1416
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1417
+ case "ResourceNotFoundException":
1418
+ case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
1419
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1420
+ default:
1421
+ const parsedBody = parsedOutput.body;
1422
+ return throwDefaultError({
1423
+ output,
1424
+ parsedBody,
1425
+ errorCode
1426
+ });
1427
+ }
1428
+ }, "de_GetThemeCommandError");
1429
+ var de_ListCodegenJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1430
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1431
+ return de_ListCodegenJobsCommandError(output, context);
1432
+ }
1433
+ const contents = (0, import_smithy_client.map)({
1434
+ $metadata: deserializeMetadata(output)
1435
+ });
1436
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1437
+ const doc = (0, import_smithy_client.take)(data, {
1438
+ entities: (_) => de_CodegenJobSummaryList(_, context),
1439
+ nextToken: import_smithy_client.expectString
1440
+ });
1441
+ Object.assign(contents, doc);
1442
+ return contents;
1443
+ }, "de_ListCodegenJobsCommand");
1444
+ var de_ListCodegenJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1445
+ const parsedOutput = {
1446
+ ...output,
1447
+ body: await parseErrorBody(output.body, context)
1448
+ };
1449
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1450
+ switch (errorCode) {
1451
+ case "InternalServerException":
1452
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1453
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1454
+ case "InvalidParameterException":
1455
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1456
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1457
+ case "ThrottlingException":
1458
+ case "com.amazonaws.amplifyuibuilder#ThrottlingException":
1459
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1460
+ default:
1461
+ const parsedBody = parsedOutput.body;
1462
+ return throwDefaultError({
1463
+ output,
1464
+ parsedBody,
1465
+ errorCode
1466
+ });
1467
+ }
1468
+ }, "de_ListCodegenJobsCommandError");
1469
+ var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1470
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1471
+ return de_ListComponentsCommandError(output, context);
1472
+ }
1473
+ const contents = (0, import_smithy_client.map)({
1474
+ $metadata: deserializeMetadata(output)
1475
+ });
1476
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1477
+ const doc = (0, import_smithy_client.take)(data, {
1478
+ entities: import_smithy_client._json,
1479
+ nextToken: import_smithy_client.expectString
1480
+ });
1481
+ Object.assign(contents, doc);
1482
+ return contents;
1483
+ }, "de_ListComponentsCommand");
1484
+ var de_ListComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1485
+ const parsedOutput = {
1486
+ ...output,
1487
+ body: await parseErrorBody(output.body, context)
1488
+ };
1489
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1490
+ switch (errorCode) {
1491
+ case "InternalServerException":
1492
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1493
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1494
+ case "InvalidParameterException":
1495
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1496
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1497
+ default:
1498
+ const parsedBody = parsedOutput.body;
1499
+ return throwDefaultError({
1500
+ output,
1501
+ parsedBody,
1502
+ errorCode
1503
+ });
1504
+ }
1505
+ }, "de_ListComponentsCommandError");
1506
+ var de_ListFormsCommand = /* @__PURE__ */ __name(async (output, context) => {
1507
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1508
+ return de_ListFormsCommandError(output, context);
1509
+ }
1510
+ const contents = (0, import_smithy_client.map)({
1511
+ $metadata: deserializeMetadata(output)
1512
+ });
1513
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1514
+ const doc = (0, import_smithy_client.take)(data, {
1515
+ entities: import_smithy_client._json,
1516
+ nextToken: import_smithy_client.expectString
1517
+ });
1518
+ Object.assign(contents, doc);
1519
+ return contents;
1520
+ }, "de_ListFormsCommand");
1521
+ var de_ListFormsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1522
+ const parsedOutput = {
1523
+ ...output,
1524
+ body: await parseErrorBody(output.body, context)
1525
+ };
1526
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1527
+ switch (errorCode) {
1528
+ case "InternalServerException":
1529
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1530
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1531
+ case "InvalidParameterException":
1532
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1533
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1534
+ default:
1535
+ const parsedBody = parsedOutput.body;
1536
+ return throwDefaultError({
1537
+ output,
1538
+ parsedBody,
1539
+ errorCode
1540
+ });
1541
+ }
1542
+ }, "de_ListFormsCommandError");
1543
+ var de_ListThemesCommand = /* @__PURE__ */ __name(async (output, context) => {
1544
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1545
+ return de_ListThemesCommandError(output, context);
1546
+ }
1547
+ const contents = (0, import_smithy_client.map)({
1548
+ $metadata: deserializeMetadata(output)
1549
+ });
1550
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1551
+ const doc = (0, import_smithy_client.take)(data, {
1552
+ entities: import_smithy_client._json,
1553
+ nextToken: import_smithy_client.expectString
1554
+ });
1555
+ Object.assign(contents, doc);
1556
+ return contents;
1557
+ }, "de_ListThemesCommand");
1558
+ var de_ListThemesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1559
+ const parsedOutput = {
1560
+ ...output,
1561
+ body: await parseErrorBody(output.body, context)
1562
+ };
1563
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1564
+ switch (errorCode) {
1565
+ case "InternalServerException":
1566
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1567
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1568
+ case "InvalidParameterException":
1569
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1570
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1571
+ default:
1572
+ const parsedBody = parsedOutput.body;
1573
+ return throwDefaultError({
1574
+ output,
1575
+ parsedBody,
1576
+ errorCode
1577
+ });
1578
+ }
1579
+ }, "de_ListThemesCommandError");
1580
+ var de_PutMetadataFlagCommand = /* @__PURE__ */ __name(async (output, context) => {
1581
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
+ return de_PutMetadataFlagCommandError(output, context);
1583
+ }
1584
+ const contents = (0, import_smithy_client.map)({
1585
+ $metadata: deserializeMetadata(output)
1586
+ });
1587
+ await (0, import_smithy_client.collectBody)(output.body, context);
1588
+ return contents;
1589
+ }, "de_PutMetadataFlagCommand");
1590
+ var de_PutMetadataFlagCommandError = /* @__PURE__ */ __name(async (output, context) => {
1591
+ const parsedOutput = {
1592
+ ...output,
1593
+ body: await parseErrorBody(output.body, context)
1594
+ };
1595
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1596
+ switch (errorCode) {
1597
+ case "InvalidParameterException":
1598
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1599
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1600
+ case "UnauthorizedException":
1601
+ case "com.amazonaws.amplifyuibuilder#UnauthorizedException":
1602
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1603
+ default:
1604
+ const parsedBody = parsedOutput.body;
1605
+ return throwDefaultError({
1606
+ output,
1607
+ parsedBody,
1608
+ errorCode
1609
+ });
1610
+ }
1611
+ }, "de_PutMetadataFlagCommandError");
1612
+ var de_RefreshTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1613
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1614
+ return de_RefreshTokenCommandError(output, context);
1615
+ }
1616
+ const contents = (0, import_smithy_client.map)({
1617
+ $metadata: deserializeMetadata(output)
1618
+ });
1619
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1620
+ const doc = (0, import_smithy_client.take)(data, {
1621
+ accessToken: import_smithy_client.expectString,
1622
+ expiresIn: import_smithy_client.expectInt32
1623
+ });
1624
+ Object.assign(contents, doc);
1625
+ return contents;
1626
+ }, "de_RefreshTokenCommand");
1627
+ var de_RefreshTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
1628
+ const parsedOutput = {
1629
+ ...output,
1630
+ body: await parseErrorBody(output.body, context)
1631
+ };
1632
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1633
+ switch (errorCode) {
1634
+ case "InvalidParameterException":
1635
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1636
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1637
+ default:
1638
+ const parsedBody = parsedOutput.body;
1639
+ return throwDefaultError({
1640
+ output,
1641
+ parsedBody,
1642
+ errorCode
1643
+ });
1644
+ }
1645
+ }, "de_RefreshTokenCommandError");
1646
+ var de_StartCodegenJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1647
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1648
+ return de_StartCodegenJobCommandError(output, context);
1649
+ }
1650
+ const contents = (0, import_smithy_client.map)({
1651
+ $metadata: deserializeMetadata(output)
1652
+ });
1653
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1654
+ contents.entity = de_CodegenJob(data, context);
1655
+ return contents;
1656
+ }, "de_StartCodegenJobCommand");
1657
+ var de_StartCodegenJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1658
+ const parsedOutput = {
1659
+ ...output,
1660
+ body: await parseErrorBody(output.body, context)
1661
+ };
1662
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1663
+ switch (errorCode) {
1664
+ case "InternalServerException":
1665
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1666
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1667
+ case "InvalidParameterException":
1668
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1669
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1670
+ case "ThrottlingException":
1671
+ case "com.amazonaws.amplifyuibuilder#ThrottlingException":
1672
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1673
+ default:
1674
+ const parsedBody = parsedOutput.body;
1675
+ return throwDefaultError({
1676
+ output,
1677
+ parsedBody,
1678
+ errorCode
1679
+ });
1680
+ }
1681
+ }, "de_StartCodegenJobCommandError");
1682
+ var de_UpdateComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
1683
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1684
+ return de_UpdateComponentCommandError(output, context);
1685
+ }
1686
+ const contents = (0, import_smithy_client.map)({
1687
+ $metadata: deserializeMetadata(output)
1688
+ });
1689
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1690
+ contents.entity = de_Component(data, context);
1691
+ return contents;
1692
+ }, "de_UpdateComponentCommand");
1693
+ var de_UpdateComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1694
+ const parsedOutput = {
1695
+ ...output,
1696
+ body: await parseErrorBody(output.body, context)
1697
+ };
1698
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1699
+ switch (errorCode) {
1700
+ case "InternalServerException":
1701
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1702
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1703
+ case "InvalidParameterException":
1704
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1705
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1706
+ case "ResourceConflictException":
1707
+ case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
1708
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1709
+ default:
1710
+ const parsedBody = parsedOutput.body;
1711
+ return throwDefaultError({
1712
+ output,
1713
+ parsedBody,
1714
+ errorCode
1715
+ });
1716
+ }
1717
+ }, "de_UpdateComponentCommandError");
1718
+ var de_UpdateFormCommand = /* @__PURE__ */ __name(async (output, context) => {
1719
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1720
+ return de_UpdateFormCommandError(output, context);
1721
+ }
1722
+ const contents = (0, import_smithy_client.map)({
1723
+ $metadata: deserializeMetadata(output)
1724
+ });
1725
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1726
+ contents.entity = de_Form(data, context);
1727
+ return contents;
1728
+ }, "de_UpdateFormCommand");
1729
+ var de_UpdateFormCommandError = /* @__PURE__ */ __name(async (output, context) => {
1730
+ const parsedOutput = {
1731
+ ...output,
1732
+ body: await parseErrorBody(output.body, context)
1733
+ };
1734
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1735
+ switch (errorCode) {
1736
+ case "InternalServerException":
1737
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1738
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1739
+ case "InvalidParameterException":
1740
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1741
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1742
+ case "ResourceConflictException":
1743
+ case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
1744
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1745
+ default:
1746
+ const parsedBody = parsedOutput.body;
1747
+ return throwDefaultError({
1748
+ output,
1749
+ parsedBody,
1750
+ errorCode
1751
+ });
1752
+ }
1753
+ }, "de_UpdateFormCommandError");
1754
+ var de_UpdateThemeCommand = /* @__PURE__ */ __name(async (output, context) => {
1755
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1756
+ return de_UpdateThemeCommandError(output, context);
1757
+ }
1758
+ const contents = (0, import_smithy_client.map)({
1759
+ $metadata: deserializeMetadata(output)
1760
+ });
1761
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1762
+ contents.entity = de_Theme(data, context);
1763
+ return contents;
1764
+ }, "de_UpdateThemeCommand");
1765
+ var de_UpdateThemeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1766
+ const parsedOutput = {
1767
+ ...output,
1768
+ body: await parseErrorBody(output.body, context)
1769
+ };
1770
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1771
+ switch (errorCode) {
1772
+ case "InternalServerException":
1773
+ case "com.amazonaws.amplifyuibuilder#InternalServerException":
1774
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1775
+ case "InvalidParameterException":
1776
+ case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1777
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1778
+ case "ResourceConflictException":
1779
+ case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
1780
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1781
+ default:
1782
+ const parsedBody = parsedOutput.body;
1783
+ return throwDefaultError({
1784
+ output,
1785
+ parsedBody,
1786
+ errorCode
1787
+ });
1788
+ }
1789
+ }, "de_UpdateThemeCommandError");
1790
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(AmplifyUIBuilderServiceException);
1791
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1792
+ const contents = (0, import_smithy_client.map)({});
1793
+ const data = parsedOutput.body;
1794
+ const doc = (0, import_smithy_client.take)(data, {
1795
+ message: import_smithy_client.expectString
1796
+ });
1797
+ Object.assign(contents, doc);
1798
+ const exception = new InternalServerException({
1799
+ $metadata: deserializeMetadata(parsedOutput),
1800
+ ...contents
1801
+ });
1802
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1803
+ }, "de_InternalServerExceptionRes");
1804
+ var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1805
+ const contents = (0, import_smithy_client.map)({});
1806
+ const data = parsedOutput.body;
1807
+ const doc = (0, import_smithy_client.take)(data, {
1808
+ message: import_smithy_client.expectString
1809
+ });
1810
+ Object.assign(contents, doc);
1811
+ const exception = new InvalidParameterException({
1812
+ $metadata: deserializeMetadata(parsedOutput),
1813
+ ...contents
1814
+ });
1815
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1816
+ }, "de_InvalidParameterExceptionRes");
1817
+ var de_ResourceConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1818
+ const contents = (0, import_smithy_client.map)({});
1819
+ const data = parsedOutput.body;
1820
+ const doc = (0, import_smithy_client.take)(data, {
1821
+ message: import_smithy_client.expectString
1822
+ });
1823
+ Object.assign(contents, doc);
1824
+ const exception = new ResourceConflictException({
1825
+ $metadata: deserializeMetadata(parsedOutput),
1826
+ ...contents
1827
+ });
1828
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1829
+ }, "de_ResourceConflictExceptionRes");
1830
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1831
+ const contents = (0, import_smithy_client.map)({});
1832
+ const data = parsedOutput.body;
1833
+ const doc = (0, import_smithy_client.take)(data, {
1834
+ message: import_smithy_client.expectString
1835
+ });
1836
+ Object.assign(contents, doc);
1837
+ const exception = new ResourceNotFoundException({
1838
+ $metadata: deserializeMetadata(parsedOutput),
1839
+ ...contents
1840
+ });
1841
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1842
+ }, "de_ResourceNotFoundExceptionRes");
1843
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1844
+ const contents = (0, import_smithy_client.map)({});
1845
+ const data = parsedOutput.body;
1846
+ const doc = (0, import_smithy_client.take)(data, {
1847
+ message: import_smithy_client.expectString
1848
+ });
1849
+ Object.assign(contents, doc);
1850
+ const exception = new ServiceQuotaExceededException({
1851
+ $metadata: deserializeMetadata(parsedOutput),
1852
+ ...contents
1853
+ });
1854
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1855
+ }, "de_ServiceQuotaExceededExceptionRes");
1856
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1857
+ const contents = (0, import_smithy_client.map)({});
1858
+ const data = parsedOutput.body;
1859
+ const doc = (0, import_smithy_client.take)(data, {
1860
+ message: import_smithy_client.expectString
1861
+ });
1862
+ Object.assign(contents, doc);
1863
+ const exception = new ThrottlingException({
1864
+ $metadata: deserializeMetadata(parsedOutput),
1865
+ ...contents
1866
+ });
1867
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1868
+ }, "de_ThrottlingExceptionRes");
1869
+ var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1870
+ const contents = (0, import_smithy_client.map)({});
1871
+ const data = parsedOutput.body;
1872
+ const doc = (0, import_smithy_client.take)(data, {
1873
+ message: import_smithy_client.expectString
1874
+ });
1875
+ Object.assign(contents, doc);
1876
+ const exception = new UnauthorizedException({
1877
+ $metadata: deserializeMetadata(parsedOutput),
1878
+ ...contents
1879
+ });
1880
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1881
+ }, "de_UnauthorizedExceptionRes");
1882
+ var se_ActionParameters = /* @__PURE__ */ __name((input, context) => {
1883
+ return (0, import_smithy_client.take)(input, {
1884
+ anchor: (_) => se_ComponentProperty(_, context),
1885
+ fields: (_) => se_ComponentProperties(_, context),
1886
+ global: (_) => se_ComponentProperty(_, context),
1887
+ id: (_) => se_ComponentProperty(_, context),
1888
+ model: [],
1889
+ state: (_) => se_MutationActionSetStateParameter(_, context),
1890
+ target: (_) => se_ComponentProperty(_, context),
1891
+ type: (_) => se_ComponentProperty(_, context),
1892
+ url: (_) => se_ComponentProperty(_, context)
1893
+ });
1894
+ }, "se_ActionParameters");
1895
+ var se_ComponentBindingProperties = /* @__PURE__ */ __name((input, context) => {
1896
+ return Object.entries(input).reduce((acc, [key, value]) => {
1897
+ if (value === null) {
1898
+ return acc;
1899
+ }
1900
+ acc[key] = se_ComponentBindingPropertiesValue(value, context);
1901
+ return acc;
1902
+ }, {});
1903
+ }, "se_ComponentBindingProperties");
1904
+ var se_ComponentBindingPropertiesValue = /* @__PURE__ */ __name((input, context) => {
1905
+ return (0, import_smithy_client.take)(input, {
1906
+ bindingProperties: (_) => se_ComponentBindingPropertiesValueProperties(_, context),
1907
+ defaultValue: [],
1908
+ type: []
1909
+ });
1910
+ }, "se_ComponentBindingPropertiesValue");
1911
+ var se_ComponentBindingPropertiesValueProperties = /* @__PURE__ */ __name((input, context) => {
1912
+ return (0, import_smithy_client.take)(input, {
1913
+ bucket: [],
1914
+ defaultValue: [],
1915
+ field: [],
1916
+ key: [],
1917
+ model: [],
1918
+ predicates: (_) => se_PredicateList(_, context),
1919
+ slotName: [],
1920
+ userAttribute: []
1921
+ });
1922
+ }, "se_ComponentBindingPropertiesValueProperties");
1923
+ var se_ComponentChild = /* @__PURE__ */ __name((input, context) => {
1924
+ return (0, import_smithy_client.take)(input, {
1925
+ children: (_) => se_ComponentChildList(_, context),
1926
+ componentType: [],
1927
+ events: (_) => se_ComponentEvents(_, context),
1928
+ name: [],
1929
+ properties: (_) => se_ComponentProperties(_, context),
1930
+ sourceId: []
1931
+ });
1932
+ }, "se_ComponentChild");
1933
+ var se_ComponentChildList = /* @__PURE__ */ __name((input, context) => {
1934
+ return input.filter((e) => e != null).map((entry) => {
1935
+ return se_ComponentChild(entry, context);
1936
+ });
1937
+ }, "se_ComponentChildList");
1938
+ var se_ComponentCollectionProperties = /* @__PURE__ */ __name((input, context) => {
1939
+ return Object.entries(input).reduce((acc, [key, value]) => {
1940
+ if (value === null) {
1941
+ return acc;
1942
+ }
1943
+ acc[key] = se_ComponentDataConfiguration(value, context);
1944
+ return acc;
1945
+ }, {});
1946
+ }, "se_ComponentCollectionProperties");
1947
+ var se_ComponentConditionProperty = /* @__PURE__ */ __name((input, context) => {
1948
+ return (0, import_smithy_client.take)(input, {
1949
+ else: (_) => se_ComponentProperty(_, context),
1950
+ field: [],
1951
+ operand: [],
1952
+ operandType: [],
1953
+ operator: [],
1954
+ property: [],
1955
+ then: (_) => se_ComponentProperty(_, context)
1956
+ });
1957
+ }, "se_ComponentConditionProperty");
1958
+ var se_ComponentDataConfiguration = /* @__PURE__ */ __name((input, context) => {
1959
+ return (0, import_smithy_client.take)(input, {
1960
+ identifiers: import_smithy_client._json,
1961
+ model: [],
1962
+ predicate: (_) => se_Predicate(_, context),
1963
+ sort: import_smithy_client._json
1964
+ });
1965
+ }, "se_ComponentDataConfiguration");
1966
+ var se_ComponentEvent = /* @__PURE__ */ __name((input, context) => {
1967
+ return (0, import_smithy_client.take)(input, {
1968
+ action: [],
1969
+ bindingEvent: [],
1970
+ parameters: (_) => se_ActionParameters(_, context)
1971
+ });
1972
+ }, "se_ComponentEvent");
1973
+ var se_ComponentEvents = /* @__PURE__ */ __name((input, context) => {
1974
+ return Object.entries(input).reduce((acc, [key, value]) => {
1975
+ if (value === null) {
1976
+ return acc;
1977
+ }
1978
+ acc[key] = se_ComponentEvent(value, context);
1979
+ return acc;
1980
+ }, {});
1981
+ }, "se_ComponentEvents");
1982
+ var se_ComponentProperties = /* @__PURE__ */ __name((input, context) => {
1983
+ return Object.entries(input).reduce((acc, [key, value]) => {
1984
+ if (value === null) {
1985
+ return acc;
1986
+ }
1987
+ acc[key] = se_ComponentProperty(value, context);
1988
+ return acc;
1989
+ }, {});
1990
+ }, "se_ComponentProperties");
1991
+ var se_ComponentProperty = /* @__PURE__ */ __name((input, context) => {
1992
+ return (0, import_smithy_client.take)(input, {
1993
+ bindingProperties: import_smithy_client._json,
1994
+ bindings: import_smithy_client._json,
1995
+ collectionBindingProperties: import_smithy_client._json,
1996
+ componentName: [],
1997
+ concat: (_) => se_ComponentPropertyList(_, context),
1998
+ condition: (_) => se_ComponentConditionProperty(_, context),
1999
+ configured: [],
2000
+ defaultValue: [],
2001
+ event: [],
2002
+ importedValue: [],
2003
+ model: [],
2004
+ property: [],
2005
+ type: [],
2006
+ userAttribute: [],
2007
+ value: []
2008
+ });
2009
+ }, "se_ComponentProperty");
2010
+ var se_ComponentPropertyList = /* @__PURE__ */ __name((input, context) => {
2011
+ return input.filter((e) => e != null).map((entry) => {
2012
+ return se_ComponentProperty(entry, context);
2013
+ });
2014
+ }, "se_ComponentPropertyList");
2015
+ var se_CreateComponentData = /* @__PURE__ */ __name((input, context) => {
2016
+ return (0, import_smithy_client.take)(input, {
2017
+ bindingProperties: (_) => se_ComponentBindingProperties(_, context),
2018
+ children: (_) => se_ComponentChildList(_, context),
2019
+ collectionProperties: (_) => se_ComponentCollectionProperties(_, context),
2020
+ componentType: [],
2021
+ events: (_) => se_ComponentEvents(_, context),
2022
+ name: [],
2023
+ overrides: import_smithy_client._json,
2024
+ properties: (_) => se_ComponentProperties(_, context),
2025
+ schemaVersion: [],
2026
+ sourceId: [],
2027
+ tags: import_smithy_client._json,
2028
+ variants: import_smithy_client._json
2029
+ });
2030
+ }, "se_CreateComponentData");
2031
+ var se_CreateFormData = /* @__PURE__ */ __name((input, context) => {
2032
+ return (0, import_smithy_client.take)(input, {
2033
+ cta: import_smithy_client._json,
2034
+ dataType: import_smithy_client._json,
2035
+ fields: (_) => se_FieldsMap(_, context),
2036
+ formActionType: [],
2037
+ labelDecorator: [],
2038
+ name: [],
2039
+ schemaVersion: [],
2040
+ sectionalElements: import_smithy_client._json,
2041
+ style: import_smithy_client._json,
2042
+ tags: import_smithy_client._json
2043
+ });
2044
+ }, "se_CreateFormData");
2045
+ var se_CreateThemeData = /* @__PURE__ */ __name((input, context) => {
2046
+ return (0, import_smithy_client.take)(input, {
2047
+ name: [],
2048
+ overrides: (_) => se_ThemeValuesList(_, context),
2049
+ tags: import_smithy_client._json,
2050
+ values: (_) => se_ThemeValuesList(_, context)
2051
+ });
2052
+ }, "se_CreateThemeData");
2053
+ var se_FieldConfig = /* @__PURE__ */ __name((input, context) => {
2054
+ return (0, import_smithy_client.take)(input, {
2055
+ excluded: [],
2056
+ inputType: (_) => se_FieldInputConfig(_, context),
2057
+ label: [],
2058
+ position: import_smithy_client._json,
2059
+ validations: import_smithy_client._json
2060
+ });
2061
+ }, "se_FieldConfig");
2062
+ var se_FieldInputConfig = /* @__PURE__ */ __name((input, context) => {
2063
+ return (0, import_smithy_client.take)(input, {
2064
+ defaultChecked: [],
2065
+ defaultCountryCode: [],
2066
+ defaultValue: [],
2067
+ descriptiveText: [],
2068
+ fileUploaderConfig: import_smithy_client._json,
2069
+ isArray: [],
2070
+ maxValue: import_smithy_client.serializeFloat,
2071
+ minValue: import_smithy_client.serializeFloat,
2072
+ name: [],
2073
+ placeholder: [],
2074
+ readOnly: [],
2075
+ required: [],
2076
+ step: import_smithy_client.serializeFloat,
2077
+ type: [],
2078
+ value: [],
2079
+ valueMappings: (_) => se_ValueMappings(_, context)
2080
+ });
2081
+ }, "se_FieldInputConfig");
2082
+ var se_FieldsMap = /* @__PURE__ */ __name((input, context) => {
2083
+ return Object.entries(input).reduce((acc, [key, value]) => {
2084
+ if (value === null) {
2085
+ return acc;
2086
+ }
2087
+ acc[key] = se_FieldConfig(value, context);
2088
+ return acc;
2089
+ }, {});
2090
+ }, "se_FieldsMap");
2091
+ var se_FormInputValueProperty = /* @__PURE__ */ __name((input, context) => {
2092
+ return (0, import_smithy_client.take)(input, {
2093
+ bindingProperties: import_smithy_client._json,
2094
+ concat: (_) => se_FormInputValuePropertyList(_, context),
2095
+ value: []
2096
+ });
2097
+ }, "se_FormInputValueProperty");
2098
+ var se_FormInputValuePropertyList = /* @__PURE__ */ __name((input, context) => {
2099
+ return input.filter((e) => e != null).map((entry) => {
2100
+ return se_FormInputValueProperty(entry, context);
2101
+ });
2102
+ }, "se_FormInputValuePropertyList");
2103
+ var se_MutationActionSetStateParameter = /* @__PURE__ */ __name((input, context) => {
2104
+ return (0, import_smithy_client.take)(input, {
2105
+ componentName: [],
2106
+ property: [],
2107
+ set: (_) => se_ComponentProperty(_, context)
2108
+ });
2109
+ }, "se_MutationActionSetStateParameter");
2110
+ var se_Predicate = /* @__PURE__ */ __name((input, context) => {
2111
+ return (0, import_smithy_client.take)(input, {
2112
+ and: (_) => se_PredicateList(_, context),
2113
+ field: [],
2114
+ operand: [],
2115
+ operandType: [],
2116
+ operator: [],
2117
+ or: (_) => se_PredicateList(_, context)
2118
+ });
2119
+ }, "se_Predicate");
2120
+ var se_PredicateList = /* @__PURE__ */ __name((input, context) => {
2121
+ return input.filter((e) => e != null).map((entry) => {
2122
+ return se_Predicate(entry, context);
2123
+ });
2124
+ }, "se_PredicateList");
2125
+ var se_ThemeValue = /* @__PURE__ */ __name((input, context) => {
2126
+ return (0, import_smithy_client.take)(input, {
2127
+ children: (_) => se_ThemeValuesList(_, context),
2128
+ value: []
2129
+ });
2130
+ }, "se_ThemeValue");
2131
+ var se_ThemeValues = /* @__PURE__ */ __name((input, context) => {
2132
+ return (0, import_smithy_client.take)(input, {
2133
+ key: [],
2134
+ value: (_) => se_ThemeValue(_, context)
2135
+ });
2136
+ }, "se_ThemeValues");
2137
+ var se_ThemeValuesList = /* @__PURE__ */ __name((input, context) => {
2138
+ return input.filter((e) => e != null).map((entry) => {
2139
+ return se_ThemeValues(entry, context);
2140
+ });
2141
+ }, "se_ThemeValuesList");
2142
+ var se_UpdateComponentData = /* @__PURE__ */ __name((input, context) => {
2143
+ return (0, import_smithy_client.take)(input, {
2144
+ bindingProperties: (_) => se_ComponentBindingProperties(_, context),
2145
+ children: (_) => se_ComponentChildList(_, context),
2146
+ collectionProperties: (_) => se_ComponentCollectionProperties(_, context),
2147
+ componentType: [],
2148
+ events: (_) => se_ComponentEvents(_, context),
2149
+ id: [],
2150
+ name: [],
2151
+ overrides: import_smithy_client._json,
2152
+ properties: (_) => se_ComponentProperties(_, context),
2153
+ schemaVersion: [],
2154
+ sourceId: [],
2155
+ variants: import_smithy_client._json
2156
+ });
2157
+ }, "se_UpdateComponentData");
2158
+ var se_UpdateFormData = /* @__PURE__ */ __name((input, context) => {
2159
+ return (0, import_smithy_client.take)(input, {
2160
+ cta: import_smithy_client._json,
2161
+ dataType: import_smithy_client._json,
2162
+ fields: (_) => se_FieldsMap(_, context),
2163
+ formActionType: [],
2164
+ labelDecorator: [],
2165
+ name: [],
2166
+ schemaVersion: [],
2167
+ sectionalElements: import_smithy_client._json,
2168
+ style: import_smithy_client._json
2169
+ });
2170
+ }, "se_UpdateFormData");
2171
+ var se_UpdateThemeData = /* @__PURE__ */ __name((input, context) => {
2172
+ return (0, import_smithy_client.take)(input, {
2173
+ id: [],
2174
+ name: [],
2175
+ overrides: (_) => se_ThemeValuesList(_, context),
2176
+ values: (_) => se_ThemeValuesList(_, context)
2177
+ });
2178
+ }, "se_UpdateThemeData");
2179
+ var se_ValueMapping = /* @__PURE__ */ __name((input, context) => {
2180
+ return (0, import_smithy_client.take)(input, {
2181
+ displayValue: (_) => se_FormInputValueProperty(_, context),
2182
+ value: (_) => se_FormInputValueProperty(_, context)
2183
+ });
2184
+ }, "se_ValueMapping");
2185
+ var se_ValueMappingList = /* @__PURE__ */ __name((input, context) => {
2186
+ return input.filter((e) => e != null).map((entry) => {
2187
+ return se_ValueMapping(entry, context);
2188
+ });
2189
+ }, "se_ValueMappingList");
2190
+ var se_ValueMappings = /* @__PURE__ */ __name((input, context) => {
2191
+ return (0, import_smithy_client.take)(input, {
2192
+ bindingProperties: import_smithy_client._json,
2193
+ values: (_) => se_ValueMappingList(_, context)
2194
+ });
2195
+ }, "se_ValueMappings");
2196
+ var de_ActionParameters = /* @__PURE__ */ __name((output, context) => {
2197
+ return (0, import_smithy_client.take)(output, {
2198
+ anchor: (_) => de_ComponentProperty(_, context),
2199
+ fields: (_) => de_ComponentProperties(_, context),
2200
+ global: (_) => de_ComponentProperty(_, context),
2201
+ id: (_) => de_ComponentProperty(_, context),
2202
+ model: import_smithy_client.expectString,
2203
+ state: (_) => de_MutationActionSetStateParameter(_, context),
2204
+ target: (_) => de_ComponentProperty(_, context),
2205
+ type: (_) => de_ComponentProperty(_, context),
2206
+ url: (_) => de_ComponentProperty(_, context)
2207
+ });
2208
+ }, "de_ActionParameters");
2209
+ var de_CodegenJob = /* @__PURE__ */ __name((output, context) => {
2210
+ return (0, import_smithy_client.take)(output, {
2211
+ appId: import_smithy_client.expectString,
2212
+ asset: import_smithy_client._json,
2213
+ autoGenerateForms: import_smithy_client.expectBoolean,
2214
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2215
+ dependencies: import_smithy_client._json,
2216
+ environmentName: import_smithy_client.expectString,
2217
+ features: import_smithy_client._json,
2218
+ genericDataSchema: import_smithy_client._json,
2219
+ id: import_smithy_client.expectString,
2220
+ modifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2221
+ renderConfig: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2222
+ status: import_smithy_client.expectString,
2223
+ statusMessage: import_smithy_client.expectString,
2224
+ tags: import_smithy_client._json
2225
+ });
2226
+ }, "de_CodegenJob");
2227
+ var de_CodegenJobSummary = /* @__PURE__ */ __name((output, context) => {
2228
+ return (0, import_smithy_client.take)(output, {
2229
+ appId: import_smithy_client.expectString,
2230
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2231
+ environmentName: import_smithy_client.expectString,
2232
+ id: import_smithy_client.expectString,
2233
+ modifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2234
+ });
2235
+ }, "de_CodegenJobSummary");
2236
+ var de_CodegenJobSummaryList = /* @__PURE__ */ __name((output, context) => {
2237
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2238
+ return de_CodegenJobSummary(entry, context);
2239
+ });
2240
+ return retVal;
2241
+ }, "de_CodegenJobSummaryList");
2242
+ var de_Component = /* @__PURE__ */ __name((output, context) => {
2243
+ return (0, import_smithy_client.take)(output, {
2244
+ appId: import_smithy_client.expectString,
2245
+ bindingProperties: (_) => de_ComponentBindingProperties(_, context),
2246
+ children: (_) => de_ComponentChildList(_, context),
2247
+ collectionProperties: (_) => de_ComponentCollectionProperties(_, context),
2248
+ componentType: import_smithy_client.expectString,
2249
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2250
+ environmentName: import_smithy_client.expectString,
2251
+ events: (_) => de_ComponentEvents(_, context),
2252
+ id: import_smithy_client.expectString,
2253
+ modifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2254
+ name: import_smithy_client.expectString,
2255
+ overrides: import_smithy_client._json,
2256
+ properties: (_) => de_ComponentProperties(_, context),
2257
+ schemaVersion: import_smithy_client.expectString,
2258
+ sourceId: import_smithy_client.expectString,
2259
+ tags: import_smithy_client._json,
2260
+ variants: import_smithy_client._json
2261
+ });
2262
+ }, "de_Component");
2263
+ var de_ComponentBindingProperties = /* @__PURE__ */ __name((output, context) => {
2264
+ return Object.entries(output).reduce(
2265
+ (acc, [key, value]) => {
2266
+ if (value === null) {
2267
+ return acc;
2268
+ }
2269
+ acc[key] = de_ComponentBindingPropertiesValue(value, context);
2270
+ return acc;
2271
+ },
2272
+ {}
2273
+ );
2274
+ }, "de_ComponentBindingProperties");
2275
+ var de_ComponentBindingPropertiesValue = /* @__PURE__ */ __name((output, context) => {
2276
+ return (0, import_smithy_client.take)(output, {
2277
+ bindingProperties: (_) => de_ComponentBindingPropertiesValueProperties(_, context),
2278
+ defaultValue: import_smithy_client.expectString,
2279
+ type: import_smithy_client.expectString
2280
+ });
2281
+ }, "de_ComponentBindingPropertiesValue");
2282
+ var de_ComponentBindingPropertiesValueProperties = /* @__PURE__ */ __name((output, context) => {
2283
+ return (0, import_smithy_client.take)(output, {
2284
+ bucket: import_smithy_client.expectString,
2285
+ defaultValue: import_smithy_client.expectString,
2286
+ field: import_smithy_client.expectString,
2287
+ key: import_smithy_client.expectString,
2288
+ model: import_smithy_client.expectString,
2289
+ predicates: (_) => de_PredicateList(_, context),
2290
+ slotName: import_smithy_client.expectString,
2291
+ userAttribute: import_smithy_client.expectString
2292
+ });
2293
+ }, "de_ComponentBindingPropertiesValueProperties");
2294
+ var de_ComponentChild = /* @__PURE__ */ __name((output, context) => {
2295
+ return (0, import_smithy_client.take)(output, {
2296
+ children: (_) => de_ComponentChildList(_, context),
2297
+ componentType: import_smithy_client.expectString,
2298
+ events: (_) => de_ComponentEvents(_, context),
2299
+ name: import_smithy_client.expectString,
2300
+ properties: (_) => de_ComponentProperties(_, context),
2301
+ sourceId: import_smithy_client.expectString
2302
+ });
2303
+ }, "de_ComponentChild");
2304
+ var de_ComponentChildList = /* @__PURE__ */ __name((output, context) => {
2305
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2306
+ return de_ComponentChild(entry, context);
2307
+ });
2308
+ return retVal;
2309
+ }, "de_ComponentChildList");
2310
+ var de_ComponentCollectionProperties = /* @__PURE__ */ __name((output, context) => {
2311
+ return Object.entries(output).reduce(
2312
+ (acc, [key, value]) => {
2313
+ if (value === null) {
2314
+ return acc;
2315
+ }
2316
+ acc[key] = de_ComponentDataConfiguration(value, context);
2317
+ return acc;
2318
+ },
2319
+ {}
2320
+ );
2321
+ }, "de_ComponentCollectionProperties");
2322
+ var de_ComponentConditionProperty = /* @__PURE__ */ __name((output, context) => {
2323
+ return (0, import_smithy_client.take)(output, {
2324
+ else: (_) => de_ComponentProperty(_, context),
2325
+ field: import_smithy_client.expectString,
2326
+ operand: import_smithy_client.expectString,
2327
+ operandType: import_smithy_client.expectString,
2328
+ operator: import_smithy_client.expectString,
2329
+ property: import_smithy_client.expectString,
2330
+ then: (_) => de_ComponentProperty(_, context)
2331
+ });
2332
+ }, "de_ComponentConditionProperty");
2333
+ var de_ComponentDataConfiguration = /* @__PURE__ */ __name((output, context) => {
2334
+ return (0, import_smithy_client.take)(output, {
2335
+ identifiers: import_smithy_client._json,
2336
+ model: import_smithy_client.expectString,
2337
+ predicate: (_) => de_Predicate(_, context),
2338
+ sort: import_smithy_client._json
2339
+ });
2340
+ }, "de_ComponentDataConfiguration");
2341
+ var de_ComponentEvent = /* @__PURE__ */ __name((output, context) => {
2342
+ return (0, import_smithy_client.take)(output, {
2343
+ action: import_smithy_client.expectString,
2344
+ bindingEvent: import_smithy_client.expectString,
2345
+ parameters: (_) => de_ActionParameters(_, context)
2346
+ });
2347
+ }, "de_ComponentEvent");
2348
+ var de_ComponentEvents = /* @__PURE__ */ __name((output, context) => {
2349
+ return Object.entries(output).reduce((acc, [key, value]) => {
2350
+ if (value === null) {
2351
+ return acc;
2352
+ }
2353
+ acc[key] = de_ComponentEvent(value, context);
2354
+ return acc;
2355
+ }, {});
2356
+ }, "de_ComponentEvents");
2357
+ var de_ComponentList = /* @__PURE__ */ __name((output, context) => {
2358
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2359
+ return de_Component(entry, context);
2360
+ });
2361
+ return retVal;
2362
+ }, "de_ComponentList");
2363
+ var de_ComponentProperties = /* @__PURE__ */ __name((output, context) => {
2364
+ return Object.entries(output).reduce((acc, [key, value]) => {
2365
+ if (value === null) {
2366
+ return acc;
2367
+ }
2368
+ acc[key] = de_ComponentProperty(value, context);
2369
+ return acc;
2370
+ }, {});
2371
+ }, "de_ComponentProperties");
2372
+ var de_ComponentProperty = /* @__PURE__ */ __name((output, context) => {
2373
+ return (0, import_smithy_client.take)(output, {
2374
+ bindingProperties: import_smithy_client._json,
2375
+ bindings: import_smithy_client._json,
2376
+ collectionBindingProperties: import_smithy_client._json,
2377
+ componentName: import_smithy_client.expectString,
2378
+ concat: (_) => de_ComponentPropertyList(_, context),
2379
+ condition: (_) => de_ComponentConditionProperty(_, context),
2380
+ configured: import_smithy_client.expectBoolean,
2381
+ defaultValue: import_smithy_client.expectString,
2382
+ event: import_smithy_client.expectString,
2383
+ importedValue: import_smithy_client.expectString,
2384
+ model: import_smithy_client.expectString,
2385
+ property: import_smithy_client.expectString,
2386
+ type: import_smithy_client.expectString,
2387
+ userAttribute: import_smithy_client.expectString,
2388
+ value: import_smithy_client.expectString
2389
+ });
2390
+ }, "de_ComponentProperty");
2391
+ var de_ComponentPropertyList = /* @__PURE__ */ __name((output, context) => {
2392
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2393
+ return de_ComponentProperty(entry, context);
2394
+ });
2395
+ return retVal;
2396
+ }, "de_ComponentPropertyList");
2397
+ var de_FieldConfig = /* @__PURE__ */ __name((output, context) => {
2398
+ return (0, import_smithy_client.take)(output, {
2399
+ excluded: import_smithy_client.expectBoolean,
2400
+ inputType: (_) => de_FieldInputConfig(_, context),
2401
+ label: import_smithy_client.expectString,
2402
+ position: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2403
+ validations: import_smithy_client._json
2404
+ });
2405
+ }, "de_FieldConfig");
2406
+ var de_FieldInputConfig = /* @__PURE__ */ __name((output, context) => {
2407
+ return (0, import_smithy_client.take)(output, {
2408
+ defaultChecked: import_smithy_client.expectBoolean,
2409
+ defaultCountryCode: import_smithy_client.expectString,
2410
+ defaultValue: import_smithy_client.expectString,
2411
+ descriptiveText: import_smithy_client.expectString,
2412
+ fileUploaderConfig: import_smithy_client._json,
2413
+ isArray: import_smithy_client.expectBoolean,
2414
+ maxValue: import_smithy_client.limitedParseFloat32,
2415
+ minValue: import_smithy_client.limitedParseFloat32,
2416
+ name: import_smithy_client.expectString,
2417
+ placeholder: import_smithy_client.expectString,
2418
+ readOnly: import_smithy_client.expectBoolean,
2419
+ required: import_smithy_client.expectBoolean,
2420
+ step: import_smithy_client.limitedParseFloat32,
2421
+ type: import_smithy_client.expectString,
2422
+ value: import_smithy_client.expectString,
2423
+ valueMappings: (_) => de_ValueMappings(_, context)
2424
+ });
2425
+ }, "de_FieldInputConfig");
2426
+ var de_FieldsMap = /* @__PURE__ */ __name((output, context) => {
2427
+ return Object.entries(output).reduce((acc, [key, value]) => {
2428
+ if (value === null) {
2429
+ return acc;
2430
+ }
2431
+ acc[key] = de_FieldConfig(value, context);
2432
+ return acc;
2433
+ }, {});
2434
+ }, "de_FieldsMap");
2435
+ var de_Form = /* @__PURE__ */ __name((output, context) => {
2436
+ return (0, import_smithy_client.take)(output, {
2437
+ appId: import_smithy_client.expectString,
2438
+ cta: import_smithy_client._json,
2439
+ dataType: import_smithy_client._json,
2440
+ environmentName: import_smithy_client.expectString,
2441
+ fields: (_) => de_FieldsMap(_, context),
2442
+ formActionType: import_smithy_client.expectString,
2443
+ id: import_smithy_client.expectString,
2444
+ labelDecorator: import_smithy_client.expectString,
2445
+ name: import_smithy_client.expectString,
2446
+ schemaVersion: import_smithy_client.expectString,
2447
+ sectionalElements: import_smithy_client._json,
2448
+ style: import_smithy_client._json,
2449
+ tags: import_smithy_client._json
2450
+ });
2451
+ }, "de_Form");
2452
+ var de_FormInputValueProperty = /* @__PURE__ */ __name((output, context) => {
2453
+ return (0, import_smithy_client.take)(output, {
2454
+ bindingProperties: import_smithy_client._json,
2455
+ concat: (_) => de_FormInputValuePropertyList(_, context),
2456
+ value: import_smithy_client.expectString
2457
+ });
2458
+ }, "de_FormInputValueProperty");
2459
+ var de_FormInputValuePropertyList = /* @__PURE__ */ __name((output, context) => {
2460
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2461
+ return de_FormInputValueProperty(entry, context);
2462
+ });
2463
+ return retVal;
2464
+ }, "de_FormInputValuePropertyList");
2465
+ var de_FormList = /* @__PURE__ */ __name((output, context) => {
2466
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2467
+ return de_Form(entry, context);
2468
+ });
2469
+ return retVal;
2470
+ }, "de_FormList");
2471
+ var de_MutationActionSetStateParameter = /* @__PURE__ */ __name((output, context) => {
2472
+ return (0, import_smithy_client.take)(output, {
2473
+ componentName: import_smithy_client.expectString,
2474
+ property: import_smithy_client.expectString,
2475
+ set: (_) => de_ComponentProperty(_, context)
2476
+ });
2477
+ }, "de_MutationActionSetStateParameter");
2478
+ var de_Predicate = /* @__PURE__ */ __name((output, context) => {
2479
+ return (0, import_smithy_client.take)(output, {
2480
+ and: (_) => de_PredicateList(_, context),
2481
+ field: import_smithy_client.expectString,
2482
+ operand: import_smithy_client.expectString,
2483
+ operandType: import_smithy_client.expectString,
2484
+ operator: import_smithy_client.expectString,
2485
+ or: (_) => de_PredicateList(_, context)
2486
+ });
2487
+ }, "de_Predicate");
2488
+ var de_PredicateList = /* @__PURE__ */ __name((output, context) => {
2489
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2490
+ return de_Predicate(entry, context);
2491
+ });
2492
+ return retVal;
2493
+ }, "de_PredicateList");
2494
+ var de_Theme = /* @__PURE__ */ __name((output, context) => {
2495
+ return (0, import_smithy_client.take)(output, {
2496
+ appId: import_smithy_client.expectString,
2497
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2498
+ environmentName: import_smithy_client.expectString,
2499
+ id: import_smithy_client.expectString,
2500
+ modifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2501
+ name: import_smithy_client.expectString,
2502
+ overrides: (_) => de_ThemeValuesList(_, context),
2503
+ tags: import_smithy_client._json,
2504
+ values: (_) => de_ThemeValuesList(_, context)
2505
+ });
2506
+ }, "de_Theme");
2507
+ var de_ThemeList = /* @__PURE__ */ __name((output, context) => {
2508
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2509
+ return de_Theme(entry, context);
2510
+ });
2511
+ return retVal;
2512
+ }, "de_ThemeList");
2513
+ var de_ThemeValue = /* @__PURE__ */ __name((output, context) => {
2514
+ return (0, import_smithy_client.take)(output, {
2515
+ children: (_) => de_ThemeValuesList(_, context),
2516
+ value: import_smithy_client.expectString
2517
+ });
2518
+ }, "de_ThemeValue");
2519
+ var de_ThemeValues = /* @__PURE__ */ __name((output, context) => {
2520
+ return (0, import_smithy_client.take)(output, {
2521
+ key: import_smithy_client.expectString,
2522
+ value: (_) => de_ThemeValue(_, context)
2523
+ });
2524
+ }, "de_ThemeValues");
2525
+ var de_ThemeValuesList = /* @__PURE__ */ __name((output, context) => {
2526
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2527
+ return de_ThemeValues(entry, context);
2528
+ });
2529
+ return retVal;
2530
+ }, "de_ThemeValuesList");
2531
+ var de_ValueMapping = /* @__PURE__ */ __name((output, context) => {
2532
+ return (0, import_smithy_client.take)(output, {
2533
+ displayValue: (_) => de_FormInputValueProperty(_, context),
2534
+ value: (_) => de_FormInputValueProperty(_, context)
2535
+ });
2536
+ }, "de_ValueMapping");
2537
+ var de_ValueMappingList = /* @__PURE__ */ __name((output, context) => {
2538
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2539
+ return de_ValueMapping(entry, context);
2540
+ });
2541
+ return retVal;
2542
+ }, "de_ValueMappingList");
2543
+ var de_ValueMappings = /* @__PURE__ */ __name((output, context) => {
2544
+ return (0, import_smithy_client.take)(output, {
2545
+ bindingProperties: import_smithy_client._json,
2546
+ values: (_) => de_ValueMappingList(_, context)
2547
+ });
2548
+ }, "de_ValueMappings");
2549
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2550
+ httpStatusCode: output.statusCode,
2551
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2552
+ extendedRequestId: output.headers["x-amz-id-2"],
2553
+ cfId: output.headers["x-amz-cf-id"]
2554
+ }), "deserializeMetadata");
2555
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2556
+ var _cT = "clientToken";
2557
+ var _mR = "maxResults";
2558
+ var _nT = "nextToken";
2559
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2560
+ if (encoded.length) {
2561
+ return JSON.parse(encoded);
2562
+ }
2563
+ return {};
2564
+ }), "parseBody");
2565
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2566
+ const value = await parseBody(errorBody, context);
2567
+ value.message = value.message ?? value.Message;
2568
+ return value;
2569
+ }, "parseErrorBody");
2570
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2571
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2572
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2573
+ let cleanValue = rawValue;
2574
+ if (typeof cleanValue === "number") {
2575
+ cleanValue = cleanValue.toString();
2576
+ }
2577
+ if (cleanValue.indexOf(",") >= 0) {
2578
+ cleanValue = cleanValue.split(",")[0];
2579
+ }
2580
+ if (cleanValue.indexOf(":") >= 0) {
2581
+ cleanValue = cleanValue.split(":")[0];
2582
+ }
2583
+ if (cleanValue.indexOf("#") >= 0) {
2584
+ cleanValue = cleanValue.split("#")[1];
2585
+ }
2586
+ return cleanValue;
2587
+ }, "sanitizeErrorCode");
2588
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2589
+ if (headerKey !== void 0) {
2590
+ return sanitizeErrorCode(output.headers[headerKey]);
2591
+ }
2592
+ if (data.code !== void 0) {
2593
+ return sanitizeErrorCode(data.code);
2594
+ }
2595
+ if (data["__type"] !== void 0) {
2596
+ return sanitizeErrorCode(data["__type"]);
2597
+ }
2598
+ }, "loadRestJsonErrorCode");
2599
+
2600
+ // src/commands/CreateComponentCommand.ts
2601
+ var _CreateComponentCommand = class _CreateComponentCommand extends import_smithy_client.Command.classBuilder().ep({
2602
+ ...commonParams
2603
+ }).m(function(Command, cs, config, o) {
2604
+ return [
2605
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2606
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2607
+ ];
2608
+ }).s("AmplifyUIBuilder", "CreateComponent", {}).n("AmplifyUIBuilderClient", "CreateComponentCommand").f(void 0, void 0).ser(se_CreateComponentCommand).de(de_CreateComponentCommand).build() {
2609
+ };
2610
+ __name(_CreateComponentCommand, "CreateComponentCommand");
2611
+ var CreateComponentCommand = _CreateComponentCommand;
2612
+
2613
+ // src/commands/CreateFormCommand.ts
2614
+
2615
+
2616
+
2617
+
2618
+ var _CreateFormCommand = class _CreateFormCommand extends import_smithy_client.Command.classBuilder().ep({
2619
+ ...commonParams
2620
+ }).m(function(Command, cs, config, o) {
2621
+ return [
2622
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2623
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2624
+ ];
2625
+ }).s("AmplifyUIBuilder", "CreateForm", {}).n("AmplifyUIBuilderClient", "CreateFormCommand").f(void 0, void 0).ser(se_CreateFormCommand).de(de_CreateFormCommand).build() {
2626
+ };
2627
+ __name(_CreateFormCommand, "CreateFormCommand");
2628
+ var CreateFormCommand = _CreateFormCommand;
2629
+
2630
+ // src/commands/CreateThemeCommand.ts
2631
+
2632
+
2633
+
2634
+
2635
+ var _CreateThemeCommand = class _CreateThemeCommand extends import_smithy_client.Command.classBuilder().ep({
2636
+ ...commonParams
2637
+ }).m(function(Command, cs, config, o) {
2638
+ return [
2639
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2640
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2641
+ ];
2642
+ }).s("AmplifyUIBuilder", "CreateTheme", {}).n("AmplifyUIBuilderClient", "CreateThemeCommand").f(void 0, void 0).ser(se_CreateThemeCommand).de(de_CreateThemeCommand).build() {
2643
+ };
2644
+ __name(_CreateThemeCommand, "CreateThemeCommand");
2645
+ var CreateThemeCommand = _CreateThemeCommand;
2646
+
2647
+ // src/commands/DeleteComponentCommand.ts
2648
+
2649
+
2650
+
2651
+
2652
+ var _DeleteComponentCommand = class _DeleteComponentCommand extends import_smithy_client.Command.classBuilder().ep({
2653
+ ...commonParams
2654
+ }).m(function(Command, cs, config, o) {
2655
+ return [
2656
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2657
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2658
+ ];
2659
+ }).s("AmplifyUIBuilder", "DeleteComponent", {}).n("AmplifyUIBuilderClient", "DeleteComponentCommand").f(void 0, void 0).ser(se_DeleteComponentCommand).de(de_DeleteComponentCommand).build() {
2660
+ };
2661
+ __name(_DeleteComponentCommand, "DeleteComponentCommand");
2662
+ var DeleteComponentCommand = _DeleteComponentCommand;
2663
+
2664
+ // src/commands/DeleteFormCommand.ts
2665
+
2666
+
2667
+
2668
+
2669
+ var _DeleteFormCommand = class _DeleteFormCommand extends import_smithy_client.Command.classBuilder().ep({
2670
+ ...commonParams
2671
+ }).m(function(Command, cs, config, o) {
2672
+ return [
2673
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2674
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2675
+ ];
2676
+ }).s("AmplifyUIBuilder", "DeleteForm", {}).n("AmplifyUIBuilderClient", "DeleteFormCommand").f(void 0, void 0).ser(se_DeleteFormCommand).de(de_DeleteFormCommand).build() {
2677
+ };
2678
+ __name(_DeleteFormCommand, "DeleteFormCommand");
2679
+ var DeleteFormCommand = _DeleteFormCommand;
2680
+
2681
+ // src/commands/DeleteThemeCommand.ts
2682
+
2683
+
2684
+
2685
+
2686
+ var _DeleteThemeCommand = class _DeleteThemeCommand extends import_smithy_client.Command.classBuilder().ep({
2687
+ ...commonParams
2688
+ }).m(function(Command, cs, config, o) {
2689
+ return [
2690
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2691
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2692
+ ];
2693
+ }).s("AmplifyUIBuilder", "DeleteTheme", {}).n("AmplifyUIBuilderClient", "DeleteThemeCommand").f(void 0, void 0).ser(se_DeleteThemeCommand).de(de_DeleteThemeCommand).build() {
2694
+ };
2695
+ __name(_DeleteThemeCommand, "DeleteThemeCommand");
2696
+ var DeleteThemeCommand = _DeleteThemeCommand;
2697
+
2698
+ // src/commands/ExchangeCodeForTokenCommand.ts
2699
+
2700
+
2701
+
2702
+
2703
+ var _ExchangeCodeForTokenCommand = class _ExchangeCodeForTokenCommand extends import_smithy_client.Command.classBuilder().ep({
2704
+ ...commonParams
2705
+ }).m(function(Command, cs, config, o) {
2706
+ return [
2707
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2708
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2709
+ ];
2710
+ }).s("AmplifyUIBuilder", "ExchangeCodeForToken", {}).n("AmplifyUIBuilderClient", "ExchangeCodeForTokenCommand").f(ExchangeCodeForTokenRequestFilterSensitiveLog, ExchangeCodeForTokenResponseFilterSensitiveLog).ser(se_ExchangeCodeForTokenCommand).de(de_ExchangeCodeForTokenCommand).build() {
2711
+ };
2712
+ __name(_ExchangeCodeForTokenCommand, "ExchangeCodeForTokenCommand");
2713
+ var ExchangeCodeForTokenCommand = _ExchangeCodeForTokenCommand;
2714
+
2715
+ // src/commands/ExportComponentsCommand.ts
2716
+
2717
+
2718
+
2719
+
2720
+ var _ExportComponentsCommand = class _ExportComponentsCommand extends import_smithy_client.Command.classBuilder().ep({
2721
+ ...commonParams
2722
+ }).m(function(Command, cs, config, o) {
2723
+ return [
2724
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2725
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2726
+ ];
2727
+ }).s("AmplifyUIBuilder", "ExportComponents", {}).n("AmplifyUIBuilderClient", "ExportComponentsCommand").f(void 0, void 0).ser(se_ExportComponentsCommand).de(de_ExportComponentsCommand).build() {
2728
+ };
2729
+ __name(_ExportComponentsCommand, "ExportComponentsCommand");
2730
+ var ExportComponentsCommand = _ExportComponentsCommand;
2731
+
2732
+ // src/commands/ExportFormsCommand.ts
2733
+
2734
+
2735
+
2736
+
2737
+ var _ExportFormsCommand = class _ExportFormsCommand extends import_smithy_client.Command.classBuilder().ep({
2738
+ ...commonParams
2739
+ }).m(function(Command, cs, config, o) {
2740
+ return [
2741
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2742
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2743
+ ];
2744
+ }).s("AmplifyUIBuilder", "ExportForms", {}).n("AmplifyUIBuilderClient", "ExportFormsCommand").f(void 0, void 0).ser(se_ExportFormsCommand).de(de_ExportFormsCommand).build() {
2745
+ };
2746
+ __name(_ExportFormsCommand, "ExportFormsCommand");
2747
+ var ExportFormsCommand = _ExportFormsCommand;
2748
+
2749
+ // src/commands/ExportThemesCommand.ts
2750
+
2751
+
2752
+
2753
+
2754
+ var _ExportThemesCommand = class _ExportThemesCommand extends import_smithy_client.Command.classBuilder().ep({
2755
+ ...commonParams
2756
+ }).m(function(Command, cs, config, o) {
2757
+ return [
2758
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2759
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2760
+ ];
2761
+ }).s("AmplifyUIBuilder", "ExportThemes", {}).n("AmplifyUIBuilderClient", "ExportThemesCommand").f(void 0, void 0).ser(se_ExportThemesCommand).de(de_ExportThemesCommand).build() {
2762
+ };
2763
+ __name(_ExportThemesCommand, "ExportThemesCommand");
2764
+ var ExportThemesCommand = _ExportThemesCommand;
2765
+
2766
+ // src/commands/GetCodegenJobCommand.ts
2767
+
2768
+
2769
+
2770
+
2771
+ var _GetCodegenJobCommand = class _GetCodegenJobCommand extends import_smithy_client.Command.classBuilder().ep({
2772
+ ...commonParams
2773
+ }).m(function(Command, cs, config, o) {
2774
+ return [
2775
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2776
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2777
+ ];
2778
+ }).s("AmplifyUIBuilder", "GetCodegenJob", {}).n("AmplifyUIBuilderClient", "GetCodegenJobCommand").f(void 0, void 0).ser(se_GetCodegenJobCommand).de(de_GetCodegenJobCommand).build() {
2779
+ };
2780
+ __name(_GetCodegenJobCommand, "GetCodegenJobCommand");
2781
+ var GetCodegenJobCommand = _GetCodegenJobCommand;
2782
+
2783
+ // src/commands/GetComponentCommand.ts
2784
+
2785
+
2786
+
2787
+
2788
+ var _GetComponentCommand = class _GetComponentCommand extends import_smithy_client.Command.classBuilder().ep({
2789
+ ...commonParams
2790
+ }).m(function(Command, cs, config, o) {
2791
+ return [
2792
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2793
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2794
+ ];
2795
+ }).s("AmplifyUIBuilder", "GetComponent", {}).n("AmplifyUIBuilderClient", "GetComponentCommand").f(void 0, void 0).ser(se_GetComponentCommand).de(de_GetComponentCommand).build() {
2796
+ };
2797
+ __name(_GetComponentCommand, "GetComponentCommand");
2798
+ var GetComponentCommand = _GetComponentCommand;
2799
+
2800
+ // src/commands/GetFormCommand.ts
2801
+
2802
+
2803
+
2804
+
2805
+ var _GetFormCommand = class _GetFormCommand extends import_smithy_client.Command.classBuilder().ep({
2806
+ ...commonParams
2807
+ }).m(function(Command, cs, config, o) {
2808
+ return [
2809
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2810
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2811
+ ];
2812
+ }).s("AmplifyUIBuilder", "GetForm", {}).n("AmplifyUIBuilderClient", "GetFormCommand").f(void 0, void 0).ser(se_GetFormCommand).de(de_GetFormCommand).build() {
2813
+ };
2814
+ __name(_GetFormCommand, "GetFormCommand");
2815
+ var GetFormCommand = _GetFormCommand;
2816
+
2817
+ // src/commands/GetMetadataCommand.ts
2818
+
2819
+
2820
+
2821
+
2822
+ var _GetMetadataCommand = class _GetMetadataCommand extends import_smithy_client.Command.classBuilder().ep({
2823
+ ...commonParams
2824
+ }).m(function(Command, cs, config, o) {
2825
+ return [
2826
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2827
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2828
+ ];
2829
+ }).s("AmplifyUIBuilder", "GetMetadata", {}).n("AmplifyUIBuilderClient", "GetMetadataCommand").f(void 0, void 0).ser(se_GetMetadataCommand).de(de_GetMetadataCommand).build() {
2830
+ };
2831
+ __name(_GetMetadataCommand, "GetMetadataCommand");
2832
+ var GetMetadataCommand = _GetMetadataCommand;
2833
+
2834
+ // src/commands/GetThemeCommand.ts
2835
+
2836
+
2837
+
2838
+
2839
+ var _GetThemeCommand = class _GetThemeCommand extends import_smithy_client.Command.classBuilder().ep({
2840
+ ...commonParams
2841
+ }).m(function(Command, cs, config, o) {
2842
+ return [
2843
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2844
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2845
+ ];
2846
+ }).s("AmplifyUIBuilder", "GetTheme", {}).n("AmplifyUIBuilderClient", "GetThemeCommand").f(void 0, void 0).ser(se_GetThemeCommand).de(de_GetThemeCommand).build() {
2847
+ };
2848
+ __name(_GetThemeCommand, "GetThemeCommand");
2849
+ var GetThemeCommand = _GetThemeCommand;
2850
+
2851
+ // src/commands/ListCodegenJobsCommand.ts
2852
+
2853
+
2854
+
2855
+
2856
+ var _ListCodegenJobsCommand = class _ListCodegenJobsCommand extends import_smithy_client.Command.classBuilder().ep({
2857
+ ...commonParams
2858
+ }).m(function(Command, cs, config, o) {
2859
+ return [
2860
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2861
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2862
+ ];
2863
+ }).s("AmplifyUIBuilder", "ListCodegenJobs", {}).n("AmplifyUIBuilderClient", "ListCodegenJobsCommand").f(void 0, void 0).ser(se_ListCodegenJobsCommand).de(de_ListCodegenJobsCommand).build() {
2864
+ };
2865
+ __name(_ListCodegenJobsCommand, "ListCodegenJobsCommand");
2866
+ var ListCodegenJobsCommand = _ListCodegenJobsCommand;
2867
+
2868
+ // src/commands/ListComponentsCommand.ts
2869
+
2870
+
2871
+
2872
+
2873
+ var _ListComponentsCommand = class _ListComponentsCommand extends import_smithy_client.Command.classBuilder().ep({
2874
+ ...commonParams
2875
+ }).m(function(Command, cs, config, o) {
2876
+ return [
2877
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2878
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2879
+ ];
2880
+ }).s("AmplifyUIBuilder", "ListComponents", {}).n("AmplifyUIBuilderClient", "ListComponentsCommand").f(void 0, void 0).ser(se_ListComponentsCommand).de(de_ListComponentsCommand).build() {
2881
+ };
2882
+ __name(_ListComponentsCommand, "ListComponentsCommand");
2883
+ var ListComponentsCommand = _ListComponentsCommand;
2884
+
2885
+ // src/commands/ListFormsCommand.ts
2886
+
2887
+
2888
+
2889
+
2890
+ var _ListFormsCommand = class _ListFormsCommand extends import_smithy_client.Command.classBuilder().ep({
2891
+ ...commonParams
2892
+ }).m(function(Command, cs, config, o) {
2893
+ return [
2894
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2895
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2896
+ ];
2897
+ }).s("AmplifyUIBuilder", "ListForms", {}).n("AmplifyUIBuilderClient", "ListFormsCommand").f(void 0, void 0).ser(se_ListFormsCommand).de(de_ListFormsCommand).build() {
2898
+ };
2899
+ __name(_ListFormsCommand, "ListFormsCommand");
2900
+ var ListFormsCommand = _ListFormsCommand;
2901
+
2902
+ // src/commands/ListThemesCommand.ts
2903
+
2904
+
2905
+
2906
+
2907
+ var _ListThemesCommand = class _ListThemesCommand extends import_smithy_client.Command.classBuilder().ep({
2908
+ ...commonParams
2909
+ }).m(function(Command, cs, config, o) {
2910
+ return [
2911
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2912
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2913
+ ];
2914
+ }).s("AmplifyUIBuilder", "ListThemes", {}).n("AmplifyUIBuilderClient", "ListThemesCommand").f(void 0, void 0).ser(se_ListThemesCommand).de(de_ListThemesCommand).build() {
2915
+ };
2916
+ __name(_ListThemesCommand, "ListThemesCommand");
2917
+ var ListThemesCommand = _ListThemesCommand;
2918
+
2919
+ // src/commands/PutMetadataFlagCommand.ts
2920
+
2921
+
2922
+
2923
+
2924
+ var _PutMetadataFlagCommand = class _PutMetadataFlagCommand extends import_smithy_client.Command.classBuilder().ep({
2925
+ ...commonParams
2926
+ }).m(function(Command, cs, config, o) {
2927
+ return [
2928
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2929
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2930
+ ];
2931
+ }).s("AmplifyUIBuilder", "PutMetadataFlag", {}).n("AmplifyUIBuilderClient", "PutMetadataFlagCommand").f(void 0, void 0).ser(se_PutMetadataFlagCommand).de(de_PutMetadataFlagCommand).build() {
2932
+ };
2933
+ __name(_PutMetadataFlagCommand, "PutMetadataFlagCommand");
2934
+ var PutMetadataFlagCommand = _PutMetadataFlagCommand;
2935
+
2936
+ // src/commands/RefreshTokenCommand.ts
2937
+
2938
+
2939
+
2940
+
2941
+ var _RefreshTokenCommand = class _RefreshTokenCommand extends import_smithy_client.Command.classBuilder().ep({
2942
+ ...commonParams
2943
+ }).m(function(Command, cs, config, o) {
2944
+ return [
2945
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2946
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2947
+ ];
2948
+ }).s("AmplifyUIBuilder", "RefreshToken", {}).n("AmplifyUIBuilderClient", "RefreshTokenCommand").f(RefreshTokenRequestFilterSensitiveLog, RefreshTokenResponseFilterSensitiveLog).ser(se_RefreshTokenCommand).de(de_RefreshTokenCommand).build() {
2949
+ };
2950
+ __name(_RefreshTokenCommand, "RefreshTokenCommand");
2951
+ var RefreshTokenCommand = _RefreshTokenCommand;
2952
+
2953
+ // src/commands/StartCodegenJobCommand.ts
2954
+
2955
+
2956
+
2957
+
2958
+ var _StartCodegenJobCommand = class _StartCodegenJobCommand extends import_smithy_client.Command.classBuilder().ep({
2959
+ ...commonParams
2960
+ }).m(function(Command, cs, config, o) {
2961
+ return [
2962
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2963
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2964
+ ];
2965
+ }).s("AmplifyUIBuilder", "StartCodegenJob", {}).n("AmplifyUIBuilderClient", "StartCodegenJobCommand").f(void 0, void 0).ser(se_StartCodegenJobCommand).de(de_StartCodegenJobCommand).build() {
2966
+ };
2967
+ __name(_StartCodegenJobCommand, "StartCodegenJobCommand");
2968
+ var StartCodegenJobCommand = _StartCodegenJobCommand;
2969
+
2970
+ // src/commands/UpdateComponentCommand.ts
2971
+
2972
+
2973
+
2974
+
2975
+ var _UpdateComponentCommand = class _UpdateComponentCommand extends import_smithy_client.Command.classBuilder().ep({
2976
+ ...commonParams
2977
+ }).m(function(Command, cs, config, o) {
2978
+ return [
2979
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2980
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2981
+ ];
2982
+ }).s("AmplifyUIBuilder", "UpdateComponent", {}).n("AmplifyUIBuilderClient", "UpdateComponentCommand").f(void 0, void 0).ser(se_UpdateComponentCommand).de(de_UpdateComponentCommand).build() {
2983
+ };
2984
+ __name(_UpdateComponentCommand, "UpdateComponentCommand");
2985
+ var UpdateComponentCommand = _UpdateComponentCommand;
2986
+
2987
+ // src/commands/UpdateFormCommand.ts
2988
+
2989
+
2990
+
2991
+
2992
+ var _UpdateFormCommand = class _UpdateFormCommand extends import_smithy_client.Command.classBuilder().ep({
2993
+ ...commonParams
2994
+ }).m(function(Command, cs, config, o) {
2995
+ return [
2996
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2997
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2998
+ ];
2999
+ }).s("AmplifyUIBuilder", "UpdateForm", {}).n("AmplifyUIBuilderClient", "UpdateFormCommand").f(void 0, void 0).ser(se_UpdateFormCommand).de(de_UpdateFormCommand).build() {
3000
+ };
3001
+ __name(_UpdateFormCommand, "UpdateFormCommand");
3002
+ var UpdateFormCommand = _UpdateFormCommand;
3003
+
3004
+ // src/commands/UpdateThemeCommand.ts
3005
+
3006
+
3007
+
3008
+
3009
+ var _UpdateThemeCommand = class _UpdateThemeCommand extends import_smithy_client.Command.classBuilder().ep({
3010
+ ...commonParams
3011
+ }).m(function(Command, cs, config, o) {
3012
+ return [
3013
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3014
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3015
+ ];
3016
+ }).s("AmplifyUIBuilder", "UpdateTheme", {}).n("AmplifyUIBuilderClient", "UpdateThemeCommand").f(void 0, void 0).ser(se_UpdateThemeCommand).de(de_UpdateThemeCommand).build() {
3017
+ };
3018
+ __name(_UpdateThemeCommand, "UpdateThemeCommand");
3019
+ var UpdateThemeCommand = _UpdateThemeCommand;
3020
+
3021
+ // src/AmplifyUIBuilder.ts
3022
+ var commands = {
3023
+ CreateComponentCommand,
3024
+ CreateFormCommand,
3025
+ CreateThemeCommand,
3026
+ DeleteComponentCommand,
3027
+ DeleteFormCommand,
3028
+ DeleteThemeCommand,
3029
+ ExchangeCodeForTokenCommand,
3030
+ ExportComponentsCommand,
3031
+ ExportFormsCommand,
3032
+ ExportThemesCommand,
3033
+ GetCodegenJobCommand,
3034
+ GetComponentCommand,
3035
+ GetFormCommand,
3036
+ GetMetadataCommand,
3037
+ GetThemeCommand,
3038
+ ListCodegenJobsCommand,
3039
+ ListComponentsCommand,
3040
+ ListFormsCommand,
3041
+ ListThemesCommand,
3042
+ PutMetadataFlagCommand,
3043
+ RefreshTokenCommand,
3044
+ StartCodegenJobCommand,
3045
+ UpdateComponentCommand,
3046
+ UpdateFormCommand,
3047
+ UpdateThemeCommand
3048
+ };
3049
+ var _AmplifyUIBuilder = class _AmplifyUIBuilder extends AmplifyUIBuilderClient {
3050
+ };
3051
+ __name(_AmplifyUIBuilder, "AmplifyUIBuilder");
3052
+ var AmplifyUIBuilder = _AmplifyUIBuilder;
3053
+ (0, import_smithy_client.createAggregatedClient)(commands, AmplifyUIBuilder);
3054
+
3055
+ // src/pagination/ExportComponentsPaginator.ts
3056
+ var import_core3 = require("@smithy/core");
3057
+ var paginateExportComponents = (0, import_core3.createPaginator)(AmplifyUIBuilderClient, ExportComponentsCommand, "nextToken", "nextToken", "");
3058
+
3059
+ // src/pagination/ExportFormsPaginator.ts
3060
+ var import_core4 = require("@smithy/core");
3061
+ var paginateExportForms = (0, import_core4.createPaginator)(AmplifyUIBuilderClient, ExportFormsCommand, "nextToken", "nextToken", "");
3062
+
3063
+ // src/pagination/ExportThemesPaginator.ts
3064
+ var import_core5 = require("@smithy/core");
3065
+ var paginateExportThemes = (0, import_core5.createPaginator)(AmplifyUIBuilderClient, ExportThemesCommand, "nextToken", "nextToken", "");
3066
+
3067
+ // src/pagination/ListCodegenJobsPaginator.ts
3068
+ var import_core6 = require("@smithy/core");
3069
+ var paginateListCodegenJobs = (0, import_core6.createPaginator)(AmplifyUIBuilderClient, ListCodegenJobsCommand, "nextToken", "nextToken", "maxResults");
3070
+
3071
+ // src/pagination/ListComponentsPaginator.ts
3072
+ var import_core7 = require("@smithy/core");
3073
+ var paginateListComponents = (0, import_core7.createPaginator)(AmplifyUIBuilderClient, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
3074
+
3075
+ // src/pagination/ListFormsPaginator.ts
3076
+ var import_core8 = require("@smithy/core");
3077
+ var paginateListForms = (0, import_core8.createPaginator)(AmplifyUIBuilderClient, ListFormsCommand, "nextToken", "nextToken", "maxResults");
3078
+
3079
+ // src/pagination/ListThemesPaginator.ts
3080
+ var import_core9 = require("@smithy/core");
3081
+ var paginateListThemes = (0, import_core9.createPaginator)(AmplifyUIBuilderClient, ListThemesCommand, "nextToken", "nextToken", "maxResults");
3082
+
3083
+ // src/index.ts
3084
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3085
+ // Annotate the CommonJS export names for ESM import in node:
3086
+
3087
+ 0 && (module.exports = {
3088
+ AmplifyUIBuilder,
3089
+ AmplifyUIBuilderClient,
3090
+ AmplifyUIBuilderServiceException,
3091
+ ApiConfiguration,
3092
+ CodegenGenericDataFieldDataType,
3093
+ CodegenJobGenericDataSourceType,
3094
+ CodegenJobRenderConfig,
3095
+ CodegenJobStatus,
3096
+ CreateComponentCommand,
3097
+ CreateFormCommand,
3098
+ CreateThemeCommand,
3099
+ DeleteComponentCommand,
3100
+ DeleteFormCommand,
3101
+ DeleteThemeCommand,
3102
+ ExchangeCodeForTokenCommand,
3103
+ ExchangeCodeForTokenRequestBodyFilterSensitiveLog,
3104
+ ExchangeCodeForTokenRequestFilterSensitiveLog,
3105
+ ExchangeCodeForTokenResponseFilterSensitiveLog,
3106
+ ExportComponentsCommand,
3107
+ ExportFormsCommand,
3108
+ ExportThemesCommand,
3109
+ FieldPosition,
3110
+ FixedPosition,
3111
+ FormActionType,
3112
+ FormButtonsPosition,
3113
+ FormDataSourceType,
3114
+ FormStyleConfig,
3115
+ GenericDataRelationshipType,
3116
+ GetCodegenJobCommand,
3117
+ GetComponentCommand,
3118
+ GetFormCommand,
3119
+ GetMetadataCommand,
3120
+ GetThemeCommand,
3121
+ InternalServerException,
3122
+ InvalidParameterException,
3123
+ JSModule,
3124
+ JSScript,
3125
+ JSTarget,
3126
+ LabelDecorator,
3127
+ ListCodegenJobsCommand,
3128
+ ListComponentsCommand,
3129
+ ListFormsCommand,
3130
+ ListThemesCommand,
3131
+ PutMetadataFlagCommand,
3132
+ RefreshTokenCommand,
3133
+ RefreshTokenRequestBodyFilterSensitiveLog,
3134
+ RefreshTokenRequestFilterSensitiveLog,
3135
+ RefreshTokenResponseFilterSensitiveLog,
3136
+ ResourceConflictException,
3137
+ ResourceNotFoundException,
3138
+ ServiceQuotaExceededException,
3139
+ StartCodegenJobCommand,
3140
+ StorageAccessLevel,
3141
+ ThrottlingException,
3142
+ TokenProviders,
3143
+ UnauthorizedException,
3144
+ UpdateComponentCommand,
3145
+ UpdateFormCommand,
3146
+ UpdateThemeCommand,
3147
+ __Client,
3148
+ paginateExportComponents,
3149
+ paginateExportForms,
3150
+ paginateExportThemes,
3151
+ paginateListCodegenJobs,
3152
+ paginateListComponents,
3153
+ paginateListForms,
3154
+ paginateListThemes
3155
+ });
3156
+