@aws-sdk/client-braket 3.696.0 → 3.709.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.
package/dist-cjs/index.js
CHANGED
|
@@ -572,11 +572,11 @@ var se_CreateQuantumTaskCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
572
572
|
let body;
|
|
573
573
|
body = JSON.stringify(
|
|
574
574
|
(0, import_smithy_client.take)(input, {
|
|
575
|
-
action: (_) => import_smithy_client.LazyJsonString.
|
|
575
|
+
action: (_) => import_smithy_client.LazyJsonString.from(_),
|
|
576
576
|
associations: (_) => (0, import_smithy_client._json)(_),
|
|
577
577
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
578
578
|
deviceArn: [],
|
|
579
|
-
deviceParameters: (_) => import_smithy_client.LazyJsonString.
|
|
579
|
+
deviceParameters: (_) => import_smithy_client.LazyJsonString.from(_),
|
|
580
580
|
jobToken: [],
|
|
581
581
|
outputS3Bucket: [],
|
|
582
582
|
outputS3KeyPrefix: [],
|
|
@@ -776,7 +776,7 @@ var de_GetDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
776
776
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
777
777
|
const doc = (0, import_smithy_client.take)(data, {
|
|
778
778
|
deviceArn: import_smithy_client.expectString,
|
|
779
|
-
deviceCapabilities:
|
|
779
|
+
deviceCapabilities: import_smithy_client.LazyJsonString.from,
|
|
780
780
|
deviceName: import_smithy_client.expectString,
|
|
781
781
|
deviceQueueInfo: import_smithy_client._json,
|
|
782
782
|
deviceStatus: import_smithy_client.expectString,
|
|
@@ -832,7 +832,7 @@ var de_GetQuantumTaskCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
832
832
|
associations: import_smithy_client._json,
|
|
833
833
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
834
834
|
deviceArn: import_smithy_client.expectString,
|
|
835
|
-
deviceParameters:
|
|
835
|
+
deviceParameters: import_smithy_client.LazyJsonString.from,
|
|
836
836
|
endedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
837
837
|
failureReason: import_smithy_client.expectString,
|
|
838
838
|
jobArn: import_smithy_client.expectString,
|
|
@@ -60,11 +60,11 @@ export const se_CreateQuantumTaskCommand = async (input, context) => {
|
|
|
60
60
|
b.bp("/quantum-task");
|
|
61
61
|
let body;
|
|
62
62
|
body = JSON.stringify(take(input, {
|
|
63
|
-
action: (_) => __LazyJsonString.
|
|
63
|
+
action: (_) => __LazyJsonString.from(_),
|
|
64
64
|
associations: (_) => _json(_),
|
|
65
65
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
66
66
|
deviceArn: [],
|
|
67
|
-
deviceParameters: (_) => __LazyJsonString.
|
|
67
|
+
deviceParameters: (_) => __LazyJsonString.from(_),
|
|
68
68
|
jobToken: [],
|
|
69
69
|
outputS3Bucket: [],
|
|
70
70
|
outputS3KeyPrefix: [],
|
|
@@ -255,7 +255,7 @@ export const de_GetDeviceCommand = async (output, context) => {
|
|
|
255
255
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
256
256
|
const doc = take(data, {
|
|
257
257
|
deviceArn: __expectString,
|
|
258
|
-
deviceCapabilities:
|
|
258
|
+
deviceCapabilities: __LazyJsonString.from,
|
|
259
259
|
deviceName: __expectString,
|
|
260
260
|
deviceQueueInfo: _json,
|
|
261
261
|
deviceStatus: __expectString,
|
|
@@ -311,7 +311,7 @@ export const de_GetQuantumTaskCommand = async (output, context) => {
|
|
|
311
311
|
associations: _json,
|
|
312
312
|
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
313
313
|
deviceArn: __expectString,
|
|
314
|
-
deviceParameters:
|
|
314
|
+
deviceParameters: __LazyJsonString.from,
|
|
315
315
|
endedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
316
316
|
failureReason: __expectString,
|
|
317
317
|
jobArn: __expectString,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion, ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { BraketServiceException as __BaseException } from "./BraketServiceException";
|
|
3
3
|
/**
|
|
4
4
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
@@ -217,7 +217,7 @@ export interface GetDeviceResponse {
|
|
|
217
217
|
* <p>Details about the capabilities of the device.</p>
|
|
218
218
|
* @public
|
|
219
219
|
*/
|
|
220
|
-
deviceCapabilities:
|
|
220
|
+
deviceCapabilities: __AutomaticJsonStringConversion | string | undefined;
|
|
221
221
|
/**
|
|
222
222
|
* <p>List of information about tasks and jobs queued on a device.</p>
|
|
223
223
|
* @public
|
|
@@ -1134,7 +1134,7 @@ export interface CreateQuantumTaskRequest {
|
|
|
1134
1134
|
* <p>The parameters for the device to run the task on.</p>
|
|
1135
1135
|
* @public
|
|
1136
1136
|
*/
|
|
1137
|
-
deviceParameters?:
|
|
1137
|
+
deviceParameters?: __AutomaticJsonStringConversion | string | undefined;
|
|
1138
1138
|
/**
|
|
1139
1139
|
* <p>The number of shots to use for the task.</p>
|
|
1140
1140
|
* @public
|
|
@@ -1154,7 +1154,7 @@ export interface CreateQuantumTaskRequest {
|
|
|
1154
1154
|
* <p>The action associated with the task.</p>
|
|
1155
1155
|
* @public
|
|
1156
1156
|
*/
|
|
1157
|
-
action:
|
|
1157
|
+
action: __AutomaticJsonStringConversion | string | undefined;
|
|
1158
1158
|
/**
|
|
1159
1159
|
* <p>Tags to be added to the quantum task you're creating.</p>
|
|
1160
1160
|
* @public
|
|
@@ -1281,7 +1281,7 @@ export interface GetQuantumTaskResponse {
|
|
|
1281
1281
|
* <p>The parameters for the device on which the task ran.</p>
|
|
1282
1282
|
* @public
|
|
1283
1283
|
*/
|
|
1284
|
-
deviceParameters:
|
|
1284
|
+
deviceParameters: __AutomaticJsonStringConversion | string | undefined;
|
|
1285
1285
|
/**
|
|
1286
1286
|
* <p>The number of shots used in the task.</p>
|
|
1287
1287
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AutomaticJsonStringConversion as __AutomaticJsonStringConversion,
|
|
2
3
|
ExceptionOptionType as __ExceptionOptionType,
|
|
3
|
-
LazyJsonString as __LazyJsonString,
|
|
4
4
|
} from "@smithy/smithy-client";
|
|
5
5
|
import { BraketServiceException as __BaseException } from "./BraketServiceException";
|
|
6
6
|
export declare class AccessDeniedException extends __BaseException {
|
|
@@ -72,7 +72,7 @@ export interface GetDeviceResponse {
|
|
|
72
72
|
providerName: string | undefined;
|
|
73
73
|
deviceType: DeviceType | undefined;
|
|
74
74
|
deviceStatus: DeviceStatus | undefined;
|
|
75
|
-
deviceCapabilities:
|
|
75
|
+
deviceCapabilities: __AutomaticJsonStringConversion | string | undefined;
|
|
76
76
|
deviceQueueInfo?: DeviceQueueInfo[] | undefined;
|
|
77
77
|
}
|
|
78
78
|
export declare class InternalServiceException extends __BaseException {
|
|
@@ -370,11 +370,11 @@ export interface CancelQuantumTaskResponse {
|
|
|
370
370
|
export interface CreateQuantumTaskRequest {
|
|
371
371
|
clientToken?: string | undefined;
|
|
372
372
|
deviceArn: string | undefined;
|
|
373
|
-
deviceParameters?:
|
|
373
|
+
deviceParameters?: __AutomaticJsonStringConversion | string | undefined;
|
|
374
374
|
shots: number | undefined;
|
|
375
375
|
outputS3Bucket: string | undefined;
|
|
376
376
|
outputS3KeyPrefix: string | undefined;
|
|
377
|
-
action:
|
|
377
|
+
action: __AutomaticJsonStringConversion | string | undefined;
|
|
378
378
|
tags?: Record<string, string> | undefined;
|
|
379
379
|
jobToken?: string | undefined;
|
|
380
380
|
associations?: Association[] | undefined;
|
|
@@ -413,7 +413,7 @@ export interface GetQuantumTaskResponse {
|
|
|
413
413
|
status: QuantumTaskStatus | undefined;
|
|
414
414
|
failureReason?: string | undefined;
|
|
415
415
|
deviceArn: string | undefined;
|
|
416
|
-
deviceParameters:
|
|
416
|
+
deviceParameters: __AutomaticJsonStringConversion | string | undefined;
|
|
417
417
|
shots: number | undefined;
|
|
418
418
|
outputS3Bucket: string | undefined;
|
|
419
419
|
outputS3Directory: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-braket",
|
|
3
3
|
"description": "AWS SDK for JavaScript Braket Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.709.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-braket",
|
|
@@ -20,43 +20,43 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.5.
|
|
38
|
-
"@smithy/fetch-http-handler": "^4.1.
|
|
39
|
-
"@smithy/hash-node": "^3.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^3.2.
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
44
|
-
"@smithy/middleware-serde": "^3.0.
|
|
45
|
-
"@smithy/middleware-stack": "^3.0.
|
|
46
|
-
"@smithy/node-config-provider": "^3.1.
|
|
47
|
-
"@smithy/node-http-handler": "^3.3.
|
|
48
|
-
"@smithy/protocol-http": "^4.1.
|
|
49
|
-
"@smithy/smithy-client": "^3.
|
|
50
|
-
"@smithy/types": "^3.7.
|
|
51
|
-
"@smithy/url-parser": "^3.0.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.709.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.709.0",
|
|
25
|
+
"@aws-sdk/core": "3.709.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.709.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.709.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.709.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.709.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.709.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.709.0",
|
|
32
|
+
"@aws-sdk/types": "3.709.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.709.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.709.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.709.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.13",
|
|
37
|
+
"@smithy/core": "^2.5.5",
|
|
38
|
+
"@smithy/fetch-http-handler": "^4.1.2",
|
|
39
|
+
"@smithy/hash-node": "^3.0.11",
|
|
40
|
+
"@smithy/invalid-dependency": "^3.0.11",
|
|
41
|
+
"@smithy/middleware-content-length": "^3.0.13",
|
|
42
|
+
"@smithy/middleware-endpoint": "^3.2.5",
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.30",
|
|
44
|
+
"@smithy/middleware-serde": "^3.0.11",
|
|
45
|
+
"@smithy/middleware-stack": "^3.0.11",
|
|
46
|
+
"@smithy/node-config-provider": "^3.1.12",
|
|
47
|
+
"@smithy/node-http-handler": "^3.3.2",
|
|
48
|
+
"@smithy/protocol-http": "^4.1.8",
|
|
49
|
+
"@smithy/smithy-client": "^3.5.0",
|
|
50
|
+
"@smithy/types": "^3.7.2",
|
|
51
|
+
"@smithy/url-parser": "^3.0.11",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
57
|
-
"@smithy/util-endpoints": "^2.1.
|
|
58
|
-
"@smithy/util-middleware": "^3.0.
|
|
59
|
-
"@smithy/util-retry": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.30",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.30",
|
|
57
|
+
"@smithy/util-endpoints": "^2.1.7",
|
|
58
|
+
"@smithy/util-middleware": "^3.0.11",
|
|
59
|
+
"@smithy/util-retry": "^3.0.11",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|
|
61
61
|
"@types/uuid": "^9.0.1",
|
|
62
62
|
"tslib": "^2.6.2",
|