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