@aws-sdk/client-braket 3.489.0 → 3.495.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 (30) hide show
  1. package/dist-cjs/Braket.js +1 -37
  2. package/dist-cjs/BraketClient.js +1 -43
  3. package/dist-cjs/commands/CancelJobCommand.js +1 -28
  4. package/dist-cjs/commands/CancelQuantumTaskCommand.js +1 -28
  5. package/dist-cjs/commands/CreateJobCommand.js +1 -28
  6. package/dist-cjs/commands/CreateQuantumTaskCommand.js +1 -28
  7. package/dist-cjs/commands/GetDeviceCommand.js +1 -28
  8. package/dist-cjs/commands/GetJobCommand.js +1 -28
  9. package/dist-cjs/commands/GetQuantumTaskCommand.js +1 -28
  10. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  11. package/dist-cjs/commands/SearchDevicesCommand.js +1 -28
  12. package/dist-cjs/commands/SearchJobsCommand.js +1 -28
  13. package/dist-cjs/commands/SearchQuantumTasksCommand.js +1 -28
  14. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  15. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  16. package/dist-cjs/commands/index.js +1 -16
  17. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  18. package/dist-cjs/extensionConfiguration.js +1 -2
  19. package/dist-cjs/index.js +1796 -11
  20. package/dist-cjs/models/BraketServiceException.js +1 -12
  21. package/dist-cjs/models/index.js +1 -4
  22. package/dist-cjs/models/models_0.js +1 -243
  23. package/dist-cjs/pagination/Interfaces.js +1 -2
  24. package/dist-cjs/pagination/SearchDevicesPaginator.js +1 -7
  25. package/dist-cjs/pagination/SearchJobsPaginator.js +1 -7
  26. package/dist-cjs/pagination/SearchQuantumTasksPaginator.js +1 -7
  27. package/dist-cjs/pagination/index.js +1 -7
  28. package/dist-cjs/protocols/Aws_restJson1.js +1 -1066
  29. package/dist-cjs/runtimeExtensions.js +1 -22
  30. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,1797 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BraketServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./BraketClient"), exports);
6
- tslib_1.__exportStar(require("./Braket"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var BraketServiceException_1 = require("./models/BraketServiceException");
12
- Object.defineProperty(exports, "BraketServiceException", { enumerable: true, get: function () { return BraketServiceException_1.BraketServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AssociationType: () => AssociationType,
26
+ Braket: () => Braket,
27
+ BraketClient: () => BraketClient,
28
+ BraketServiceException: () => BraketServiceException,
29
+ CancelJobCommand: () => CancelJobCommand,
30
+ CancelQuantumTaskCommand: () => CancelQuantumTaskCommand,
31
+ CancellationStatus: () => CancellationStatus,
32
+ CompressionType: () => CompressionType,
33
+ ConflictException: () => ConflictException,
34
+ CreateJobCommand: () => CreateJobCommand,
35
+ CreateQuantumTaskCommand: () => CreateQuantumTaskCommand,
36
+ DeviceOfflineException: () => DeviceOfflineException,
37
+ DeviceRetiredException: () => DeviceRetiredException,
38
+ DeviceStatus: () => DeviceStatus,
39
+ DeviceType: () => DeviceType,
40
+ GetDeviceCommand: () => GetDeviceCommand,
41
+ GetJobCommand: () => GetJobCommand,
42
+ GetQuantumTaskCommand: () => GetQuantumTaskCommand,
43
+ HybridJobAdditionalAttributeName: () => HybridJobAdditionalAttributeName,
44
+ InternalServiceException: () => InternalServiceException,
45
+ JobEventType: () => JobEventType,
46
+ JobPrimaryStatus: () => JobPrimaryStatus,
47
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
48
+ QuantumTaskAdditionalAttributeName: () => QuantumTaskAdditionalAttributeName,
49
+ QuantumTaskStatus: () => QuantumTaskStatus,
50
+ QueueName: () => QueueName,
51
+ QueuePriority: () => QueuePriority,
52
+ ResourceNotFoundException: () => ResourceNotFoundException,
53
+ SearchDevicesCommand: () => SearchDevicesCommand,
54
+ SearchJobsCommand: () => SearchJobsCommand,
55
+ SearchJobsFilterOperator: () => SearchJobsFilterOperator,
56
+ SearchQuantumTasksCommand: () => SearchQuantumTasksCommand,
57
+ SearchQuantumTasksFilterOperator: () => SearchQuantumTasksFilterOperator,
58
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
59
+ TagResourceCommand: () => TagResourceCommand,
60
+ ThrottlingException: () => ThrottlingException,
61
+ UntagResourceCommand: () => UntagResourceCommand,
62
+ ValidationException: () => ValidationException,
63
+ _InstanceType: () => _InstanceType,
64
+ __Client: () => import_smithy_client.Client,
65
+ paginateSearchDevices: () => paginateSearchDevices,
66
+ paginateSearchJobs: () => paginateSearchJobs,
67
+ paginateSearchQuantumTasks: () => paginateSearchQuantumTasks
68
+ });
69
+ module.exports = __toCommonJS(src_exports);
70
+
71
+ // src/BraketClient.ts
72
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
73
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
74
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
75
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
76
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
77
+ var import_config_resolver = require("@smithy/config-resolver");
78
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
79
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
80
+ var import_middleware_retry = require("@smithy/middleware-retry");
81
+
82
+
83
+ // src/endpoint/EndpointParameters.ts
84
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
85
+ return {
86
+ ...options,
87
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
88
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
89
+ defaultSigningName: "braket"
90
+ };
91
+ }, "resolveClientEndpointParameters");
92
+ var commonParams = {
93
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
94
+ Endpoint: { type: "builtInParams", name: "endpoint" },
95
+ Region: { type: "builtInParams", name: "region" },
96
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
97
+ };
98
+
99
+ // src/BraketClient.ts
100
+ var import_runtimeConfig = require("././runtimeConfig");
101
+
102
+ // src/runtimeExtensions.ts
103
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
104
+ var import_protocol_http = require("@smithy/protocol-http");
105
+ var import_smithy_client = require("@smithy/smithy-client");
106
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
107
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
108
+ const extensionConfiguration = {
109
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
110
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
111
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
112
+ };
113
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
114
+ return {
115
+ ...runtimeConfig,
116
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
117
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
118
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
119
+ };
120
+ }, "resolveRuntimeExtensions");
121
+
122
+ // src/BraketClient.ts
123
+ var _BraketClient = class _BraketClient extends import_smithy_client.Client {
124
+ constructor(...[configuration]) {
125
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
126
+ const _config_1 = resolveClientEndpointParameters(_config_0);
127
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
128
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
129
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
130
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
131
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
132
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
133
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
134
+ super(_config_8);
135
+ this.config = _config_8;
136
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
137
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
138
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
139
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
140
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
141
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
142
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
143
+ }
144
+ /**
145
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
146
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
147
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
148
+ */
149
+ destroy() {
150
+ super.destroy();
151
+ }
152
+ };
153
+ __name(_BraketClient, "BraketClient");
154
+ var BraketClient = _BraketClient;
155
+
156
+ // src/Braket.ts
157
+
158
+
159
+ // src/commands/CancelJobCommand.ts
160
+
161
+ var import_middleware_serde = require("@smithy/middleware-serde");
162
+
163
+ var import_types = require("@smithy/types");
164
+
165
+ // src/protocols/Aws_restJson1.ts
166
+ var import_core = require("@smithy/core");
167
+
168
+ var import_uuid = require("uuid");
169
+
170
+ // src/models/BraketServiceException.ts
171
+
172
+ var _BraketServiceException = class _BraketServiceException extends import_smithy_client.ServiceException {
173
+ /**
174
+ * @internal
175
+ */
176
+ constructor(options) {
177
+ super(options);
178
+ Object.setPrototypeOf(this, _BraketServiceException.prototype);
179
+ }
180
+ };
181
+ __name(_BraketServiceException, "BraketServiceException");
182
+ var BraketServiceException = _BraketServiceException;
183
+
184
+ // src/models/models_0.ts
185
+ var _AccessDeniedException = class _AccessDeniedException extends BraketServiceException {
186
+ /**
187
+ * @internal
188
+ */
189
+ constructor(opts) {
190
+ super({
191
+ name: "AccessDeniedException",
192
+ $fault: "client",
193
+ ...opts
194
+ });
195
+ this.name = "AccessDeniedException";
196
+ this.$fault = "client";
197
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
198
+ }
199
+ };
200
+ __name(_AccessDeniedException, "AccessDeniedException");
201
+ var AccessDeniedException = _AccessDeniedException;
202
+ var CompressionType = {
203
+ GZIP: "GZIP",
204
+ NONE: "NONE"
205
+ };
206
+ var AssociationType = {
207
+ RESERVATION_TIME_WINDOW_ARN: "RESERVATION_TIME_WINDOW_ARN"
208
+ };
209
+ var QueueName = {
210
+ JOBS_QUEUE: "JOBS_QUEUE",
211
+ QUANTUM_TASKS_QUEUE: "QUANTUM_TASKS_QUEUE"
212
+ };
213
+ var QueuePriority = {
214
+ NORMAL: "Normal",
215
+ PRIORITY: "Priority"
216
+ };
217
+ var DeviceStatus = {
218
+ OFFLINE: "OFFLINE",
219
+ ONLINE: "ONLINE",
220
+ RETIRED: "RETIRED"
221
+ };
222
+ var DeviceType = {
223
+ QPU: "QPU",
224
+ SIMULATOR: "SIMULATOR"
225
+ };
226
+ var _InternalServiceException = class _InternalServiceException extends BraketServiceException {
227
+ /**
228
+ * @internal
229
+ */
230
+ constructor(opts) {
231
+ super({
232
+ name: "InternalServiceException",
233
+ $fault: "server",
234
+ ...opts
235
+ });
236
+ this.name = "InternalServiceException";
237
+ this.$fault = "server";
238
+ Object.setPrototypeOf(this, _InternalServiceException.prototype);
239
+ }
240
+ };
241
+ __name(_InternalServiceException, "InternalServiceException");
242
+ var InternalServiceException = _InternalServiceException;
243
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends BraketServiceException {
244
+ /**
245
+ * @internal
246
+ */
247
+ constructor(opts) {
248
+ super({
249
+ name: "ResourceNotFoundException",
250
+ $fault: "client",
251
+ ...opts
252
+ });
253
+ this.name = "ResourceNotFoundException";
254
+ this.$fault = "client";
255
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
256
+ }
257
+ };
258
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
259
+ var ResourceNotFoundException = _ResourceNotFoundException;
260
+ var _ThrottlingException = class _ThrottlingException extends BraketServiceException {
261
+ /**
262
+ * @internal
263
+ */
264
+ constructor(opts) {
265
+ super({
266
+ name: "ThrottlingException",
267
+ $fault: "client",
268
+ ...opts
269
+ });
270
+ this.name = "ThrottlingException";
271
+ this.$fault = "client";
272
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
273
+ }
274
+ };
275
+ __name(_ThrottlingException, "ThrottlingException");
276
+ var ThrottlingException = _ThrottlingException;
277
+ var _ValidationException = class _ValidationException extends BraketServiceException {
278
+ /**
279
+ * @internal
280
+ */
281
+ constructor(opts) {
282
+ super({
283
+ name: "ValidationException",
284
+ $fault: "client",
285
+ ...opts
286
+ });
287
+ this.name = "ValidationException";
288
+ this.$fault = "client";
289
+ Object.setPrototypeOf(this, _ValidationException.prototype);
290
+ }
291
+ };
292
+ __name(_ValidationException, "ValidationException");
293
+ var ValidationException = _ValidationException;
294
+ var CancellationStatus = {
295
+ CANCELLED: "CANCELLED",
296
+ CANCELLING: "CANCELLING"
297
+ };
298
+ var _ConflictException = class _ConflictException extends BraketServiceException {
299
+ /**
300
+ * @internal
301
+ */
302
+ constructor(opts) {
303
+ super({
304
+ name: "ConflictException",
305
+ $fault: "client",
306
+ ...opts
307
+ });
308
+ this.name = "ConflictException";
309
+ this.$fault = "client";
310
+ Object.setPrototypeOf(this, _ConflictException.prototype);
311
+ }
312
+ };
313
+ __name(_ConflictException, "ConflictException");
314
+ var ConflictException = _ConflictException;
315
+ var _InstanceType = {
316
+ ML_C4_2XLARGE: "ml.c4.2xlarge",
317
+ ML_C4_4XLARGE: "ml.c4.4xlarge",
318
+ ML_C4_8XLARGE: "ml.c4.8xlarge",
319
+ ML_C4_XLARGE: "ml.c4.xlarge",
320
+ ML_C5N_18XLARGE: "ml.c5n.18xlarge",
321
+ ML_C5N_2XLARGE: "ml.c5n.2xlarge",
322
+ ML_C5N_4XLARGE: "ml.c5n.4xlarge",
323
+ ML_C5N_9XLARGE: "ml.c5n.9xlarge",
324
+ ML_C5N_XLARGE: "ml.c5n.xlarge",
325
+ ML_C5_18XLARGE: "ml.c5.18xlarge",
326
+ ML_C5_2XLARGE: "ml.c5.2xlarge",
327
+ ML_C5_4XLARGE: "ml.c5.4xlarge",
328
+ ML_C5_9XLARGE: "ml.c5.9xlarge",
329
+ ML_C5_XLARGE: "ml.c5.xlarge",
330
+ ML_G4DN_12XLARGE: "ml.g4dn.12xlarge",
331
+ ML_G4DN_16XLARGE: "ml.g4dn.16xlarge",
332
+ ML_G4DN_2XLARGE: "ml.g4dn.2xlarge",
333
+ ML_G4DN_4XLARGE: "ml.g4dn.4xlarge",
334
+ ML_G4DN_8XLARGE: "ml.g4dn.8xlarge",
335
+ ML_G4DN_XLARGE: "ml.g4dn.xlarge",
336
+ ML_M4_10XLARGE: "ml.m4.10xlarge",
337
+ ML_M4_16XLARGE: "ml.m4.16xlarge",
338
+ ML_M4_2XLARGE: "ml.m4.2xlarge",
339
+ ML_M4_4XLARGE: "ml.m4.4xlarge",
340
+ ML_M4_XLARGE: "ml.m4.xlarge",
341
+ ML_M5_12XLARGE: "ml.m5.12xlarge",
342
+ ML_M5_24XLARGE: "ml.m5.24xlarge",
343
+ ML_M5_2XLARGE: "ml.m5.2xlarge",
344
+ ML_M5_4XLARGE: "ml.m5.4xlarge",
345
+ ML_M5_LARGE: "ml.m5.large",
346
+ ML_M5_XLARGE: "ml.m5.xlarge",
347
+ ML_P2_16XLARGE: "ml.p2.16xlarge",
348
+ ML_P2_8XLARGE: "ml.p2.8xlarge",
349
+ ML_P2_XLARGE: "ml.p2.xlarge",
350
+ ML_P3DN_24XLARGE: "ml.p3dn.24xlarge",
351
+ ML_P3_16XLARGE: "ml.p3.16xlarge",
352
+ ML_P3_2XLARGE: "ml.p3.2xlarge",
353
+ ML_P3_8XLARGE: "ml.p3.8xlarge",
354
+ ML_P4D_24XLARGE: "ml.p4d.24xlarge"
355
+ };
356
+ var _DeviceRetiredException = class _DeviceRetiredException extends BraketServiceException {
357
+ /**
358
+ * @internal
359
+ */
360
+ constructor(opts) {
361
+ super({
362
+ name: "DeviceRetiredException",
363
+ $fault: "client",
364
+ ...opts
365
+ });
366
+ this.name = "DeviceRetiredException";
367
+ this.$fault = "client";
368
+ Object.setPrototypeOf(this, _DeviceRetiredException.prototype);
369
+ }
370
+ };
371
+ __name(_DeviceRetiredException, "DeviceRetiredException");
372
+ var DeviceRetiredException = _DeviceRetiredException;
373
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BraketServiceException {
374
+ /**
375
+ * @internal
376
+ */
377
+ constructor(opts) {
378
+ super({
379
+ name: "ServiceQuotaExceededException",
380
+ $fault: "client",
381
+ ...opts
382
+ });
383
+ this.name = "ServiceQuotaExceededException";
384
+ this.$fault = "client";
385
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
386
+ }
387
+ };
388
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
389
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
390
+ var HybridJobAdditionalAttributeName = {
391
+ QUEUE_INFO: "QueueInfo"
392
+ };
393
+ var JobEventType = {
394
+ CANCELLED: "CANCELLED",
395
+ COMPLETED: "COMPLETED",
396
+ DEPRIORITIZED_DUE_TO_INACTIVITY: "DEPRIORITIZED_DUE_TO_INACTIVITY",
397
+ DOWNLOADING_DATA: "DOWNLOADING_DATA",
398
+ FAILED: "FAILED",
399
+ MAX_RUNTIME_EXCEEDED: "MAX_RUNTIME_EXCEEDED",
400
+ QUEUED_FOR_EXECUTION: "QUEUED_FOR_EXECUTION",
401
+ RUNNING: "RUNNING",
402
+ STARTING_INSTANCE: "STARTING_INSTANCE",
403
+ UPLOADING_RESULTS: "UPLOADING_RESULTS",
404
+ WAITING_FOR_PRIORITY: "WAITING_FOR_PRIORITY"
405
+ };
406
+ var JobPrimaryStatus = {
407
+ CANCELLED: "CANCELLED",
408
+ CANCELLING: "CANCELLING",
409
+ COMPLETED: "COMPLETED",
410
+ FAILED: "FAILED",
411
+ QUEUED: "QUEUED",
412
+ RUNNING: "RUNNING"
413
+ };
414
+ var SearchJobsFilterOperator = {
415
+ BETWEEN: "BETWEEN",
416
+ CONTAINS: "CONTAINS",
417
+ EQUAL: "EQUAL",
418
+ GT: "GT",
419
+ GTE: "GTE",
420
+ LT: "LT",
421
+ LTE: "LTE"
422
+ };
423
+ var _DeviceOfflineException = class _DeviceOfflineException extends BraketServiceException {
424
+ /**
425
+ * @internal
426
+ */
427
+ constructor(opts) {
428
+ super({
429
+ name: "DeviceOfflineException",
430
+ $fault: "client",
431
+ ...opts
432
+ });
433
+ this.name = "DeviceOfflineException";
434
+ this.$fault = "client";
435
+ Object.setPrototypeOf(this, _DeviceOfflineException.prototype);
436
+ }
437
+ };
438
+ __name(_DeviceOfflineException, "DeviceOfflineException");
439
+ var DeviceOfflineException = _DeviceOfflineException;
440
+ var QuantumTaskAdditionalAttributeName = {
441
+ QUEUE_INFO: "QueueInfo"
442
+ };
443
+ var QuantumTaskStatus = {
444
+ CANCELLED: "CANCELLED",
445
+ CANCELLING: "CANCELLING",
446
+ COMPLETED: "COMPLETED",
447
+ CREATED: "CREATED",
448
+ FAILED: "FAILED",
449
+ QUEUED: "QUEUED",
450
+ RUNNING: "RUNNING"
451
+ };
452
+ var SearchQuantumTasksFilterOperator = {
453
+ BETWEEN: "BETWEEN",
454
+ EQUAL: "EQUAL",
455
+ GT: "GT",
456
+ GTE: "GTE",
457
+ LT: "LT",
458
+ LTE: "LTE"
459
+ };
460
+
461
+ // src/protocols/Aws_restJson1.ts
462
+ var se_CancelJobCommand = /* @__PURE__ */ __name(async (input, context) => {
463
+ const b = (0, import_core.requestBuilder)(input, context);
464
+ const headers = {};
465
+ b.bp("/job/{jobArn}/cancel");
466
+ b.p("jobArn", () => input.jobArn, "{jobArn}", false);
467
+ let body;
468
+ b.m("PUT").h(headers).b(body);
469
+ return b.build();
470
+ }, "se_CancelJobCommand");
471
+ var se_CancelQuantumTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
472
+ const b = (0, import_core.requestBuilder)(input, context);
473
+ const headers = {
474
+ "content-type": "application/json"
475
+ };
476
+ b.bp("/quantum-task/{quantumTaskArn}/cancel");
477
+ b.p("quantumTaskArn", () => input.quantumTaskArn, "{quantumTaskArn}", false);
478
+ let body;
479
+ body = JSON.stringify(
480
+ (0, import_smithy_client.take)(input, {
481
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
482
+ })
483
+ );
484
+ b.m("PUT").h(headers).b(body);
485
+ return b.build();
486
+ }, "se_CancelQuantumTaskCommand");
487
+ var se_CreateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
488
+ const b = (0, import_core.requestBuilder)(input, context);
489
+ const headers = {
490
+ "content-type": "application/json"
491
+ };
492
+ b.bp("/job");
493
+ let body;
494
+ body = JSON.stringify(
495
+ (0, import_smithy_client.take)(input, {
496
+ algorithmSpecification: (_) => (0, import_smithy_client._json)(_),
497
+ associations: (_) => (0, import_smithy_client._json)(_),
498
+ checkpointConfig: (_) => (0, import_smithy_client._json)(_),
499
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
500
+ deviceConfig: (_) => (0, import_smithy_client._json)(_),
501
+ hyperParameters: (_) => (0, import_smithy_client._json)(_),
502
+ inputDataConfig: (_) => (0, import_smithy_client._json)(_),
503
+ instanceConfig: (_) => (0, import_smithy_client._json)(_),
504
+ jobName: [],
505
+ outputDataConfig: (_) => (0, import_smithy_client._json)(_),
506
+ roleArn: [],
507
+ stoppingCondition: (_) => (0, import_smithy_client._json)(_),
508
+ tags: (_) => (0, import_smithy_client._json)(_)
509
+ })
510
+ );
511
+ b.m("POST").h(headers).b(body);
512
+ return b.build();
513
+ }, "se_CreateJobCommand");
514
+ var se_CreateQuantumTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
515
+ const b = (0, import_core.requestBuilder)(input, context);
516
+ const headers = {
517
+ "content-type": "application/json"
518
+ };
519
+ b.bp("/quantum-task");
520
+ let body;
521
+ body = JSON.stringify(
522
+ (0, import_smithy_client.take)(input, {
523
+ action: (_) => import_smithy_client.LazyJsonString.fromObject(_),
524
+ associations: (_) => (0, import_smithy_client._json)(_),
525
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
526
+ deviceArn: [],
527
+ deviceParameters: (_) => import_smithy_client.LazyJsonString.fromObject(_),
528
+ jobToken: [],
529
+ outputS3Bucket: [],
530
+ outputS3KeyPrefix: [],
531
+ shots: [],
532
+ tags: (_) => (0, import_smithy_client._json)(_)
533
+ })
534
+ );
535
+ b.m("POST").h(headers).b(body);
536
+ return b.build();
537
+ }, "se_CreateQuantumTaskCommand");
538
+ var se_GetDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
539
+ const b = (0, import_core.requestBuilder)(input, context);
540
+ const headers = {};
541
+ b.bp("/device/{deviceArn}");
542
+ b.p("deviceArn", () => input.deviceArn, "{deviceArn}", false);
543
+ let body;
544
+ b.m("GET").h(headers).b(body);
545
+ return b.build();
546
+ }, "se_GetDeviceCommand");
547
+ var se_GetJobCommand = /* @__PURE__ */ __name(async (input, context) => {
548
+ const b = (0, import_core.requestBuilder)(input, context);
549
+ const headers = {};
550
+ b.bp("/job/{jobArn}");
551
+ b.p("jobArn", () => input.jobArn, "{jobArn}", false);
552
+ const query = (0, import_smithy_client.map)({
553
+ [_aAN]: [
554
+ () => input.additionalAttributeNames !== void 0,
555
+ () => (input[_aAN] || []).map((_entry) => _entry)
556
+ ]
557
+ });
558
+ let body;
559
+ b.m("GET").h(headers).q(query).b(body);
560
+ return b.build();
561
+ }, "se_GetJobCommand");
562
+ var se_GetQuantumTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
563
+ const b = (0, import_core.requestBuilder)(input, context);
564
+ const headers = {};
565
+ b.bp("/quantum-task/{quantumTaskArn}");
566
+ b.p("quantumTaskArn", () => input.quantumTaskArn, "{quantumTaskArn}", false);
567
+ const query = (0, import_smithy_client.map)({
568
+ [_aAN]: [
569
+ () => input.additionalAttributeNames !== void 0,
570
+ () => (input[_aAN] || []).map((_entry) => _entry)
571
+ ]
572
+ });
573
+ let body;
574
+ b.m("GET").h(headers).q(query).b(body);
575
+ return b.build();
576
+ }, "se_GetQuantumTaskCommand");
577
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
578
+ const b = (0, import_core.requestBuilder)(input, context);
579
+ const headers = {};
580
+ b.bp("/tags/{resourceArn}");
581
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
582
+ let body;
583
+ b.m("GET").h(headers).b(body);
584
+ return b.build();
585
+ }, "se_ListTagsForResourceCommand");
586
+ var se_SearchDevicesCommand = /* @__PURE__ */ __name(async (input, context) => {
587
+ const b = (0, import_core.requestBuilder)(input, context);
588
+ const headers = {
589
+ "content-type": "application/json"
590
+ };
591
+ b.bp("/devices");
592
+ let body;
593
+ body = JSON.stringify(
594
+ (0, import_smithy_client.take)(input, {
595
+ filters: (_) => (0, import_smithy_client._json)(_),
596
+ maxResults: [],
597
+ nextToken: []
598
+ })
599
+ );
600
+ b.m("POST").h(headers).b(body);
601
+ return b.build();
602
+ }, "se_SearchDevicesCommand");
603
+ var se_SearchJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
604
+ const b = (0, import_core.requestBuilder)(input, context);
605
+ const headers = {
606
+ "content-type": "application/json"
607
+ };
608
+ b.bp("/jobs");
609
+ let body;
610
+ body = JSON.stringify(
611
+ (0, import_smithy_client.take)(input, {
612
+ filters: (_) => (0, import_smithy_client._json)(_),
613
+ maxResults: [],
614
+ nextToken: []
615
+ })
616
+ );
617
+ b.m("POST").h(headers).b(body);
618
+ return b.build();
619
+ }, "se_SearchJobsCommand");
620
+ var se_SearchQuantumTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
621
+ const b = (0, import_core.requestBuilder)(input, context);
622
+ const headers = {
623
+ "content-type": "application/json"
624
+ };
625
+ b.bp("/quantum-tasks");
626
+ let body;
627
+ body = JSON.stringify(
628
+ (0, import_smithy_client.take)(input, {
629
+ filters: (_) => (0, import_smithy_client._json)(_),
630
+ maxResults: [],
631
+ nextToken: []
632
+ })
633
+ );
634
+ b.m("POST").h(headers).b(body);
635
+ return b.build();
636
+ }, "se_SearchQuantumTasksCommand");
637
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
638
+ const b = (0, import_core.requestBuilder)(input, context);
639
+ const headers = {
640
+ "content-type": "application/json"
641
+ };
642
+ b.bp("/tags/{resourceArn}");
643
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
644
+ let body;
645
+ body = JSON.stringify(
646
+ (0, import_smithy_client.take)(input, {
647
+ tags: (_) => (0, import_smithy_client._json)(_)
648
+ })
649
+ );
650
+ b.m("POST").h(headers).b(body);
651
+ return b.build();
652
+ }, "se_TagResourceCommand");
653
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
654
+ const b = (0, import_core.requestBuilder)(input, context);
655
+ const headers = {};
656
+ b.bp("/tags/{resourceArn}");
657
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
658
+ const query = (0, import_smithy_client.map)({
659
+ [_tK]: [
660
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
661
+ () => (input[_tK] || []).map((_entry) => _entry)
662
+ ]
663
+ });
664
+ let body;
665
+ b.m("DELETE").h(headers).q(query).b(body);
666
+ return b.build();
667
+ }, "se_UntagResourceCommand");
668
+ var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
669
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
670
+ return de_CancelJobCommandError(output, context);
671
+ }
672
+ const contents = (0, import_smithy_client.map)({
673
+ $metadata: deserializeMetadata(output)
674
+ });
675
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
676
+ const doc = (0, import_smithy_client.take)(data, {
677
+ cancellationStatus: import_smithy_client.expectString,
678
+ jobArn: import_smithy_client.expectString
679
+ });
680
+ Object.assign(contents, doc);
681
+ return contents;
682
+ }, "de_CancelJobCommand");
683
+ var de_CancelJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
684
+ const parsedOutput = {
685
+ ...output,
686
+ body: await parseErrorBody(output.body, context)
687
+ };
688
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
689
+ switch (errorCode) {
690
+ case "AccessDeniedException":
691
+ case "com.amazonaws.braket#AccessDeniedException":
692
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
693
+ case "ConflictException":
694
+ case "com.amazonaws.braket#ConflictException":
695
+ throw await de_ConflictExceptionRes(parsedOutput, context);
696
+ case "InternalServiceException":
697
+ case "com.amazonaws.braket#InternalServiceException":
698
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
699
+ case "ResourceNotFoundException":
700
+ case "com.amazonaws.braket#ResourceNotFoundException":
701
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
702
+ case "ThrottlingException":
703
+ case "com.amazonaws.braket#ThrottlingException":
704
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
705
+ case "ValidationException":
706
+ case "com.amazonaws.braket#ValidationException":
707
+ throw await de_ValidationExceptionRes(parsedOutput, context);
708
+ default:
709
+ const parsedBody = parsedOutput.body;
710
+ return throwDefaultError({
711
+ output,
712
+ parsedBody,
713
+ errorCode
714
+ });
715
+ }
716
+ }, "de_CancelJobCommandError");
717
+ var de_CancelQuantumTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
718
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
719
+ return de_CancelQuantumTaskCommandError(output, context);
720
+ }
721
+ const contents = (0, import_smithy_client.map)({
722
+ $metadata: deserializeMetadata(output)
723
+ });
724
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
725
+ const doc = (0, import_smithy_client.take)(data, {
726
+ cancellationStatus: import_smithy_client.expectString,
727
+ quantumTaskArn: import_smithy_client.expectString
728
+ });
729
+ Object.assign(contents, doc);
730
+ return contents;
731
+ }, "de_CancelQuantumTaskCommand");
732
+ var de_CancelQuantumTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
733
+ const parsedOutput = {
734
+ ...output,
735
+ body: await parseErrorBody(output.body, context)
736
+ };
737
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
738
+ switch (errorCode) {
739
+ case "AccessDeniedException":
740
+ case "com.amazonaws.braket#AccessDeniedException":
741
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
742
+ case "ConflictException":
743
+ case "com.amazonaws.braket#ConflictException":
744
+ throw await de_ConflictExceptionRes(parsedOutput, context);
745
+ case "InternalServiceException":
746
+ case "com.amazonaws.braket#InternalServiceException":
747
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
748
+ case "ResourceNotFoundException":
749
+ case "com.amazonaws.braket#ResourceNotFoundException":
750
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
751
+ case "ThrottlingException":
752
+ case "com.amazonaws.braket#ThrottlingException":
753
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
754
+ case "ValidationException":
755
+ case "com.amazonaws.braket#ValidationException":
756
+ throw await de_ValidationExceptionRes(parsedOutput, context);
757
+ default:
758
+ const parsedBody = parsedOutput.body;
759
+ return throwDefaultError({
760
+ output,
761
+ parsedBody,
762
+ errorCode
763
+ });
764
+ }
765
+ }, "de_CancelQuantumTaskCommandError");
766
+ var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
767
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
768
+ return de_CreateJobCommandError(output, context);
769
+ }
770
+ const contents = (0, import_smithy_client.map)({
771
+ $metadata: deserializeMetadata(output)
772
+ });
773
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
774
+ const doc = (0, import_smithy_client.take)(data, {
775
+ jobArn: import_smithy_client.expectString
776
+ });
777
+ Object.assign(contents, doc);
778
+ return contents;
779
+ }, "de_CreateJobCommand");
780
+ var de_CreateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
781
+ const parsedOutput = {
782
+ ...output,
783
+ body: await parseErrorBody(output.body, context)
784
+ };
785
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
786
+ switch (errorCode) {
787
+ case "AccessDeniedException":
788
+ case "com.amazonaws.braket#AccessDeniedException":
789
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
790
+ case "ConflictException":
791
+ case "com.amazonaws.braket#ConflictException":
792
+ throw await de_ConflictExceptionRes(parsedOutput, context);
793
+ case "DeviceRetiredException":
794
+ case "com.amazonaws.braket#DeviceRetiredException":
795
+ throw await de_DeviceRetiredExceptionRes(parsedOutput, context);
796
+ case "InternalServiceException":
797
+ case "com.amazonaws.braket#InternalServiceException":
798
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
799
+ case "ServiceQuotaExceededException":
800
+ case "com.amazonaws.braket#ServiceQuotaExceededException":
801
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
802
+ case "ThrottlingException":
803
+ case "com.amazonaws.braket#ThrottlingException":
804
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
805
+ case "ValidationException":
806
+ case "com.amazonaws.braket#ValidationException":
807
+ throw await de_ValidationExceptionRes(parsedOutput, context);
808
+ default:
809
+ const parsedBody = parsedOutput.body;
810
+ return throwDefaultError({
811
+ output,
812
+ parsedBody,
813
+ errorCode
814
+ });
815
+ }
816
+ }, "de_CreateJobCommandError");
817
+ var de_CreateQuantumTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
818
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
819
+ return de_CreateQuantumTaskCommandError(output, context);
820
+ }
821
+ const contents = (0, import_smithy_client.map)({
822
+ $metadata: deserializeMetadata(output)
823
+ });
824
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
825
+ const doc = (0, import_smithy_client.take)(data, {
826
+ quantumTaskArn: import_smithy_client.expectString
827
+ });
828
+ Object.assign(contents, doc);
829
+ return contents;
830
+ }, "de_CreateQuantumTaskCommand");
831
+ var de_CreateQuantumTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
832
+ const parsedOutput = {
833
+ ...output,
834
+ body: await parseErrorBody(output.body, context)
835
+ };
836
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
837
+ switch (errorCode) {
838
+ case "AccessDeniedException":
839
+ case "com.amazonaws.braket#AccessDeniedException":
840
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
841
+ case "DeviceOfflineException":
842
+ case "com.amazonaws.braket#DeviceOfflineException":
843
+ throw await de_DeviceOfflineExceptionRes(parsedOutput, context);
844
+ case "DeviceRetiredException":
845
+ case "com.amazonaws.braket#DeviceRetiredException":
846
+ throw await de_DeviceRetiredExceptionRes(parsedOutput, context);
847
+ case "InternalServiceException":
848
+ case "com.amazonaws.braket#InternalServiceException":
849
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
850
+ case "ServiceQuotaExceededException":
851
+ case "com.amazonaws.braket#ServiceQuotaExceededException":
852
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
853
+ case "ThrottlingException":
854
+ case "com.amazonaws.braket#ThrottlingException":
855
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
856
+ case "ValidationException":
857
+ case "com.amazonaws.braket#ValidationException":
858
+ throw await de_ValidationExceptionRes(parsedOutput, context);
859
+ default:
860
+ const parsedBody = parsedOutput.body;
861
+ return throwDefaultError({
862
+ output,
863
+ parsedBody,
864
+ errorCode
865
+ });
866
+ }
867
+ }, "de_CreateQuantumTaskCommandError");
868
+ var de_GetDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
869
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
870
+ return de_GetDeviceCommandError(output, context);
871
+ }
872
+ const contents = (0, import_smithy_client.map)({
873
+ $metadata: deserializeMetadata(output)
874
+ });
875
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
876
+ const doc = (0, import_smithy_client.take)(data, {
877
+ deviceArn: import_smithy_client.expectString,
878
+ deviceCapabilities: (_) => new import_smithy_client.LazyJsonString(_),
879
+ deviceName: import_smithy_client.expectString,
880
+ deviceQueueInfo: import_smithy_client._json,
881
+ deviceStatus: import_smithy_client.expectString,
882
+ deviceType: import_smithy_client.expectString,
883
+ providerName: import_smithy_client.expectString
884
+ });
885
+ Object.assign(contents, doc);
886
+ return contents;
887
+ }, "de_GetDeviceCommand");
888
+ var de_GetDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
889
+ const parsedOutput = {
890
+ ...output,
891
+ body: await parseErrorBody(output.body, context)
892
+ };
893
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
894
+ switch (errorCode) {
895
+ case "AccessDeniedException":
896
+ case "com.amazonaws.braket#AccessDeniedException":
897
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
898
+ case "InternalServiceException":
899
+ case "com.amazonaws.braket#InternalServiceException":
900
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
901
+ case "ResourceNotFoundException":
902
+ case "com.amazonaws.braket#ResourceNotFoundException":
903
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
904
+ case "ThrottlingException":
905
+ case "com.amazonaws.braket#ThrottlingException":
906
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
907
+ case "ValidationException":
908
+ case "com.amazonaws.braket#ValidationException":
909
+ throw await de_ValidationExceptionRes(parsedOutput, context);
910
+ default:
911
+ const parsedBody = parsedOutput.body;
912
+ return throwDefaultError({
913
+ output,
914
+ parsedBody,
915
+ errorCode
916
+ });
917
+ }
918
+ }, "de_GetDeviceCommandError");
919
+ var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
920
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
921
+ return de_GetJobCommandError(output, context);
922
+ }
923
+ const contents = (0, import_smithy_client.map)({
924
+ $metadata: deserializeMetadata(output)
925
+ });
926
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
927
+ const doc = (0, import_smithy_client.take)(data, {
928
+ algorithmSpecification: import_smithy_client._json,
929
+ associations: import_smithy_client._json,
930
+ billableDuration: import_smithy_client.expectInt32,
931
+ checkpointConfig: import_smithy_client._json,
932
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
933
+ deviceConfig: import_smithy_client._json,
934
+ endedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
935
+ events: (_) => de_JobEvents(_, context),
936
+ failureReason: import_smithy_client.expectString,
937
+ hyperParameters: import_smithy_client._json,
938
+ inputDataConfig: import_smithy_client._json,
939
+ instanceConfig: import_smithy_client._json,
940
+ jobArn: import_smithy_client.expectString,
941
+ jobName: import_smithy_client.expectString,
942
+ outputDataConfig: import_smithy_client._json,
943
+ queueInfo: import_smithy_client._json,
944
+ roleArn: import_smithy_client.expectString,
945
+ startedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
946
+ status: import_smithy_client.expectString,
947
+ stoppingCondition: import_smithy_client._json,
948
+ tags: import_smithy_client._json
949
+ });
950
+ Object.assign(contents, doc);
951
+ return contents;
952
+ }, "de_GetJobCommand");
953
+ var de_GetJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
954
+ const parsedOutput = {
955
+ ...output,
956
+ body: await parseErrorBody(output.body, context)
957
+ };
958
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
959
+ switch (errorCode) {
960
+ case "AccessDeniedException":
961
+ case "com.amazonaws.braket#AccessDeniedException":
962
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
963
+ case "InternalServiceException":
964
+ case "com.amazonaws.braket#InternalServiceException":
965
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
966
+ case "ResourceNotFoundException":
967
+ case "com.amazonaws.braket#ResourceNotFoundException":
968
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
969
+ case "ThrottlingException":
970
+ case "com.amazonaws.braket#ThrottlingException":
971
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
972
+ case "ValidationException":
973
+ case "com.amazonaws.braket#ValidationException":
974
+ throw await de_ValidationExceptionRes(parsedOutput, context);
975
+ default:
976
+ const parsedBody = parsedOutput.body;
977
+ return throwDefaultError({
978
+ output,
979
+ parsedBody,
980
+ errorCode
981
+ });
982
+ }
983
+ }, "de_GetJobCommandError");
984
+ var de_GetQuantumTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
985
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
986
+ return de_GetQuantumTaskCommandError(output, context);
987
+ }
988
+ const contents = (0, import_smithy_client.map)({
989
+ $metadata: deserializeMetadata(output)
990
+ });
991
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
992
+ const doc = (0, import_smithy_client.take)(data, {
993
+ associations: import_smithy_client._json,
994
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
995
+ deviceArn: import_smithy_client.expectString,
996
+ deviceParameters: (_) => new import_smithy_client.LazyJsonString(_),
997
+ endedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
998
+ failureReason: import_smithy_client.expectString,
999
+ jobArn: import_smithy_client.expectString,
1000
+ outputS3Bucket: import_smithy_client.expectString,
1001
+ outputS3Directory: import_smithy_client.expectString,
1002
+ quantumTaskArn: import_smithy_client.expectString,
1003
+ queueInfo: import_smithy_client._json,
1004
+ shots: import_smithy_client.expectLong,
1005
+ status: import_smithy_client.expectString,
1006
+ tags: import_smithy_client._json
1007
+ });
1008
+ Object.assign(contents, doc);
1009
+ return contents;
1010
+ }, "de_GetQuantumTaskCommand");
1011
+ var de_GetQuantumTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1012
+ const parsedOutput = {
1013
+ ...output,
1014
+ body: await parseErrorBody(output.body, context)
1015
+ };
1016
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1017
+ switch (errorCode) {
1018
+ case "AccessDeniedException":
1019
+ case "com.amazonaws.braket#AccessDeniedException":
1020
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1021
+ case "InternalServiceException":
1022
+ case "com.amazonaws.braket#InternalServiceException":
1023
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1024
+ case "ResourceNotFoundException":
1025
+ case "com.amazonaws.braket#ResourceNotFoundException":
1026
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1027
+ case "ThrottlingException":
1028
+ case "com.amazonaws.braket#ThrottlingException":
1029
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1030
+ case "ValidationException":
1031
+ case "com.amazonaws.braket#ValidationException":
1032
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1033
+ default:
1034
+ const parsedBody = parsedOutput.body;
1035
+ return throwDefaultError({
1036
+ output,
1037
+ parsedBody,
1038
+ errorCode
1039
+ });
1040
+ }
1041
+ }, "de_GetQuantumTaskCommandError");
1042
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1043
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1044
+ return de_ListTagsForResourceCommandError(output, context);
1045
+ }
1046
+ const contents = (0, import_smithy_client.map)({
1047
+ $metadata: deserializeMetadata(output)
1048
+ });
1049
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1050
+ const doc = (0, import_smithy_client.take)(data, {
1051
+ tags: import_smithy_client._json
1052
+ });
1053
+ Object.assign(contents, doc);
1054
+ return contents;
1055
+ }, "de_ListTagsForResourceCommand");
1056
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1057
+ const parsedOutput = {
1058
+ ...output,
1059
+ body: await parseErrorBody(output.body, context)
1060
+ };
1061
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1062
+ switch (errorCode) {
1063
+ case "InternalServiceException":
1064
+ case "com.amazonaws.braket#InternalServiceException":
1065
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1066
+ case "ResourceNotFoundException":
1067
+ case "com.amazonaws.braket#ResourceNotFoundException":
1068
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1069
+ case "ValidationException":
1070
+ case "com.amazonaws.braket#ValidationException":
1071
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1072
+ default:
1073
+ const parsedBody = parsedOutput.body;
1074
+ return throwDefaultError({
1075
+ output,
1076
+ parsedBody,
1077
+ errorCode
1078
+ });
1079
+ }
1080
+ }, "de_ListTagsForResourceCommandError");
1081
+ var de_SearchDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
1082
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1083
+ return de_SearchDevicesCommandError(output, context);
1084
+ }
1085
+ const contents = (0, import_smithy_client.map)({
1086
+ $metadata: deserializeMetadata(output)
1087
+ });
1088
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1089
+ const doc = (0, import_smithy_client.take)(data, {
1090
+ devices: import_smithy_client._json,
1091
+ nextToken: import_smithy_client.expectString
1092
+ });
1093
+ Object.assign(contents, doc);
1094
+ return contents;
1095
+ }, "de_SearchDevicesCommand");
1096
+ var de_SearchDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1097
+ const parsedOutput = {
1098
+ ...output,
1099
+ body: await parseErrorBody(output.body, context)
1100
+ };
1101
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1102
+ switch (errorCode) {
1103
+ case "AccessDeniedException":
1104
+ case "com.amazonaws.braket#AccessDeniedException":
1105
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1106
+ case "InternalServiceException":
1107
+ case "com.amazonaws.braket#InternalServiceException":
1108
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1109
+ case "ThrottlingException":
1110
+ case "com.amazonaws.braket#ThrottlingException":
1111
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1112
+ case "ValidationException":
1113
+ case "com.amazonaws.braket#ValidationException":
1114
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1115
+ default:
1116
+ const parsedBody = parsedOutput.body;
1117
+ return throwDefaultError({
1118
+ output,
1119
+ parsedBody,
1120
+ errorCode
1121
+ });
1122
+ }
1123
+ }, "de_SearchDevicesCommandError");
1124
+ var de_SearchJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1125
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1126
+ return de_SearchJobsCommandError(output, context);
1127
+ }
1128
+ const contents = (0, import_smithy_client.map)({
1129
+ $metadata: deserializeMetadata(output)
1130
+ });
1131
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1132
+ const doc = (0, import_smithy_client.take)(data, {
1133
+ jobs: (_) => de_JobSummaryList(_, context),
1134
+ nextToken: import_smithy_client.expectString
1135
+ });
1136
+ Object.assign(contents, doc);
1137
+ return contents;
1138
+ }, "de_SearchJobsCommand");
1139
+ var de_SearchJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1140
+ const parsedOutput = {
1141
+ ...output,
1142
+ body: await parseErrorBody(output.body, context)
1143
+ };
1144
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1145
+ switch (errorCode) {
1146
+ case "AccessDeniedException":
1147
+ case "com.amazonaws.braket#AccessDeniedException":
1148
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1149
+ case "InternalServiceException":
1150
+ case "com.amazonaws.braket#InternalServiceException":
1151
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1152
+ case "ThrottlingException":
1153
+ case "com.amazonaws.braket#ThrottlingException":
1154
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1155
+ case "ValidationException":
1156
+ case "com.amazonaws.braket#ValidationException":
1157
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1158
+ default:
1159
+ const parsedBody = parsedOutput.body;
1160
+ return throwDefaultError({
1161
+ output,
1162
+ parsedBody,
1163
+ errorCode
1164
+ });
1165
+ }
1166
+ }, "de_SearchJobsCommandError");
1167
+ var de_SearchQuantumTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1168
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1169
+ return de_SearchQuantumTasksCommandError(output, context);
1170
+ }
1171
+ const contents = (0, import_smithy_client.map)({
1172
+ $metadata: deserializeMetadata(output)
1173
+ });
1174
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1175
+ const doc = (0, import_smithy_client.take)(data, {
1176
+ nextToken: import_smithy_client.expectString,
1177
+ quantumTasks: (_) => de_QuantumTaskSummaryList(_, context)
1178
+ });
1179
+ Object.assign(contents, doc);
1180
+ return contents;
1181
+ }, "de_SearchQuantumTasksCommand");
1182
+ var de_SearchQuantumTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1183
+ const parsedOutput = {
1184
+ ...output,
1185
+ body: await parseErrorBody(output.body, context)
1186
+ };
1187
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1188
+ switch (errorCode) {
1189
+ case "AccessDeniedException":
1190
+ case "com.amazonaws.braket#AccessDeniedException":
1191
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1192
+ case "InternalServiceException":
1193
+ case "com.amazonaws.braket#InternalServiceException":
1194
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1195
+ case "ThrottlingException":
1196
+ case "com.amazonaws.braket#ThrottlingException":
1197
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1198
+ case "ValidationException":
1199
+ case "com.amazonaws.braket#ValidationException":
1200
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1201
+ default:
1202
+ const parsedBody = parsedOutput.body;
1203
+ return throwDefaultError({
1204
+ output,
1205
+ parsedBody,
1206
+ errorCode
1207
+ });
1208
+ }
1209
+ }, "de_SearchQuantumTasksCommandError");
1210
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1211
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1212
+ return de_TagResourceCommandError(output, context);
1213
+ }
1214
+ const contents = (0, import_smithy_client.map)({
1215
+ $metadata: deserializeMetadata(output)
1216
+ });
1217
+ await (0, import_smithy_client.collectBody)(output.body, context);
1218
+ return contents;
1219
+ }, "de_TagResourceCommand");
1220
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1221
+ const parsedOutput = {
1222
+ ...output,
1223
+ body: await parseErrorBody(output.body, context)
1224
+ };
1225
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1226
+ switch (errorCode) {
1227
+ case "InternalServiceException":
1228
+ case "com.amazonaws.braket#InternalServiceException":
1229
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1230
+ case "ResourceNotFoundException":
1231
+ case "com.amazonaws.braket#ResourceNotFoundException":
1232
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1233
+ case "ValidationException":
1234
+ case "com.amazonaws.braket#ValidationException":
1235
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1236
+ default:
1237
+ const parsedBody = parsedOutput.body;
1238
+ return throwDefaultError({
1239
+ output,
1240
+ parsedBody,
1241
+ errorCode
1242
+ });
1243
+ }
1244
+ }, "de_TagResourceCommandError");
1245
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1246
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1247
+ return de_UntagResourceCommandError(output, context);
1248
+ }
1249
+ const contents = (0, import_smithy_client.map)({
1250
+ $metadata: deserializeMetadata(output)
1251
+ });
1252
+ await (0, import_smithy_client.collectBody)(output.body, context);
1253
+ return contents;
1254
+ }, "de_UntagResourceCommand");
1255
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1256
+ const parsedOutput = {
1257
+ ...output,
1258
+ body: await parseErrorBody(output.body, context)
1259
+ };
1260
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1261
+ switch (errorCode) {
1262
+ case "InternalServiceException":
1263
+ case "com.amazonaws.braket#InternalServiceException":
1264
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1265
+ case "ResourceNotFoundException":
1266
+ case "com.amazonaws.braket#ResourceNotFoundException":
1267
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1268
+ case "ValidationException":
1269
+ case "com.amazonaws.braket#ValidationException":
1270
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1271
+ default:
1272
+ const parsedBody = parsedOutput.body;
1273
+ return throwDefaultError({
1274
+ output,
1275
+ parsedBody,
1276
+ errorCode
1277
+ });
1278
+ }
1279
+ }, "de_UntagResourceCommandError");
1280
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(BraketServiceException);
1281
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1282
+ const contents = (0, import_smithy_client.map)({});
1283
+ const data = parsedOutput.body;
1284
+ const doc = (0, import_smithy_client.take)(data, {
1285
+ message: import_smithy_client.expectString
1286
+ });
1287
+ Object.assign(contents, doc);
1288
+ const exception = new AccessDeniedException({
1289
+ $metadata: deserializeMetadata(parsedOutput),
1290
+ ...contents
1291
+ });
1292
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1293
+ }, "de_AccessDeniedExceptionRes");
1294
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1295
+ const contents = (0, import_smithy_client.map)({});
1296
+ const data = parsedOutput.body;
1297
+ const doc = (0, import_smithy_client.take)(data, {
1298
+ message: import_smithy_client.expectString
1299
+ });
1300
+ Object.assign(contents, doc);
1301
+ const exception = new ConflictException({
1302
+ $metadata: deserializeMetadata(parsedOutput),
1303
+ ...contents
1304
+ });
1305
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1306
+ }, "de_ConflictExceptionRes");
1307
+ var de_DeviceOfflineExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1308
+ const contents = (0, import_smithy_client.map)({});
1309
+ const data = parsedOutput.body;
1310
+ const doc = (0, import_smithy_client.take)(data, {
1311
+ message: import_smithy_client.expectString
1312
+ });
1313
+ Object.assign(contents, doc);
1314
+ const exception = new DeviceOfflineException({
1315
+ $metadata: deserializeMetadata(parsedOutput),
1316
+ ...contents
1317
+ });
1318
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1319
+ }, "de_DeviceOfflineExceptionRes");
1320
+ var de_DeviceRetiredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1321
+ const contents = (0, import_smithy_client.map)({});
1322
+ const data = parsedOutput.body;
1323
+ const doc = (0, import_smithy_client.take)(data, {
1324
+ message: import_smithy_client.expectString
1325
+ });
1326
+ Object.assign(contents, doc);
1327
+ const exception = new DeviceRetiredException({
1328
+ $metadata: deserializeMetadata(parsedOutput),
1329
+ ...contents
1330
+ });
1331
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1332
+ }, "de_DeviceRetiredExceptionRes");
1333
+ var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1334
+ const contents = (0, import_smithy_client.map)({});
1335
+ const data = parsedOutput.body;
1336
+ const doc = (0, import_smithy_client.take)(data, {
1337
+ message: import_smithy_client.expectString
1338
+ });
1339
+ Object.assign(contents, doc);
1340
+ const exception = new InternalServiceException({
1341
+ $metadata: deserializeMetadata(parsedOutput),
1342
+ ...contents
1343
+ });
1344
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1345
+ }, "de_InternalServiceExceptionRes");
1346
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1347
+ const contents = (0, import_smithy_client.map)({});
1348
+ const data = parsedOutput.body;
1349
+ const doc = (0, import_smithy_client.take)(data, {
1350
+ message: import_smithy_client.expectString
1351
+ });
1352
+ Object.assign(contents, doc);
1353
+ const exception = new ResourceNotFoundException({
1354
+ $metadata: deserializeMetadata(parsedOutput),
1355
+ ...contents
1356
+ });
1357
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1358
+ }, "de_ResourceNotFoundExceptionRes");
1359
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1360
+ const contents = (0, import_smithy_client.map)({});
1361
+ const data = parsedOutput.body;
1362
+ const doc = (0, import_smithy_client.take)(data, {
1363
+ message: import_smithy_client.expectString
1364
+ });
1365
+ Object.assign(contents, doc);
1366
+ const exception = new ServiceQuotaExceededException({
1367
+ $metadata: deserializeMetadata(parsedOutput),
1368
+ ...contents
1369
+ });
1370
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1371
+ }, "de_ServiceQuotaExceededExceptionRes");
1372
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1373
+ const contents = (0, import_smithy_client.map)({});
1374
+ const data = parsedOutput.body;
1375
+ const doc = (0, import_smithy_client.take)(data, {
1376
+ message: import_smithy_client.expectString
1377
+ });
1378
+ Object.assign(contents, doc);
1379
+ const exception = new ThrottlingException({
1380
+ $metadata: deserializeMetadata(parsedOutput),
1381
+ ...contents
1382
+ });
1383
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1384
+ }, "de_ThrottlingExceptionRes");
1385
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1386
+ const contents = (0, import_smithy_client.map)({});
1387
+ const data = parsedOutput.body;
1388
+ const doc = (0, import_smithy_client.take)(data, {
1389
+ message: import_smithy_client.expectString
1390
+ });
1391
+ Object.assign(contents, doc);
1392
+ const exception = new ValidationException({
1393
+ $metadata: deserializeMetadata(parsedOutput),
1394
+ ...contents
1395
+ });
1396
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1397
+ }, "de_ValidationExceptionRes");
1398
+ var de_JobEventDetails = /* @__PURE__ */ __name((output, context) => {
1399
+ return (0, import_smithy_client.take)(output, {
1400
+ eventType: import_smithy_client.expectString,
1401
+ message: import_smithy_client.expectString,
1402
+ timeOfEvent: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1403
+ });
1404
+ }, "de_JobEventDetails");
1405
+ var de_JobEvents = /* @__PURE__ */ __name((output, context) => {
1406
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1407
+ return de_JobEventDetails(entry, context);
1408
+ });
1409
+ return retVal;
1410
+ }, "de_JobEvents");
1411
+ var de_JobSummary = /* @__PURE__ */ __name((output, context) => {
1412
+ return (0, import_smithy_client.take)(output, {
1413
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1414
+ device: import_smithy_client.expectString,
1415
+ endedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1416
+ jobArn: import_smithy_client.expectString,
1417
+ jobName: import_smithy_client.expectString,
1418
+ startedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1419
+ status: import_smithy_client.expectString,
1420
+ tags: import_smithy_client._json
1421
+ });
1422
+ }, "de_JobSummary");
1423
+ var de_JobSummaryList = /* @__PURE__ */ __name((output, context) => {
1424
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1425
+ return de_JobSummary(entry, context);
1426
+ });
1427
+ return retVal;
1428
+ }, "de_JobSummaryList");
1429
+ var de_QuantumTaskSummary = /* @__PURE__ */ __name((output, context) => {
1430
+ return (0, import_smithy_client.take)(output, {
1431
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1432
+ deviceArn: import_smithy_client.expectString,
1433
+ endedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1434
+ outputS3Bucket: import_smithy_client.expectString,
1435
+ outputS3Directory: import_smithy_client.expectString,
1436
+ quantumTaskArn: import_smithy_client.expectString,
1437
+ shots: import_smithy_client.expectLong,
1438
+ status: import_smithy_client.expectString,
1439
+ tags: import_smithy_client._json
1440
+ });
1441
+ }, "de_QuantumTaskSummary");
1442
+ var de_QuantumTaskSummaryList = /* @__PURE__ */ __name((output, context) => {
1443
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1444
+ return de_QuantumTaskSummary(entry, context);
1445
+ });
1446
+ return retVal;
1447
+ }, "de_QuantumTaskSummaryList");
1448
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1449
+ httpStatusCode: output.statusCode,
1450
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1451
+ extendedRequestId: output.headers["x-amz-id-2"],
1452
+ cfId: output.headers["x-amz-cf-id"]
1453
+ }), "deserializeMetadata");
1454
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1455
+ var _aAN = "additionalAttributeNames";
1456
+ var _tK = "tagKeys";
1457
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1458
+ if (encoded.length) {
1459
+ return JSON.parse(encoded);
1460
+ }
1461
+ return {};
1462
+ }), "parseBody");
1463
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1464
+ const value = await parseBody(errorBody, context);
1465
+ value.message = value.message ?? value.Message;
1466
+ return value;
1467
+ }, "parseErrorBody");
1468
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1469
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1470
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1471
+ let cleanValue = rawValue;
1472
+ if (typeof cleanValue === "number") {
1473
+ cleanValue = cleanValue.toString();
1474
+ }
1475
+ if (cleanValue.indexOf(",") >= 0) {
1476
+ cleanValue = cleanValue.split(",")[0];
1477
+ }
1478
+ if (cleanValue.indexOf(":") >= 0) {
1479
+ cleanValue = cleanValue.split(":")[0];
1480
+ }
1481
+ if (cleanValue.indexOf("#") >= 0) {
1482
+ cleanValue = cleanValue.split("#")[1];
1483
+ }
1484
+ return cleanValue;
1485
+ }, "sanitizeErrorCode");
1486
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1487
+ if (headerKey !== void 0) {
1488
+ return sanitizeErrorCode(output.headers[headerKey]);
1489
+ }
1490
+ if (data.code !== void 0) {
1491
+ return sanitizeErrorCode(data.code);
1492
+ }
1493
+ if (data["__type"] !== void 0) {
1494
+ return sanitizeErrorCode(data["__type"]);
1495
+ }
1496
+ }, "loadRestJsonErrorCode");
1497
+
1498
+ // src/commands/CancelJobCommand.ts
1499
+ var _CancelJobCommand = class _CancelJobCommand extends import_smithy_client.Command.classBuilder().ep({
1500
+ ...commonParams
1501
+ }).m(function(Command, cs, config, o) {
1502
+ return [
1503
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1504
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1505
+ ];
1506
+ }).s("Braket", "CancelJob", {}).n("BraketClient", "CancelJobCommand").f(void 0, void 0).ser(se_CancelJobCommand).de(de_CancelJobCommand).build() {
1507
+ };
1508
+ __name(_CancelJobCommand, "CancelJobCommand");
1509
+ var CancelJobCommand = _CancelJobCommand;
1510
+
1511
+ // src/commands/CancelQuantumTaskCommand.ts
1512
+
1513
+
1514
+
1515
+
1516
+ var _CancelQuantumTaskCommand = class _CancelQuantumTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1517
+ ...commonParams
1518
+ }).m(function(Command, cs, config, o) {
1519
+ return [
1520
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1521
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1522
+ ];
1523
+ }).s("Braket", "CancelQuantumTask", {}).n("BraketClient", "CancelQuantumTaskCommand").f(void 0, void 0).ser(se_CancelQuantumTaskCommand).de(de_CancelQuantumTaskCommand).build() {
1524
+ };
1525
+ __name(_CancelQuantumTaskCommand, "CancelQuantumTaskCommand");
1526
+ var CancelQuantumTaskCommand = _CancelQuantumTaskCommand;
1527
+
1528
+ // src/commands/CreateJobCommand.ts
1529
+
1530
+
1531
+
1532
+
1533
+ var _CreateJobCommand = class _CreateJobCommand extends import_smithy_client.Command.classBuilder().ep({
1534
+ ...commonParams
1535
+ }).m(function(Command, cs, config, o) {
1536
+ return [
1537
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1538
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1539
+ ];
1540
+ }).s("Braket", "CreateJob", {}).n("BraketClient", "CreateJobCommand").f(void 0, void 0).ser(se_CreateJobCommand).de(de_CreateJobCommand).build() {
1541
+ };
1542
+ __name(_CreateJobCommand, "CreateJobCommand");
1543
+ var CreateJobCommand = _CreateJobCommand;
1544
+
1545
+ // src/commands/CreateQuantumTaskCommand.ts
1546
+
1547
+
1548
+
1549
+
1550
+ var _CreateQuantumTaskCommand = class _CreateQuantumTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1551
+ ...commonParams
1552
+ }).m(function(Command, cs, config, o) {
1553
+ return [
1554
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1555
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1556
+ ];
1557
+ }).s("Braket", "CreateQuantumTask", {}).n("BraketClient", "CreateQuantumTaskCommand").f(void 0, void 0).ser(se_CreateQuantumTaskCommand).de(de_CreateQuantumTaskCommand).build() {
1558
+ };
1559
+ __name(_CreateQuantumTaskCommand, "CreateQuantumTaskCommand");
1560
+ var CreateQuantumTaskCommand = _CreateQuantumTaskCommand;
1561
+
1562
+ // src/commands/GetDeviceCommand.ts
1563
+
1564
+
1565
+
1566
+
1567
+ var _GetDeviceCommand = class _GetDeviceCommand extends import_smithy_client.Command.classBuilder().ep({
1568
+ ...commonParams
1569
+ }).m(function(Command, cs, config, o) {
1570
+ return [
1571
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1572
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1573
+ ];
1574
+ }).s("Braket", "GetDevice", {}).n("BraketClient", "GetDeviceCommand").f(void 0, void 0).ser(se_GetDeviceCommand).de(de_GetDeviceCommand).build() {
1575
+ };
1576
+ __name(_GetDeviceCommand, "GetDeviceCommand");
1577
+ var GetDeviceCommand = _GetDeviceCommand;
1578
+
1579
+ // src/commands/GetJobCommand.ts
1580
+
1581
+
1582
+
1583
+
1584
+ var _GetJobCommand = class _GetJobCommand extends import_smithy_client.Command.classBuilder().ep({
1585
+ ...commonParams
1586
+ }).m(function(Command, cs, config, o) {
1587
+ return [
1588
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1589
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1590
+ ];
1591
+ }).s("Braket", "GetJob", {}).n("BraketClient", "GetJobCommand").f(void 0, void 0).ser(se_GetJobCommand).de(de_GetJobCommand).build() {
1592
+ };
1593
+ __name(_GetJobCommand, "GetJobCommand");
1594
+ var GetJobCommand = _GetJobCommand;
1595
+
1596
+ // src/commands/GetQuantumTaskCommand.ts
1597
+
1598
+
1599
+
1600
+
1601
+ var _GetQuantumTaskCommand = class _GetQuantumTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1602
+ ...commonParams
1603
+ }).m(function(Command, cs, config, o) {
1604
+ return [
1605
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1606
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1607
+ ];
1608
+ }).s("Braket", "GetQuantumTask", {}).n("BraketClient", "GetQuantumTaskCommand").f(void 0, void 0).ser(se_GetQuantumTaskCommand).de(de_GetQuantumTaskCommand).build() {
1609
+ };
1610
+ __name(_GetQuantumTaskCommand, "GetQuantumTaskCommand");
1611
+ var GetQuantumTaskCommand = _GetQuantumTaskCommand;
1612
+
1613
+ // src/commands/ListTagsForResourceCommand.ts
1614
+
1615
+
1616
+
1617
+
1618
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1619
+ ...commonParams
1620
+ }).m(function(Command, cs, config, o) {
1621
+ return [
1622
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1623
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1624
+ ];
1625
+ }).s("Braket", "ListTagsForResource", {}).n("BraketClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1626
+ };
1627
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1628
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1629
+
1630
+ // src/commands/SearchDevicesCommand.ts
1631
+
1632
+
1633
+
1634
+
1635
+ var _SearchDevicesCommand = class _SearchDevicesCommand extends import_smithy_client.Command.classBuilder().ep({
1636
+ ...commonParams
1637
+ }).m(function(Command, cs, config, o) {
1638
+ return [
1639
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1640
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1641
+ ];
1642
+ }).s("Braket", "SearchDevices", {}).n("BraketClient", "SearchDevicesCommand").f(void 0, void 0).ser(se_SearchDevicesCommand).de(de_SearchDevicesCommand).build() {
1643
+ };
1644
+ __name(_SearchDevicesCommand, "SearchDevicesCommand");
1645
+ var SearchDevicesCommand = _SearchDevicesCommand;
1646
+
1647
+ // src/commands/SearchJobsCommand.ts
1648
+
1649
+
1650
+
1651
+
1652
+ var _SearchJobsCommand = class _SearchJobsCommand extends import_smithy_client.Command.classBuilder().ep({
1653
+ ...commonParams
1654
+ }).m(function(Command, cs, config, o) {
1655
+ return [
1656
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1657
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1658
+ ];
1659
+ }).s("Braket", "SearchJobs", {}).n("BraketClient", "SearchJobsCommand").f(void 0, void 0).ser(se_SearchJobsCommand).de(de_SearchJobsCommand).build() {
1660
+ };
1661
+ __name(_SearchJobsCommand, "SearchJobsCommand");
1662
+ var SearchJobsCommand = _SearchJobsCommand;
1663
+
1664
+ // src/commands/SearchQuantumTasksCommand.ts
1665
+
1666
+
1667
+
1668
+
1669
+ var _SearchQuantumTasksCommand = class _SearchQuantumTasksCommand extends import_smithy_client.Command.classBuilder().ep({
1670
+ ...commonParams
1671
+ }).m(function(Command, cs, config, o) {
1672
+ return [
1673
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1674
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1675
+ ];
1676
+ }).s("Braket", "SearchQuantumTasks", {}).n("BraketClient", "SearchQuantumTasksCommand").f(void 0, void 0).ser(se_SearchQuantumTasksCommand).de(de_SearchQuantumTasksCommand).build() {
1677
+ };
1678
+ __name(_SearchQuantumTasksCommand, "SearchQuantumTasksCommand");
1679
+ var SearchQuantumTasksCommand = _SearchQuantumTasksCommand;
1680
+
1681
+ // src/commands/TagResourceCommand.ts
1682
+
1683
+
1684
+
1685
+
1686
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1687
+ ...commonParams
1688
+ }).m(function(Command, cs, config, o) {
1689
+ return [
1690
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1691
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1692
+ ];
1693
+ }).s("Braket", "TagResource", {}).n("BraketClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1694
+ };
1695
+ __name(_TagResourceCommand, "TagResourceCommand");
1696
+ var TagResourceCommand = _TagResourceCommand;
1697
+
1698
+ // src/commands/UntagResourceCommand.ts
1699
+
1700
+
1701
+
1702
+
1703
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1704
+ ...commonParams
1705
+ }).m(function(Command, cs, config, o) {
1706
+ return [
1707
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1708
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1709
+ ];
1710
+ }).s("Braket", "UntagResource", {}).n("BraketClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1711
+ };
1712
+ __name(_UntagResourceCommand, "UntagResourceCommand");
1713
+ var UntagResourceCommand = _UntagResourceCommand;
1714
+
1715
+ // src/Braket.ts
1716
+ var commands = {
1717
+ CancelJobCommand,
1718
+ CancelQuantumTaskCommand,
1719
+ CreateJobCommand,
1720
+ CreateQuantumTaskCommand,
1721
+ GetDeviceCommand,
1722
+ GetJobCommand,
1723
+ GetQuantumTaskCommand,
1724
+ ListTagsForResourceCommand,
1725
+ SearchDevicesCommand,
1726
+ SearchJobsCommand,
1727
+ SearchQuantumTasksCommand,
1728
+ TagResourceCommand,
1729
+ UntagResourceCommand
1730
+ };
1731
+ var _Braket = class _Braket extends BraketClient {
1732
+ };
1733
+ __name(_Braket, "Braket");
1734
+ var Braket = _Braket;
1735
+ (0, import_smithy_client.createAggregatedClient)(commands, Braket);
1736
+
1737
+ // src/pagination/SearchDevicesPaginator.ts
1738
+
1739
+ var paginateSearchDevices = (0, import_core.createPaginator)(BraketClient, SearchDevicesCommand, "nextToken", "nextToken", "maxResults");
1740
+
1741
+ // src/pagination/SearchJobsPaginator.ts
1742
+
1743
+ var paginateSearchJobs = (0, import_core.createPaginator)(BraketClient, SearchJobsCommand, "nextToken", "nextToken", "maxResults");
1744
+
1745
+ // src/pagination/SearchQuantumTasksPaginator.ts
1746
+
1747
+ var paginateSearchQuantumTasks = (0, import_core.createPaginator)(BraketClient, SearchQuantumTasksCommand, "nextToken", "nextToken", "maxResults");
1748
+
1749
+ // src/index.ts
1750
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1751
+ // Annotate the CommonJS export names for ESM import in node:
1752
+ 0 && (module.exports = {
1753
+ AccessDeniedException,
1754
+ AssociationType,
1755
+ Braket,
1756
+ BraketClient,
1757
+ BraketServiceException,
1758
+ CancelJobCommand,
1759
+ CancelQuantumTaskCommand,
1760
+ CancellationStatus,
1761
+ CompressionType,
1762
+ ConflictException,
1763
+ CreateJobCommand,
1764
+ CreateQuantumTaskCommand,
1765
+ DeviceOfflineException,
1766
+ DeviceRetiredException,
1767
+ DeviceStatus,
1768
+ DeviceType,
1769
+ GetDeviceCommand,
1770
+ GetJobCommand,
1771
+ GetQuantumTaskCommand,
1772
+ HybridJobAdditionalAttributeName,
1773
+ InternalServiceException,
1774
+ JobEventType,
1775
+ JobPrimaryStatus,
1776
+ ListTagsForResourceCommand,
1777
+ QuantumTaskAdditionalAttributeName,
1778
+ QuantumTaskStatus,
1779
+ QueueName,
1780
+ QueuePriority,
1781
+ ResourceNotFoundException,
1782
+ SearchDevicesCommand,
1783
+ SearchJobsCommand,
1784
+ SearchJobsFilterOperator,
1785
+ SearchQuantumTasksCommand,
1786
+ SearchQuantumTasksFilterOperator,
1787
+ ServiceQuotaExceededException,
1788
+ TagResourceCommand,
1789
+ ThrottlingException,
1790
+ UntagResourceCommand,
1791
+ ValidationException,
1792
+ _InstanceType,
1793
+ __Client,
1794
+ paginateSearchDevices,
1795
+ paginateSearchJobs,
1796
+ paginateSearchQuantumTasks
1797
+ });