@aws-sdk/client-qapps 3.893.0 → 3.895.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist-cjs/index.js +2912 -10
  2. package/package.json +7 -7
  3. package/dist-cjs/QApps.js +0 -81
  4. package/dist-cjs/QAppsClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/AssociateLibraryItemReviewCommand.js +0 -26
  7. package/dist-cjs/commands/AssociateQAppWithUserCommand.js +0 -26
  8. package/dist-cjs/commands/BatchCreateCategoryCommand.js +0 -26
  9. package/dist-cjs/commands/BatchDeleteCategoryCommand.js +0 -26
  10. package/dist-cjs/commands/BatchUpdateCategoryCommand.js +0 -26
  11. package/dist-cjs/commands/CreateLibraryItemCommand.js +0 -26
  12. package/dist-cjs/commands/CreatePresignedUrlCommand.js +0 -26
  13. package/dist-cjs/commands/CreateQAppCommand.js +0 -26
  14. package/dist-cjs/commands/DeleteLibraryItemCommand.js +0 -26
  15. package/dist-cjs/commands/DeleteQAppCommand.js +0 -26
  16. package/dist-cjs/commands/DescribeQAppPermissionsCommand.js +0 -26
  17. package/dist-cjs/commands/DisassociateLibraryItemReviewCommand.js +0 -26
  18. package/dist-cjs/commands/DisassociateQAppFromUserCommand.js +0 -26
  19. package/dist-cjs/commands/ExportQAppSessionDataCommand.js +0 -26
  20. package/dist-cjs/commands/GetLibraryItemCommand.js +0 -26
  21. package/dist-cjs/commands/GetQAppCommand.js +0 -26
  22. package/dist-cjs/commands/GetQAppSessionCommand.js +0 -26
  23. package/dist-cjs/commands/GetQAppSessionMetadataCommand.js +0 -26
  24. package/dist-cjs/commands/ImportDocumentCommand.js +0 -26
  25. package/dist-cjs/commands/ListCategoriesCommand.js +0 -26
  26. package/dist-cjs/commands/ListLibraryItemsCommand.js +0 -26
  27. package/dist-cjs/commands/ListQAppSessionDataCommand.js +0 -26
  28. package/dist-cjs/commands/ListQAppsCommand.js +0 -26
  29. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  30. package/dist-cjs/commands/PredictQAppCommand.js +0 -26
  31. package/dist-cjs/commands/StartQAppSessionCommand.js +0 -26
  32. package/dist-cjs/commands/StopQAppSessionCommand.js +0 -26
  33. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  34. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  35. package/dist-cjs/commands/UpdateLibraryItemCommand.js +0 -26
  36. package/dist-cjs/commands/UpdateLibraryItemMetadataCommand.js +0 -26
  37. package/dist-cjs/commands/UpdateQAppCommand.js +0 -26
  38. package/dist-cjs/commands/UpdateQAppPermissionsCommand.js +0 -26
  39. package/dist-cjs/commands/UpdateQAppSessionCommand.js +0 -26
  40. package/dist-cjs/commands/UpdateQAppSessionMetadataCommand.js +0 -26
  41. package/dist-cjs/commands/index.js +0 -38
  42. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  43. package/dist-cjs/extensionConfiguration.js +0 -2
  44. package/dist-cjs/models/QAppsServiceException.js +0 -12
  45. package/dist-cjs/models/index.js +0 -4
  46. package/dist-cjs/models/models_0.js +0 -284
  47. package/dist-cjs/pagination/Interfaces.js +0 -2
  48. package/dist-cjs/pagination/ListLibraryItemsPaginator.js +0 -7
  49. package/dist-cjs/pagination/ListQAppsPaginator.js +0 -7
  50. package/dist-cjs/pagination/index.js +0 -6
  51. package/dist-cjs/protocols/Aws_restJson1.js +0 -1685
  52. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,2913 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QAppsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./QAppsClient"), exports);
6
- tslib_1.__exportStar(require("./QApps"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var QAppsServiceException_1 = require("./models/QAppsServiceException");
11
- Object.defineProperty(exports, "QAppsServiceException", { enumerable: true, get: function () { return QAppsServiceException_1.QAppsServiceException; } });
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 index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ Action: () => Action,
26
+ AppRequiredCapability: () => AppRequiredCapability,
27
+ AppStatus: () => AppStatus,
28
+ AssociateLibraryItemReviewCommand: () => AssociateLibraryItemReviewCommand,
29
+ AssociateQAppWithUserCommand: () => AssociateQAppWithUserCommand,
30
+ BatchCreateCategoryCommand: () => BatchCreateCategoryCommand,
31
+ BatchDeleteCategoryCommand: () => BatchDeleteCategoryCommand,
32
+ BatchUpdateCategoryCommand: () => BatchUpdateCategoryCommand,
33
+ Card: () => Card,
34
+ CardInput: () => CardInput,
35
+ CardOutputSource: () => CardOutputSource,
36
+ CardType: () => CardType,
37
+ ConflictException: () => ConflictException,
38
+ ContentTooLargeException: () => ContentTooLargeException,
39
+ CreateLibraryItemCommand: () => CreateLibraryItemCommand,
40
+ CreatePresignedUrlCommand: () => CreatePresignedUrlCommand,
41
+ CreateQAppCommand: () => CreateQAppCommand,
42
+ DeleteLibraryItemCommand: () => DeleteLibraryItemCommand,
43
+ DeleteQAppCommand: () => DeleteQAppCommand,
44
+ DescribeQAppPermissionsCommand: () => DescribeQAppPermissionsCommand,
45
+ DisassociateLibraryItemReviewCommand: () => DisassociateLibraryItemReviewCommand,
46
+ DisassociateQAppFromUserCommand: () => DisassociateQAppFromUserCommand,
47
+ DocumentAttributeValue: () => DocumentAttributeValue,
48
+ DocumentScope: () => DocumentScope,
49
+ ExecutionStatus: () => ExecutionStatus,
50
+ ExportQAppSessionDataCommand: () => ExportQAppSessionDataCommand,
51
+ GetLibraryItemCommand: () => GetLibraryItemCommand,
52
+ GetQAppCommand: () => GetQAppCommand,
53
+ GetQAppSessionCommand: () => GetQAppSessionCommand,
54
+ GetQAppSessionMetadataCommand: () => GetQAppSessionMetadataCommand,
55
+ ImportDocumentCommand: () => ImportDocumentCommand,
56
+ InputCardComputeMode: () => InputCardComputeMode,
57
+ InternalServerException: () => InternalServerException,
58
+ LibraryItemStatus: () => LibraryItemStatus,
59
+ ListCategoriesCommand: () => ListCategoriesCommand,
60
+ ListLibraryItemsCommand: () => ListLibraryItemsCommand,
61
+ ListQAppSessionDataCommand: () => ListQAppSessionDataCommand,
62
+ ListQAppsCommand: () => ListQAppsCommand,
63
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
64
+ PluginType: () => PluginType,
65
+ PredictQAppCommand: () => PredictQAppCommand,
66
+ PredictQAppInputOptions: () => PredictQAppInputOptions,
67
+ QApps: () => QApps,
68
+ QAppsClient: () => QAppsClient,
69
+ QAppsServiceException: () => QAppsServiceException,
70
+ ResourceNotFoundException: () => ResourceNotFoundException,
71
+ Sender: () => Sender,
72
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
73
+ StartQAppSessionCommand: () => StartQAppSessionCommand,
74
+ StopQAppSessionCommand: () => StopQAppSessionCommand,
75
+ SubmissionMutationKind: () => SubmissionMutationKind,
76
+ TagResourceCommand: () => TagResourceCommand,
77
+ ThrottlingException: () => ThrottlingException,
78
+ UnauthorizedException: () => UnauthorizedException,
79
+ UntagResourceCommand: () => UntagResourceCommand,
80
+ UpdateLibraryItemCommand: () => UpdateLibraryItemCommand,
81
+ UpdateLibraryItemMetadataCommand: () => UpdateLibraryItemMetadataCommand,
82
+ UpdateQAppCommand: () => UpdateQAppCommand,
83
+ UpdateQAppPermissionsCommand: () => UpdateQAppPermissionsCommand,
84
+ UpdateQAppSessionCommand: () => UpdateQAppSessionCommand,
85
+ UpdateQAppSessionMetadataCommand: () => UpdateQAppSessionMetadataCommand,
86
+ UserType: () => UserType,
87
+ ValidationException: () => ValidationException,
88
+ __Client: () => import_smithy_client.Client,
89
+ paginateListLibraryItems: () => paginateListLibraryItems,
90
+ paginateListQApps: () => paginateListQApps
91
+ });
92
+ module.exports = __toCommonJS(index_exports);
93
+
94
+ // src/QAppsClient.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_user_agent = require("@aws-sdk/middleware-user-agent");
99
+ var import_config_resolver = require("@smithy/config-resolver");
100
+ var import_core = require("@smithy/core");
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
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
106
+
107
+ // src/endpoint/EndpointParameters.ts
108
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
109
+ return Object.assign(options, {
110
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
111
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
112
+ defaultSigningName: "qapps"
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/QAppsClient.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
+
130
+ // src/auth/httpAuthExtensionConfiguration.ts
131
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
132
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
133
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
134
+ let _credentials = runtimeConfig.credentials;
135
+ return {
136
+ setHttpAuthScheme(httpAuthScheme) {
137
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
138
+ if (index === -1) {
139
+ _httpAuthSchemes.push(httpAuthScheme);
140
+ } else {
141
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
142
+ }
143
+ },
144
+ httpAuthSchemes() {
145
+ return _httpAuthSchemes;
146
+ },
147
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
148
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
149
+ },
150
+ httpAuthSchemeProvider() {
151
+ return _httpAuthSchemeProvider;
152
+ },
153
+ setCredentials(credentials) {
154
+ _credentials = credentials;
155
+ },
156
+ credentials() {
157
+ return _credentials;
158
+ }
159
+ };
160
+ }, "getHttpAuthExtensionConfiguration");
161
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
162
+ return {
163
+ httpAuthSchemes: config.httpAuthSchemes(),
164
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
165
+ credentials: config.credentials()
166
+ };
167
+ }, "resolveHttpAuthRuntimeConfig");
168
+
169
+ // src/runtimeExtensions.ts
170
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
171
+ const extensionConfiguration = Object.assign(
172
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
173
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
174
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
175
+ getHttpAuthExtensionConfiguration(runtimeConfig)
176
+ );
177
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
178
+ return Object.assign(
179
+ runtimeConfig,
180
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
181
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
182
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
183
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
184
+ );
185
+ }, "resolveRuntimeExtensions");
186
+
187
+ // src/QAppsClient.ts
188
+ var QAppsClient = class extends import_smithy_client.Client {
189
+ static {
190
+ __name(this, "QAppsClient");
191
+ }
192
+ /**
193
+ * The resolved configuration of QAppsClient class. This is resolved and normalized from the {@link QAppsClientConfig | constructor configuration interface}.
194
+ */
195
+ config;
196
+ constructor(...[configuration]) {
197
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
198
+ super(_config_0);
199
+ this.initConfig = _config_0;
200
+ const _config_1 = resolveClientEndpointParameters(_config_0);
201
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
202
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
203
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
204
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
205
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
206
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
207
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
208
+ this.config = _config_8;
209
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
210
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
211
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
212
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
213
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
214
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
215
+ this.middlewareStack.use(
216
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
217
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultQAppsHttpAuthSchemeParametersProvider,
218
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
219
+ "aws.auth#sigv4": config.credentials
220
+ }), "identityProviderConfigProvider")
221
+ })
222
+ );
223
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
224
+ }
225
+ /**
226
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
227
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
228
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
229
+ */
230
+ destroy() {
231
+ super.destroy();
232
+ }
233
+ };
234
+
235
+ // src/QApps.ts
236
+
237
+
238
+ // src/commands/AssociateLibraryItemReviewCommand.ts
239
+
240
+ var import_middleware_serde = require("@smithy/middleware-serde");
241
+
242
+
243
+ // src/protocols/Aws_restJson1.ts
244
+ var import_core2 = require("@aws-sdk/core");
245
+
246
+
247
+
248
+ // src/models/QAppsServiceException.ts
249
+
250
+ var QAppsServiceException = class _QAppsServiceException extends import_smithy_client.ServiceException {
251
+ static {
252
+ __name(this, "QAppsServiceException");
253
+ }
254
+ /**
255
+ * @internal
256
+ */
257
+ constructor(options) {
258
+ super(options);
259
+ Object.setPrototypeOf(this, _QAppsServiceException.prototype);
260
+ }
261
+ };
262
+
263
+ // src/models/models_0.ts
264
+ var AccessDeniedException = class _AccessDeniedException extends QAppsServiceException {
265
+ static {
266
+ __name(this, "AccessDeniedException");
267
+ }
268
+ name = "AccessDeniedException";
269
+ $fault = "client";
270
+ /**
271
+ * @internal
272
+ */
273
+ constructor(opts) {
274
+ super({
275
+ name: "AccessDeniedException",
276
+ $fault: "client",
277
+ ...opts
278
+ });
279
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
280
+ }
281
+ };
282
+ var Action = {
283
+ READ: "read",
284
+ WRITE: "write"
285
+ };
286
+ var CardType = {
287
+ FILE_UPLOAD: "file-upload",
288
+ FORM_INPUT: "form-input",
289
+ Q_PLUGIN: "q-plugin",
290
+ Q_QUERY: "q-query",
291
+ TEXT_INPUT: "text-input"
292
+ };
293
+ var InputCardComputeMode = {
294
+ APPEND: "append",
295
+ REPLACE: "replace"
296
+ };
297
+ var PluginType = {
298
+ ASANA: "ASANA",
299
+ ATLASSIAN_CONFLUENCE: "ATLASSIAN_CONFLUENCE",
300
+ CUSTOM: "CUSTOM",
301
+ GOOGLE_CALENDAR: "GOOGLE_CALENDAR",
302
+ JIRA: "JIRA",
303
+ JIRA_CLOUD: "JIRA_CLOUD",
304
+ MICROSOFT_EXCHANGE: "MICROSOFT_EXCHANGE",
305
+ MICROSOFT_TEAMS: "MICROSOFT_TEAMS",
306
+ PAGERDUTY_ADVANCE: "PAGERDUTY_ADVANCE",
307
+ SALESFORCE: "SALESFORCE",
308
+ SALESFORCE_CRM: "SALESFORCE_CRM",
309
+ SERVICENOW_NOW_PLATFORM: "SERVICENOW_NOW_PLATFORM",
310
+ SERVICE_NOW: "SERVICE_NOW",
311
+ SMARTSHEET: "SMARTSHEET",
312
+ ZENDESK: "ZENDESK",
313
+ ZENDESK_SUITE: "ZENDESK_SUITE"
314
+ };
315
+ var DocumentAttributeValue;
316
+ ((DocumentAttributeValue2) => {
317
+ DocumentAttributeValue2.visit = /* @__PURE__ */ __name((value, visitor) => {
318
+ if (value.stringValue !== void 0) return visitor.stringValue(value.stringValue);
319
+ if (value.stringListValue !== void 0) return visitor.stringListValue(value.stringListValue);
320
+ if (value.longValue !== void 0) return visitor.longValue(value.longValue);
321
+ if (value.dateValue !== void 0) return visitor.dateValue(value.dateValue);
322
+ return visitor._(value.$unknown[0], value.$unknown[1]);
323
+ }, "visit");
324
+ })(DocumentAttributeValue || (DocumentAttributeValue = {}));
325
+ var CardOutputSource = {
326
+ APPROVED_SOURCES: "approved-sources",
327
+ LLM: "llm"
328
+ };
329
+ var AppRequiredCapability = {
330
+ CREATOR_MODE: "CreatorMode",
331
+ FILE_UPLOAD: "FileUpload",
332
+ PLUGIN_MODE: "PluginMode",
333
+ RETRIEVAL_MODE: "RetrievalMode"
334
+ };
335
+ var AppStatus = {
336
+ DELETED: "DELETED",
337
+ DRAFT: "DRAFT",
338
+ PUBLISHED: "PUBLISHED"
339
+ };
340
+ var ConflictException = class _ConflictException extends QAppsServiceException {
341
+ static {
342
+ __name(this, "ConflictException");
343
+ }
344
+ name = "ConflictException";
345
+ $fault = "client";
346
+ /**
347
+ * <p>The unique identifier of the resource</p>
348
+ * @public
349
+ */
350
+ resourceId;
351
+ /**
352
+ * <p>The type of the resource</p>
353
+ * @public
354
+ */
355
+ resourceType;
356
+ /**
357
+ * @internal
358
+ */
359
+ constructor(opts) {
360
+ super({
361
+ name: "ConflictException",
362
+ $fault: "client",
363
+ ...opts
364
+ });
365
+ Object.setPrototypeOf(this, _ConflictException.prototype);
366
+ this.resourceId = opts.resourceId;
367
+ this.resourceType = opts.resourceType;
368
+ }
369
+ };
370
+ var InternalServerException = class _InternalServerException extends QAppsServiceException {
371
+ static {
372
+ __name(this, "InternalServerException");
373
+ }
374
+ name = "InternalServerException";
375
+ $fault = "server";
376
+ $retryable = {};
377
+ /**
378
+ * <p>The number of seconds to wait before retrying the operation</p>
379
+ * @public
380
+ */
381
+ retryAfterSeconds;
382
+ /**
383
+ * @internal
384
+ */
385
+ constructor(opts) {
386
+ super({
387
+ name: "InternalServerException",
388
+ $fault: "server",
389
+ ...opts
390
+ });
391
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
392
+ this.retryAfterSeconds = opts.retryAfterSeconds;
393
+ }
394
+ };
395
+ var ResourceNotFoundException = class _ResourceNotFoundException extends QAppsServiceException {
396
+ static {
397
+ __name(this, "ResourceNotFoundException");
398
+ }
399
+ name = "ResourceNotFoundException";
400
+ $fault = "client";
401
+ /**
402
+ * <p>The unique identifier of the resource</p>
403
+ * @public
404
+ */
405
+ resourceId;
406
+ /**
407
+ * <p>The type of the resource</p>
408
+ * @public
409
+ */
410
+ resourceType;
411
+ /**
412
+ * @internal
413
+ */
414
+ constructor(opts) {
415
+ super({
416
+ name: "ResourceNotFoundException",
417
+ $fault: "client",
418
+ ...opts
419
+ });
420
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
421
+ this.resourceId = opts.resourceId;
422
+ this.resourceType = opts.resourceType;
423
+ }
424
+ };
425
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends QAppsServiceException {
426
+ static {
427
+ __name(this, "ServiceQuotaExceededException");
428
+ }
429
+ name = "ServiceQuotaExceededException";
430
+ $fault = "client";
431
+ /**
432
+ * <p>The unique identifier of the resource</p>
433
+ * @public
434
+ */
435
+ resourceId;
436
+ /**
437
+ * <p>The type of the resource</p>
438
+ * @public
439
+ */
440
+ resourceType;
441
+ /**
442
+ * <p>The code for the service where the quota was exceeded</p>
443
+ * @public
444
+ */
445
+ serviceCode;
446
+ /**
447
+ * <p>The code of the quota that was exceeded</p>
448
+ * @public
449
+ */
450
+ quotaCode;
451
+ /**
452
+ * @internal
453
+ */
454
+ constructor(opts) {
455
+ super({
456
+ name: "ServiceQuotaExceededException",
457
+ $fault: "client",
458
+ ...opts
459
+ });
460
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
461
+ this.resourceId = opts.resourceId;
462
+ this.resourceType = opts.resourceType;
463
+ this.serviceCode = opts.serviceCode;
464
+ this.quotaCode = opts.quotaCode;
465
+ }
466
+ };
467
+ var ThrottlingException = class _ThrottlingException extends QAppsServiceException {
468
+ static {
469
+ __name(this, "ThrottlingException");
470
+ }
471
+ name = "ThrottlingException";
472
+ $fault = "client";
473
+ $retryable = {
474
+ throttling: true
475
+ };
476
+ /**
477
+ * <p>The code for the service where the quota was exceeded</p>
478
+ * @public
479
+ */
480
+ serviceCode;
481
+ /**
482
+ * <p>The code of the quota that was exceeded</p>
483
+ * @public
484
+ */
485
+ quotaCode;
486
+ /**
487
+ * <p>The number of seconds to wait before retrying the operation</p>
488
+ * @public
489
+ */
490
+ retryAfterSeconds;
491
+ /**
492
+ * @internal
493
+ */
494
+ constructor(opts) {
495
+ super({
496
+ name: "ThrottlingException",
497
+ $fault: "client",
498
+ ...opts
499
+ });
500
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
501
+ this.serviceCode = opts.serviceCode;
502
+ this.quotaCode = opts.quotaCode;
503
+ this.retryAfterSeconds = opts.retryAfterSeconds;
504
+ }
505
+ };
506
+ var UnauthorizedException = class _UnauthorizedException extends QAppsServiceException {
507
+ static {
508
+ __name(this, "UnauthorizedException");
509
+ }
510
+ name = "UnauthorizedException";
511
+ $fault = "client";
512
+ /**
513
+ * @internal
514
+ */
515
+ constructor(opts) {
516
+ super({
517
+ name: "UnauthorizedException",
518
+ $fault: "client",
519
+ ...opts
520
+ });
521
+ Object.setPrototypeOf(this, _UnauthorizedException.prototype);
522
+ }
523
+ };
524
+ var ValidationException = class _ValidationException extends QAppsServiceException {
525
+ static {
526
+ __name(this, "ValidationException");
527
+ }
528
+ name = "ValidationException";
529
+ $fault = "client";
530
+ /**
531
+ * @internal
532
+ */
533
+ constructor(opts) {
534
+ super({
535
+ name: "ValidationException",
536
+ $fault: "client",
537
+ ...opts
538
+ });
539
+ Object.setPrototypeOf(this, _ValidationException.prototype);
540
+ }
541
+ };
542
+ var ExecutionStatus = {
543
+ COMPLETED: "COMPLETED",
544
+ ERROR: "ERROR",
545
+ IN_PROGRESS: "IN_PROGRESS",
546
+ WAITING: "WAITING"
547
+ };
548
+ var SubmissionMutationKind = {
549
+ add: "add",
550
+ delete: "delete",
551
+ edit: "edit"
552
+ };
553
+ var ContentTooLargeException = class _ContentTooLargeException extends QAppsServiceException {
554
+ static {
555
+ __name(this, "ContentTooLargeException");
556
+ }
557
+ name = "ContentTooLargeException";
558
+ $fault = "client";
559
+ /**
560
+ * <p>The unique identifier of the resource</p>
561
+ * @public
562
+ */
563
+ resourceId;
564
+ /**
565
+ * <p>The type of the resource</p>
566
+ * @public
567
+ */
568
+ resourceType;
569
+ /**
570
+ * @internal
571
+ */
572
+ constructor(opts) {
573
+ super({
574
+ name: "ContentTooLargeException",
575
+ $fault: "client",
576
+ ...opts
577
+ });
578
+ Object.setPrototypeOf(this, _ContentTooLargeException.prototype);
579
+ this.resourceId = opts.resourceId;
580
+ this.resourceType = opts.resourceType;
581
+ }
582
+ };
583
+ var Sender = {
584
+ SYSTEM: "SYSTEM",
585
+ USER: "USER"
586
+ };
587
+ var DocumentScope = {
588
+ APPLICATION: "APPLICATION",
589
+ SESSION: "SESSION"
590
+ };
591
+ var UserType = {
592
+ OWNER: "owner",
593
+ USER: "user"
594
+ };
595
+ var LibraryItemStatus = {
596
+ DISABLED: "DISABLED",
597
+ PUBLISHED: "PUBLISHED"
598
+ };
599
+ var PredictQAppInputOptions;
600
+ ((PredictQAppInputOptions3) => {
601
+ PredictQAppInputOptions3.visit = /* @__PURE__ */ __name((value, visitor) => {
602
+ if (value.conversation !== void 0) return visitor.conversation(value.conversation);
603
+ if (value.problemStatement !== void 0) return visitor.problemStatement(value.problemStatement);
604
+ return visitor._(value.$unknown[0], value.$unknown[1]);
605
+ }, "visit");
606
+ })(PredictQAppInputOptions || (PredictQAppInputOptions = {}));
607
+ var Card;
608
+ ((Card3) => {
609
+ Card3.visit = /* @__PURE__ */ __name((value, visitor) => {
610
+ if (value.textInput !== void 0) return visitor.textInput(value.textInput);
611
+ if (value.qQuery !== void 0) return visitor.qQuery(value.qQuery);
612
+ if (value.qPlugin !== void 0) return visitor.qPlugin(value.qPlugin);
613
+ if (value.fileUpload !== void 0) return visitor.fileUpload(value.fileUpload);
614
+ if (value.formInput !== void 0) return visitor.formInput(value.formInput);
615
+ return visitor._(value.$unknown[0], value.$unknown[1]);
616
+ }, "visit");
617
+ })(Card || (Card = {}));
618
+ var CardInput;
619
+ ((CardInput2) => {
620
+ CardInput2.visit = /* @__PURE__ */ __name((value, visitor) => {
621
+ if (value.textInput !== void 0) return visitor.textInput(value.textInput);
622
+ if (value.qQuery !== void 0) return visitor.qQuery(value.qQuery);
623
+ if (value.qPlugin !== void 0) return visitor.qPlugin(value.qPlugin);
624
+ if (value.fileUpload !== void 0) return visitor.fileUpload(value.fileUpload);
625
+ if (value.formInput !== void 0) return visitor.formInput(value.formInput);
626
+ return visitor._(value.$unknown[0], value.$unknown[1]);
627
+ }, "visit");
628
+ })(CardInput || (CardInput = {}));
629
+
630
+ // src/protocols/Aws_restJson1.ts
631
+ var se_AssociateLibraryItemReviewCommand = /* @__PURE__ */ __name(async (input, context) => {
632
+ const b = (0, import_core.requestBuilder)(input, context);
633
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
634
+ "content-type": "application/json",
635
+ [_ii]: input[_iI]
636
+ });
637
+ b.bp("/catalog.associateItemRating");
638
+ let body;
639
+ body = JSON.stringify(
640
+ (0, import_smithy_client.take)(input, {
641
+ libraryItemId: []
642
+ })
643
+ );
644
+ b.m("POST").h(headers).b(body);
645
+ return b.build();
646
+ }, "se_AssociateLibraryItemReviewCommand");
647
+ var se_AssociateQAppWithUserCommand = /* @__PURE__ */ __name(async (input, context) => {
648
+ const b = (0, import_core.requestBuilder)(input, context);
649
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
650
+ "content-type": "application/json",
651
+ [_ii]: input[_iI]
652
+ });
653
+ b.bp("/apps.install");
654
+ let body;
655
+ body = JSON.stringify(
656
+ (0, import_smithy_client.take)(input, {
657
+ appId: []
658
+ })
659
+ );
660
+ b.m("POST").h(headers).b(body);
661
+ return b.build();
662
+ }, "se_AssociateQAppWithUserCommand");
663
+ var se_BatchCreateCategoryCommand = /* @__PURE__ */ __name(async (input, context) => {
664
+ const b = (0, import_core.requestBuilder)(input, context);
665
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
666
+ "content-type": "application/json",
667
+ [_ii]: input[_iI]
668
+ });
669
+ b.bp("/catalog.createCategories");
670
+ let body;
671
+ body = JSON.stringify(
672
+ (0, import_smithy_client.take)(input, {
673
+ categories: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "categories")
674
+ })
675
+ );
676
+ b.m("POST").h(headers).b(body);
677
+ return b.build();
678
+ }, "se_BatchCreateCategoryCommand");
679
+ var se_BatchDeleteCategoryCommand = /* @__PURE__ */ __name(async (input, context) => {
680
+ const b = (0, import_core.requestBuilder)(input, context);
681
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
682
+ "content-type": "application/json",
683
+ [_ii]: input[_iI]
684
+ });
685
+ b.bp("/catalog.deleteCategories");
686
+ let body;
687
+ body = JSON.stringify(
688
+ (0, import_smithy_client.take)(input, {
689
+ categories: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "categories")
690
+ })
691
+ );
692
+ b.m("POST").h(headers).b(body);
693
+ return b.build();
694
+ }, "se_BatchDeleteCategoryCommand");
695
+ var se_BatchUpdateCategoryCommand = /* @__PURE__ */ __name(async (input, context) => {
696
+ const b = (0, import_core.requestBuilder)(input, context);
697
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
698
+ "content-type": "application/json",
699
+ [_ii]: input[_iI]
700
+ });
701
+ b.bp("/catalog.updateCategories");
702
+ let body;
703
+ body = JSON.stringify(
704
+ (0, import_smithy_client.take)(input, {
705
+ categories: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "categories")
706
+ })
707
+ );
708
+ b.m("POST").h(headers).b(body);
709
+ return b.build();
710
+ }, "se_BatchUpdateCategoryCommand");
711
+ var se_CreateLibraryItemCommand = /* @__PURE__ */ __name(async (input, context) => {
712
+ const b = (0, import_core.requestBuilder)(input, context);
713
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
714
+ "content-type": "application/json",
715
+ [_ii]: input[_iI]
716
+ });
717
+ b.bp("/catalog.createItem");
718
+ let body;
719
+ body = JSON.stringify(
720
+ (0, import_smithy_client.take)(input, {
721
+ appId: [],
722
+ appVersion: [],
723
+ categories: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "categories")
724
+ })
725
+ );
726
+ b.m("POST").h(headers).b(body);
727
+ return b.build();
728
+ }, "se_CreateLibraryItemCommand");
729
+ var se_CreatePresignedUrlCommand = /* @__PURE__ */ __name(async (input, context) => {
730
+ const b = (0, import_core.requestBuilder)(input, context);
731
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
732
+ "content-type": "application/json",
733
+ [_ii]: input[_iI]
734
+ });
735
+ b.bp("/apps.createPresignedUrl");
736
+ let body;
737
+ body = JSON.stringify(
738
+ (0, import_smithy_client.take)(input, {
739
+ appId: [],
740
+ cardId: [],
741
+ fileContentsSha256: [],
742
+ fileName: [],
743
+ scope: [],
744
+ sessionId: []
745
+ })
746
+ );
747
+ b.m("POST").h(headers).b(body);
748
+ return b.build();
749
+ }, "se_CreatePresignedUrlCommand");
750
+ var se_CreateQAppCommand = /* @__PURE__ */ __name(async (input, context) => {
751
+ const b = (0, import_core.requestBuilder)(input, context);
752
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
753
+ "content-type": "application/json",
754
+ [_ii]: input[_iI]
755
+ });
756
+ b.bp("/apps.create");
757
+ let body;
758
+ body = JSON.stringify(
759
+ (0, import_smithy_client.take)(input, {
760
+ appDefinition: /* @__PURE__ */ __name((_) => se_AppDefinitionInput(_, context), "appDefinition"),
761
+ description: [],
762
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
763
+ title: []
764
+ })
765
+ );
766
+ b.m("POST").h(headers).b(body);
767
+ return b.build();
768
+ }, "se_CreateQAppCommand");
769
+ var se_DeleteLibraryItemCommand = /* @__PURE__ */ __name(async (input, context) => {
770
+ const b = (0, import_core.requestBuilder)(input, context);
771
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
772
+ "content-type": "application/json",
773
+ [_ii]: input[_iI]
774
+ });
775
+ b.bp("/catalog.deleteItem");
776
+ let body;
777
+ body = JSON.stringify(
778
+ (0, import_smithy_client.take)(input, {
779
+ libraryItemId: []
780
+ })
781
+ );
782
+ b.m("POST").h(headers).b(body);
783
+ return b.build();
784
+ }, "se_DeleteLibraryItemCommand");
785
+ var se_DeleteQAppCommand = /* @__PURE__ */ __name(async (input, context) => {
786
+ const b = (0, import_core.requestBuilder)(input, context);
787
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
788
+ "content-type": "application/json",
789
+ [_ii]: input[_iI]
790
+ });
791
+ b.bp("/apps.delete");
792
+ let body;
793
+ body = JSON.stringify(
794
+ (0, import_smithy_client.take)(input, {
795
+ appId: []
796
+ })
797
+ );
798
+ b.m("POST").h(headers).b(body);
799
+ return b.build();
800
+ }, "se_DeleteQAppCommand");
801
+ var se_DescribeQAppPermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
802
+ const b = (0, import_core.requestBuilder)(input, context);
803
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
804
+ [_ii]: input[_iI]
805
+ });
806
+ b.bp("/apps.describeQAppPermissions");
807
+ const query = (0, import_smithy_client.map)({
808
+ [_aI]: [, (0, import_smithy_client.expectNonNull)(input[_aI], `appId`)]
809
+ });
810
+ let body;
811
+ b.m("GET").h(headers).q(query).b(body);
812
+ return b.build();
813
+ }, "se_DescribeQAppPermissionsCommand");
814
+ var se_DisassociateLibraryItemReviewCommand = /* @__PURE__ */ __name(async (input, context) => {
815
+ const b = (0, import_core.requestBuilder)(input, context);
816
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
817
+ "content-type": "application/json",
818
+ [_ii]: input[_iI]
819
+ });
820
+ b.bp("/catalog.disassociateItemRating");
821
+ let body;
822
+ body = JSON.stringify(
823
+ (0, import_smithy_client.take)(input, {
824
+ libraryItemId: []
825
+ })
826
+ );
827
+ b.m("POST").h(headers).b(body);
828
+ return b.build();
829
+ }, "se_DisassociateLibraryItemReviewCommand");
830
+ var se_DisassociateQAppFromUserCommand = /* @__PURE__ */ __name(async (input, context) => {
831
+ const b = (0, import_core.requestBuilder)(input, context);
832
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
833
+ "content-type": "application/json",
834
+ [_ii]: input[_iI]
835
+ });
836
+ b.bp("/apps.uninstall");
837
+ let body;
838
+ body = JSON.stringify(
839
+ (0, import_smithy_client.take)(input, {
840
+ appId: []
841
+ })
842
+ );
843
+ b.m("POST").h(headers).b(body);
844
+ return b.build();
845
+ }, "se_DisassociateQAppFromUserCommand");
846
+ var se_ExportQAppSessionDataCommand = /* @__PURE__ */ __name(async (input, context) => {
847
+ const b = (0, import_core.requestBuilder)(input, context);
848
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
849
+ "content-type": "application/json",
850
+ [_ii]: input[_iI]
851
+ });
852
+ b.bp("/runtime.exportQAppSessionData");
853
+ let body;
854
+ body = JSON.stringify(
855
+ (0, import_smithy_client.take)(input, {
856
+ sessionId: []
857
+ })
858
+ );
859
+ b.m("POST").h(headers).b(body);
860
+ return b.build();
861
+ }, "se_ExportQAppSessionDataCommand");
862
+ var se_GetLibraryItemCommand = /* @__PURE__ */ __name(async (input, context) => {
863
+ const b = (0, import_core.requestBuilder)(input, context);
864
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
865
+ [_ii]: input[_iI]
866
+ });
867
+ b.bp("/catalog.getItem");
868
+ const query = (0, import_smithy_client.map)({
869
+ [_lII]: [, (0, import_smithy_client.expectNonNull)(input[_lII], `libraryItemId`)],
870
+ [_aI]: [, input[_aI]]
871
+ });
872
+ let body;
873
+ b.m("GET").h(headers).q(query).b(body);
874
+ return b.build();
875
+ }, "se_GetLibraryItemCommand");
876
+ var se_GetQAppCommand = /* @__PURE__ */ __name(async (input, context) => {
877
+ const b = (0, import_core.requestBuilder)(input, context);
878
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
879
+ [_ii]: input[_iI]
880
+ });
881
+ b.bp("/apps.get");
882
+ const query = (0, import_smithy_client.map)({
883
+ [_aI]: [, (0, import_smithy_client.expectNonNull)(input[_aI], `appId`)],
884
+ [_aV]: [() => input.appVersion !== void 0, () => input[_aV].toString()]
885
+ });
886
+ let body;
887
+ b.m("GET").h(headers).q(query).b(body);
888
+ return b.build();
889
+ }, "se_GetQAppCommand");
890
+ var se_GetQAppSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
891
+ const b = (0, import_core.requestBuilder)(input, context);
892
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
893
+ [_ii]: input[_iI]
894
+ });
895
+ b.bp("/runtime.getQAppSession");
896
+ const query = (0, import_smithy_client.map)({
897
+ [_sI]: [, (0, import_smithy_client.expectNonNull)(input[_sI], `sessionId`)]
898
+ });
899
+ let body;
900
+ b.m("GET").h(headers).q(query).b(body);
901
+ return b.build();
902
+ }, "se_GetQAppSessionCommand");
903
+ var se_GetQAppSessionMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
904
+ const b = (0, import_core.requestBuilder)(input, context);
905
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
906
+ [_ii]: input[_iI]
907
+ });
908
+ b.bp("/runtime.getQAppSessionMetadata");
909
+ const query = (0, import_smithy_client.map)({
910
+ [_sI]: [, (0, import_smithy_client.expectNonNull)(input[_sI], `sessionId`)]
911
+ });
912
+ let body;
913
+ b.m("GET").h(headers).q(query).b(body);
914
+ return b.build();
915
+ }, "se_GetQAppSessionMetadataCommand");
916
+ var se_ImportDocumentCommand = /* @__PURE__ */ __name(async (input, context) => {
917
+ const b = (0, import_core.requestBuilder)(input, context);
918
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
919
+ "content-type": "application/json",
920
+ [_ii]: input[_iI]
921
+ });
922
+ b.bp("/apps.importDocument");
923
+ let body;
924
+ body = JSON.stringify(
925
+ (0, import_smithy_client.take)(input, {
926
+ appId: [],
927
+ cardId: [],
928
+ fileContentsBase64: [],
929
+ fileName: [],
930
+ scope: [],
931
+ sessionId: []
932
+ })
933
+ );
934
+ b.m("POST").h(headers).b(body);
935
+ return b.build();
936
+ }, "se_ImportDocumentCommand");
937
+ var se_ListCategoriesCommand = /* @__PURE__ */ __name(async (input, context) => {
938
+ const b = (0, import_core.requestBuilder)(input, context);
939
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
940
+ [_ii]: input[_iI]
941
+ });
942
+ b.bp("/catalog.listCategories");
943
+ let body;
944
+ b.m("GET").h(headers).b(body);
945
+ return b.build();
946
+ }, "se_ListCategoriesCommand");
947
+ var se_ListLibraryItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
948
+ const b = (0, import_core.requestBuilder)(input, context);
949
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
950
+ [_ii]: input[_iI]
951
+ });
952
+ b.bp("/catalog.list");
953
+ const query = (0, import_smithy_client.map)({
954
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
955
+ [_nT]: [, input[_nT]],
956
+ [_cI]: [, input[_cI]]
957
+ });
958
+ let body;
959
+ b.m("GET").h(headers).q(query).b(body);
960
+ return b.build();
961
+ }, "se_ListLibraryItemsCommand");
962
+ var se_ListQAppsCommand = /* @__PURE__ */ __name(async (input, context) => {
963
+ const b = (0, import_core.requestBuilder)(input, context);
964
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
965
+ [_ii]: input[_iI]
966
+ });
967
+ b.bp("/apps.list");
968
+ const query = (0, import_smithy_client.map)({
969
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
970
+ [_nT]: [, input[_nT]]
971
+ });
972
+ let body;
973
+ b.m("GET").h(headers).q(query).b(body);
974
+ return b.build();
975
+ }, "se_ListQAppsCommand");
976
+ var se_ListQAppSessionDataCommand = /* @__PURE__ */ __name(async (input, context) => {
977
+ const b = (0, import_core.requestBuilder)(input, context);
978
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
979
+ [_ii]: input[_iI]
980
+ });
981
+ b.bp("/runtime.listQAppSessionData");
982
+ const query = (0, import_smithy_client.map)({
983
+ [_sI]: [, (0, import_smithy_client.expectNonNull)(input[_sI], `sessionId`)]
984
+ });
985
+ let body;
986
+ b.m("GET").h(headers).q(query).b(body);
987
+ return b.build();
988
+ }, "se_ListQAppSessionDataCommand");
989
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
990
+ const b = (0, import_core.requestBuilder)(input, context);
991
+ const headers = {};
992
+ b.bp("/tags/{resourceARN}");
993
+ b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
994
+ let body;
995
+ b.m("GET").h(headers).b(body);
996
+ return b.build();
997
+ }, "se_ListTagsForResourceCommand");
998
+ var se_PredictQAppCommand = /* @__PURE__ */ __name(async (input, context) => {
999
+ const b = (0, import_core.requestBuilder)(input, context);
1000
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1001
+ "content-type": "application/json",
1002
+ [_ii]: input[_iI]
1003
+ });
1004
+ b.bp("/apps.predictQApp");
1005
+ let body;
1006
+ body = JSON.stringify(
1007
+ (0, import_smithy_client.take)(input, {
1008
+ options: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "options")
1009
+ })
1010
+ );
1011
+ b.m("POST").h(headers).b(body);
1012
+ return b.build();
1013
+ }, "se_PredictQAppCommand");
1014
+ var se_StartQAppSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1015
+ const b = (0, import_core.requestBuilder)(input, context);
1016
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1017
+ "content-type": "application/json",
1018
+ [_ii]: input[_iI]
1019
+ });
1020
+ b.bp("/runtime.startQAppSession");
1021
+ let body;
1022
+ body = JSON.stringify(
1023
+ (0, import_smithy_client.take)(input, {
1024
+ appId: [],
1025
+ appVersion: [],
1026
+ initialValues: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "initialValues"),
1027
+ sessionId: [],
1028
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1029
+ })
1030
+ );
1031
+ b.m("POST").h(headers).b(body);
1032
+ return b.build();
1033
+ }, "se_StartQAppSessionCommand");
1034
+ var se_StopQAppSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1035
+ const b = (0, import_core.requestBuilder)(input, context);
1036
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1037
+ "content-type": "application/json",
1038
+ [_ii]: input[_iI]
1039
+ });
1040
+ b.bp("/runtime.deleteMiniAppRun");
1041
+ let body;
1042
+ body = JSON.stringify(
1043
+ (0, import_smithy_client.take)(input, {
1044
+ sessionId: []
1045
+ })
1046
+ );
1047
+ b.m("POST").h(headers).b(body);
1048
+ return b.build();
1049
+ }, "se_StopQAppSessionCommand");
1050
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1051
+ const b = (0, import_core.requestBuilder)(input, context);
1052
+ const headers = {
1053
+ "content-type": "application/json"
1054
+ };
1055
+ b.bp("/tags/{resourceARN}");
1056
+ b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
1057
+ let body;
1058
+ body = JSON.stringify(
1059
+ (0, import_smithy_client.take)(input, {
1060
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1061
+ })
1062
+ );
1063
+ b.m("POST").h(headers).b(body);
1064
+ return b.build();
1065
+ }, "se_TagResourceCommand");
1066
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1067
+ const b = (0, import_core.requestBuilder)(input, context);
1068
+ const headers = {};
1069
+ b.bp("/tags/{resourceARN}");
1070
+ b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
1071
+ const query = (0, import_smithy_client.map)({
1072
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
1073
+ });
1074
+ let body;
1075
+ b.m("DELETE").h(headers).q(query).b(body);
1076
+ return b.build();
1077
+ }, "se_UntagResourceCommand");
1078
+ var se_UpdateLibraryItemCommand = /* @__PURE__ */ __name(async (input, context) => {
1079
+ const b = (0, import_core.requestBuilder)(input, context);
1080
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1081
+ "content-type": "application/json",
1082
+ [_ii]: input[_iI]
1083
+ });
1084
+ b.bp("/catalog.updateItem");
1085
+ let body;
1086
+ body = JSON.stringify(
1087
+ (0, import_smithy_client.take)(input, {
1088
+ categories: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "categories"),
1089
+ libraryItemId: [],
1090
+ status: []
1091
+ })
1092
+ );
1093
+ b.m("POST").h(headers).b(body);
1094
+ return b.build();
1095
+ }, "se_UpdateLibraryItemCommand");
1096
+ var se_UpdateLibraryItemMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
1097
+ const b = (0, import_core.requestBuilder)(input, context);
1098
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1099
+ "content-type": "application/json",
1100
+ [_ii]: input[_iI]
1101
+ });
1102
+ b.bp("/catalog.updateItemMetadata");
1103
+ let body;
1104
+ body = JSON.stringify(
1105
+ (0, import_smithy_client.take)(input, {
1106
+ isVerified: [],
1107
+ libraryItemId: []
1108
+ })
1109
+ );
1110
+ b.m("POST").h(headers).b(body);
1111
+ return b.build();
1112
+ }, "se_UpdateLibraryItemMetadataCommand");
1113
+ var se_UpdateQAppCommand = /* @__PURE__ */ __name(async (input, context) => {
1114
+ const b = (0, import_core.requestBuilder)(input, context);
1115
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1116
+ "content-type": "application/json",
1117
+ [_ii]: input[_iI]
1118
+ });
1119
+ b.bp("/apps.update");
1120
+ let body;
1121
+ body = JSON.stringify(
1122
+ (0, import_smithy_client.take)(input, {
1123
+ appDefinition: /* @__PURE__ */ __name((_) => se_AppDefinitionInput(_, context), "appDefinition"),
1124
+ appId: [],
1125
+ description: [],
1126
+ title: []
1127
+ })
1128
+ );
1129
+ b.m("POST").h(headers).b(body);
1130
+ return b.build();
1131
+ }, "se_UpdateQAppCommand");
1132
+ var se_UpdateQAppPermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1133
+ const b = (0, import_core.requestBuilder)(input, context);
1134
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1135
+ "content-type": "application/json",
1136
+ [_ii]: input[_iI]
1137
+ });
1138
+ b.bp("/apps.updateQAppPermissions");
1139
+ let body;
1140
+ body = JSON.stringify(
1141
+ (0, import_smithy_client.take)(input, {
1142
+ appId: [],
1143
+ grantPermissions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "grantPermissions"),
1144
+ revokePermissions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "revokePermissions")
1145
+ })
1146
+ );
1147
+ b.m("POST").h(headers).b(body);
1148
+ return b.build();
1149
+ }, "se_UpdateQAppPermissionsCommand");
1150
+ var se_UpdateQAppSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1151
+ const b = (0, import_core.requestBuilder)(input, context);
1152
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1153
+ "content-type": "application/json",
1154
+ [_ii]: input[_iI]
1155
+ });
1156
+ b.bp("/runtime.updateQAppSession");
1157
+ let body;
1158
+ body = JSON.stringify(
1159
+ (0, import_smithy_client.take)(input, {
1160
+ sessionId: [],
1161
+ values: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "values")
1162
+ })
1163
+ );
1164
+ b.m("POST").h(headers).b(body);
1165
+ return b.build();
1166
+ }, "se_UpdateQAppSessionCommand");
1167
+ var se_UpdateQAppSessionMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
1168
+ const b = (0, import_core.requestBuilder)(input, context);
1169
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1170
+ "content-type": "application/json",
1171
+ [_ii]: input[_iI]
1172
+ });
1173
+ b.bp("/runtime.updateQAppSessionMetadata");
1174
+ let body;
1175
+ body = JSON.stringify(
1176
+ (0, import_smithy_client.take)(input, {
1177
+ sessionId: [],
1178
+ sessionName: [],
1179
+ sharingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sharingConfiguration")
1180
+ })
1181
+ );
1182
+ b.m("POST").h(headers).b(body);
1183
+ return b.build();
1184
+ }, "se_UpdateQAppSessionMetadataCommand");
1185
+ var de_AssociateLibraryItemReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
1186
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1187
+ return de_CommandError(output, context);
1188
+ }
1189
+ const contents = (0, import_smithy_client.map)({
1190
+ $metadata: deserializeMetadata(output)
1191
+ });
1192
+ await (0, import_smithy_client.collectBody)(output.body, context);
1193
+ return contents;
1194
+ }, "de_AssociateLibraryItemReviewCommand");
1195
+ var de_AssociateQAppWithUserCommand = /* @__PURE__ */ __name(async (output, context) => {
1196
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1197
+ return de_CommandError(output, context);
1198
+ }
1199
+ const contents = (0, import_smithy_client.map)({
1200
+ $metadata: deserializeMetadata(output)
1201
+ });
1202
+ await (0, import_smithy_client.collectBody)(output.body, context);
1203
+ return contents;
1204
+ }, "de_AssociateQAppWithUserCommand");
1205
+ var de_BatchCreateCategoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1206
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1207
+ return de_CommandError(output, context);
1208
+ }
1209
+ const contents = (0, import_smithy_client.map)({
1210
+ $metadata: deserializeMetadata(output)
1211
+ });
1212
+ await (0, import_smithy_client.collectBody)(output.body, context);
1213
+ return contents;
1214
+ }, "de_BatchCreateCategoryCommand");
1215
+ var de_BatchDeleteCategoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1216
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1217
+ return de_CommandError(output, context);
1218
+ }
1219
+ const contents = (0, import_smithy_client.map)({
1220
+ $metadata: deserializeMetadata(output)
1221
+ });
1222
+ await (0, import_smithy_client.collectBody)(output.body, context);
1223
+ return contents;
1224
+ }, "de_BatchDeleteCategoryCommand");
1225
+ var de_BatchUpdateCategoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1226
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1227
+ return de_CommandError(output, context);
1228
+ }
1229
+ const contents = (0, import_smithy_client.map)({
1230
+ $metadata: deserializeMetadata(output)
1231
+ });
1232
+ await (0, import_smithy_client.collectBody)(output.body, context);
1233
+ return contents;
1234
+ }, "de_BatchUpdateCategoryCommand");
1235
+ var de_CreateLibraryItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1236
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1237
+ return de_CommandError(output, context);
1238
+ }
1239
+ const contents = (0, import_smithy_client.map)({
1240
+ $metadata: deserializeMetadata(output)
1241
+ });
1242
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1243
+ const doc = (0, import_smithy_client.take)(data, {
1244
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1245
+ createdBy: import_smithy_client.expectString,
1246
+ isVerified: import_smithy_client.expectBoolean,
1247
+ libraryItemId: import_smithy_client.expectString,
1248
+ ratingCount: import_smithy_client.expectInt32,
1249
+ status: import_smithy_client.expectString,
1250
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt"),
1251
+ updatedBy: import_smithy_client.expectString
1252
+ });
1253
+ Object.assign(contents, doc);
1254
+ return contents;
1255
+ }, "de_CreateLibraryItemCommand");
1256
+ var de_CreatePresignedUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1257
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1258
+ return de_CommandError(output, context);
1259
+ }
1260
+ const contents = (0, import_smithy_client.map)({
1261
+ $metadata: deserializeMetadata(output)
1262
+ });
1263
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1264
+ const doc = (0, import_smithy_client.take)(data, {
1265
+ fileId: import_smithy_client.expectString,
1266
+ presignedUrl: import_smithy_client.expectString,
1267
+ presignedUrlExpiration: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "presignedUrlExpiration"),
1268
+ presignedUrlFields: import_smithy_client._json
1269
+ });
1270
+ Object.assign(contents, doc);
1271
+ return contents;
1272
+ }, "de_CreatePresignedUrlCommand");
1273
+ var de_CreateQAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1274
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1275
+ return de_CommandError(output, context);
1276
+ }
1277
+ const contents = (0, import_smithy_client.map)({
1278
+ $metadata: deserializeMetadata(output)
1279
+ });
1280
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1281
+ const doc = (0, import_smithy_client.take)(data, {
1282
+ appArn: import_smithy_client.expectString,
1283
+ appId: import_smithy_client.expectString,
1284
+ appVersion: import_smithy_client.expectInt32,
1285
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1286
+ createdBy: import_smithy_client.expectString,
1287
+ description: import_smithy_client.expectString,
1288
+ initialPrompt: import_smithy_client.expectString,
1289
+ requiredCapabilities: import_smithy_client._json,
1290
+ status: import_smithy_client.expectString,
1291
+ title: import_smithy_client.expectString,
1292
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt"),
1293
+ updatedBy: import_smithy_client.expectString
1294
+ });
1295
+ Object.assign(contents, doc);
1296
+ return contents;
1297
+ }, "de_CreateQAppCommand");
1298
+ var de_DeleteLibraryItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1299
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1300
+ return de_CommandError(output, context);
1301
+ }
1302
+ const contents = (0, import_smithy_client.map)({
1303
+ $metadata: deserializeMetadata(output)
1304
+ });
1305
+ await (0, import_smithy_client.collectBody)(output.body, context);
1306
+ return contents;
1307
+ }, "de_DeleteLibraryItemCommand");
1308
+ var de_DeleteQAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1309
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1310
+ return de_CommandError(output, context);
1311
+ }
1312
+ const contents = (0, import_smithy_client.map)({
1313
+ $metadata: deserializeMetadata(output)
1314
+ });
1315
+ await (0, import_smithy_client.collectBody)(output.body, context);
1316
+ return contents;
1317
+ }, "de_DeleteQAppCommand");
1318
+ var de_DescribeQAppPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1319
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1320
+ return de_CommandError(output, context);
1321
+ }
1322
+ const contents = (0, import_smithy_client.map)({
1323
+ $metadata: deserializeMetadata(output)
1324
+ });
1325
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1326
+ const doc = (0, import_smithy_client.take)(data, {
1327
+ appId: import_smithy_client.expectString,
1328
+ permissions: import_smithy_client._json,
1329
+ resourceArn: import_smithy_client.expectString
1330
+ });
1331
+ Object.assign(contents, doc);
1332
+ return contents;
1333
+ }, "de_DescribeQAppPermissionsCommand");
1334
+ var de_DisassociateLibraryItemReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
1335
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1336
+ return de_CommandError(output, context);
1337
+ }
1338
+ const contents = (0, import_smithy_client.map)({
1339
+ $metadata: deserializeMetadata(output)
1340
+ });
1341
+ await (0, import_smithy_client.collectBody)(output.body, context);
1342
+ return contents;
1343
+ }, "de_DisassociateLibraryItemReviewCommand");
1344
+ var de_DisassociateQAppFromUserCommand = /* @__PURE__ */ __name(async (output, context) => {
1345
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1346
+ return de_CommandError(output, context);
1347
+ }
1348
+ const contents = (0, import_smithy_client.map)({
1349
+ $metadata: deserializeMetadata(output)
1350
+ });
1351
+ await (0, import_smithy_client.collectBody)(output.body, context);
1352
+ return contents;
1353
+ }, "de_DisassociateQAppFromUserCommand");
1354
+ var de_ExportQAppSessionDataCommand = /* @__PURE__ */ __name(async (output, context) => {
1355
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1356
+ return de_CommandError(output, context);
1357
+ }
1358
+ const contents = (0, import_smithy_client.map)({
1359
+ $metadata: deserializeMetadata(output)
1360
+ });
1361
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1362
+ const doc = (0, import_smithy_client.take)(data, {
1363
+ csvFileLink: import_smithy_client.expectString,
1364
+ expiresAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "expiresAt"),
1365
+ sessionArn: import_smithy_client.expectString
1366
+ });
1367
+ Object.assign(contents, doc);
1368
+ return contents;
1369
+ }, "de_ExportQAppSessionDataCommand");
1370
+ var de_GetLibraryItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1371
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1372
+ return de_CommandError(output, context);
1373
+ }
1374
+ const contents = (0, import_smithy_client.map)({
1375
+ $metadata: deserializeMetadata(output)
1376
+ });
1377
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1378
+ const doc = (0, import_smithy_client.take)(data, {
1379
+ appId: import_smithy_client.expectString,
1380
+ appVersion: import_smithy_client.expectInt32,
1381
+ categories: import_smithy_client._json,
1382
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1383
+ createdBy: import_smithy_client.expectString,
1384
+ isRatedByUser: import_smithy_client.expectBoolean,
1385
+ isVerified: import_smithy_client.expectBoolean,
1386
+ libraryItemId: import_smithy_client.expectString,
1387
+ ratingCount: import_smithy_client.expectInt32,
1388
+ status: import_smithy_client.expectString,
1389
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt"),
1390
+ updatedBy: import_smithy_client.expectString,
1391
+ userCount: import_smithy_client.expectInt32
1392
+ });
1393
+ Object.assign(contents, doc);
1394
+ return contents;
1395
+ }, "de_GetLibraryItemCommand");
1396
+ var de_GetQAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1397
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1398
+ return de_CommandError(output, context);
1399
+ }
1400
+ const contents = (0, import_smithy_client.map)({
1401
+ $metadata: deserializeMetadata(output)
1402
+ });
1403
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1404
+ const doc = (0, import_smithy_client.take)(data, {
1405
+ appArn: import_smithy_client.expectString,
1406
+ appDefinition: /* @__PURE__ */ __name((_) => de_AppDefinition(_, context), "appDefinition"),
1407
+ appId: import_smithy_client.expectString,
1408
+ appVersion: import_smithy_client.expectInt32,
1409
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1410
+ createdBy: import_smithy_client.expectString,
1411
+ description: import_smithy_client.expectString,
1412
+ initialPrompt: import_smithy_client.expectString,
1413
+ requiredCapabilities: import_smithy_client._json,
1414
+ status: import_smithy_client.expectString,
1415
+ title: import_smithy_client.expectString,
1416
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt"),
1417
+ updatedBy: import_smithy_client.expectString
1418
+ });
1419
+ Object.assign(contents, doc);
1420
+ return contents;
1421
+ }, "de_GetQAppCommand");
1422
+ var de_GetQAppSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1423
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1424
+ return de_CommandError(output, context);
1425
+ }
1426
+ const contents = (0, import_smithy_client.map)({
1427
+ $metadata: deserializeMetadata(output)
1428
+ });
1429
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1430
+ const doc = (0, import_smithy_client.take)(data, {
1431
+ appVersion: import_smithy_client.expectInt32,
1432
+ cardStatus: /* @__PURE__ */ __name((_) => de_CardStatusMap(_, context), "cardStatus"),
1433
+ latestPublishedAppVersion: import_smithy_client.expectInt32,
1434
+ sessionArn: import_smithy_client.expectString,
1435
+ sessionId: import_smithy_client.expectString,
1436
+ sessionName: import_smithy_client.expectString,
1437
+ status: import_smithy_client.expectString,
1438
+ userIsHost: import_smithy_client.expectBoolean
1439
+ });
1440
+ Object.assign(contents, doc);
1441
+ return contents;
1442
+ }, "de_GetQAppSessionCommand");
1443
+ var de_GetQAppSessionMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
1444
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1445
+ return de_CommandError(output, context);
1446
+ }
1447
+ const contents = (0, import_smithy_client.map)({
1448
+ $metadata: deserializeMetadata(output)
1449
+ });
1450
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1451
+ const doc = (0, import_smithy_client.take)(data, {
1452
+ sessionArn: import_smithy_client.expectString,
1453
+ sessionId: import_smithy_client.expectString,
1454
+ sessionName: import_smithy_client.expectString,
1455
+ sessionOwner: import_smithy_client.expectBoolean,
1456
+ sharingConfiguration: import_smithy_client._json
1457
+ });
1458
+ Object.assign(contents, doc);
1459
+ return contents;
1460
+ }, "de_GetQAppSessionMetadataCommand");
1461
+ var de_ImportDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
1462
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1463
+ return de_CommandError(output, context);
1464
+ }
1465
+ const contents = (0, import_smithy_client.map)({
1466
+ $metadata: deserializeMetadata(output)
1467
+ });
1468
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1469
+ const doc = (0, import_smithy_client.take)(data, {
1470
+ fileId: import_smithy_client.expectString
1471
+ });
1472
+ Object.assign(contents, doc);
1473
+ return contents;
1474
+ }, "de_ImportDocumentCommand");
1475
+ var de_ListCategoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
1476
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1477
+ return de_CommandError(output, context);
1478
+ }
1479
+ const contents = (0, import_smithy_client.map)({
1480
+ $metadata: deserializeMetadata(output)
1481
+ });
1482
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1483
+ const doc = (0, import_smithy_client.take)(data, {
1484
+ categories: import_smithy_client._json
1485
+ });
1486
+ Object.assign(contents, doc);
1487
+ return contents;
1488
+ }, "de_ListCategoriesCommand");
1489
+ var de_ListLibraryItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
1490
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1491
+ return de_CommandError(output, context);
1492
+ }
1493
+ const contents = (0, import_smithy_client.map)({
1494
+ $metadata: deserializeMetadata(output)
1495
+ });
1496
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1497
+ const doc = (0, import_smithy_client.take)(data, {
1498
+ libraryItems: /* @__PURE__ */ __name((_) => de_LibraryItemList(_, context), "libraryItems"),
1499
+ nextToken: import_smithy_client.expectString
1500
+ });
1501
+ Object.assign(contents, doc);
1502
+ return contents;
1503
+ }, "de_ListLibraryItemsCommand");
1504
+ var de_ListQAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
1505
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1506
+ return de_CommandError(output, context);
1507
+ }
1508
+ const contents = (0, import_smithy_client.map)({
1509
+ $metadata: deserializeMetadata(output)
1510
+ });
1511
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1512
+ const doc = (0, import_smithy_client.take)(data, {
1513
+ apps: /* @__PURE__ */ __name((_) => de_UserAppsList(_, context), "apps"),
1514
+ nextToken: import_smithy_client.expectString
1515
+ });
1516
+ Object.assign(contents, doc);
1517
+ return contents;
1518
+ }, "de_ListQAppsCommand");
1519
+ var de_ListQAppSessionDataCommand = /* @__PURE__ */ __name(async (output, context) => {
1520
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1521
+ return de_CommandError(output, context);
1522
+ }
1523
+ const contents = (0, import_smithy_client.map)({
1524
+ $metadata: deserializeMetadata(output)
1525
+ });
1526
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1527
+ const doc = (0, import_smithy_client.take)(data, {
1528
+ nextToken: import_smithy_client.expectString,
1529
+ sessionArn: import_smithy_client.expectString,
1530
+ sessionData: /* @__PURE__ */ __name((_) => de_QAppSessionDataList(_, context), "sessionData"),
1531
+ sessionId: import_smithy_client.expectString
1532
+ });
1533
+ Object.assign(contents, doc);
1534
+ return contents;
1535
+ }, "de_ListQAppSessionDataCommand");
1536
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1537
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1538
+ return de_CommandError(output, context);
1539
+ }
1540
+ const contents = (0, import_smithy_client.map)({
1541
+ $metadata: deserializeMetadata(output)
1542
+ });
1543
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1544
+ const doc = (0, import_smithy_client.take)(data, {
1545
+ tags: import_smithy_client._json
1546
+ });
1547
+ Object.assign(contents, doc);
1548
+ return contents;
1549
+ }, "de_ListTagsForResourceCommand");
1550
+ var de_PredictQAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1551
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1552
+ return de_CommandError(output, context);
1553
+ }
1554
+ const contents = (0, import_smithy_client.map)({
1555
+ $metadata: deserializeMetadata(output)
1556
+ });
1557
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1558
+ const doc = (0, import_smithy_client.take)(data, {
1559
+ app: /* @__PURE__ */ __name((_) => de_PredictAppDefinition(_, context), "app"),
1560
+ problemStatement: import_smithy_client.expectString
1561
+ });
1562
+ Object.assign(contents, doc);
1563
+ return contents;
1564
+ }, "de_PredictQAppCommand");
1565
+ var de_StartQAppSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1566
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1567
+ return de_CommandError(output, context);
1568
+ }
1569
+ const contents = (0, import_smithy_client.map)({
1570
+ $metadata: deserializeMetadata(output)
1571
+ });
1572
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1573
+ const doc = (0, import_smithy_client.take)(data, {
1574
+ sessionArn: import_smithy_client.expectString,
1575
+ sessionId: import_smithy_client.expectString
1576
+ });
1577
+ Object.assign(contents, doc);
1578
+ return contents;
1579
+ }, "de_StartQAppSessionCommand");
1580
+ var de_StopQAppSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1581
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
+ return de_CommandError(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_StopQAppSessionCommand");
1590
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1591
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1592
+ return de_CommandError(output, context);
1593
+ }
1594
+ const contents = (0, import_smithy_client.map)({
1595
+ $metadata: deserializeMetadata(output)
1596
+ });
1597
+ await (0, import_smithy_client.collectBody)(output.body, context);
1598
+ return contents;
1599
+ }, "de_TagResourceCommand");
1600
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1601
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1602
+ return de_CommandError(output, context);
1603
+ }
1604
+ const contents = (0, import_smithy_client.map)({
1605
+ $metadata: deserializeMetadata(output)
1606
+ });
1607
+ await (0, import_smithy_client.collectBody)(output.body, context);
1608
+ return contents;
1609
+ }, "de_UntagResourceCommand");
1610
+ var de_UpdateLibraryItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1611
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1612
+ return de_CommandError(output, context);
1613
+ }
1614
+ const contents = (0, import_smithy_client.map)({
1615
+ $metadata: deserializeMetadata(output)
1616
+ });
1617
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1618
+ const doc = (0, import_smithy_client.take)(data, {
1619
+ appId: import_smithy_client.expectString,
1620
+ appVersion: import_smithy_client.expectInt32,
1621
+ categories: import_smithy_client._json,
1622
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1623
+ createdBy: import_smithy_client.expectString,
1624
+ isRatedByUser: import_smithy_client.expectBoolean,
1625
+ isVerified: import_smithy_client.expectBoolean,
1626
+ libraryItemId: import_smithy_client.expectString,
1627
+ ratingCount: import_smithy_client.expectInt32,
1628
+ status: import_smithy_client.expectString,
1629
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt"),
1630
+ updatedBy: import_smithy_client.expectString,
1631
+ userCount: import_smithy_client.expectInt32
1632
+ });
1633
+ Object.assign(contents, doc);
1634
+ return contents;
1635
+ }, "de_UpdateLibraryItemCommand");
1636
+ var de_UpdateLibraryItemMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
1637
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1638
+ return de_CommandError(output, context);
1639
+ }
1640
+ const contents = (0, import_smithy_client.map)({
1641
+ $metadata: deserializeMetadata(output)
1642
+ });
1643
+ await (0, import_smithy_client.collectBody)(output.body, context);
1644
+ return contents;
1645
+ }, "de_UpdateLibraryItemMetadataCommand");
1646
+ var de_UpdateQAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1647
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1648
+ return de_CommandError(output, context);
1649
+ }
1650
+ const contents = (0, import_smithy_client.map)({
1651
+ $metadata: deserializeMetadata(output)
1652
+ });
1653
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1654
+ const doc = (0, import_smithy_client.take)(data, {
1655
+ appArn: import_smithy_client.expectString,
1656
+ appId: import_smithy_client.expectString,
1657
+ appVersion: import_smithy_client.expectInt32,
1658
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1659
+ createdBy: import_smithy_client.expectString,
1660
+ description: import_smithy_client.expectString,
1661
+ initialPrompt: import_smithy_client.expectString,
1662
+ requiredCapabilities: import_smithy_client._json,
1663
+ status: import_smithy_client.expectString,
1664
+ title: import_smithy_client.expectString,
1665
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt"),
1666
+ updatedBy: import_smithy_client.expectString
1667
+ });
1668
+ Object.assign(contents, doc);
1669
+ return contents;
1670
+ }, "de_UpdateQAppCommand");
1671
+ var de_UpdateQAppPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1672
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1673
+ return de_CommandError(output, context);
1674
+ }
1675
+ const contents = (0, import_smithy_client.map)({
1676
+ $metadata: deserializeMetadata(output)
1677
+ });
1678
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1679
+ const doc = (0, import_smithy_client.take)(data, {
1680
+ appId: import_smithy_client.expectString,
1681
+ permissions: import_smithy_client._json,
1682
+ resourceArn: import_smithy_client.expectString
1683
+ });
1684
+ Object.assign(contents, doc);
1685
+ return contents;
1686
+ }, "de_UpdateQAppPermissionsCommand");
1687
+ var de_UpdateQAppSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1688
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1689
+ return de_CommandError(output, context);
1690
+ }
1691
+ const contents = (0, import_smithy_client.map)({
1692
+ $metadata: deserializeMetadata(output)
1693
+ });
1694
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1695
+ const doc = (0, import_smithy_client.take)(data, {
1696
+ sessionArn: import_smithy_client.expectString,
1697
+ sessionId: import_smithy_client.expectString
1698
+ });
1699
+ Object.assign(contents, doc);
1700
+ return contents;
1701
+ }, "de_UpdateQAppSessionCommand");
1702
+ var de_UpdateQAppSessionMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
1703
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1704
+ return de_CommandError(output, context);
1705
+ }
1706
+ const contents = (0, import_smithy_client.map)({
1707
+ $metadata: deserializeMetadata(output)
1708
+ });
1709
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1710
+ const doc = (0, import_smithy_client.take)(data, {
1711
+ sessionArn: import_smithy_client.expectString,
1712
+ sessionId: import_smithy_client.expectString,
1713
+ sessionName: import_smithy_client.expectString,
1714
+ sharingConfiguration: import_smithy_client._json
1715
+ });
1716
+ Object.assign(contents, doc);
1717
+ return contents;
1718
+ }, "de_UpdateQAppSessionMetadataCommand");
1719
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1720
+ const parsedOutput = {
1721
+ ...output,
1722
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1723
+ };
1724
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1725
+ switch (errorCode) {
1726
+ case "AccessDeniedException":
1727
+ case "com.amazonaws.qapps#AccessDeniedException":
1728
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1729
+ case "ConflictException":
1730
+ case "com.amazonaws.qapps#ConflictException":
1731
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1732
+ case "InternalServerException":
1733
+ case "com.amazonaws.qapps#InternalServerException":
1734
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1735
+ case "ResourceNotFoundException":
1736
+ case "com.amazonaws.qapps#ResourceNotFoundException":
1737
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1738
+ case "ServiceQuotaExceededException":
1739
+ case "com.amazonaws.qapps#ServiceQuotaExceededException":
1740
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1741
+ case "ThrottlingException":
1742
+ case "com.amazonaws.qapps#ThrottlingException":
1743
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1744
+ case "UnauthorizedException":
1745
+ case "com.amazonaws.qapps#UnauthorizedException":
1746
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1747
+ case "ValidationException":
1748
+ case "com.amazonaws.qapps#ValidationException":
1749
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1750
+ case "ContentTooLargeException":
1751
+ case "com.amazonaws.qapps#ContentTooLargeException":
1752
+ throw await de_ContentTooLargeExceptionRes(parsedOutput, context);
1753
+ default:
1754
+ const parsedBody = parsedOutput.body;
1755
+ return throwDefaultError({
1756
+ output,
1757
+ parsedBody,
1758
+ errorCode
1759
+ });
1760
+ }
1761
+ }, "de_CommandError");
1762
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(QAppsServiceException);
1763
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1764
+ const contents = (0, import_smithy_client.map)({});
1765
+ const data = parsedOutput.body;
1766
+ const doc = (0, import_smithy_client.take)(data, {
1767
+ message: import_smithy_client.expectString
1768
+ });
1769
+ Object.assign(contents, doc);
1770
+ const exception = new AccessDeniedException({
1771
+ $metadata: deserializeMetadata(parsedOutput),
1772
+ ...contents
1773
+ });
1774
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1775
+ }, "de_AccessDeniedExceptionRes");
1776
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1777
+ const contents = (0, import_smithy_client.map)({});
1778
+ const data = parsedOutput.body;
1779
+ const doc = (0, import_smithy_client.take)(data, {
1780
+ message: import_smithy_client.expectString,
1781
+ resourceId: import_smithy_client.expectString,
1782
+ resourceType: import_smithy_client.expectString
1783
+ });
1784
+ Object.assign(contents, doc);
1785
+ const exception = new ConflictException({
1786
+ $metadata: deserializeMetadata(parsedOutput),
1787
+ ...contents
1788
+ });
1789
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1790
+ }, "de_ConflictExceptionRes");
1791
+ var de_ContentTooLargeExceptionRes = /* @__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
+ resourceId: import_smithy_client.expectString,
1797
+ resourceType: import_smithy_client.expectString
1798
+ });
1799
+ Object.assign(contents, doc);
1800
+ const exception = new ContentTooLargeException({
1801
+ $metadata: deserializeMetadata(parsedOutput),
1802
+ ...contents
1803
+ });
1804
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1805
+ }, "de_ContentTooLargeExceptionRes");
1806
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1807
+ const contents = (0, import_smithy_client.map)({
1808
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1809
+ });
1810
+ const data = parsedOutput.body;
1811
+ const doc = (0, import_smithy_client.take)(data, {
1812
+ message: import_smithy_client.expectString
1813
+ });
1814
+ Object.assign(contents, doc);
1815
+ const exception = new InternalServerException({
1816
+ $metadata: deserializeMetadata(parsedOutput),
1817
+ ...contents
1818
+ });
1819
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1820
+ }, "de_InternalServerExceptionRes");
1821
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1822
+ const contents = (0, import_smithy_client.map)({});
1823
+ const data = parsedOutput.body;
1824
+ const doc = (0, import_smithy_client.take)(data, {
1825
+ message: import_smithy_client.expectString,
1826
+ resourceId: import_smithy_client.expectString,
1827
+ resourceType: import_smithy_client.expectString
1828
+ });
1829
+ Object.assign(contents, doc);
1830
+ const exception = new ResourceNotFoundException({
1831
+ $metadata: deserializeMetadata(parsedOutput),
1832
+ ...contents
1833
+ });
1834
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1835
+ }, "de_ResourceNotFoundExceptionRes");
1836
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1837
+ const contents = (0, import_smithy_client.map)({});
1838
+ const data = parsedOutput.body;
1839
+ const doc = (0, import_smithy_client.take)(data, {
1840
+ message: import_smithy_client.expectString,
1841
+ quotaCode: import_smithy_client.expectString,
1842
+ resourceId: import_smithy_client.expectString,
1843
+ resourceType: import_smithy_client.expectString,
1844
+ serviceCode: import_smithy_client.expectString
1845
+ });
1846
+ Object.assign(contents, doc);
1847
+ const exception = new ServiceQuotaExceededException({
1848
+ $metadata: deserializeMetadata(parsedOutput),
1849
+ ...contents
1850
+ });
1851
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1852
+ }, "de_ServiceQuotaExceededExceptionRes");
1853
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1854
+ const contents = (0, import_smithy_client.map)({
1855
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1856
+ });
1857
+ const data = parsedOutput.body;
1858
+ const doc = (0, import_smithy_client.take)(data, {
1859
+ message: import_smithy_client.expectString,
1860
+ quotaCode: import_smithy_client.expectString,
1861
+ serviceCode: import_smithy_client.expectString
1862
+ });
1863
+ Object.assign(contents, doc);
1864
+ const exception = new ThrottlingException({
1865
+ $metadata: deserializeMetadata(parsedOutput),
1866
+ ...contents
1867
+ });
1868
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1869
+ }, "de_ThrottlingExceptionRes");
1870
+ var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1871
+ const contents = (0, import_smithy_client.map)({});
1872
+ const data = parsedOutput.body;
1873
+ const doc = (0, import_smithy_client.take)(data, {
1874
+ message: import_smithy_client.expectString
1875
+ });
1876
+ Object.assign(contents, doc);
1877
+ const exception = new UnauthorizedException({
1878
+ $metadata: deserializeMetadata(parsedOutput),
1879
+ ...contents
1880
+ });
1881
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1882
+ }, "de_UnauthorizedExceptionRes");
1883
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1884
+ const contents = (0, import_smithy_client.map)({});
1885
+ const data = parsedOutput.body;
1886
+ const doc = (0, import_smithy_client.take)(data, {
1887
+ message: import_smithy_client.expectString
1888
+ });
1889
+ Object.assign(contents, doc);
1890
+ const exception = new ValidationException({
1891
+ $metadata: deserializeMetadata(parsedOutput),
1892
+ ...contents
1893
+ });
1894
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1895
+ }, "de_ValidationExceptionRes");
1896
+ var se_AppDefinitionInput = /* @__PURE__ */ __name((input, context) => {
1897
+ return (0, import_smithy_client.take)(input, {
1898
+ cards: /* @__PURE__ */ __name((_) => se_CardList(_, context), "cards"),
1899
+ initialPrompt: []
1900
+ });
1901
+ }, "se_AppDefinitionInput");
1902
+ var se_AttributeFilter = /* @__PURE__ */ __name((input, context) => {
1903
+ return (0, import_smithy_client.take)(input, {
1904
+ andAllFilters: /* @__PURE__ */ __name((_) => se_AttributeFilters(_, context), "andAllFilters"),
1905
+ containsAll: /* @__PURE__ */ __name((_) => se_DocumentAttribute(_, context), "containsAll"),
1906
+ containsAny: /* @__PURE__ */ __name((_) => se_DocumentAttribute(_, context), "containsAny"),
1907
+ equalsTo: /* @__PURE__ */ __name((_) => se_DocumentAttribute(_, context), "equalsTo"),
1908
+ greaterThan: /* @__PURE__ */ __name((_) => se_DocumentAttribute(_, context), "greaterThan"),
1909
+ greaterThanOrEquals: /* @__PURE__ */ __name((_) => se_DocumentAttribute(_, context), "greaterThanOrEquals"),
1910
+ lessThan: /* @__PURE__ */ __name((_) => se_DocumentAttribute(_, context), "lessThan"),
1911
+ lessThanOrEquals: /* @__PURE__ */ __name((_) => se_DocumentAttribute(_, context), "lessThanOrEquals"),
1912
+ notFilter: /* @__PURE__ */ __name((_) => se_AttributeFilter(_, context), "notFilter"),
1913
+ orAllFilters: /* @__PURE__ */ __name((_) => se_AttributeFilters(_, context), "orAllFilters")
1914
+ });
1915
+ }, "se_AttributeFilter");
1916
+ var se_AttributeFilters = /* @__PURE__ */ __name((input, context) => {
1917
+ return input.filter((e) => e != null).map((entry) => {
1918
+ return se_AttributeFilter(entry, context);
1919
+ });
1920
+ }, "se_AttributeFilters");
1921
+ var se_CardInput = /* @__PURE__ */ __name((input, context) => {
1922
+ return CardInput.visit(input, {
1923
+ fileUpload: /* @__PURE__ */ __name((value) => ({ fileUpload: (0, import_smithy_client._json)(value) }), "fileUpload"),
1924
+ formInput: /* @__PURE__ */ __name((value) => ({ formInput: se_FormInputCardInput(value, context) }), "formInput"),
1925
+ qPlugin: /* @__PURE__ */ __name((value) => ({ qPlugin: (0, import_smithy_client._json)(value) }), "qPlugin"),
1926
+ qQuery: /* @__PURE__ */ __name((value) => ({ qQuery: se_QQueryCardInput(value, context) }), "qQuery"),
1927
+ textInput: /* @__PURE__ */ __name((value) => ({ textInput: (0, import_smithy_client._json)(value) }), "textInput"),
1928
+ _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
1929
+ });
1930
+ }, "se_CardInput");
1931
+ var se_CardList = /* @__PURE__ */ __name((input, context) => {
1932
+ return input.filter((e) => e != null).map((entry) => {
1933
+ return se_CardInput(entry, context);
1934
+ });
1935
+ }, "se_CardList");
1936
+ var se_DocumentAttribute = /* @__PURE__ */ __name((input, context) => {
1937
+ return (0, import_smithy_client.take)(input, {
1938
+ name: [],
1939
+ value: /* @__PURE__ */ __name((_) => se_DocumentAttributeValue(_, context), "value")
1940
+ });
1941
+ }, "se_DocumentAttribute");
1942
+ var se_DocumentAttributeValue = /* @__PURE__ */ __name((input, context) => {
1943
+ return DocumentAttributeValue.visit(input, {
1944
+ dateValue: /* @__PURE__ */ __name((value) => ({ dateValue: value.getTime() / 1e3 }), "dateValue"),
1945
+ longValue: /* @__PURE__ */ __name((value) => ({ longValue: value }), "longValue"),
1946
+ stringListValue: /* @__PURE__ */ __name((value) => ({ stringListValue: (0, import_smithy_client._json)(value) }), "stringListValue"),
1947
+ stringValue: /* @__PURE__ */ __name((value) => ({ stringValue: value }), "stringValue"),
1948
+ _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
1949
+ });
1950
+ }, "se_DocumentAttributeValue");
1951
+ var se_FormInputCardInput = /* @__PURE__ */ __name((input, context) => {
1952
+ return (0, import_smithy_client.take)(input, {
1953
+ computeMode: [],
1954
+ id: [],
1955
+ metadata: /* @__PURE__ */ __name((_) => se_FormInputCardMetadata(_, context), "metadata"),
1956
+ title: [],
1957
+ type: []
1958
+ });
1959
+ }, "se_FormInputCardInput");
1960
+ var se_FormInputCardMetadata = /* @__PURE__ */ __name((input, context) => {
1961
+ return (0, import_smithy_client.take)(input, {
1962
+ schema: /* @__PURE__ */ __name((_) => se_FormInputCardMetadataSchema(_, context), "schema")
1963
+ });
1964
+ }, "se_FormInputCardMetadata");
1965
+ var se_FormInputCardMetadataSchema = /* @__PURE__ */ __name((input, context) => {
1966
+ return input;
1967
+ }, "se_FormInputCardMetadataSchema");
1968
+ var se_QQueryCardInput = /* @__PURE__ */ __name((input, context) => {
1969
+ return (0, import_smithy_client.take)(input, {
1970
+ attributeFilter: /* @__PURE__ */ __name((_) => se_AttributeFilter(_, context), "attributeFilter"),
1971
+ id: [],
1972
+ outputSource: [],
1973
+ prompt: [],
1974
+ title: [],
1975
+ type: []
1976
+ });
1977
+ }, "se_QQueryCardInput");
1978
+ var de_AppDefinition = /* @__PURE__ */ __name((output, context) => {
1979
+ return (0, import_smithy_client.take)(output, {
1980
+ appDefinitionVersion: import_smithy_client.expectString,
1981
+ canEdit: import_smithy_client.expectBoolean,
1982
+ cards: /* @__PURE__ */ __name((_) => de_CardModelList(_, context), "cards")
1983
+ });
1984
+ }, "de_AppDefinition");
1985
+ var de_AppDefinitionInput = /* @__PURE__ */ __name((output, context) => {
1986
+ return (0, import_smithy_client.take)(output, {
1987
+ cards: /* @__PURE__ */ __name((_) => de_CardList(_, context), "cards"),
1988
+ initialPrompt: import_smithy_client.expectString
1989
+ });
1990
+ }, "de_AppDefinitionInput");
1991
+ var de_AttributeFilter = /* @__PURE__ */ __name((output, context) => {
1992
+ return (0, import_smithy_client.take)(output, {
1993
+ andAllFilters: /* @__PURE__ */ __name((_) => de_AttributeFilters(_, context), "andAllFilters"),
1994
+ containsAll: /* @__PURE__ */ __name((_) => de_DocumentAttribute(_, context), "containsAll"),
1995
+ containsAny: /* @__PURE__ */ __name((_) => de_DocumentAttribute(_, context), "containsAny"),
1996
+ equalsTo: /* @__PURE__ */ __name((_) => de_DocumentAttribute(_, context), "equalsTo"),
1997
+ greaterThan: /* @__PURE__ */ __name((_) => de_DocumentAttribute(_, context), "greaterThan"),
1998
+ greaterThanOrEquals: /* @__PURE__ */ __name((_) => de_DocumentAttribute(_, context), "greaterThanOrEquals"),
1999
+ lessThan: /* @__PURE__ */ __name((_) => de_DocumentAttribute(_, context), "lessThan"),
2000
+ lessThanOrEquals: /* @__PURE__ */ __name((_) => de_DocumentAttribute(_, context), "lessThanOrEquals"),
2001
+ notFilter: /* @__PURE__ */ __name((_) => de_AttributeFilter(_, context), "notFilter"),
2002
+ orAllFilters: /* @__PURE__ */ __name((_) => de_AttributeFilters(_, context), "orAllFilters")
2003
+ });
2004
+ }, "de_AttributeFilter");
2005
+ var de_AttributeFilters = /* @__PURE__ */ __name((output, context) => {
2006
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2007
+ return de_AttributeFilter(entry, context);
2008
+ });
2009
+ return retVal;
2010
+ }, "de_AttributeFilters");
2011
+ var de_Card = /* @__PURE__ */ __name((output, context) => {
2012
+ if (output.fileUpload != null) {
2013
+ return {
2014
+ fileUpload: (0, import_smithy_client._json)(output.fileUpload)
2015
+ };
2016
+ }
2017
+ if (output.formInput != null) {
2018
+ return {
2019
+ formInput: de_FormInputCard(output.formInput, context)
2020
+ };
2021
+ }
2022
+ if (output.qPlugin != null) {
2023
+ return {
2024
+ qPlugin: (0, import_smithy_client._json)(output.qPlugin)
2025
+ };
2026
+ }
2027
+ if (output.qQuery != null) {
2028
+ return {
2029
+ qQuery: de_QQueryCard(output.qQuery, context)
2030
+ };
2031
+ }
2032
+ if (output.textInput != null) {
2033
+ return {
2034
+ textInput: (0, import_smithy_client._json)(output.textInput)
2035
+ };
2036
+ }
2037
+ return { $unknown: Object.entries(output)[0] };
2038
+ }, "de_Card");
2039
+ var de_CardInput = /* @__PURE__ */ __name((output, context) => {
2040
+ if (output.fileUpload != null) {
2041
+ return {
2042
+ fileUpload: (0, import_smithy_client._json)(output.fileUpload)
2043
+ };
2044
+ }
2045
+ if (output.formInput != null) {
2046
+ return {
2047
+ formInput: de_FormInputCardInput(output.formInput, context)
2048
+ };
2049
+ }
2050
+ if (output.qPlugin != null) {
2051
+ return {
2052
+ qPlugin: (0, import_smithy_client._json)(output.qPlugin)
2053
+ };
2054
+ }
2055
+ if (output.qQuery != null) {
2056
+ return {
2057
+ qQuery: de_QQueryCardInput(output.qQuery, context)
2058
+ };
2059
+ }
2060
+ if (output.textInput != null) {
2061
+ return {
2062
+ textInput: (0, import_smithy_client._json)(output.textInput)
2063
+ };
2064
+ }
2065
+ return { $unknown: Object.entries(output)[0] };
2066
+ }, "de_CardInput");
2067
+ var de_CardList = /* @__PURE__ */ __name((output, context) => {
2068
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2069
+ return de_CardInput((0, import_core2.awsExpectUnion)(entry), context);
2070
+ });
2071
+ return retVal;
2072
+ }, "de_CardList");
2073
+ var de_CardModelList = /* @__PURE__ */ __name((output, context) => {
2074
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2075
+ return de_Card((0, import_core2.awsExpectUnion)(entry), context);
2076
+ });
2077
+ return retVal;
2078
+ }, "de_CardModelList");
2079
+ var de_CardStatus = /* @__PURE__ */ __name((output, context) => {
2080
+ return (0, import_smithy_client.take)(output, {
2081
+ currentState: import_smithy_client.expectString,
2082
+ currentValue: import_smithy_client.expectString,
2083
+ submissions: /* @__PURE__ */ __name((_) => de_SubmissionList(_, context), "submissions")
2084
+ });
2085
+ }, "de_CardStatus");
2086
+ var de_CardStatusMap = /* @__PURE__ */ __name((output, context) => {
2087
+ return Object.entries(output).reduce((acc, [key, value]) => {
2088
+ if (value === null) {
2089
+ return acc;
2090
+ }
2091
+ acc[key] = de_CardStatus(value, context);
2092
+ return acc;
2093
+ }, {});
2094
+ }, "de_CardStatusMap");
2095
+ var de_DocumentAttribute = /* @__PURE__ */ __name((output, context) => {
2096
+ return (0, import_smithy_client.take)(output, {
2097
+ name: import_smithy_client.expectString,
2098
+ value: /* @__PURE__ */ __name((_) => de_DocumentAttributeValue((0, import_core2.awsExpectUnion)(_), context), "value")
2099
+ });
2100
+ }, "de_DocumentAttribute");
2101
+ var de_DocumentAttributeValue = /* @__PURE__ */ __name((output, context) => {
2102
+ if (output.dateValue != null) {
2103
+ return {
2104
+ dateValue: (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(output.dateValue)))
2105
+ };
2106
+ }
2107
+ if ((0, import_smithy_client.expectLong)(output.longValue) !== void 0) {
2108
+ return { longValue: (0, import_smithy_client.expectLong)(output.longValue) };
2109
+ }
2110
+ if (output.stringListValue != null) {
2111
+ return {
2112
+ stringListValue: (0, import_smithy_client._json)(output.stringListValue)
2113
+ };
2114
+ }
2115
+ if ((0, import_smithy_client.expectString)(output.stringValue) !== void 0) {
2116
+ return { stringValue: (0, import_smithy_client.expectString)(output.stringValue) };
2117
+ }
2118
+ return { $unknown: Object.entries(output)[0] };
2119
+ }, "de_DocumentAttributeValue");
2120
+ var de_FormInputCard = /* @__PURE__ */ __name((output, context) => {
2121
+ return (0, import_smithy_client.take)(output, {
2122
+ computeMode: import_smithy_client.expectString,
2123
+ dependencies: import_smithy_client._json,
2124
+ id: import_smithy_client.expectString,
2125
+ metadata: /* @__PURE__ */ __name((_) => de_FormInputCardMetadata(_, context), "metadata"),
2126
+ title: import_smithy_client.expectString,
2127
+ type: import_smithy_client.expectString
2128
+ });
2129
+ }, "de_FormInputCard");
2130
+ var de_FormInputCardInput = /* @__PURE__ */ __name((output, context) => {
2131
+ return (0, import_smithy_client.take)(output, {
2132
+ computeMode: import_smithy_client.expectString,
2133
+ id: import_smithy_client.expectString,
2134
+ metadata: /* @__PURE__ */ __name((_) => de_FormInputCardMetadata(_, context), "metadata"),
2135
+ title: import_smithy_client.expectString,
2136
+ type: import_smithy_client.expectString
2137
+ });
2138
+ }, "de_FormInputCardInput");
2139
+ var de_FormInputCardMetadata = /* @__PURE__ */ __name((output, context) => {
2140
+ return (0, import_smithy_client.take)(output, {
2141
+ schema: /* @__PURE__ */ __name((_) => de_FormInputCardMetadataSchema(_, context), "schema")
2142
+ });
2143
+ }, "de_FormInputCardMetadata");
2144
+ var de_FormInputCardMetadataSchema = /* @__PURE__ */ __name((output, context) => {
2145
+ return output;
2146
+ }, "de_FormInputCardMetadataSchema");
2147
+ var de_LibraryItemList = /* @__PURE__ */ __name((output, context) => {
2148
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2149
+ return de_LibraryItemMember(entry, context);
2150
+ });
2151
+ return retVal;
2152
+ }, "de_LibraryItemList");
2153
+ var de_LibraryItemMember = /* @__PURE__ */ __name((output, context) => {
2154
+ return (0, import_smithy_client.take)(output, {
2155
+ appId: import_smithy_client.expectString,
2156
+ appVersion: import_smithy_client.expectInt32,
2157
+ categories: import_smithy_client._json,
2158
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
2159
+ createdBy: import_smithy_client.expectString,
2160
+ isRatedByUser: import_smithy_client.expectBoolean,
2161
+ isVerified: import_smithy_client.expectBoolean,
2162
+ libraryItemId: import_smithy_client.expectString,
2163
+ ratingCount: import_smithy_client.expectInt32,
2164
+ status: import_smithy_client.expectString,
2165
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt"),
2166
+ updatedBy: import_smithy_client.expectString,
2167
+ userCount: import_smithy_client.expectInt32
2168
+ });
2169
+ }, "de_LibraryItemMember");
2170
+ var de_PredictAppDefinition = /* @__PURE__ */ __name((output, context) => {
2171
+ return (0, import_smithy_client.take)(output, {
2172
+ appDefinition: /* @__PURE__ */ __name((_) => de_AppDefinitionInput(_, context), "appDefinition"),
2173
+ description: import_smithy_client.expectString,
2174
+ title: import_smithy_client.expectString
2175
+ });
2176
+ }, "de_PredictAppDefinition");
2177
+ var de_QAppSessionData = /* @__PURE__ */ __name((output, context) => {
2178
+ return (0, import_smithy_client.take)(output, {
2179
+ cardId: import_smithy_client.expectString,
2180
+ submissionId: import_smithy_client.expectString,
2181
+ timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "timestamp"),
2182
+ user: import_smithy_client._json,
2183
+ value: /* @__PURE__ */ __name((_) => de_Document(_, context), "value")
2184
+ });
2185
+ }, "de_QAppSessionData");
2186
+ var de_QAppSessionDataList = /* @__PURE__ */ __name((output, context) => {
2187
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2188
+ return de_QAppSessionData(entry, context);
2189
+ });
2190
+ return retVal;
2191
+ }, "de_QAppSessionDataList");
2192
+ var de_QQueryCard = /* @__PURE__ */ __name((output, context) => {
2193
+ return (0, import_smithy_client.take)(output, {
2194
+ attributeFilter: /* @__PURE__ */ __name((_) => de_AttributeFilter(_, context), "attributeFilter"),
2195
+ dependencies: import_smithy_client._json,
2196
+ id: import_smithy_client.expectString,
2197
+ memoryReferences: import_smithy_client._json,
2198
+ outputSource: import_smithy_client.expectString,
2199
+ prompt: import_smithy_client.expectString,
2200
+ title: import_smithy_client.expectString,
2201
+ type: import_smithy_client.expectString
2202
+ });
2203
+ }, "de_QQueryCard");
2204
+ var de_QQueryCardInput = /* @__PURE__ */ __name((output, context) => {
2205
+ return (0, import_smithy_client.take)(output, {
2206
+ attributeFilter: /* @__PURE__ */ __name((_) => de_AttributeFilter(_, context), "attributeFilter"),
2207
+ id: import_smithy_client.expectString,
2208
+ outputSource: import_smithy_client.expectString,
2209
+ prompt: import_smithy_client.expectString,
2210
+ title: import_smithy_client.expectString,
2211
+ type: import_smithy_client.expectString
2212
+ });
2213
+ }, "de_QQueryCardInput");
2214
+ var de_Submission = /* @__PURE__ */ __name((output, context) => {
2215
+ return (0, import_smithy_client.take)(output, {
2216
+ submissionId: import_smithy_client.expectString,
2217
+ timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "timestamp"),
2218
+ value: /* @__PURE__ */ __name((_) => de_Document(_, context), "value")
2219
+ });
2220
+ }, "de_Submission");
2221
+ var de_SubmissionList = /* @__PURE__ */ __name((output, context) => {
2222
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2223
+ return de_Submission(entry, context);
2224
+ });
2225
+ return retVal;
2226
+ }, "de_SubmissionList");
2227
+ var de_UserAppItem = /* @__PURE__ */ __name((output, context) => {
2228
+ return (0, import_smithy_client.take)(output, {
2229
+ appArn: import_smithy_client.expectString,
2230
+ appId: import_smithy_client.expectString,
2231
+ canEdit: import_smithy_client.expectBoolean,
2232
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
2233
+ description: import_smithy_client.expectString,
2234
+ isVerified: import_smithy_client.expectBoolean,
2235
+ status: import_smithy_client.expectString,
2236
+ title: import_smithy_client.expectString
2237
+ });
2238
+ }, "de_UserAppItem");
2239
+ var de_UserAppsList = /* @__PURE__ */ __name((output, context) => {
2240
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2241
+ return de_UserAppItem(entry, context);
2242
+ });
2243
+ return retVal;
2244
+ }, "de_UserAppsList");
2245
+ var de_Document = /* @__PURE__ */ __name((output, context) => {
2246
+ return output;
2247
+ }, "de_Document");
2248
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2249
+ httpStatusCode: output.statusCode,
2250
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2251
+ extendedRequestId: output.headers["x-amz-id-2"],
2252
+ cfId: output.headers["x-amz-cf-id"]
2253
+ }), "deserializeMetadata");
2254
+ var _aI = "appId";
2255
+ var _aV = "appVersion";
2256
+ var _cI = "categoryId";
2257
+ var _iI = "instanceId";
2258
+ var _ii = "instance-id";
2259
+ var _l = "limit";
2260
+ var _lII = "libraryItemId";
2261
+ var _nT = "nextToken";
2262
+ var _rAS = "retryAfterSeconds";
2263
+ var _ra = "retry-after";
2264
+ var _sI = "sessionId";
2265
+ var _tK = "tagKeys";
2266
+
2267
+ // src/commands/AssociateLibraryItemReviewCommand.ts
2268
+ var AssociateLibraryItemReviewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2269
+ return [
2270
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2271
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2272
+ ];
2273
+ }).s("QAppsService", "AssociateLibraryItemReview", {}).n("QAppsClient", "AssociateLibraryItemReviewCommand").f(void 0, void 0).ser(se_AssociateLibraryItemReviewCommand).de(de_AssociateLibraryItemReviewCommand).build() {
2274
+ static {
2275
+ __name(this, "AssociateLibraryItemReviewCommand");
2276
+ }
2277
+ };
2278
+
2279
+ // src/commands/AssociateQAppWithUserCommand.ts
2280
+
2281
+
2282
+
2283
+ var AssociateQAppWithUserCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2284
+ return [
2285
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2286
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2287
+ ];
2288
+ }).s("QAppsService", "AssociateQAppWithUser", {}).n("QAppsClient", "AssociateQAppWithUserCommand").f(void 0, void 0).ser(se_AssociateQAppWithUserCommand).de(de_AssociateQAppWithUserCommand).build() {
2289
+ static {
2290
+ __name(this, "AssociateQAppWithUserCommand");
2291
+ }
2292
+ };
2293
+
2294
+ // src/commands/BatchCreateCategoryCommand.ts
2295
+
2296
+
2297
+
2298
+ var BatchCreateCategoryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2299
+ return [
2300
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2301
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2302
+ ];
2303
+ }).s("QAppsService", "BatchCreateCategory", {}).n("QAppsClient", "BatchCreateCategoryCommand").f(void 0, void 0).ser(se_BatchCreateCategoryCommand).de(de_BatchCreateCategoryCommand).build() {
2304
+ static {
2305
+ __name(this, "BatchCreateCategoryCommand");
2306
+ }
2307
+ };
2308
+
2309
+ // src/commands/BatchDeleteCategoryCommand.ts
2310
+
2311
+
2312
+
2313
+ var BatchDeleteCategoryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2314
+ return [
2315
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2316
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2317
+ ];
2318
+ }).s("QAppsService", "BatchDeleteCategory", {}).n("QAppsClient", "BatchDeleteCategoryCommand").f(void 0, void 0).ser(se_BatchDeleteCategoryCommand).de(de_BatchDeleteCategoryCommand).build() {
2319
+ static {
2320
+ __name(this, "BatchDeleteCategoryCommand");
2321
+ }
2322
+ };
2323
+
2324
+ // src/commands/BatchUpdateCategoryCommand.ts
2325
+
2326
+
2327
+
2328
+ var BatchUpdateCategoryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2329
+ return [
2330
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2331
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2332
+ ];
2333
+ }).s("QAppsService", "BatchUpdateCategory", {}).n("QAppsClient", "BatchUpdateCategoryCommand").f(void 0, void 0).ser(se_BatchUpdateCategoryCommand).de(de_BatchUpdateCategoryCommand).build() {
2334
+ static {
2335
+ __name(this, "BatchUpdateCategoryCommand");
2336
+ }
2337
+ };
2338
+
2339
+ // src/commands/CreateLibraryItemCommand.ts
2340
+
2341
+
2342
+
2343
+ var CreateLibraryItemCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2344
+ return [
2345
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2346
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2347
+ ];
2348
+ }).s("QAppsService", "CreateLibraryItem", {}).n("QAppsClient", "CreateLibraryItemCommand").f(void 0, void 0).ser(se_CreateLibraryItemCommand).de(de_CreateLibraryItemCommand).build() {
2349
+ static {
2350
+ __name(this, "CreateLibraryItemCommand");
2351
+ }
2352
+ };
2353
+
2354
+ // src/commands/CreatePresignedUrlCommand.ts
2355
+
2356
+
2357
+
2358
+ var CreatePresignedUrlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2359
+ return [
2360
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2361
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2362
+ ];
2363
+ }).s("QAppsService", "CreatePresignedUrl", {}).n("QAppsClient", "CreatePresignedUrlCommand").f(void 0, void 0).ser(se_CreatePresignedUrlCommand).de(de_CreatePresignedUrlCommand).build() {
2364
+ static {
2365
+ __name(this, "CreatePresignedUrlCommand");
2366
+ }
2367
+ };
2368
+
2369
+ // src/commands/CreateQAppCommand.ts
2370
+
2371
+
2372
+
2373
+ var CreateQAppCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2374
+ return [
2375
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2376
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2377
+ ];
2378
+ }).s("QAppsService", "CreateQApp", {}).n("QAppsClient", "CreateQAppCommand").f(void 0, void 0).ser(se_CreateQAppCommand).de(de_CreateQAppCommand).build() {
2379
+ static {
2380
+ __name(this, "CreateQAppCommand");
2381
+ }
2382
+ };
2383
+
2384
+ // src/commands/DeleteLibraryItemCommand.ts
2385
+
2386
+
2387
+
2388
+ var DeleteLibraryItemCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2389
+ return [
2390
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2391
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2392
+ ];
2393
+ }).s("QAppsService", "DeleteLibraryItem", {}).n("QAppsClient", "DeleteLibraryItemCommand").f(void 0, void 0).ser(se_DeleteLibraryItemCommand).de(de_DeleteLibraryItemCommand).build() {
2394
+ static {
2395
+ __name(this, "DeleteLibraryItemCommand");
2396
+ }
2397
+ };
2398
+
2399
+ // src/commands/DeleteQAppCommand.ts
2400
+
2401
+
2402
+
2403
+ var DeleteQAppCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2404
+ return [
2405
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2406
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2407
+ ];
2408
+ }).s("QAppsService", "DeleteQApp", {}).n("QAppsClient", "DeleteQAppCommand").f(void 0, void 0).ser(se_DeleteQAppCommand).de(de_DeleteQAppCommand).build() {
2409
+ static {
2410
+ __name(this, "DeleteQAppCommand");
2411
+ }
2412
+ };
2413
+
2414
+ // src/commands/DescribeQAppPermissionsCommand.ts
2415
+
2416
+
2417
+
2418
+ var DescribeQAppPermissionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2419
+ return [
2420
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2421
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2422
+ ];
2423
+ }).s("QAppsService", "DescribeQAppPermissions", {}).n("QAppsClient", "DescribeQAppPermissionsCommand").f(void 0, void 0).ser(se_DescribeQAppPermissionsCommand).de(de_DescribeQAppPermissionsCommand).build() {
2424
+ static {
2425
+ __name(this, "DescribeQAppPermissionsCommand");
2426
+ }
2427
+ };
2428
+
2429
+ // src/commands/DisassociateLibraryItemReviewCommand.ts
2430
+
2431
+
2432
+
2433
+ var DisassociateLibraryItemReviewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2434
+ return [
2435
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2436
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2437
+ ];
2438
+ }).s("QAppsService", "DisassociateLibraryItemReview", {}).n("QAppsClient", "DisassociateLibraryItemReviewCommand").f(void 0, void 0).ser(se_DisassociateLibraryItemReviewCommand).de(de_DisassociateLibraryItemReviewCommand).build() {
2439
+ static {
2440
+ __name(this, "DisassociateLibraryItemReviewCommand");
2441
+ }
2442
+ };
2443
+
2444
+ // src/commands/DisassociateQAppFromUserCommand.ts
2445
+
2446
+
2447
+
2448
+ var DisassociateQAppFromUserCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2449
+ return [
2450
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2451
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2452
+ ];
2453
+ }).s("QAppsService", "DisassociateQAppFromUser", {}).n("QAppsClient", "DisassociateQAppFromUserCommand").f(void 0, void 0).ser(se_DisassociateQAppFromUserCommand).de(de_DisassociateQAppFromUserCommand).build() {
2454
+ static {
2455
+ __name(this, "DisassociateQAppFromUserCommand");
2456
+ }
2457
+ };
2458
+
2459
+ // src/commands/ExportQAppSessionDataCommand.ts
2460
+
2461
+
2462
+
2463
+ var ExportQAppSessionDataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2464
+ return [
2465
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2466
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2467
+ ];
2468
+ }).s("QAppsService", "ExportQAppSessionData", {}).n("QAppsClient", "ExportQAppSessionDataCommand").f(void 0, void 0).ser(se_ExportQAppSessionDataCommand).de(de_ExportQAppSessionDataCommand).build() {
2469
+ static {
2470
+ __name(this, "ExportQAppSessionDataCommand");
2471
+ }
2472
+ };
2473
+
2474
+ // src/commands/GetLibraryItemCommand.ts
2475
+
2476
+
2477
+
2478
+ var GetLibraryItemCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2479
+ return [
2480
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2481
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2482
+ ];
2483
+ }).s("QAppsService", "GetLibraryItem", {}).n("QAppsClient", "GetLibraryItemCommand").f(void 0, void 0).ser(se_GetLibraryItemCommand).de(de_GetLibraryItemCommand).build() {
2484
+ static {
2485
+ __name(this, "GetLibraryItemCommand");
2486
+ }
2487
+ };
2488
+
2489
+ // src/commands/GetQAppCommand.ts
2490
+
2491
+
2492
+
2493
+ var GetQAppCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2494
+ return [
2495
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2496
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2497
+ ];
2498
+ }).s("QAppsService", "GetQApp", {}).n("QAppsClient", "GetQAppCommand").f(void 0, void 0).ser(se_GetQAppCommand).de(de_GetQAppCommand).build() {
2499
+ static {
2500
+ __name(this, "GetQAppCommand");
2501
+ }
2502
+ };
2503
+
2504
+ // src/commands/GetQAppSessionCommand.ts
2505
+
2506
+
2507
+
2508
+ var GetQAppSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2509
+ return [
2510
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2511
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2512
+ ];
2513
+ }).s("QAppsService", "GetQAppSession", {}).n("QAppsClient", "GetQAppSessionCommand").f(void 0, void 0).ser(se_GetQAppSessionCommand).de(de_GetQAppSessionCommand).build() {
2514
+ static {
2515
+ __name(this, "GetQAppSessionCommand");
2516
+ }
2517
+ };
2518
+
2519
+ // src/commands/GetQAppSessionMetadataCommand.ts
2520
+
2521
+
2522
+
2523
+ var GetQAppSessionMetadataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2524
+ return [
2525
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2526
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2527
+ ];
2528
+ }).s("QAppsService", "GetQAppSessionMetadata", {}).n("QAppsClient", "GetQAppSessionMetadataCommand").f(void 0, void 0).ser(se_GetQAppSessionMetadataCommand).de(de_GetQAppSessionMetadataCommand).build() {
2529
+ static {
2530
+ __name(this, "GetQAppSessionMetadataCommand");
2531
+ }
2532
+ };
2533
+
2534
+ // src/commands/ImportDocumentCommand.ts
2535
+
2536
+
2537
+
2538
+ var ImportDocumentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2539
+ return [
2540
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2541
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2542
+ ];
2543
+ }).s("QAppsService", "ImportDocument", {}).n("QAppsClient", "ImportDocumentCommand").f(void 0, void 0).ser(se_ImportDocumentCommand).de(de_ImportDocumentCommand).build() {
2544
+ static {
2545
+ __name(this, "ImportDocumentCommand");
2546
+ }
2547
+ };
2548
+
2549
+ // src/commands/ListCategoriesCommand.ts
2550
+
2551
+
2552
+
2553
+ var ListCategoriesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2554
+ return [
2555
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2556
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2557
+ ];
2558
+ }).s("QAppsService", "ListCategories", {}).n("QAppsClient", "ListCategoriesCommand").f(void 0, void 0).ser(se_ListCategoriesCommand).de(de_ListCategoriesCommand).build() {
2559
+ static {
2560
+ __name(this, "ListCategoriesCommand");
2561
+ }
2562
+ };
2563
+
2564
+ // src/commands/ListLibraryItemsCommand.ts
2565
+
2566
+
2567
+
2568
+ var ListLibraryItemsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2569
+ return [
2570
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2571
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2572
+ ];
2573
+ }).s("QAppsService", "ListLibraryItems", {}).n("QAppsClient", "ListLibraryItemsCommand").f(void 0, void 0).ser(se_ListLibraryItemsCommand).de(de_ListLibraryItemsCommand).build() {
2574
+ static {
2575
+ __name(this, "ListLibraryItemsCommand");
2576
+ }
2577
+ };
2578
+
2579
+ // src/commands/ListQAppsCommand.ts
2580
+
2581
+
2582
+
2583
+ var ListQAppsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2584
+ return [
2585
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2586
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2587
+ ];
2588
+ }).s("QAppsService", "ListQApps", {}).n("QAppsClient", "ListQAppsCommand").f(void 0, void 0).ser(se_ListQAppsCommand).de(de_ListQAppsCommand).build() {
2589
+ static {
2590
+ __name(this, "ListQAppsCommand");
2591
+ }
2592
+ };
2593
+
2594
+ // src/commands/ListQAppSessionDataCommand.ts
2595
+
2596
+
2597
+
2598
+ var ListQAppSessionDataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2599
+ return [
2600
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2601
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2602
+ ];
2603
+ }).s("QAppsService", "ListQAppSessionData", {}).n("QAppsClient", "ListQAppSessionDataCommand").f(void 0, void 0).ser(se_ListQAppSessionDataCommand).de(de_ListQAppSessionDataCommand).build() {
2604
+ static {
2605
+ __name(this, "ListQAppSessionDataCommand");
2606
+ }
2607
+ };
2608
+
2609
+ // src/commands/ListTagsForResourceCommand.ts
2610
+
2611
+
2612
+
2613
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2614
+ return [
2615
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2616
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2617
+ ];
2618
+ }).s("QAppsService", "ListTagsForResource", {}).n("QAppsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2619
+ static {
2620
+ __name(this, "ListTagsForResourceCommand");
2621
+ }
2622
+ };
2623
+
2624
+ // src/commands/PredictQAppCommand.ts
2625
+
2626
+
2627
+
2628
+ var PredictQAppCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2629
+ return [
2630
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2631
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2632
+ ];
2633
+ }).s("QAppsService", "PredictQApp", {}).n("QAppsClient", "PredictQAppCommand").f(void 0, void 0).ser(se_PredictQAppCommand).de(de_PredictQAppCommand).build() {
2634
+ static {
2635
+ __name(this, "PredictQAppCommand");
2636
+ }
2637
+ };
2638
+
2639
+ // src/commands/StartQAppSessionCommand.ts
2640
+
2641
+
2642
+
2643
+ var StartQAppSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2644
+ return [
2645
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2646
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2647
+ ];
2648
+ }).s("QAppsService", "StartQAppSession", {}).n("QAppsClient", "StartQAppSessionCommand").f(void 0, void 0).ser(se_StartQAppSessionCommand).de(de_StartQAppSessionCommand).build() {
2649
+ static {
2650
+ __name(this, "StartQAppSessionCommand");
2651
+ }
2652
+ };
2653
+
2654
+ // src/commands/StopQAppSessionCommand.ts
2655
+
2656
+
2657
+
2658
+ var StopQAppSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2659
+ return [
2660
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2661
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2662
+ ];
2663
+ }).s("QAppsService", "StopQAppSession", {}).n("QAppsClient", "StopQAppSessionCommand").f(void 0, void 0).ser(se_StopQAppSessionCommand).de(de_StopQAppSessionCommand).build() {
2664
+ static {
2665
+ __name(this, "StopQAppSessionCommand");
2666
+ }
2667
+ };
2668
+
2669
+ // src/commands/TagResourceCommand.ts
2670
+
2671
+
2672
+
2673
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2674
+ return [
2675
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2676
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2677
+ ];
2678
+ }).s("QAppsService", "TagResource", {}).n("QAppsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2679
+ static {
2680
+ __name(this, "TagResourceCommand");
2681
+ }
2682
+ };
2683
+
2684
+ // src/commands/UntagResourceCommand.ts
2685
+
2686
+
2687
+
2688
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).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("QAppsService", "UntagResource", {}).n("QAppsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2694
+ static {
2695
+ __name(this, "UntagResourceCommand");
2696
+ }
2697
+ };
2698
+
2699
+ // src/commands/UpdateLibraryItemCommand.ts
2700
+
2701
+
2702
+
2703
+ var UpdateLibraryItemCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2704
+ return [
2705
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2706
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2707
+ ];
2708
+ }).s("QAppsService", "UpdateLibraryItem", {}).n("QAppsClient", "UpdateLibraryItemCommand").f(void 0, void 0).ser(se_UpdateLibraryItemCommand).de(de_UpdateLibraryItemCommand).build() {
2709
+ static {
2710
+ __name(this, "UpdateLibraryItemCommand");
2711
+ }
2712
+ };
2713
+
2714
+ // src/commands/UpdateLibraryItemMetadataCommand.ts
2715
+
2716
+
2717
+
2718
+ var UpdateLibraryItemMetadataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2719
+ return [
2720
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2721
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2722
+ ];
2723
+ }).s("QAppsService", "UpdateLibraryItemMetadata", {}).n("QAppsClient", "UpdateLibraryItemMetadataCommand").f(void 0, void 0).ser(se_UpdateLibraryItemMetadataCommand).de(de_UpdateLibraryItemMetadataCommand).build() {
2724
+ static {
2725
+ __name(this, "UpdateLibraryItemMetadataCommand");
2726
+ }
2727
+ };
2728
+
2729
+ // src/commands/UpdateQAppCommand.ts
2730
+
2731
+
2732
+
2733
+ var UpdateQAppCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2734
+ return [
2735
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2736
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2737
+ ];
2738
+ }).s("QAppsService", "UpdateQApp", {}).n("QAppsClient", "UpdateQAppCommand").f(void 0, void 0).ser(se_UpdateQAppCommand).de(de_UpdateQAppCommand).build() {
2739
+ static {
2740
+ __name(this, "UpdateQAppCommand");
2741
+ }
2742
+ };
2743
+
2744
+ // src/commands/UpdateQAppPermissionsCommand.ts
2745
+
2746
+
2747
+
2748
+ var UpdateQAppPermissionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2749
+ return [
2750
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2751
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2752
+ ];
2753
+ }).s("QAppsService", "UpdateQAppPermissions", {}).n("QAppsClient", "UpdateQAppPermissionsCommand").f(void 0, void 0).ser(se_UpdateQAppPermissionsCommand).de(de_UpdateQAppPermissionsCommand).build() {
2754
+ static {
2755
+ __name(this, "UpdateQAppPermissionsCommand");
2756
+ }
2757
+ };
2758
+
2759
+ // src/commands/UpdateQAppSessionCommand.ts
2760
+
2761
+
2762
+
2763
+ var UpdateQAppSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2764
+ return [
2765
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2766
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2767
+ ];
2768
+ }).s("QAppsService", "UpdateQAppSession", {}).n("QAppsClient", "UpdateQAppSessionCommand").f(void 0, void 0).ser(se_UpdateQAppSessionCommand).de(de_UpdateQAppSessionCommand).build() {
2769
+ static {
2770
+ __name(this, "UpdateQAppSessionCommand");
2771
+ }
2772
+ };
2773
+
2774
+ // src/commands/UpdateQAppSessionMetadataCommand.ts
2775
+
2776
+
2777
+
2778
+ var UpdateQAppSessionMetadataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2779
+ return [
2780
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2781
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2782
+ ];
2783
+ }).s("QAppsService", "UpdateQAppSessionMetadata", {}).n("QAppsClient", "UpdateQAppSessionMetadataCommand").f(void 0, void 0).ser(se_UpdateQAppSessionMetadataCommand).de(de_UpdateQAppSessionMetadataCommand).build() {
2784
+ static {
2785
+ __name(this, "UpdateQAppSessionMetadataCommand");
2786
+ }
2787
+ };
2788
+
2789
+ // src/QApps.ts
2790
+ var commands = {
2791
+ AssociateLibraryItemReviewCommand,
2792
+ AssociateQAppWithUserCommand,
2793
+ BatchCreateCategoryCommand,
2794
+ BatchDeleteCategoryCommand,
2795
+ BatchUpdateCategoryCommand,
2796
+ CreateLibraryItemCommand,
2797
+ CreatePresignedUrlCommand,
2798
+ CreateQAppCommand,
2799
+ DeleteLibraryItemCommand,
2800
+ DeleteQAppCommand,
2801
+ DescribeQAppPermissionsCommand,
2802
+ DisassociateLibraryItemReviewCommand,
2803
+ DisassociateQAppFromUserCommand,
2804
+ ExportQAppSessionDataCommand,
2805
+ GetLibraryItemCommand,
2806
+ GetQAppCommand,
2807
+ GetQAppSessionCommand,
2808
+ GetQAppSessionMetadataCommand,
2809
+ ImportDocumentCommand,
2810
+ ListCategoriesCommand,
2811
+ ListLibraryItemsCommand,
2812
+ ListQAppsCommand,
2813
+ ListQAppSessionDataCommand,
2814
+ ListTagsForResourceCommand,
2815
+ PredictQAppCommand,
2816
+ StartQAppSessionCommand,
2817
+ StopQAppSessionCommand,
2818
+ TagResourceCommand,
2819
+ UntagResourceCommand,
2820
+ UpdateLibraryItemCommand,
2821
+ UpdateLibraryItemMetadataCommand,
2822
+ UpdateQAppCommand,
2823
+ UpdateQAppPermissionsCommand,
2824
+ UpdateQAppSessionCommand,
2825
+ UpdateQAppSessionMetadataCommand
2826
+ };
2827
+ var QApps = class extends QAppsClient {
2828
+ static {
2829
+ __name(this, "QApps");
2830
+ }
2831
+ };
2832
+ (0, import_smithy_client.createAggregatedClient)(commands, QApps);
2833
+
2834
+ // src/pagination/ListLibraryItemsPaginator.ts
2835
+
2836
+ var paginateListLibraryItems = (0, import_core.createPaginator)(QAppsClient, ListLibraryItemsCommand, "nextToken", "nextToken", "limit");
2837
+
2838
+ // src/pagination/ListQAppsPaginator.ts
2839
+
2840
+ var paginateListQApps = (0, import_core.createPaginator)(QAppsClient, ListQAppsCommand, "nextToken", "nextToken", "limit");
2841
+ // Annotate the CommonJS export names for ESM import in node:
2842
+
2843
+ 0 && (module.exports = {
2844
+ QAppsServiceException,
2845
+ __Client,
2846
+ QAppsClient,
2847
+ QApps,
2848
+ $Command,
2849
+ AssociateLibraryItemReviewCommand,
2850
+ AssociateQAppWithUserCommand,
2851
+ BatchCreateCategoryCommand,
2852
+ BatchDeleteCategoryCommand,
2853
+ BatchUpdateCategoryCommand,
2854
+ CreateLibraryItemCommand,
2855
+ CreatePresignedUrlCommand,
2856
+ CreateQAppCommand,
2857
+ DeleteLibraryItemCommand,
2858
+ DeleteQAppCommand,
2859
+ DescribeQAppPermissionsCommand,
2860
+ DisassociateLibraryItemReviewCommand,
2861
+ DisassociateQAppFromUserCommand,
2862
+ ExportQAppSessionDataCommand,
2863
+ GetLibraryItemCommand,
2864
+ GetQAppCommand,
2865
+ GetQAppSessionCommand,
2866
+ GetQAppSessionMetadataCommand,
2867
+ ImportDocumentCommand,
2868
+ ListCategoriesCommand,
2869
+ ListLibraryItemsCommand,
2870
+ ListQAppSessionDataCommand,
2871
+ ListQAppsCommand,
2872
+ ListTagsForResourceCommand,
2873
+ PredictQAppCommand,
2874
+ StartQAppSessionCommand,
2875
+ StopQAppSessionCommand,
2876
+ TagResourceCommand,
2877
+ UntagResourceCommand,
2878
+ UpdateLibraryItemCommand,
2879
+ UpdateLibraryItemMetadataCommand,
2880
+ UpdateQAppCommand,
2881
+ UpdateQAppPermissionsCommand,
2882
+ UpdateQAppSessionCommand,
2883
+ UpdateQAppSessionMetadataCommand,
2884
+ paginateListLibraryItems,
2885
+ paginateListQApps,
2886
+ AccessDeniedException,
2887
+ Action,
2888
+ CardType,
2889
+ InputCardComputeMode,
2890
+ PluginType,
2891
+ DocumentAttributeValue,
2892
+ CardOutputSource,
2893
+ AppRequiredCapability,
2894
+ AppStatus,
2895
+ ConflictException,
2896
+ InternalServerException,
2897
+ ResourceNotFoundException,
2898
+ ServiceQuotaExceededException,
2899
+ ThrottlingException,
2900
+ UnauthorizedException,
2901
+ ValidationException,
2902
+ ExecutionStatus,
2903
+ SubmissionMutationKind,
2904
+ ContentTooLargeException,
2905
+ Sender,
2906
+ DocumentScope,
2907
+ UserType,
2908
+ LibraryItemStatus,
2909
+ PredictQAppInputOptions,
2910
+ Card,
2911
+ CardInput
2912
+ });
2913
+