@aws-sdk/client-managedblockchain-query 3.1075.0 → 3.1077.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
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultManagedBlockchainQueryHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { BatchGetTokenBalance$, GetAssetContract$, GetTokenBalance$, GetTransaction$, ListAssetContracts$, ListFilteredTransactionEvents$, ListTokenBalances$, ListTransactionEvents$, ListTransactions$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { ManagedBlockchainQueryServiceException } = require("./models/ManagedBlockchainQueryServiceException");
18
- exports.ManagedBlockchainQueryServiceException = ManagedBlockchainQueryServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultManagedBlockchainQueryHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "managedblockchain-query",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultManagedBlockchainQueryHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,693 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://managedblockchain-query-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://managedblockchain-query-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://managedblockchain-query.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://managedblockchain-query.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class ManagedBlockchainQueryServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, ManagedBlockchainQueryServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AccessDeniedException extends ManagedBlockchainQueryServiceException {
141
+ name = "AccessDeniedException";
142
+ $fault = "client";
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ }
151
+ }
152
+ class InternalServerException extends ManagedBlockchainQueryServiceException {
153
+ name = "InternalServerException";
154
+ $fault = "server";
155
+ $retryable = {};
156
+ retryAfterSeconds;
157
+ constructor(opts) {
158
+ super({
159
+ name: "InternalServerException",
160
+ $fault: "server",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, InternalServerException.prototype);
164
+ this.retryAfterSeconds = opts.retryAfterSeconds;
165
+ }
166
+ }
167
+ class ResourceNotFoundException extends ManagedBlockchainQueryServiceException {
168
+ name = "ResourceNotFoundException";
169
+ $fault = "client";
170
+ resourceId;
171
+ resourceType;
172
+ constructor(opts) {
173
+ super({
174
+ name: "ResourceNotFoundException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
179
+ this.resourceId = opts.resourceId;
180
+ this.resourceType = opts.resourceType;
181
+ }
182
+ }
183
+ class ServiceQuotaExceededException extends ManagedBlockchainQueryServiceException {
184
+ name = "ServiceQuotaExceededException";
185
+ $fault = "client";
186
+ resourceId;
187
+ resourceType;
188
+ serviceCode;
189
+ quotaCode;
190
+ constructor(opts) {
191
+ super({
192
+ name: "ServiceQuotaExceededException",
193
+ $fault: "client",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
197
+ this.resourceId = opts.resourceId;
198
+ this.resourceType = opts.resourceType;
199
+ this.serviceCode = opts.serviceCode;
200
+ this.quotaCode = opts.quotaCode;
201
+ }
202
+ }
203
+ class ThrottlingException extends ManagedBlockchainQueryServiceException {
204
+ name = "ThrottlingException";
205
+ $fault = "client";
206
+ $retryable = {
207
+ throttling: true,
208
+ };
209
+ serviceCode;
210
+ quotaCode;
211
+ retryAfterSeconds;
212
+ constructor(opts) {
213
+ super({
214
+ name: "ThrottlingException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
219
+ this.serviceCode = opts.serviceCode;
220
+ this.quotaCode = opts.quotaCode;
221
+ this.retryAfterSeconds = opts.retryAfterSeconds;
222
+ }
223
+ }
224
+ class ValidationException extends ManagedBlockchainQueryServiceException {
225
+ name = "ValidationException";
226
+ $fault = "client";
227
+ reason;
228
+ fieldList;
229
+ constructor(opts) {
230
+ super({
231
+ name: "ValidationException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, ValidationException.prototype);
236
+ this.reason = opts.reason;
237
+ this.fieldList = opts.fieldList;
238
+ }
239
+ }
240
+
241
+ const _AC = "AssetContract";
242
+ const _ACL = "AssetContractList";
243
+ const _ADE = "AccessDeniedException";
244
+ const _AIF = "AddressIdentifierFilter";
245
+ const _BGTB = "BatchGetTokenBalance";
246
+ const _BGTBE = "BatchGetTokenBalanceErrors";
247
+ const _BGTBEI = "BatchGetTokenBalanceErrorItem";
248
+ const _BGTBI = "BatchGetTokenBalanceInput";
249
+ const _BGTBII = "BatchGetTokenBalanceInputItem";
250
+ const _BGTBO = "BatchGetTokenBalanceOutput";
251
+ const _BGTBOI = "BatchGetTokenBalanceOutputItem";
252
+ const _BGTBOL = "BatchGetTokenBalanceOutputList";
253
+ const _BI = "BlockchainInstant";
254
+ const _CF = "ContractFilter";
255
+ const _CI = "ContractIdentifier";
256
+ const _CM = "ContractMetadata";
257
+ const _CSF = "ConfirmationStatusFilter";
258
+ const _GAC = "GetAssetContract";
259
+ const _GACI = "GetAssetContractInput";
260
+ const _GACO = "GetAssetContractOutput";
261
+ const _GT = "GetTransaction";
262
+ const _GTB = "GetTokenBalance";
263
+ const _GTBI = "GetTokenBalanceInput";
264
+ const _GTBIL = "GetTokenBalanceInputList";
265
+ const _GTBO = "GetTokenBalanceOutput";
266
+ const _GTI = "GetTransactionInput";
267
+ const _GTO = "GetTransactionOutput";
268
+ const _ISE = "InternalServerException";
269
+ const _LAC = "ListAssetContracts";
270
+ const _LACI = "ListAssetContractsInput";
271
+ const _LACO = "ListAssetContractsOutput";
272
+ const _LFTE = "ListFilteredTransactionEvents";
273
+ const _LFTEI = "ListFilteredTransactionEventsInput";
274
+ const _LFTEO = "ListFilteredTransactionEventsOutput";
275
+ const _LFTES = "ListFilteredTransactionEventsSort";
276
+ const _LT = "ListTransactions";
277
+ const _LTB = "ListTokenBalances";
278
+ const _LTBI = "ListTokenBalancesInput";
279
+ const _LTBO = "ListTokenBalancesOutput";
280
+ const _LTE = "ListTransactionEvents";
281
+ const _LTEI = "ListTransactionEventsInput";
282
+ const _LTEO = "ListTransactionEventsOutput";
283
+ const _LTI = "ListTransactionsInput";
284
+ const _LTO = "ListTransactionsOutput";
285
+ const _LTS = "ListTransactionsSort";
286
+ const _OF = "OwnerFilter";
287
+ const _OI = "OwnerIdentifier";
288
+ const _RA = "Retry-After";
289
+ const _RNFE = "ResourceNotFoundException";
290
+ const _SQEE = "ServiceQuotaExceededException";
291
+ const _T = "Transaction";
292
+ const _TB = "TokenBalance";
293
+ const _TBL = "TokenBalanceList";
294
+ const _TE = "ThrottlingException";
295
+ const _TEL = "TransactionEventList";
296
+ const _TEr = "TransactionEvent";
297
+ const _TF = "TimeFilter";
298
+ const _TFo = "TokenFilter";
299
+ const _TI = "TokenIdentifier";
300
+ const _TOI = "TransactionOutputItem";
301
+ const _TOL = "TransactionOutputList";
302
+ const _VE = "ValidationException";
303
+ const _VEF = "ValidationExceptionField";
304
+ const _VEFL = "ValidationExceptionFieldList";
305
+ const _VF = "VoutFilter";
306
+ const _a = "address";
307
+ const _aBI = "atBlockchainInstant";
308
+ const _aIF = "addressIdentifierFilter";
309
+ const _b = "balance";
310
+ const _bH = "blockHash";
311
+ const _bI = "blockchainInstant";
312
+ const _bN = "blockNumber";
313
+ const _c = "client";
314
+ const _cA = "contractAddress";
315
+ const _cF = "contractFilter";
316
+ const _cGU = "cumulativeGasUsed";
317
+ const _cI = "contractIdentifier";
318
+ const _cS = "confirmationStatus";
319
+ const _cSF = "confirmationStatusFilter";
320
+ const _co = "contracts";
321
+ const _d = "decimals";
322
+ const _dA = "deployerAddress";
323
+ const _e = "error";
324
+ const _eC = "errorCode";
325
+ const _eGP = "effectiveGasPrice";
326
+ const _eM = "errorMessage";
327
+ const _eS = "executionStatus";
328
+ const _eT = "errorType";
329
+ const _eTv = "eventType";
330
+ const _er = "errors";
331
+ const _ev = "events";
332
+ const _f = "from";
333
+ const _fBI = "fromBlockchainInstant";
334
+ const _fL = "fieldList";
335
+ const _gTBI = "getTokenBalanceInputs";
336
+ const _gU = "gasUsed";
337
+ const _h = "http";
338
+ const _hE = "httpError";
339
+ const _hH = "httpHeader";
340
+ const _i = "include";
341
+ const _lUT = "lastUpdatedTime";
342
+ const _m = "message";
343
+ const _mR = "maxResults";
344
+ const _me = "metadata";
345
+ const _n = "network";
346
+ const _nOT = "numberOfTransactions";
347
+ const _nT = "nextToken";
348
+ const _na = "name";
349
+ const _oF = "ownerFilter";
350
+ const _oI = "ownerIdentifier";
351
+ const _qC = "quotaCode";
352
+ const _r = "reason";
353
+ const _rAS = "retryAfterSeconds";
354
+ const _rI = "resourceId";
355
+ const _rT = "resourceType";
356
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.managedblockchainquery";
357
+ const _sB = "sortBy";
358
+ const _sC = "serviceCode";
359
+ const _sO = "sortOrder";
360
+ const _sR = "signatureR";
361
+ const _sS = "signatureS";
362
+ const _sV = "signatureV";
363
+ const _sVI = "spentVoutIndex";
364
+ const _sVTH = "spentVoutTransactionHash";
365
+ const _sVTI = "spentVoutTransactionId";
366
+ const _se = "server";
367
+ const _so = "sort";
368
+ const _sy = "symbol";
369
+ const _t = "time";
370
+ const _tB = "tokenBalances";
371
+ const _tBI = "toBlockchainInstant";
372
+ const _tETA = "transactionEventToAddress";
373
+ const _tF = "timeFilter";
374
+ const _tFo = "tokenFilter";
375
+ const _tFr = "transactionFee";
376
+ const _tH = "transactionHash";
377
+ const _tI = "tokenIdentifier";
378
+ const _tIo = "tokenId";
379
+ const _tIr = "transactionId";
380
+ const _tIra = "transactionIndex";
381
+ const _tS = "tokenStandard";
382
+ const _tT = "transactionTimestamp";
383
+ const _to = "to";
384
+ const _tr = "transaction";
385
+ const _tra = "transactions";
386
+ const _v = "value";
387
+ const _vF = "voutFilter";
388
+ const _vI = "voutIndex";
389
+ const _vS = "voutSpent";
390
+ const n0 = "com.amazonaws.managedblockchainquery";
391
+ const _s_registry = TypeRegistry.for(_s);
392
+ var ManagedBlockchainQueryServiceException$ = [-3, _s, "ManagedBlockchainQueryServiceException", 0, [], []];
393
+ _s_registry.registerError(ManagedBlockchainQueryServiceException$, ManagedBlockchainQueryServiceException);
394
+ const n0_registry = TypeRegistry.for(n0);
395
+ var AccessDeniedException$ = [-3, n0, _ADE,
396
+ { [_e]: _c, [_hE]: 403 },
397
+ [_m],
398
+ [0], 1
399
+ ];
400
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
401
+ var InternalServerException$ = [-3, n0, _ISE,
402
+ { [_e]: _se, [_hE]: 500 },
403
+ [_m, _rAS],
404
+ [0, [1, { [_hH]: _RA }]], 1
405
+ ];
406
+ n0_registry.registerError(InternalServerException$, InternalServerException);
407
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
408
+ { [_e]: _c, [_hE]: 404 },
409
+ [_m, _rI, _rT],
410
+ [0, 0, 0], 3
411
+ ];
412
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
413
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
414
+ { [_e]: _c, [_hE]: 402 },
415
+ [_m, _rI, _rT, _sC, _qC],
416
+ [0, 0, 0, 0, 0], 5
417
+ ];
418
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
419
+ var ThrottlingException$ = [-3, n0, _TE,
420
+ { [_e]: _c, [_hE]: 429 },
421
+ [_m, _sC, _qC, _rAS],
422
+ [0, 0, 0, [1, { [_hH]: _RA }]], 3
423
+ ];
424
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
425
+ var ValidationException$ = [-3, n0, _VE,
426
+ { [_e]: _c, [_hE]: 400 },
427
+ [_m, _r, _fL],
428
+ [0, 0, () => ValidationExceptionFieldList], 2
429
+ ];
430
+ n0_registry.registerError(ValidationException$, ValidationException);
431
+ const errorTypeRegistries = [
432
+ _s_registry,
433
+ n0_registry,
434
+ ];
435
+ var AddressIdentifierFilter$ = [3, n0, _AIF,
436
+ 0,
437
+ [_tETA],
438
+ [64 | 0], 1
439
+ ];
440
+ var AssetContract$ = [3, n0, _AC,
441
+ 0,
442
+ [_cI, _tS, _dA],
443
+ [() => ContractIdentifier$, 0, 0], 3
444
+ ];
445
+ var BatchGetTokenBalanceErrorItem$ = [3, n0, _BGTBEI,
446
+ 0,
447
+ [_eC, _eM, _eT, _tI, _oI, _aBI],
448
+ [0, 0, 0, () => TokenIdentifier$, () => OwnerIdentifier$, () => BlockchainInstant$], 3
449
+ ];
450
+ var BatchGetTokenBalanceInput$ = [3, n0, _BGTBI,
451
+ 0,
452
+ [_gTBI],
453
+ [() => GetTokenBalanceInputList]
454
+ ];
455
+ var BatchGetTokenBalanceInputItem$ = [3, n0, _BGTBII,
456
+ 0,
457
+ [_tI, _oI, _aBI],
458
+ [() => TokenIdentifier$, () => OwnerIdentifier$, () => BlockchainInstant$], 2
459
+ ];
460
+ var BatchGetTokenBalanceOutput$ = [3, n0, _BGTBO,
461
+ 0,
462
+ [_tB, _er],
463
+ [() => BatchGetTokenBalanceOutputList, () => BatchGetTokenBalanceErrors], 2
464
+ ];
465
+ var BatchGetTokenBalanceOutputItem$ = [3, n0, _BGTBOI,
466
+ 0,
467
+ [_b, _aBI, _oI, _tI, _lUT],
468
+ [0, () => BlockchainInstant$, () => OwnerIdentifier$, () => TokenIdentifier$, () => BlockchainInstant$], 2
469
+ ];
470
+ var BlockchainInstant$ = [3, n0, _BI,
471
+ 0,
472
+ [_t],
473
+ [4]
474
+ ];
475
+ var ConfirmationStatusFilter$ = [3, n0, _CSF,
476
+ 0,
477
+ [_i],
478
+ [64 | 0], 1
479
+ ];
480
+ var ContractFilter$ = [3, n0, _CF,
481
+ 0,
482
+ [_n, _tS, _dA],
483
+ [0, 0, 0], 3
484
+ ];
485
+ var ContractIdentifier$ = [3, n0, _CI,
486
+ 0,
487
+ [_n, _cA],
488
+ [0, 0], 2
489
+ ];
490
+ var ContractMetadata$ = [3, n0, _CM,
491
+ 0,
492
+ [_na, _sy, _d],
493
+ [0, 0, 1]
494
+ ];
495
+ var GetAssetContractInput$ = [3, n0, _GACI,
496
+ 0,
497
+ [_cI],
498
+ [() => ContractIdentifier$], 1
499
+ ];
500
+ var GetAssetContractOutput$ = [3, n0, _GACO,
501
+ 0,
502
+ [_cI, _tS, _dA, _me],
503
+ [() => ContractIdentifier$, 0, 0, () => ContractMetadata$], 3
504
+ ];
505
+ var GetTokenBalanceInput$ = [3, n0, _GTBI,
506
+ 0,
507
+ [_tI, _oI, _aBI],
508
+ [() => TokenIdentifier$, () => OwnerIdentifier$, () => BlockchainInstant$], 2
509
+ ];
510
+ var GetTokenBalanceOutput$ = [3, n0, _GTBO,
511
+ 0,
512
+ [_b, _aBI, _oI, _tI, _lUT],
513
+ [0, () => BlockchainInstant$, () => OwnerIdentifier$, () => TokenIdentifier$, () => BlockchainInstant$], 2
514
+ ];
515
+ var GetTransactionInput$ = [3, n0, _GTI,
516
+ 0,
517
+ [_n, _tH, _tIr],
518
+ [0, 0, 0], 1
519
+ ];
520
+ var GetTransactionOutput$ = [3, n0, _GTO,
521
+ 0,
522
+ [_tr],
523
+ [() => Transaction$], 1
524
+ ];
525
+ var ListAssetContractsInput$ = [3, n0, _LACI,
526
+ 0,
527
+ [_cF, _nT, _mR],
528
+ [() => ContractFilter$, 0, 1], 1
529
+ ];
530
+ var ListAssetContractsOutput$ = [3, n0, _LACO,
531
+ 0,
532
+ [_co, _nT],
533
+ [() => AssetContractList, 0], 1
534
+ ];
535
+ var ListFilteredTransactionEventsInput$ = [3, n0, _LFTEI,
536
+ 0,
537
+ [_n, _aIF, _tF, _vF, _cSF, _so, _nT, _mR],
538
+ [0, () => AddressIdentifierFilter$, () => TimeFilter$, () => VoutFilter$, () => ConfirmationStatusFilter$, () => ListFilteredTransactionEventsSort$, 0, 1], 2
539
+ ];
540
+ var ListFilteredTransactionEventsOutput$ = [3, n0, _LFTEO,
541
+ 0,
542
+ [_ev, _nT],
543
+ [() => TransactionEventList, 0], 1
544
+ ];
545
+ var ListFilteredTransactionEventsSort$ = [3, n0, _LFTES,
546
+ 0,
547
+ [_sB, _sO],
548
+ [0, 0]
549
+ ];
550
+ var ListTokenBalancesInput$ = [3, n0, _LTBI,
551
+ 0,
552
+ [_tFo, _oF, _nT, _mR],
553
+ [() => TokenFilter$, () => OwnerFilter$, 0, 1], 1
554
+ ];
555
+ var ListTokenBalancesOutput$ = [3, n0, _LTBO,
556
+ 0,
557
+ [_tB, _nT],
558
+ [() => TokenBalanceList, 0], 1
559
+ ];
560
+ var ListTransactionEventsInput$ = [3, n0, _LTEI,
561
+ 0,
562
+ [_n, _tH, _tIr, _nT, _mR],
563
+ [0, 0, 0, 0, 1], 1
564
+ ];
565
+ var ListTransactionEventsOutput$ = [3, n0, _LTEO,
566
+ 0,
567
+ [_ev, _nT],
568
+ [() => TransactionEventList, 0], 1
569
+ ];
570
+ var ListTransactionsInput$ = [3, n0, _LTI,
571
+ 0,
572
+ [_a, _n, _fBI, _tBI, _so, _nT, _mR, _cSF],
573
+ [0, 0, () => BlockchainInstant$, () => BlockchainInstant$, () => ListTransactionsSort$, 0, 1, () => ConfirmationStatusFilter$], 2
574
+ ];
575
+ var ListTransactionsOutput$ = [3, n0, _LTO,
576
+ 0,
577
+ [_tra, _nT],
578
+ [() => TransactionOutputList, 0], 1
579
+ ];
580
+ var ListTransactionsSort$ = [3, n0, _LTS,
581
+ 0,
582
+ [_sB, _sO],
583
+ [0, 0]
584
+ ];
585
+ var OwnerFilter$ = [3, n0, _OF,
586
+ 0,
587
+ [_a],
588
+ [0], 1
589
+ ];
590
+ var OwnerIdentifier$ = [3, n0, _OI,
591
+ 0,
592
+ [_a],
593
+ [0], 1
594
+ ];
595
+ var TimeFilter$ = [3, n0, _TF,
596
+ 0,
597
+ [_f, _to],
598
+ [() => BlockchainInstant$, () => BlockchainInstant$]
599
+ ];
600
+ var TokenBalance$ = [3, n0, _TB,
601
+ 0,
602
+ [_b, _aBI, _oI, _tI, _lUT],
603
+ [0, () => BlockchainInstant$, () => OwnerIdentifier$, () => TokenIdentifier$, () => BlockchainInstant$], 2
604
+ ];
605
+ var TokenFilter$ = [3, n0, _TFo,
606
+ 0,
607
+ [_n, _cA, _tIo],
608
+ [0, 0, 0], 1
609
+ ];
610
+ var TokenIdentifier$ = [3, n0, _TI,
611
+ 0,
612
+ [_n, _cA, _tIo],
613
+ [0, 0, 0], 1
614
+ ];
615
+ var Transaction$ = [3, n0, _T,
616
+ 0,
617
+ [_n, _tH, _tT, _tIra, _nOT, _to, _bH, _bN, _f, _cA, _gU, _cGU, _eGP, _sV, _sR, _sS, _tFr, _tIr, _cS, _eS],
618
+ [0, 0, 4, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], 6
619
+ ];
620
+ var TransactionEvent$ = [3, n0, _TEr,
621
+ 0,
622
+ [_n, _tH, _eTv, _f, _to, _v, _cA, _tIo, _tIr, _vI, _vS, _sVTI, _sVTH, _sVI, _bI, _cS],
623
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 1, () => BlockchainInstant$, 0], 3
624
+ ];
625
+ var TransactionOutputItem$ = [3, n0, _TOI,
626
+ 0,
627
+ [_tH, _n, _tT, _tIr, _cS],
628
+ [0, 0, 4, 0, 0], 3
629
+ ];
630
+ var ValidationExceptionField$ = [3, n0, _VEF,
631
+ 0,
632
+ [_na, _m],
633
+ [0, 0], 2
634
+ ];
635
+ var VoutFilter$ = [3, n0, _VF,
636
+ 0,
637
+ [_vS],
638
+ [2], 1
639
+ ];
640
+ var AssetContractList = [1, n0, _ACL,
641
+ 0, () => AssetContract$
642
+ ];
643
+ var BatchGetTokenBalanceErrors = [1, n0, _BGTBE,
644
+ 0, () => BatchGetTokenBalanceErrorItem$
645
+ ];
646
+ var BatchGetTokenBalanceOutputList = [1, n0, _BGTBOL,
647
+ 0, () => BatchGetTokenBalanceOutputItem$
648
+ ];
649
+ var GetTokenBalanceInputList = [1, n0, _GTBIL,
650
+ 0, () => BatchGetTokenBalanceInputItem$
651
+ ];
652
+ var TokenBalanceList = [1, n0, _TBL,
653
+ 0, () => TokenBalance$
654
+ ];
655
+ var TransactionEventList = [1, n0, _TEL,
656
+ 0, () => TransactionEvent$
657
+ ];
658
+ var TransactionOutputList = [1, n0, _TOL,
659
+ 0, () => TransactionOutputItem$
660
+ ];
661
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
662
+ 0, () => ValidationExceptionField$
663
+ ];
664
+ var BatchGetTokenBalance$ = [9, n0, _BGTB,
665
+ { [_h]: ["POST", "/batch-get-token-balance", 200] }, () => BatchGetTokenBalanceInput$, () => BatchGetTokenBalanceOutput$
666
+ ];
667
+ var GetAssetContract$ = [9, n0, _GAC,
668
+ { [_h]: ["POST", "/get-asset-contract", 200] }, () => GetAssetContractInput$, () => GetAssetContractOutput$
669
+ ];
670
+ var GetTokenBalance$ = [9, n0, _GTB,
671
+ { [_h]: ["POST", "/get-token-balance", 200] }, () => GetTokenBalanceInput$, () => GetTokenBalanceOutput$
672
+ ];
673
+ var GetTransaction$ = [9, n0, _GT,
674
+ { [_h]: ["POST", "/get-transaction", 200] }, () => GetTransactionInput$, () => GetTransactionOutput$
675
+ ];
676
+ var ListAssetContracts$ = [9, n0, _LAC,
677
+ { [_h]: ["POST", "/list-asset-contracts", 200] }, () => ListAssetContractsInput$, () => ListAssetContractsOutput$
678
+ ];
679
+ var ListFilteredTransactionEvents$ = [9, n0, _LFTE,
680
+ { [_h]: ["POST", "/list-filtered-transaction-events", 200] }, () => ListFilteredTransactionEventsInput$, () => ListFilteredTransactionEventsOutput$
681
+ ];
682
+ var ListTokenBalances$ = [9, n0, _LTB,
683
+ { [_h]: ["POST", "/list-token-balances", 200] }, () => ListTokenBalancesInput$, () => ListTokenBalancesOutput$
684
+ ];
685
+ var ListTransactionEvents$ = [9, n0, _LTE,
686
+ { [_h]: ["POST", "/list-transaction-events", 200] }, () => ListTransactionEventsInput$, () => ListTransactionEventsOutput$
687
+ ];
688
+ var ListTransactions$ = [9, n0, _LT,
689
+ { [_h]: ["POST", "/list-transactions", 200] }, () => ListTransactionsInput$, () => ListTransactionsOutput$
690
+ ];
691
+
692
+ const getRuntimeConfig$1 = (config) => {
693
+ return {
694
+ apiVersion: "2023-05-04",
695
+ base64Decoder: config?.base64Decoder ?? fromBase64,
696
+ base64Encoder: config?.base64Encoder ?? toBase64,
697
+ disableHostPrefix: config?.disableHostPrefix ?? false,
698
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
699
+ extensions: config?.extensions ?? [],
700
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultManagedBlockchainQueryHttpAuthSchemeProvider,
701
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
702
+ {
703
+ schemeId: "aws.auth#sigv4",
704
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
705
+ signer: new AwsSdkSigV4Signer(),
706
+ },
707
+ ],
708
+ logger: config?.logger ?? new NoOpLogger(),
709
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
710
+ protocolSettings: config?.protocolSettings ?? {
711
+ defaultNamespace: "com.amazonaws.managedblockchainquery",
712
+ errorTypeRegistries,
713
+ version: "2023-05-04",
714
+ serviceTarget: "TietonChainQueryService",
715
+ },
716
+ serviceId: config?.serviceId ?? "ManagedBlockchain Query",
717
+ sha256: config?.sha256 ?? Sha256,
718
+ urlParser: config?.urlParser ?? parseUrl,
719
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
720
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
721
+ };
722
+ };
723
+
724
+ const getRuntimeConfig = (config) => {
725
+ emitWarningIfUnsupportedVersion(process.version);
726
+ const defaultsMode = resolveDefaultsModeConfig(config);
727
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
728
+ const clientSharedValues = getRuntimeConfig$1(config);
729
+ emitWarningIfUnsupportedVersion$1(process.version);
730
+ const loaderConfig = {
731
+ profile: config?.profile,
732
+ logger: clientSharedValues.logger,
733
+ };
734
+ return {
735
+ ...clientSharedValues,
736
+ ...config,
737
+ runtime: "node",
738
+ defaultsMode,
739
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
740
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
741
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
742
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
743
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
744
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
745
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
746
+ retryMode: config?.retryMode ??
747
+ loadConfig({
748
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
749
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
750
+ }, config),
751
+ streamCollector: config?.streamCollector ?? streamCollector,
752
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
753
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
754
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
755
+ };
756
+ };
757
+
34
758
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
759
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
760
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -307,28 +1031,93 @@ const ListTransactionsSortBy = {
307
1031
  TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP",
308
1032
  };
309
1033
 
1034
+ exports.AccessDeniedException = AccessDeniedException;
1035
+ exports.AccessDeniedException$ = AccessDeniedException$;
1036
+ exports.AddressIdentifierFilter$ = AddressIdentifierFilter$;
1037
+ exports.AssetContract$ = AssetContract$;
1038
+ exports.BatchGetTokenBalance$ = BatchGetTokenBalance$;
310
1039
  exports.BatchGetTokenBalanceCommand = BatchGetTokenBalanceCommand;
1040
+ exports.BatchGetTokenBalanceErrorItem$ = BatchGetTokenBalanceErrorItem$;
1041
+ exports.BatchGetTokenBalanceInput$ = BatchGetTokenBalanceInput$;
1042
+ exports.BatchGetTokenBalanceInputItem$ = BatchGetTokenBalanceInputItem$;
1043
+ exports.BatchGetTokenBalanceOutput$ = BatchGetTokenBalanceOutput$;
1044
+ exports.BatchGetTokenBalanceOutputItem$ = BatchGetTokenBalanceOutputItem$;
1045
+ exports.BlockchainInstant$ = BlockchainInstant$;
311
1046
  exports.ConfirmationStatus = ConfirmationStatus;
1047
+ exports.ConfirmationStatusFilter$ = ConfirmationStatusFilter$;
1048
+ exports.ContractFilter$ = ContractFilter$;
1049
+ exports.ContractIdentifier$ = ContractIdentifier$;
1050
+ exports.ContractMetadata$ = ContractMetadata$;
312
1051
  exports.ErrorType = ErrorType;
313
1052
  exports.ExecutionStatus = ExecutionStatus;
1053
+ exports.GetAssetContract$ = GetAssetContract$;
314
1054
  exports.GetAssetContractCommand = GetAssetContractCommand;
1055
+ exports.GetAssetContractInput$ = GetAssetContractInput$;
1056
+ exports.GetAssetContractOutput$ = GetAssetContractOutput$;
1057
+ exports.GetTokenBalance$ = GetTokenBalance$;
315
1058
  exports.GetTokenBalanceCommand = GetTokenBalanceCommand;
1059
+ exports.GetTokenBalanceInput$ = GetTokenBalanceInput$;
1060
+ exports.GetTokenBalanceOutput$ = GetTokenBalanceOutput$;
1061
+ exports.GetTransaction$ = GetTransaction$;
316
1062
  exports.GetTransactionCommand = GetTransactionCommand;
1063
+ exports.GetTransactionInput$ = GetTransactionInput$;
1064
+ exports.GetTransactionOutput$ = GetTransactionOutput$;
1065
+ exports.InternalServerException = InternalServerException;
1066
+ exports.InternalServerException$ = InternalServerException$;
1067
+ exports.ListAssetContracts$ = ListAssetContracts$;
317
1068
  exports.ListAssetContractsCommand = ListAssetContractsCommand;
1069
+ exports.ListAssetContractsInput$ = ListAssetContractsInput$;
1070
+ exports.ListAssetContractsOutput$ = ListAssetContractsOutput$;
1071
+ exports.ListFilteredTransactionEvents$ = ListFilteredTransactionEvents$;
318
1072
  exports.ListFilteredTransactionEventsCommand = ListFilteredTransactionEventsCommand;
1073
+ exports.ListFilteredTransactionEventsInput$ = ListFilteredTransactionEventsInput$;
1074
+ exports.ListFilteredTransactionEventsOutput$ = ListFilteredTransactionEventsOutput$;
1075
+ exports.ListFilteredTransactionEventsSort$ = ListFilteredTransactionEventsSort$;
319
1076
  exports.ListFilteredTransactionEventsSortBy = ListFilteredTransactionEventsSortBy;
1077
+ exports.ListTokenBalances$ = ListTokenBalances$;
320
1078
  exports.ListTokenBalancesCommand = ListTokenBalancesCommand;
1079
+ exports.ListTokenBalancesInput$ = ListTokenBalancesInput$;
1080
+ exports.ListTokenBalancesOutput$ = ListTokenBalancesOutput$;
1081
+ exports.ListTransactionEvents$ = ListTransactionEvents$;
321
1082
  exports.ListTransactionEventsCommand = ListTransactionEventsCommand;
1083
+ exports.ListTransactionEventsInput$ = ListTransactionEventsInput$;
1084
+ exports.ListTransactionEventsOutput$ = ListTransactionEventsOutput$;
1085
+ exports.ListTransactions$ = ListTransactions$;
322
1086
  exports.ListTransactionsCommand = ListTransactionsCommand;
1087
+ exports.ListTransactionsInput$ = ListTransactionsInput$;
1088
+ exports.ListTransactionsOutput$ = ListTransactionsOutput$;
1089
+ exports.ListTransactionsSort$ = ListTransactionsSort$;
323
1090
  exports.ListTransactionsSortBy = ListTransactionsSortBy;
324
1091
  exports.ManagedBlockchainQuery = ManagedBlockchainQuery;
325
1092
  exports.ManagedBlockchainQueryClient = ManagedBlockchainQueryClient;
1093
+ exports.ManagedBlockchainQueryServiceException = ManagedBlockchainQueryServiceException;
1094
+ exports.ManagedBlockchainQueryServiceException$ = ManagedBlockchainQueryServiceException$;
1095
+ exports.OwnerFilter$ = OwnerFilter$;
1096
+ exports.OwnerIdentifier$ = OwnerIdentifier$;
326
1097
  exports.QueryNetwork = QueryNetwork;
327
1098
  exports.QueryTokenStandard = QueryTokenStandard;
328
1099
  exports.QueryTransactionEventType = QueryTransactionEventType;
1100
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1101
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
329
1102
  exports.ResourceType = ResourceType;
1103
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1104
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
330
1105
  exports.SortOrder = SortOrder;
1106
+ exports.ThrottlingException = ThrottlingException;
1107
+ exports.ThrottlingException$ = ThrottlingException$;
1108
+ exports.TimeFilter$ = TimeFilter$;
1109
+ exports.TokenBalance$ = TokenBalance$;
1110
+ exports.TokenFilter$ = TokenFilter$;
1111
+ exports.TokenIdentifier$ = TokenIdentifier$;
1112
+ exports.Transaction$ = Transaction$;
1113
+ exports.TransactionEvent$ = TransactionEvent$;
1114
+ exports.TransactionOutputItem$ = TransactionOutputItem$;
1115
+ exports.ValidationException = ValidationException;
1116
+ exports.ValidationException$ = ValidationException$;
1117
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
331
1118
  exports.ValidationExceptionReason = ValidationExceptionReason;
1119
+ exports.VoutFilter$ = VoutFilter$;
1120
+ exports.errorTypeRegistries = errorTypeRegistries;
332
1121
  exports.paginateListAssetContracts = paginateListAssetContracts;
333
1122
  exports.paginateListFilteredTransactionEvents = paginateListFilteredTransactionEvents;
334
1123
  exports.paginateListTokenBalances = paginateListTokenBalances;