@aws-sdk/client-braket 3.926.0 → 3.928.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 +15 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -1
- package/dist-types/commands/CreateQuantumTaskCommand.d.ts +3 -0
- package/dist-types/commands/GetQuantumTaskCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +54 -2
- package/dist-types/ts3.4/models/models_0.d.ts +26 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -335,6 +335,18 @@ const SearchJobsFilterOperator = {
|
|
|
335
335
|
LT: "LT",
|
|
336
336
|
LTE: "LTE",
|
|
337
337
|
};
|
|
338
|
+
const ExperimentalCapabilitiesEnablementType = {
|
|
339
|
+
ALL: "ALL",
|
|
340
|
+
NONE: "NONE",
|
|
341
|
+
};
|
|
342
|
+
exports.ExperimentalCapabilities = void 0;
|
|
343
|
+
(function (ExperimentalCapabilities) {
|
|
344
|
+
ExperimentalCapabilities.visit = (value, visitor) => {
|
|
345
|
+
if (value.enabled !== undefined)
|
|
346
|
+
return visitor.enabled(value.enabled);
|
|
347
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
348
|
+
};
|
|
349
|
+
})(exports.ExperimentalCapabilities || (exports.ExperimentalCapabilities = {}));
|
|
338
350
|
const QuantumTaskAdditionalAttributeName = {
|
|
339
351
|
QUEUE_INFO: "QueueInfo",
|
|
340
352
|
};
|
|
@@ -417,6 +429,7 @@ const se_CreateQuantumTaskCommand = async (input, context) => {
|
|
|
417
429
|
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
418
430
|
deviceArn: [],
|
|
419
431
|
deviceParameters: (_) => smithyClient.LazyJsonString.from(_),
|
|
432
|
+
experimentalCapabilities: (_) => smithyClient._json(_),
|
|
420
433
|
jobToken: [],
|
|
421
434
|
outputS3Bucket: [],
|
|
422
435
|
outputS3KeyPrefix: [],
|
|
@@ -666,6 +679,7 @@ const de_GetQuantumTaskCommand = async (output, context) => {
|
|
|
666
679
|
deviceArn: smithyClient.expectString,
|
|
667
680
|
deviceParameters: smithyClient.LazyJsonString.from,
|
|
668
681
|
endedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
682
|
+
experimentalCapabilities: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
669
683
|
failureReason: smithyClient.expectString,
|
|
670
684
|
jobArn: smithyClient.expectString,
|
|
671
685
|
numSuccessfulShots: smithyClient.expectLong,
|
|
@@ -1257,6 +1271,7 @@ exports.DeviceOfflineException = DeviceOfflineException;
|
|
|
1257
1271
|
exports.DeviceRetiredException = DeviceRetiredException;
|
|
1258
1272
|
exports.DeviceStatus = DeviceStatus;
|
|
1259
1273
|
exports.DeviceType = DeviceType;
|
|
1274
|
+
exports.ExperimentalCapabilitiesEnablementType = ExperimentalCapabilitiesEnablementType;
|
|
1260
1275
|
exports.GetDeviceCommand = GetDeviceCommand;
|
|
1261
1276
|
exports.GetJobCommand = GetJobCommand;
|
|
1262
1277
|
exports.GetQuantumTaskCommand = GetQuantumTaskCommand;
|
|
@@ -216,6 +216,18 @@ export const SearchJobsFilterOperator = {
|
|
|
216
216
|
LT: "LT",
|
|
217
217
|
LTE: "LTE",
|
|
218
218
|
};
|
|
219
|
+
export const ExperimentalCapabilitiesEnablementType = {
|
|
220
|
+
ALL: "ALL",
|
|
221
|
+
NONE: "NONE",
|
|
222
|
+
};
|
|
223
|
+
export var ExperimentalCapabilities;
|
|
224
|
+
(function (ExperimentalCapabilities) {
|
|
225
|
+
ExperimentalCapabilities.visit = (value, visitor) => {
|
|
226
|
+
if (value.enabled !== undefined)
|
|
227
|
+
return visitor.enabled(value.enabled);
|
|
228
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
229
|
+
};
|
|
230
|
+
})(ExperimentalCapabilities || (ExperimentalCapabilities = {}));
|
|
219
231
|
export const QuantumTaskAdditionalAttributeName = {
|
|
220
232
|
QUEUE_INFO: "QueueInfo",
|
|
221
233
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
@@ -65,6 +65,7 @@ export const se_CreateQuantumTaskCommand = async (input, context) => {
|
|
|
65
65
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
66
66
|
deviceArn: [],
|
|
67
67
|
deviceParameters: (_) => __LazyJsonString.from(_),
|
|
68
|
+
experimentalCapabilities: (_) => _json(_),
|
|
68
69
|
jobToken: [],
|
|
69
70
|
outputS3Bucket: [],
|
|
70
71
|
outputS3KeyPrefix: [],
|
|
@@ -314,6 +315,7 @@ export const de_GetQuantumTaskCommand = async (output, context) => {
|
|
|
314
315
|
deviceArn: __expectString,
|
|
315
316
|
deviceParameters: __LazyJsonString.from,
|
|
316
317
|
endedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
318
|
+
experimentalCapabilities: (_) => _json(__expectUnion(_)),
|
|
317
319
|
failureReason: __expectString,
|
|
318
320
|
jobArn: __expectString,
|
|
319
321
|
numSuccessfulShots: __expectLong,
|
|
@@ -54,6 +54,9 @@ declare const CreateQuantumTaskCommand_base: {
|
|
|
54
54
|
* type: "STRING_VALUE", // required
|
|
55
55
|
* },
|
|
56
56
|
* ],
|
|
57
|
+
* experimentalCapabilities: { // ExperimentalCapabilities Union: only one key present
|
|
58
|
+
* enabled: "STRING_VALUE",
|
|
59
|
+
* },
|
|
57
60
|
* };
|
|
58
61
|
* const command = new CreateQuantumTaskCommand(input);
|
|
59
62
|
* const response = await client.send(command);
|
|
@@ -77,6 +77,9 @@ declare const GetQuantumTaskCommand_base: {
|
|
|
77
77
|
* // programCount: Number("long"),
|
|
78
78
|
* // executableCount: Number("long"),
|
|
79
79
|
* // },
|
|
80
|
+
* // experimentalCapabilities: { // ExperimentalCapabilities Union: only one key present
|
|
81
|
+
* // enabled: "STRING_VALUE",
|
|
82
|
+
* // },
|
|
80
83
|
* // };
|
|
81
84
|
*
|
|
82
85
|
* ```
|
|
@@ -23,12 +23,12 @@ export interface ActionMetadata {
|
|
|
23
23
|
*/
|
|
24
24
|
actionType: string | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* <p>The number of programs in a program set. This is only available for a
|
|
26
|
+
* <p>The number of programs in a program set. This is only available for a program set.</p>
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
29
|
programCount?: number | undefined;
|
|
30
30
|
/**
|
|
31
|
-
* <p>The number of executables in a program set. This is only available for a
|
|
31
|
+
* <p>The number of executables in a program set. This is only available for a program set.</p>
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
34
|
executableCount?: number | undefined;
|
|
@@ -1128,6 +1128,48 @@ export interface CancelQuantumTaskResponse {
|
|
|
1128
1128
|
*/
|
|
1129
1129
|
cancellationStatus: CancellationStatus | undefined;
|
|
1130
1130
|
}
|
|
1131
|
+
/**
|
|
1132
|
+
* @public
|
|
1133
|
+
* @enum
|
|
1134
|
+
*/
|
|
1135
|
+
export declare const ExperimentalCapabilitiesEnablementType: {
|
|
1136
|
+
readonly ALL: "ALL";
|
|
1137
|
+
readonly NONE: "NONE";
|
|
1138
|
+
};
|
|
1139
|
+
/**
|
|
1140
|
+
* @public
|
|
1141
|
+
*/
|
|
1142
|
+
export type ExperimentalCapabilitiesEnablementType = (typeof ExperimentalCapabilitiesEnablementType)[keyof typeof ExperimentalCapabilitiesEnablementType];
|
|
1143
|
+
/**
|
|
1144
|
+
* <p>Enabled experimental capabilities for quantum hardware. Note that the use of these features may impact device capabilities and performance beyond its standard specifications.</p>
|
|
1145
|
+
* @public
|
|
1146
|
+
*/
|
|
1147
|
+
export type ExperimentalCapabilities = ExperimentalCapabilities.EnabledMember | ExperimentalCapabilities.$UnknownMember;
|
|
1148
|
+
/**
|
|
1149
|
+
* @public
|
|
1150
|
+
*/
|
|
1151
|
+
export declare namespace ExperimentalCapabilities {
|
|
1152
|
+
/**
|
|
1153
|
+
* <p>Enabled experimental capabilities.</p>
|
|
1154
|
+
* @public
|
|
1155
|
+
*/
|
|
1156
|
+
interface EnabledMember {
|
|
1157
|
+
enabled: ExperimentalCapabilitiesEnablementType;
|
|
1158
|
+
$unknown?: never;
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* @public
|
|
1162
|
+
*/
|
|
1163
|
+
interface $UnknownMember {
|
|
1164
|
+
enabled?: never;
|
|
1165
|
+
$unknown: [string, any];
|
|
1166
|
+
}
|
|
1167
|
+
interface Visitor<T> {
|
|
1168
|
+
enabled: (value: ExperimentalCapabilitiesEnablementType) => T;
|
|
1169
|
+
_: (name: string, value: any) => T;
|
|
1170
|
+
}
|
|
1171
|
+
const visit: <T>(value: ExperimentalCapabilities, visitor: Visitor<T>) => T;
|
|
1172
|
+
}
|
|
1131
1173
|
/**
|
|
1132
1174
|
* @public
|
|
1133
1175
|
*/
|
|
@@ -1182,6 +1224,11 @@ export interface CreateQuantumTaskRequest {
|
|
|
1182
1224
|
* @public
|
|
1183
1225
|
*/
|
|
1184
1226
|
associations?: Association[] | undefined;
|
|
1227
|
+
/**
|
|
1228
|
+
* <p>Enable experimental capabilities for the quantum task.</p>
|
|
1229
|
+
* @public
|
|
1230
|
+
*/
|
|
1231
|
+
experimentalCapabilities?: ExperimentalCapabilities | undefined;
|
|
1185
1232
|
}
|
|
1186
1233
|
/**
|
|
1187
1234
|
* @public
|
|
@@ -1346,6 +1393,11 @@ export interface GetQuantumTaskResponse {
|
|
|
1346
1393
|
* @public
|
|
1347
1394
|
*/
|
|
1348
1395
|
actionMetadata?: ActionMetadata | undefined;
|
|
1396
|
+
/**
|
|
1397
|
+
* <p>Enabled experimental capabilities for the quantum task, if any.</p>
|
|
1398
|
+
* @public
|
|
1399
|
+
*/
|
|
1400
|
+
experimentalCapabilities?: ExperimentalCapabilities | undefined;
|
|
1349
1401
|
}
|
|
1350
1402
|
/**
|
|
1351
1403
|
* @public
|
|
@@ -384,6 +384,30 @@ export interface CancelQuantumTaskResponse {
|
|
|
384
384
|
quantumTaskArn: string | undefined;
|
|
385
385
|
cancellationStatus: CancellationStatus | undefined;
|
|
386
386
|
}
|
|
387
|
+
export declare const ExperimentalCapabilitiesEnablementType: {
|
|
388
|
+
readonly ALL: "ALL";
|
|
389
|
+
readonly NONE: "NONE";
|
|
390
|
+
};
|
|
391
|
+
export type ExperimentalCapabilitiesEnablementType =
|
|
392
|
+
(typeof ExperimentalCapabilitiesEnablementType)[keyof typeof ExperimentalCapabilitiesEnablementType];
|
|
393
|
+
export type ExperimentalCapabilities =
|
|
394
|
+
| ExperimentalCapabilities.EnabledMember
|
|
395
|
+
| ExperimentalCapabilities.$UnknownMember;
|
|
396
|
+
export declare namespace ExperimentalCapabilities {
|
|
397
|
+
interface EnabledMember {
|
|
398
|
+
enabled: ExperimentalCapabilitiesEnablementType;
|
|
399
|
+
$unknown?: never;
|
|
400
|
+
}
|
|
401
|
+
interface $UnknownMember {
|
|
402
|
+
enabled?: never;
|
|
403
|
+
$unknown: [string, any];
|
|
404
|
+
}
|
|
405
|
+
interface Visitor<T> {
|
|
406
|
+
enabled: (value: ExperimentalCapabilitiesEnablementType) => T;
|
|
407
|
+
_: (name: string, value: any) => T;
|
|
408
|
+
}
|
|
409
|
+
const visit: <T>(value: ExperimentalCapabilities, visitor: Visitor<T>) => T;
|
|
410
|
+
}
|
|
387
411
|
export interface CreateQuantumTaskRequest {
|
|
388
412
|
clientToken?: string | undefined;
|
|
389
413
|
deviceArn: string | undefined;
|
|
@@ -395,6 +419,7 @@ export interface CreateQuantumTaskRequest {
|
|
|
395
419
|
tags?: Record<string, string> | undefined;
|
|
396
420
|
jobToken?: string | undefined;
|
|
397
421
|
associations?: Association[] | undefined;
|
|
422
|
+
experimentalCapabilities?: ExperimentalCapabilities | undefined;
|
|
398
423
|
}
|
|
399
424
|
export interface CreateQuantumTaskResponse {
|
|
400
425
|
quantumTaskArn: string | undefined;
|
|
@@ -442,6 +467,7 @@ export interface GetQuantumTaskResponse {
|
|
|
442
467
|
associations?: Association[] | undefined;
|
|
443
468
|
numSuccessfulShots?: number | undefined;
|
|
444
469
|
actionMetadata?: ActionMetadata | undefined;
|
|
470
|
+
experimentalCapabilities?: ExperimentalCapabilities | undefined;
|
|
445
471
|
}
|
|
446
472
|
export declare const SearchQuantumTasksFilterOperator: {
|
|
447
473
|
readonly BETWEEN: "BETWEEN";
|
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.928.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,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.928.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|