@ampless/mcp-server 1.0.0-alpha.11 → 1.0.0-alpha.13
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/README.ja.md +1 -1
- package/README.md +1 -1
- package/dist/{chunk-IW52OUIR.js → chunk-6HZB2ZCT.js} +13 -13
- package/dist/{chunk-6OXXSXKN.js → chunk-7JQMGUAU.js} +9 -9
- package/dist/{chunk-3NCQATCK.js → chunk-ERHOBKHD.js} +7 -501
- package/dist/{chunk-YHHXORQ4.js → chunk-ETWWJEHN.js} +17 -17
- package/dist/{chunk-A4YPJIDF.js → chunk-FLMNALC3.js} +3 -3
- package/dist/{chunk-QBXY5RRO.js → chunk-FM7TW5TD.js} +1 -2
- package/dist/chunk-LD7M476A.js +502 -0
- package/dist/{chunk-ISXSZYT4.js → chunk-OBZN5IWW.js} +32 -32
- package/dist/{chunk-UMEQ5ALV.js → chunk-Q4OVSLY4.js} +2 -2
- package/dist/{chunk-5PA6IP7O.js → chunk-SPCUAJQT.js} +1 -1
- package/dist/{chunk-CVNCRUML.js → chunk-USNYVOYF.js} +114 -47
- package/dist/chunk-YR5GD2D7.js +165 -0
- package/dist/{dist-es-J4X5E4TX.js → dist-es-2B6UPU6D.js} +22 -22
- package/dist/{dist-es-PRQWND46.js → dist-es-4QBVIVDD.js} +3 -3
- package/dist/{dist-es-3P7CNKGV.js → dist-es-DAQMEDLM.js} +8 -8
- package/dist/{dist-es-OI6XP2CN.js → dist-es-DWVRWSTC.js} +6 -6
- package/dist/{dist-es-OKPWYZO7.js → dist-es-H7Y5BZEG.js} +16 -16
- package/dist/{dist-es-T6J3WJJK.js → dist-es-QZOTLLWC.js} +1 -1
- package/dist/{dist-es-OO5RVJZO.js → dist-es-S3US4EVE.js} +6 -6
- package/dist/{event-streams-WFL2DK34.js → event-streams-IEZDQ3X3.js} +2 -1
- package/dist/event-streams-R54SMYED.js +891 -0
- package/dist/index.js +119 -116
- package/dist/{loadSso-C2Y2WOQK.js → loadSso-B4NUZPX5.js} +21 -20
- package/dist/{signin-IY5CLTYR.js → signin-BEDHRSJ2.js} +23 -22
- package/dist/{sso-oidc-KZTDOR7Y.js → sso-oidc-UXLRODTA.js} +23 -22
- package/dist/{sts-2UABQZ6D.js → sts-3BBU2O3O.js} +29 -28
- package/package.json +6 -6
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
fromHex,
|
|
4
|
+
fromUtf8,
|
|
5
|
+
isArrayBuffer,
|
|
6
|
+
toHex,
|
|
7
|
+
toUint8Array
|
|
8
|
+
} from "./chunk-YR5GD2D7.js";
|
|
9
|
+
import {
|
|
10
|
+
normalizeProvider,
|
|
4
11
|
setCredentialFeature
|
|
5
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OBZN5IWW.js";
|
|
6
13
|
import {
|
|
7
14
|
HttpRequest,
|
|
8
15
|
HttpResponse,
|
|
@@ -10,18 +17,9 @@ import {
|
|
|
10
17
|
ProviderError,
|
|
11
18
|
TypeRegistry,
|
|
12
19
|
decorateServiceException,
|
|
13
|
-
escapeUri,
|
|
14
20
|
getSmithyContext,
|
|
15
|
-
normalizeProvider,
|
|
16
21
|
toEndpointV1
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
fromHex,
|
|
20
|
-
fromUtf8,
|
|
21
|
-
isArrayBuffer,
|
|
22
|
-
toHex,
|
|
23
|
-
toUint8Array
|
|
24
|
-
} from "./chunk-IKXKDSVH.js";
|
|
22
|
+
} from "./chunk-FM7TW5TD.js";
|
|
25
23
|
|
|
26
24
|
// ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js
|
|
27
25
|
var operation = (namespace, name, traits, input, output) => ({
|
|
@@ -269,16 +267,16 @@ var DefaultIdentityProviderConfig = class {
|
|
|
269
267
|
}
|
|
270
268
|
};
|
|
271
269
|
|
|
272
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
270
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
|
|
273
271
|
var getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0;
|
|
274
272
|
|
|
275
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
273
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
|
|
276
274
|
var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
|
|
277
275
|
|
|
278
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
276
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
|
|
279
277
|
var isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5;
|
|
280
278
|
|
|
281
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
279
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
|
|
282
280
|
var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
|
|
283
281
|
const clockTimeInMs = Date.parse(clockTime);
|
|
284
282
|
if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
|
|
@@ -287,7 +285,7 @@ var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
|
|
|
287
285
|
return currentSystemClockOffset;
|
|
288
286
|
};
|
|
289
287
|
|
|
290
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
288
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
|
|
291
289
|
var throwSigningPropertyError = (name, property) => {
|
|
292
290
|
if (!property) {
|
|
293
291
|
throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
|
|
@@ -358,7 +356,7 @@ var AwsSdkSigV4Signer = class {
|
|
|
358
356
|
}
|
|
359
357
|
};
|
|
360
358
|
|
|
361
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
359
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js
|
|
362
360
|
var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer {
|
|
363
361
|
async sign(httpRequest, identity, signingProperties) {
|
|
364
362
|
if (!HttpRequest.isInstance(httpRequest)) {
|
|
@@ -376,13 +374,13 @@ var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer {
|
|
|
376
374
|
}
|
|
377
375
|
};
|
|
378
376
|
|
|
379
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
377
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
|
|
380
378
|
var getArrayForCommaSeparatedString = (str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [];
|
|
381
379
|
|
|
382
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
380
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
|
|
383
381
|
var getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`;
|
|
384
382
|
|
|
385
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
383
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
|
|
386
384
|
var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
387
385
|
var NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
|
|
388
386
|
var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
@@ -460,9 +458,9 @@ var memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
|
|
|
460
458
|
};
|
|
461
459
|
};
|
|
462
460
|
|
|
463
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
461
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js
|
|
464
462
|
var resolveAwsSdkSigV4AConfig = (config) => {
|
|
465
|
-
config.sigv4aSigningRegionSet =
|
|
463
|
+
config.sigv4aSigningRegionSet = normalizeProvider(config.sigv4aSigningRegionSet);
|
|
466
464
|
return config;
|
|
467
465
|
};
|
|
468
466
|
var NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
@@ -485,7 +483,76 @@ var NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
|
485
483
|
default: void 0
|
|
486
484
|
};
|
|
487
485
|
|
|
488
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
486
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/normalizeProvider.js
|
|
487
|
+
var normalizeProvider2 = (input) => {
|
|
488
|
+
if (typeof input === "function")
|
|
489
|
+
return input;
|
|
490
|
+
const promisified = Promise.resolve(input);
|
|
491
|
+
return () => promisified;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/httpRequest.js
|
|
495
|
+
var HttpRequest2 = class _HttpRequest {
|
|
496
|
+
method;
|
|
497
|
+
protocol;
|
|
498
|
+
hostname;
|
|
499
|
+
port;
|
|
500
|
+
path;
|
|
501
|
+
query;
|
|
502
|
+
headers;
|
|
503
|
+
username;
|
|
504
|
+
password;
|
|
505
|
+
fragment;
|
|
506
|
+
body;
|
|
507
|
+
constructor(options) {
|
|
508
|
+
this.method = options.method || "GET";
|
|
509
|
+
this.hostname = options.hostname || "localhost";
|
|
510
|
+
this.port = options.port;
|
|
511
|
+
this.query = options.query || {};
|
|
512
|
+
this.headers = options.headers || {};
|
|
513
|
+
this.body = options.body;
|
|
514
|
+
this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
|
|
515
|
+
this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
|
|
516
|
+
this.username = options.username;
|
|
517
|
+
this.password = options.password;
|
|
518
|
+
this.fragment = options.fragment;
|
|
519
|
+
}
|
|
520
|
+
static clone(request) {
|
|
521
|
+
const cloned = new _HttpRequest({
|
|
522
|
+
...request,
|
|
523
|
+
headers: { ...request.headers }
|
|
524
|
+
});
|
|
525
|
+
if (cloned.query) {
|
|
526
|
+
cloned.query = cloneQuery(cloned.query);
|
|
527
|
+
}
|
|
528
|
+
return cloned;
|
|
529
|
+
}
|
|
530
|
+
static isInstance(request) {
|
|
531
|
+
if (!request) {
|
|
532
|
+
return false;
|
|
533
|
+
}
|
|
534
|
+
const req = request;
|
|
535
|
+
return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
|
|
536
|
+
}
|
|
537
|
+
clone() {
|
|
538
|
+
return _HttpRequest.clone(this);
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
function cloneQuery(query) {
|
|
542
|
+
return Object.keys(query).reduce((carry, paramName) => {
|
|
543
|
+
const param = query[paramName];
|
|
544
|
+
return {
|
|
545
|
+
...carry,
|
|
546
|
+
[paramName]: Array.isArray(param) ? [...param] : param
|
|
547
|
+
};
|
|
548
|
+
}, {});
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js
|
|
552
|
+
var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
553
|
+
var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
554
|
+
|
|
555
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js
|
|
489
556
|
var HeaderFormatter = class {
|
|
490
557
|
format(headers) {
|
|
491
558
|
const chunks = [];
|
|
@@ -611,7 +678,7 @@ function negate(bytes) {
|
|
|
611
678
|
}
|
|
612
679
|
}
|
|
613
680
|
|
|
614
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
681
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/constants.js
|
|
615
682
|
var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
|
|
616
683
|
var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
|
|
617
684
|
var AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
|
|
@@ -652,7 +719,7 @@ var MAX_CACHE_SIZE = 50;
|
|
|
652
719
|
var KEY_TYPE_IDENTIFIER = "aws4_request";
|
|
653
720
|
var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
|
|
654
721
|
|
|
655
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
722
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js
|
|
656
723
|
var getCanonicalQuery = ({ query = {} }) => {
|
|
657
724
|
const keys = [];
|
|
658
725
|
const serialized = {};
|
|
@@ -672,7 +739,7 @@ var getCanonicalQuery = ({ query = {} }) => {
|
|
|
672
739
|
return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&");
|
|
673
740
|
};
|
|
674
741
|
|
|
675
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
742
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/utilDate.js
|
|
676
743
|
var iso8601 = (time) => toDate(time).toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
677
744
|
var toDate = (time) => {
|
|
678
745
|
if (typeof time === "number") {
|
|
@@ -687,7 +754,7 @@ var toDate = (time) => {
|
|
|
687
754
|
return time;
|
|
688
755
|
};
|
|
689
756
|
|
|
690
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
757
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
|
|
691
758
|
var SignatureV4Base = class {
|
|
692
759
|
service;
|
|
693
760
|
regionProvider;
|
|
@@ -700,8 +767,8 @@ var SignatureV4Base = class {
|
|
|
700
767
|
this.sha256 = sha256;
|
|
701
768
|
this.uriEscapePath = uriEscapePath;
|
|
702
769
|
this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true;
|
|
703
|
-
this.regionProvider =
|
|
704
|
-
this.credentialProvider =
|
|
770
|
+
this.regionProvider = normalizeProvider2(region);
|
|
771
|
+
this.credentialProvider = normalizeProvider2(credentials);
|
|
705
772
|
}
|
|
706
773
|
createCanonicalRequest(request, canonicalHeaders, payloadHash) {
|
|
707
774
|
const sortedHeaders = Object.keys(canonicalHeaders).sort();
|
|
@@ -759,7 +826,7 @@ ${toHex(hashedRequest)}`;
|
|
|
759
826
|
}
|
|
760
827
|
};
|
|
761
828
|
|
|
762
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
829
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js
|
|
763
830
|
var signingKeyCache = {};
|
|
764
831
|
var cacheQueue = [];
|
|
765
832
|
var createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`;
|
|
@@ -785,7 +852,7 @@ var hmac = (ctor, secret, data) => {
|
|
|
785
852
|
return hash.digest();
|
|
786
853
|
};
|
|
787
854
|
|
|
788
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
855
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js
|
|
789
856
|
var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
|
|
790
857
|
const canonical = {};
|
|
791
858
|
for (const headerName of Object.keys(headers).sort()) {
|
|
@@ -803,7 +870,7 @@ var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
|
|
|
803
870
|
return canonical;
|
|
804
871
|
};
|
|
805
872
|
|
|
806
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
873
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
|
|
807
874
|
var getPayloadHash = async ({ headers, body }, hashConstructor) => {
|
|
808
875
|
for (const headerName of Object.keys(headers)) {
|
|
809
876
|
if (headerName.toLowerCase() === SHA256_HEADER) {
|
|
@@ -820,7 +887,7 @@ var getPayloadHash = async ({ headers, body }, hashConstructor) => {
|
|
|
820
887
|
return UNSIGNED_PAYLOAD;
|
|
821
888
|
};
|
|
822
889
|
|
|
823
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
890
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/headerUtil.js
|
|
824
891
|
var hasHeader = (soughtHeader, headers) => {
|
|
825
892
|
soughtHeader = soughtHeader.toLowerCase();
|
|
826
893
|
for (const headerName of Object.keys(headers)) {
|
|
@@ -831,9 +898,9 @@ var hasHeader = (soughtHeader, headers) => {
|
|
|
831
898
|
return false;
|
|
832
899
|
};
|
|
833
900
|
|
|
834
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
901
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
|
|
835
902
|
var moveHeadersToQuery = (request, options = {}) => {
|
|
836
|
-
const { headers, query = {} } =
|
|
903
|
+
const { headers, query = {} } = HttpRequest2.clone(request);
|
|
837
904
|
for (const name of Object.keys(headers)) {
|
|
838
905
|
const lname = name.toLowerCase();
|
|
839
906
|
if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) {
|
|
@@ -848,9 +915,9 @@ var moveHeadersToQuery = (request, options = {}) => {
|
|
|
848
915
|
};
|
|
849
916
|
};
|
|
850
917
|
|
|
851
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
918
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
|
|
852
919
|
var prepareRequest = (request) => {
|
|
853
|
-
request =
|
|
920
|
+
request = HttpRequest2.clone(request);
|
|
854
921
|
for (const headerName of Object.keys(request.headers)) {
|
|
855
922
|
if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
|
|
856
923
|
delete request.headers[headerName];
|
|
@@ -859,7 +926,7 @@ var prepareRequest = (request) => {
|
|
|
859
926
|
return request;
|
|
860
927
|
};
|
|
861
928
|
|
|
862
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.
|
|
929
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.4.4/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
|
|
863
930
|
var SignatureV4 = class extends SignatureV4Base {
|
|
864
931
|
headerFormatter = new HeaderFormatter();
|
|
865
932
|
constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
|
|
@@ -984,7 +1051,7 @@ var SignatureV4 = class extends SignatureV4Base {
|
|
|
984
1051
|
}
|
|
985
1052
|
};
|
|
986
1053
|
|
|
987
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
1054
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
|
|
988
1055
|
var resolveAwsSdkSigV4Config = (config) => {
|
|
989
1056
|
let inputCredentials = config.credentials;
|
|
990
1057
|
let isUserSupplied = !!config.credentials;
|
|
@@ -1027,9 +1094,9 @@ var resolveAwsSdkSigV4Config = (config) => {
|
|
|
1027
1094
|
const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256 } = config;
|
|
1028
1095
|
let signer;
|
|
1029
1096
|
if (config.signer) {
|
|
1030
|
-
signer =
|
|
1097
|
+
signer = normalizeProvider(config.signer);
|
|
1031
1098
|
} else if (config.regionInfoProvider) {
|
|
1032
|
-
signer = () =>
|
|
1099
|
+
signer = () => normalizeProvider(config.region)().then(async (region) => [
|
|
1033
1100
|
await config.regionInfoProvider(region, {
|
|
1034
1101
|
useFipsEndpoint: await config.useFipsEndpoint(),
|
|
1035
1102
|
useDualstackEndpoint: await config.useDualstackEndpoint()
|
|
@@ -1055,7 +1122,7 @@ var resolveAwsSdkSigV4Config = (config) => {
|
|
|
1055
1122
|
authScheme = Object.assign({}, {
|
|
1056
1123
|
name: "sigv4",
|
|
1057
1124
|
signingName: config.signingName || config.defaultSigningName,
|
|
1058
|
-
signingRegion: await
|
|
1125
|
+
signingRegion: await normalizeProvider(config.region)(),
|
|
1059
1126
|
properties: {}
|
|
1060
1127
|
}, authScheme);
|
|
1061
1128
|
const signingRegion = authScheme.signingRegion;
|
|
@@ -1091,7 +1158,7 @@ function normalizeCredentialProvider(config, { credentials, credentialDefaultPro
|
|
|
1091
1158
|
}
|
|
1092
1159
|
} else {
|
|
1093
1160
|
if (credentialDefaultProvider) {
|
|
1094
|
-
credentialsProvider =
|
|
1161
|
+
credentialsProvider = normalizeProvider(credentialDefaultProvider(Object.assign({}, config, {
|
|
1095
1162
|
parentClientConfig: config
|
|
1096
1163
|
})));
|
|
1097
1164
|
} else {
|
|
@@ -1165,7 +1232,7 @@ async function collectReadableStream(stream) {
|
|
|
1165
1232
|
return collected;
|
|
1166
1233
|
}
|
|
1167
1234
|
|
|
1168
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
1235
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
|
|
1169
1236
|
var ProtocolLib = class {
|
|
1170
1237
|
queryCompat;
|
|
1171
1238
|
errorRegistry;
|
|
@@ -1299,7 +1366,7 @@ var ProtocolLib = class {
|
|
|
1299
1366
|
}
|
|
1300
1367
|
};
|
|
1301
1368
|
|
|
1302
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
1369
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
|
|
1303
1370
|
var SerdeContextConfig = class {
|
|
1304
1371
|
serdeContext;
|
|
1305
1372
|
setSerdeContext(serdeContext) {
|
|
@@ -1307,7 +1374,7 @@ var SerdeContextConfig = class {
|
|
|
1307
1374
|
}
|
|
1308
1375
|
};
|
|
1309
1376
|
|
|
1310
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
1377
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js
|
|
1311
1378
|
var UnionSerde = class {
|
|
1312
1379
|
from;
|
|
1313
1380
|
to;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/is-array-buffer/is-array-buffer.js
|
|
4
|
+
var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/util-buffer-from/buffer-from.js
|
|
7
|
+
var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
8
|
+
if (!isArrayBuffer(input)) {
|
|
9
|
+
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(input, offset, length);
|
|
12
|
+
};
|
|
13
|
+
var fromString = (input, encoding) => {
|
|
14
|
+
if (typeof input !== "string") {
|
|
15
|
+
throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
|
|
16
|
+
}
|
|
17
|
+
return encoding ? Buffer.from(input, encoding) : Buffer.from(input);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/fromUtf8.js
|
|
21
|
+
var fromUtf8 = (input) => {
|
|
22
|
+
const buf = fromString(input, "utf8");
|
|
23
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUtf8.js
|
|
27
|
+
var toUtf8 = (input) => {
|
|
28
|
+
if (typeof input === "string") {
|
|
29
|
+
return input;
|
|
30
|
+
}
|
|
31
|
+
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
|
|
32
|
+
throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
|
|
33
|
+
}
|
|
34
|
+
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/util-hex-encoding/hex-encoding.js
|
|
38
|
+
var SHORT_TO_HEX = {};
|
|
39
|
+
var HEX_TO_SHORT = {};
|
|
40
|
+
for (let i = 0; i < 256; i++) {
|
|
41
|
+
let encodedByte = i.toString(16).toLowerCase();
|
|
42
|
+
if (encodedByte.length === 1) {
|
|
43
|
+
encodedByte = `0${encodedByte}`;
|
|
44
|
+
}
|
|
45
|
+
SHORT_TO_HEX[i] = encodedByte;
|
|
46
|
+
HEX_TO_SHORT[encodedByte] = i;
|
|
47
|
+
}
|
|
48
|
+
function fromHex(encoded) {
|
|
49
|
+
if (encoded.length % 2 !== 0) {
|
|
50
|
+
throw new Error("Hex encoded strings must have an even number length");
|
|
51
|
+
}
|
|
52
|
+
const out = new Uint8Array(encoded.length / 2);
|
|
53
|
+
for (let i = 0; i < encoded.length; i += 2) {
|
|
54
|
+
const encodedByte = encoded.slice(i, i + 2).toLowerCase();
|
|
55
|
+
if (encodedByte in HEX_TO_SHORT) {
|
|
56
|
+
out[i / 2] = HEX_TO_SHORT[encodedByte];
|
|
57
|
+
} else {
|
|
58
|
+
throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return out;
|
|
62
|
+
}
|
|
63
|
+
function toHex(bytes) {
|
|
64
|
+
let out = "";
|
|
65
|
+
for (let i = 0; i < bytes.byteLength; i++) {
|
|
66
|
+
out += SHORT_TO_HEX[bytes[i]];
|
|
67
|
+
}
|
|
68
|
+
return out;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/index.js
|
|
72
|
+
import { getRandomValues } from "crypto";
|
|
73
|
+
|
|
74
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/fromBase64.js
|
|
75
|
+
var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
76
|
+
var fromBase64 = (input) => {
|
|
77
|
+
if (input.length * 3 % 4 !== 0) {
|
|
78
|
+
throw new TypeError(`Incorrect padding on base64 string.`);
|
|
79
|
+
}
|
|
80
|
+
if (!BASE64_REGEX.exec(input)) {
|
|
81
|
+
throw new TypeError(`Invalid base64 string.`);
|
|
82
|
+
}
|
|
83
|
+
const buffer = fromString(input, "base64");
|
|
84
|
+
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.js
|
|
88
|
+
var toBase64 = (_input) => {
|
|
89
|
+
let input;
|
|
90
|
+
if (typeof _input === "string") {
|
|
91
|
+
input = fromUtf8(_input);
|
|
92
|
+
} else {
|
|
93
|
+
input = _input;
|
|
94
|
+
}
|
|
95
|
+
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
|
|
96
|
+
throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
|
|
97
|
+
}
|
|
98
|
+
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("base64");
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/blob/Uint8ArrayBlobAdapter.js
|
|
102
|
+
function bindUint8ArrayBlobAdapter(toUtf82, fromUtf82, toBase642, fromBase642) {
|
|
103
|
+
return class Uint8ArrayBlobAdapter2 extends Uint8Array {
|
|
104
|
+
static fromString(source, encoding = "utf-8") {
|
|
105
|
+
if (typeof source === "string") {
|
|
106
|
+
if (encoding === "base64") {
|
|
107
|
+
return Uint8ArrayBlobAdapter2.mutate(fromBase642(source));
|
|
108
|
+
}
|
|
109
|
+
return Uint8ArrayBlobAdapter2.mutate(fromUtf82(source));
|
|
110
|
+
}
|
|
111
|
+
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
|
112
|
+
}
|
|
113
|
+
static mutate(source) {
|
|
114
|
+
Object.setPrototypeOf(source, Uint8ArrayBlobAdapter2.prototype);
|
|
115
|
+
return source;
|
|
116
|
+
}
|
|
117
|
+
transformToString(encoding = "utf-8") {
|
|
118
|
+
if (encoding === "base64") {
|
|
119
|
+
return toBase642(this);
|
|
120
|
+
}
|
|
121
|
+
return toUtf82(this);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/uuid/v4.js
|
|
127
|
+
var decimalToHex = Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
|
|
128
|
+
function bindV4(getRandomValues2) {
|
|
129
|
+
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
130
|
+
return () => crypto.randomUUID();
|
|
131
|
+
}
|
|
132
|
+
return () => {
|
|
133
|
+
const rnds = new Uint8Array(16);
|
|
134
|
+
getRandomValues2(rnds);
|
|
135
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
136
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
137
|
+
return decimalToHex[rnds[0]] + decimalToHex[rnds[1]] + decimalToHex[rnds[2]] + decimalToHex[rnds[3]] + "-" + decimalToHex[rnds[4]] + decimalToHex[rnds[5]] + "-" + decimalToHex[rnds[6]] + decimalToHex[rnds[7]] + "-" + decimalToHex[rnds[8]] + decimalToHex[rnds[9]] + "-" + decimalToHex[rnds[10]] + decimalToHex[rnds[11]] + decimalToHex[rnds[12]] + decimalToHex[rnds[13]] + decimalToHex[rnds[14]] + decimalToHex[rnds[15]];
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js
|
|
142
|
+
var toUint8Array = (data) => {
|
|
143
|
+
if (typeof data === "string") {
|
|
144
|
+
return fromUtf8(data);
|
|
145
|
+
}
|
|
146
|
+
if (ArrayBuffer.isView(data)) {
|
|
147
|
+
return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
148
|
+
}
|
|
149
|
+
return new Uint8Array(data);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// ../../node_modules/.pnpm/@smithy+core@3.24.4/node_modules/@smithy/core/dist-es/submodules/serde/index.js
|
|
153
|
+
var Uint8ArrayBlobAdapter = class extends bindUint8ArrayBlobAdapter(toUtf8, fromUtf8, toBase64, fromBase64) {
|
|
154
|
+
};
|
|
155
|
+
var _getRandomValues = getRandomValues;
|
|
156
|
+
var v4 = bindV4(_getRandomValues);
|
|
157
|
+
|
|
158
|
+
export {
|
|
159
|
+
isArrayBuffer,
|
|
160
|
+
fromUtf8,
|
|
161
|
+
toUtf8,
|
|
162
|
+
fromHex,
|
|
163
|
+
toHex,
|
|
164
|
+
toUint8Array
|
|
165
|
+
};
|