monorise 1.1.0-dev.2 → 1.1.0-dev.3
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/base/index.d.ts +53 -1
- package/dist/base/index.js +49 -1
- package/dist/base/index.js.map +1 -1
- package/dist/core/index.d.ts +3 -53
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/react/{chunk-DTRWUIDH.js → chunk-BIXAYYE4.js} +35 -5
- package/dist/react/{chunk-DTRWUIDH.js.map → chunk-BIXAYYE4.js.map} +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +143 -10403
- package/dist/react/index.js.map +1 -1
- package/dist/react/websocket-7MZ3ENOC.js +9 -0
- package/package.json +2 -2
- package/dist/react/chunk-2QOYO3GF.js +0 -182
- package/dist/react/chunk-2QOYO3GF.js.map +0 -1
- package/dist/react/chunk-4WSYM746.js +0 -383
- package/dist/react/chunk-4WSYM746.js.map +0 -1
- package/dist/react/chunk-5XIRNUBL.js +0 -43
- package/dist/react/chunk-5XIRNUBL.js.map +0 -1
- package/dist/react/chunk-7JDOKZGQ.js +0 -172
- package/dist/react/chunk-7JDOKZGQ.js.map +0 -1
- package/dist/react/chunk-A5TI2FW3.js +0 -13
- package/dist/react/chunk-A5TI2FW3.js.map +0 -1
- package/dist/react/chunk-BJXCFDMF.js +0 -15
- package/dist/react/chunk-BJXCFDMF.js.map +0 -1
- package/dist/react/chunk-BUTF5RJU.js +0 -29
- package/dist/react/chunk-BUTF5RJU.js.map +0 -1
- package/dist/react/chunk-GFVCNWVT.js +0 -54
- package/dist/react/chunk-GFVCNWVT.js.map +0 -1
- package/dist/react/chunk-JT5EZZSL.js +0 -489
- package/dist/react/chunk-JT5EZZSL.js.map +0 -1
- package/dist/react/chunk-KJX5LOMN.js +0 -43
- package/dist/react/chunk-KJX5LOMN.js.map +0 -1
- package/dist/react/chunk-KLXK4V6G.js +0 -65
- package/dist/react/chunk-KLXK4V6G.js.map +0 -1
- package/dist/react/chunk-LJLMKEKI.js +0 -245
- package/dist/react/chunk-LJLMKEKI.js.map +0 -1
- package/dist/react/chunk-MIXAYX55.js +0 -147
- package/dist/react/chunk-RPNCWADG.js +0 -248
- package/dist/react/chunk-RPNCWADG.js.map +0 -1
- package/dist/react/chunk-S6RDMHHH.js +0 -47
- package/dist/react/chunk-S6RDMHHH.js.map +0 -1
- package/dist/react/chunk-U6RIOMF4.js +0 -893
- package/dist/react/chunk-U6RIOMF4.js.map +0 -1
- package/dist/react/chunk-WCRLJFBW.js +0 -5568
- package/dist/react/chunk-WCRLJFBW.js.map +0 -1
- package/dist/react/chunk-YF6S7S36.js +0 -588
- package/dist/react/chunk-YF6S7S36.js.map +0 -1
- package/dist/react/dist-es-5WYA7CWK.js +0 -379
- package/dist/react/dist-es-5WYA7CWK.js.map +0 -1
- package/dist/react/dist-es-CR5AOOCO.js +0 -333
- package/dist/react/dist-es-CR5AOOCO.js.map +0 -1
- package/dist/react/dist-es-KZ3GLAJI.js +0 -494
- package/dist/react/dist-es-KZ3GLAJI.js.map +0 -1
- package/dist/react/dist-es-R4TRTT45.js +0 -22
- package/dist/react/dist-es-R4TRTT45.js.map +0 -1
- package/dist/react/dist-es-SKDPAJEW.js +0 -169
- package/dist/react/dist-es-SKDPAJEW.js.map +0 -1
- package/dist/react/dist-es-TOHBZNTZ.js +0 -71
- package/dist/react/dist-es-TOHBZNTZ.js.map +0 -1
- package/dist/react/dist-es-XNAC47MK.js +0 -90
- package/dist/react/dist-es-XNAC47MK.js.map +0 -1
- package/dist/react/event-streams-WAZW4P3K.js +0 -277
- package/dist/react/event-streams-WAZW4P3K.js.map +0 -1
- package/dist/react/loadSso-KXVD6CBM.js +0 -556
- package/dist/react/loadSso-KXVD6CBM.js.map +0 -1
- package/dist/react/service.config-I7RKP6FE.js +0 -14
- package/dist/react/service.config-I7RKP6FE.js.map +0 -1
- package/dist/react/signin-SEY3FDQ5.js +0 -653
- package/dist/react/signin-SEY3FDQ5.js.map +0 -1
- package/dist/react/sso-oidc-REODVHH5.js +0 -786
- package/dist/react/sso-oidc-REODVHH5.js.map +0 -1
- package/dist/react/sts-I3M4QP37.js +0 -3948
- package/dist/react/sts-I3M4QP37.js.map +0 -1
- package/dist/react/websocket-OSLLJSNO.js +0 -10
- package/dist/react/websocket-OSLLJSNO.js.map +0 -1
- /package/dist/react/{chunk-MIXAYX55.js.map → websocket-7MZ3ENOC.js.map} +0 -0
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sdkStreamMixin
|
|
3
|
-
} from "./chunk-2QOYO3GF.js";
|
|
4
|
-
import {
|
|
5
|
-
NodeHttpHandler,
|
|
6
|
-
parseRfc3339DateTime
|
|
7
|
-
} from "./chunk-U6RIOMF4.js";
|
|
8
|
-
import {
|
|
9
|
-
HttpRequest
|
|
10
|
-
} from "./chunk-KLXK4V6G.js";
|
|
11
|
-
import "./chunk-KJX5LOMN.js";
|
|
12
|
-
import {
|
|
13
|
-
setCredentialFeature
|
|
14
|
-
} from "./chunk-A5TI2FW3.js";
|
|
15
|
-
import {
|
|
16
|
-
CredentialsProviderError
|
|
17
|
-
} from "./chunk-5XIRNUBL.js";
|
|
18
|
-
import "./chunk-MIXAYX55.js";
|
|
19
|
-
|
|
20
|
-
// ../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
21
|
-
import fs from "fs/promises";
|
|
22
|
-
|
|
23
|
-
// ../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
24
|
-
var ECS_CONTAINER_HOST = "169.254.170.2";
|
|
25
|
-
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
26
|
-
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
27
|
-
var checkUrl = (url, logger) => {
|
|
28
|
-
if (url.protocol === "https:") {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
if (url.hostname === ECS_CONTAINER_HOST || url.hostname === EKS_CONTAINER_HOST_IPv4 || url.hostname === EKS_CONTAINER_HOST_IPv6) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
if (url.hostname.includes("[")) {
|
|
35
|
-
if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
} else {
|
|
39
|
-
if (url.hostname === "localhost") {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
const ipComponents = url.hostname.split(".");
|
|
43
|
-
const inRange = (component) => {
|
|
44
|
-
const num = parseInt(component, 10);
|
|
45
|
-
return 0 <= num && num <= 255;
|
|
46
|
-
};
|
|
47
|
-
if (ipComponents[0] === "127" && inRange(ipComponents[1]) && inRange(ipComponents[2]) && inRange(ipComponents[3]) && ipComponents.length === 4) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
52
|
-
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
53
|
-
- ECS container host 169.254.170.2
|
|
54
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// ../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
58
|
-
function createGetRequest(url) {
|
|
59
|
-
return new HttpRequest({
|
|
60
|
-
protocol: url.protocol,
|
|
61
|
-
hostname: url.hostname,
|
|
62
|
-
port: Number(url.port),
|
|
63
|
-
path: url.pathname,
|
|
64
|
-
query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {
|
|
65
|
-
acc[k] = v;
|
|
66
|
-
return acc;
|
|
67
|
-
}, {}),
|
|
68
|
-
fragment: url.hash
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
async function getCredentials(response, logger) {
|
|
72
|
-
const stream = sdkStreamMixin(response.body);
|
|
73
|
-
const str = await stream.transformToString();
|
|
74
|
-
if (response.statusCode === 200) {
|
|
75
|
-
const parsed = JSON.parse(str);
|
|
76
|
-
if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
|
|
77
|
-
throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
accessKeyId: parsed.AccessKeyId,
|
|
81
|
-
secretAccessKey: parsed.SecretAccessKey,
|
|
82
|
-
sessionToken: parsed.Token,
|
|
83
|
-
expiration: parseRfc3339DateTime(parsed.Expiration)
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
if (response.statusCode >= 400 && response.statusCode < 500) {
|
|
87
|
-
let parsedBody = {};
|
|
88
|
-
try {
|
|
89
|
-
parsedBody = JSON.parse(str);
|
|
90
|
-
} catch (e) {
|
|
91
|
-
}
|
|
92
|
-
throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
|
|
93
|
-
Code: parsedBody.Code,
|
|
94
|
-
Message: parsedBody.Message
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// ../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
101
|
-
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
102
|
-
return async () => {
|
|
103
|
-
for (let i = 0; i < maxRetries; ++i) {
|
|
104
|
-
try {
|
|
105
|
-
return await toRetry();
|
|
106
|
-
} catch (e) {
|
|
107
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return await toRetry();
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
// ../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
115
|
-
var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
|
116
|
-
var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
|
117
|
-
var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
|
118
|
-
var AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
|
|
119
|
-
var AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
|
|
120
|
-
var fromHttp = (options = {}) => {
|
|
121
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
122
|
-
(_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
123
|
-
let host;
|
|
124
|
-
const relative = (_b = options.awsContainerCredentialsRelativeUri) != null ? _b : process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
|
|
125
|
-
const full = (_c = options.awsContainerCredentialsFullUri) != null ? _c : process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
|
|
126
|
-
const token = (_d = options.awsContainerAuthorizationToken) != null ? _d : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
|
|
127
|
-
const tokenFile = (_e = options.awsContainerAuthorizationTokenFile) != null ? _e : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
|
|
128
|
-
const warn = ((_g = (_f = options.logger) == null ? void 0 : _f.constructor) == null ? void 0 : _g.name) === "NoOpLogger" || !((_h = options.logger) == null ? void 0 : _h.warn) ? console.warn : options.logger.warn.bind(options.logger);
|
|
129
|
-
if (relative && full) {
|
|
130
|
-
warn("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
|
|
131
|
-
warn("awsContainerCredentialsFullUri will take precedence.");
|
|
132
|
-
}
|
|
133
|
-
if (token && tokenFile) {
|
|
134
|
-
warn("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");
|
|
135
|
-
warn("awsContainerAuthorizationToken will take precedence.");
|
|
136
|
-
}
|
|
137
|
-
if (full) {
|
|
138
|
-
host = full;
|
|
139
|
-
} else if (relative) {
|
|
140
|
-
host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
|
|
141
|
-
} else {
|
|
142
|
-
throw new CredentialsProviderError(`No HTTP credential provider host provided.
|
|
143
|
-
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
|
|
144
|
-
}
|
|
145
|
-
const url = new URL(host);
|
|
146
|
-
checkUrl(url, options.logger);
|
|
147
|
-
const requestHandler = NodeHttpHandler.create({
|
|
148
|
-
requestTimeout: (_i = options.timeout) != null ? _i : 1e3,
|
|
149
|
-
connectionTimeout: (_j = options.timeout) != null ? _j : 1e3
|
|
150
|
-
});
|
|
151
|
-
return retryWrapper(async () => {
|
|
152
|
-
const request = createGetRequest(url);
|
|
153
|
-
if (token) {
|
|
154
|
-
request.headers.Authorization = token;
|
|
155
|
-
} else if (tokenFile) {
|
|
156
|
-
request.headers.Authorization = (await fs.readFile(tokenFile)).toString();
|
|
157
|
-
}
|
|
158
|
-
try {
|
|
159
|
-
const result = await requestHandler.handle(request);
|
|
160
|
-
return getCredentials(result.response).then((creds) => setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
|
|
161
|
-
} catch (e) {
|
|
162
|
-
throw new CredentialsProviderError(String(e), { logger: options.logger });
|
|
163
|
-
}
|
|
164
|
-
}, (_k = options.maxRetries) != null ? _k : 3, (_l = options.timeout) != null ? _l : 1e3);
|
|
165
|
-
};
|
|
166
|
-
export {
|
|
167
|
-
fromHttp
|
|
168
|
-
};
|
|
169
|
-
//# sourceMappingURL=dist-es-SKDPAJEW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js","../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js","../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js","../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js"],"sourcesContent":["import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { NodeHttpHandler } from \"@smithy/node-http-handler\";\nimport { CredentialsProviderError } from \"@smithy/property-provider\";\nimport fs from \"node:fs/promises\";\nimport { checkUrl } from \"./checkUrl\";\nimport { createGetRequest, getCredentials } from \"./requestHelpers\";\nimport { retryWrapper } from \"./retry-wrapper\";\nconst AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = \"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\";\nconst DEFAULT_LINK_LOCAL_HOST = \"http://169.254.170.2\";\nconst AWS_CONTAINER_CREDENTIALS_FULL_URI = \"AWS_CONTAINER_CREDENTIALS_FULL_URI\";\nconst AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = \"AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE\";\nconst AWS_CONTAINER_AUTHORIZATION_TOKEN = \"AWS_CONTAINER_AUTHORIZATION_TOKEN\";\nexport const fromHttp = (options = {}) => {\n options.logger?.debug(\"@aws-sdk/credential-provider-http - fromHttp\");\n let host;\n const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];\n const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];\n const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];\n const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];\n const warn = options.logger?.constructor?.name === \"NoOpLogger\" || !options.logger?.warn\n ? console.warn\n : options.logger.warn.bind(options.logger);\n if (relative && full) {\n warn(\"@aws-sdk/credential-provider-http: \" +\n \"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.\");\n warn(\"awsContainerCredentialsFullUri will take precedence.\");\n }\n if (token && tokenFile) {\n warn(\"@aws-sdk/credential-provider-http: \" +\n \"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.\");\n warn(\"awsContainerAuthorizationToken will take precedence.\");\n }\n if (full) {\n host = full;\n }\n else if (relative) {\n host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;\n }\n else {\n throw new CredentialsProviderError(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });\n }\n const url = new URL(host);\n checkUrl(url, options.logger);\n const requestHandler = NodeHttpHandler.create({\n requestTimeout: options.timeout ?? 1000,\n connectionTimeout: options.timeout ?? 1000,\n });\n return retryWrapper(async () => {\n const request = createGetRequest(url);\n if (token) {\n request.headers.Authorization = token;\n }\n else if (tokenFile) {\n request.headers.Authorization = (await fs.readFile(tokenFile)).toString();\n }\n try {\n const result = await requestHandler.handle(request);\n return getCredentials(result.response).then((creds) => setCredentialFeature(creds, \"CREDENTIALS_HTTP\", \"z\"));\n }\n catch (e) {\n throw new CredentialsProviderError(String(e), { logger: options.logger });\n }\n }, options.maxRetries ?? 3, options.timeout ?? 1000);\n};\n","import { CredentialsProviderError } from \"@smithy/property-provider\";\nconst LOOPBACK_CIDR_IPv4 = \"127.0.0.0/8\";\nconst LOOPBACK_CIDR_IPv6 = \"::1/128\";\nconst ECS_CONTAINER_HOST = \"169.254.170.2\";\nconst EKS_CONTAINER_HOST_IPv4 = \"169.254.170.23\";\nconst EKS_CONTAINER_HOST_IPv6 = \"[fd00:ec2::23]\";\nexport const checkUrl = (url, logger) => {\n if (url.protocol === \"https:\") {\n return;\n }\n if (url.hostname === ECS_CONTAINER_HOST ||\n url.hostname === EKS_CONTAINER_HOST_IPv4 ||\n url.hostname === EKS_CONTAINER_HOST_IPv6) {\n return;\n }\n if (url.hostname.includes(\"[\")) {\n if (url.hostname === \"[::1]\" || url.hostname === \"[0000:0000:0000:0000:0000:0000:0000:0001]\") {\n return;\n }\n }\n else {\n if (url.hostname === \"localhost\") {\n return;\n }\n const ipComponents = url.hostname.split(\".\");\n const inRange = (component) => {\n const num = parseInt(component, 10);\n return 0 <= num && num <= 255;\n };\n if (ipComponents[0] === \"127\" &&\n inRange(ipComponents[1]) &&\n inRange(ipComponents[2]) &&\n inRange(ipComponents[3]) &&\n ipComponents.length === 4) {\n return;\n }\n }\n throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });\n};\n","import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { HttpRequest } from \"@smithy/protocol-http\";\nimport { parseRfc3339DateTime } from \"@smithy/smithy-client\";\nimport { sdkStreamMixin } from \"@smithy/util-stream\";\nexport function createGetRequest(url) {\n return new HttpRequest({\n protocol: url.protocol,\n hostname: url.hostname,\n port: Number(url.port),\n path: url.pathname,\n query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {\n acc[k] = v;\n return acc;\n }, {}),\n fragment: url.hash,\n });\n}\nexport async function getCredentials(response, logger) {\n const stream = sdkStreamMixin(response.body);\n const str = await stream.transformToString();\n if (response.statusCode === 200) {\n const parsed = JSON.parse(str);\n if (typeof parsed.AccessKeyId !== \"string\" ||\n typeof parsed.SecretAccessKey !== \"string\" ||\n typeof parsed.Token !== \"string\" ||\n typeof parsed.Expiration !== \"string\") {\n throw new CredentialsProviderError(\"HTTP credential provider response not of the required format, an object matching: \" +\n \"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }\", { logger });\n }\n return {\n accessKeyId: parsed.AccessKeyId,\n secretAccessKey: parsed.SecretAccessKey,\n sessionToken: parsed.Token,\n expiration: parseRfc3339DateTime(parsed.Expiration),\n };\n }\n if (response.statusCode >= 400 && response.statusCode < 500) {\n let parsedBody = {};\n try {\n parsedBody = JSON.parse(str);\n }\n catch (e) { }\n throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {\n Code: parsedBody.Code,\n Message: parsedBody.Message,\n });\n }\n throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });\n}\n","export const retryWrapper = (toRetry, maxRetries, delayMs) => {\n return async () => {\n for (let i = 0; i < maxRetries; ++i) {\n try {\n return await toRetry();\n }\n catch (e) {\n await new Promise((resolve) => setTimeout(resolve, delayMs));\n }\n }\n return await toRetry();\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,OAAO,QAAQ;;;ACAf,IAAM,qBAAqB;AAC3B,IAAM,0BAA0B;AAChC,IAAM,0BAA0B;AACzB,IAAM,WAAW,CAAC,KAAK,WAAW;AACrC,MAAI,IAAI,aAAa,UAAU;AAC3B;AAAA,EACJ;AACA,MAAI,IAAI,aAAa,sBACjB,IAAI,aAAa,2BACjB,IAAI,aAAa,yBAAyB;AAC1C;AAAA,EACJ;AACA,MAAI,IAAI,SAAS,SAAS,GAAG,GAAG;AAC5B,QAAI,IAAI,aAAa,WAAW,IAAI,aAAa,6CAA6C;AAC1F;AAAA,IACJ;AAAA,EACJ,OACK;AACD,QAAI,IAAI,aAAa,aAAa;AAC9B;AAAA,IACJ;AACA,UAAM,eAAe,IAAI,SAAS,MAAM,GAAG;AAC3C,UAAM,UAAU,CAAC,cAAc;AAC3B,YAAM,MAAM,SAAS,WAAW,EAAE;AAClC,aAAO,KAAK,OAAO,OAAO;AAAA,IAC9B;AACA,QAAI,aAAa,CAA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
|
-
CredentialsProviderError
|
|
9
|
-
} from "./chunk-5XIRNUBL.js";
|
|
10
|
-
import {
|
|
11
|
-
__spreadProps,
|
|
12
|
-
__spreadValues
|
|
13
|
-
} from "./chunk-MIXAYX55.js";
|
|
14
|
-
|
|
15
|
-
// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
16
|
-
import { readFileSync } from "fs";
|
|
17
|
-
|
|
18
|
-
// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
19
|
-
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
20
|
-
var _a;
|
|
21
|
-
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
22
|
-
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
23
|
-
let { roleAssumerWithWebIdentity } = init;
|
|
24
|
-
if (!roleAssumerWithWebIdentity) {
|
|
25
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-I3M4QP37.js");
|
|
26
|
-
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity(__spreadProps(__spreadValues({}, init.clientConfig), {
|
|
27
|
-
credentialProviderLogger: init.logger,
|
|
28
|
-
parentClientConfig: __spreadValues(__spreadValues({}, awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig), init.parentClientConfig)
|
|
29
|
-
}), init.clientPlugins);
|
|
30
|
-
}
|
|
31
|
-
return roleAssumerWithWebIdentity({
|
|
32
|
-
RoleArn: roleArn,
|
|
33
|
-
RoleSessionName: roleSessionName != null ? roleSessionName : `aws-sdk-js-session-${Date.now()}`,
|
|
34
|
-
WebIdentityToken: webIdentityToken,
|
|
35
|
-
ProviderId: providerId,
|
|
36
|
-
PolicyArns: policyArns,
|
|
37
|
-
Policy: policy,
|
|
38
|
-
DurationSeconds: durationSeconds
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
43
|
-
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
44
|
-
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
45
|
-
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
46
|
-
var fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
|
|
47
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
48
|
-
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
49
|
-
const webIdentityTokenFile = (_b = init == null ? void 0 : init.webIdentityTokenFile) != null ? _b : process.env[ENV_TOKEN_FILE];
|
|
50
|
-
const roleArn = (_c = init == null ? void 0 : init.roleArn) != null ? _c : process.env[ENV_ROLE_ARN];
|
|
51
|
-
const roleSessionName = (_d = init == null ? void 0 : init.roleSessionName) != null ? _d : process.env[ENV_ROLE_SESSION_NAME];
|
|
52
|
-
if (!webIdentityTokenFile || !roleArn) {
|
|
53
|
-
throw new CredentialsProviderError("Web identity configuration not specified", {
|
|
54
|
-
logger: init.logger
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
const credentials = await fromWebToken(__spreadProps(__spreadValues({}, init), {
|
|
58
|
-
webIdentityToken: (_g = (_f = (_e = externalDataInterceptor) == null ? void 0 : _e.getTokenRecord) == null ? void 0 : _f.call(_e)[webIdentityTokenFile]) != null ? _g : readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
|
|
59
|
-
roleArn,
|
|
60
|
-
roleSessionName
|
|
61
|
-
}))(awsIdentityProperties);
|
|
62
|
-
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
|
|
63
|
-
setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
|
|
64
|
-
}
|
|
65
|
-
return credentials;
|
|
66
|
-
};
|
|
67
|
-
export {
|
|
68
|
-
fromTokenFile,
|
|
69
|
-
fromWebToken
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=dist-es-TOHBZNTZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js","../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js"],"sourcesContent":["import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { externalDataInterceptor } from \"@smithy/shared-ini-file-loader\";\nimport { readFileSync } from \"node:fs\";\nimport { fromWebToken } from \"./fromWebToken\";\nconst ENV_TOKEN_FILE = \"AWS_WEB_IDENTITY_TOKEN_FILE\";\nconst ENV_ROLE_ARN = \"AWS_ROLE_ARN\";\nconst ENV_ROLE_SESSION_NAME = \"AWS_ROLE_SESSION_NAME\";\nexport const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-web-identity - fromTokenFile\");\n const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];\n const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];\n const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];\n if (!webIdentityTokenFile || !roleArn) {\n throw new CredentialsProviderError(\"Web identity configuration not specified\", {\n logger: init.logger,\n });\n }\n const credentials = await fromWebToken({\n ...init,\n webIdentityToken: externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??\n readFileSync(webIdentityTokenFile, { encoding: \"ascii\" }),\n roleArn,\n roleSessionName,\n })(awsIdentityProperties);\n if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {\n setCredentialFeature(credentials, \"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN\", \"h\");\n }\n return credentials;\n};\n","export const fromWebToken = (init) => async (awsIdentityProperties) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-web-identity - fromWebToken\");\n const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;\n let { roleAssumerWithWebIdentity } = init;\n if (!roleAssumerWithWebIdentity) {\n const { getDefaultRoleAssumerWithWebIdentity } = await import(\"@aws-sdk/nested-clients/sts\");\n roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({\n ...init.clientConfig,\n credentialProviderLogger: init.logger,\n parentClientConfig: {\n ...awsIdentityProperties?.callerClientConfig,\n ...init.parentClientConfig,\n },\n }, init.clientPlugins);\n }\n return roleAssumerWithWebIdentity({\n RoleArn: roleArn,\n RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,\n WebIdentityToken: webIdentityToken,\n ProviderId: providerId,\n PolicyArns: policyArns,\n Policy: policy,\n DurationSeconds: durationSeconds,\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;AAGA,SAAS,oBAAoB;;;ACHtB,IAAM,eAAe,CAAC,SAAS,OAAO,0BAA0B;AAAvE;AACI,aAAK,WAAL,mBAAa,MAAM;AACnB,QAAM,EAAE,SAAS,iBAAiB,kBAAkB,YAAY,YAAY,QAAQ,gBAAgB,IAAI;AACxG,MAAI,EAAE,2BAA2B,IAAI;AACrC,MAAI,CAAC,4BAA4B;AAC7B,UAAM,EAAE,qCAAqC,IAAI,MAAM,OAAO,mBAA6B;AAC3F,iCAA6B,qCAAqC,iCAC3D,KAAK,eADsD;AAAA,MAE9D,0BAA0B,KAAK;AAAA,MAC/B,oBAAoB,kCACb,+DAAuB,qBACvB,KAAK;AAAA,IAEhB,IAAG,KAAK,aAAa;AAAA,EACzB;AACA,SAAO,2BAA2B;AAAA,IAC9B,SAAS;AAAA,IACT,iBAAiB,4CAAmB,sBAAsB,KAAK,IAAI,CAAC;AAAA,IACpE,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,iBAAiB;AAAA,EACrB,CAAC;AACL;;;ADnBA,IAAM,iBAAiB;AACvB,IAAM,eAAe;AACrB,IAAM,wBAAwB;AACvB,IAAM,gBAAgB,CAAC,OAAO,CAAC,MAAM,OAAO,0BAA0B;AAR7E;AASI,aAAK,WAAL,mBAAa,MAAM;AACnB,QAAM,wBAAuB,kCAAM,yBAAN,YAA8B,QAAQ,IAAI,cAAc;AACrF,QAAM,WAAU,kCAAM,YAAN,YAAiB,QAAQ,IAAI,YAAY;AACzD,QAAM,mBAAkB,kCAAM,oBAAN,YAAyB,QAAQ,IAAI,qBAAqB;AAClF,MAAI,CAAC,wBAAwB,CAAC,SAAS;AACnC,UAAM,IAAI,yBAAyB,4CAA4C;AAAA,MAC3E,QAAQ,KAAK;AAAA,IACjB,CAAC;AAAA,EACL;AACA,QAAM,cAAc,MAAM,aAAa,iCAChC,OADgC;AAAA,IAEnC,mBAAkB,gEAAyB,mBAAzB,4BAA4C,0BAA5C,YACd,aAAa,sBAAsB,EAAE,UAAU,QAAQ,CAAC;AAAA,IAC5D;AAAA,IACA;AAAA,EACJ,EAAC,EAAE,qBAAqB;AACxB,MAAI,yBAAyB,QAAQ,IAAI,cAAc,GAAG;AACtD,yBAAqB,aAAa,yCAAyC,GAAG;AAAA,EAClF;AACA,SAAO;AACX;","names":[]}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
externalDataInterceptor,
|
|
3
|
-
getProfileName,
|
|
4
|
-
parseKnownFiles
|
|
5
|
-
} from "./chunk-RPNCWADG.js";
|
|
6
|
-
import {
|
|
7
|
-
setCredentialFeature
|
|
8
|
-
} from "./chunk-A5TI2FW3.js";
|
|
9
|
-
import {
|
|
10
|
-
CredentialsProviderError
|
|
11
|
-
} from "./chunk-5XIRNUBL.js";
|
|
12
|
-
import {
|
|
13
|
-
__spreadValues
|
|
14
|
-
} from "./chunk-MIXAYX55.js";
|
|
15
|
-
|
|
16
|
-
// ../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
17
|
-
import { exec } from "child_process";
|
|
18
|
-
import { promisify } from "util";
|
|
19
|
-
|
|
20
|
-
// ../../node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
21
|
-
var getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
22
|
-
var _a;
|
|
23
|
-
if (data.Version !== 1) {
|
|
24
|
-
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
25
|
-
}
|
|
26
|
-
if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) {
|
|
27
|
-
throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
|
|
28
|
-
}
|
|
29
|
-
if (data.Expiration) {
|
|
30
|
-
const currentTime = /* @__PURE__ */ new Date();
|
|
31
|
-
const expireTime = new Date(data.Expiration);
|
|
32
|
-
if (expireTime < currentTime) {
|
|
33
|
-
throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
let accountId = data.AccountId;
|
|
37
|
-
if (!accountId && ((_a = profiles == null ? void 0 : profiles[profileName]) == null ? void 0 : _a.aws_account_id)) {
|
|
38
|
-
accountId = profiles[profileName].aws_account_id;
|
|
39
|
-
}
|
|
40
|
-
const credentials = __spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
41
|
-
accessKeyId: data.AccessKeyId,
|
|
42
|
-
secretAccessKey: data.SecretAccessKey
|
|
43
|
-
}, data.SessionToken && { sessionToken: data.SessionToken }), data.Expiration && { expiration: new Date(data.Expiration) }), data.CredentialScope && { credentialScope: data.CredentialScope }), accountId && { accountId });
|
|
44
|
-
setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
|
|
45
|
-
return credentials;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
// ../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
49
|
-
var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
50
|
-
var _a, _b, _c;
|
|
51
|
-
const profile = profiles[profileName];
|
|
52
|
-
if (profiles[profileName]) {
|
|
53
|
-
const credentialProcess = profile["credential_process"];
|
|
54
|
-
if (credentialProcess !== void 0) {
|
|
55
|
-
const execPromise = promisify((_c = (_b = (_a = externalDataInterceptor) == null ? void 0 : _a.getTokenRecord) == null ? void 0 : _b.call(_a).exec) != null ? _c : exec);
|
|
56
|
-
try {
|
|
57
|
-
const { stdout } = await execPromise(credentialProcess);
|
|
58
|
-
let data;
|
|
59
|
-
try {
|
|
60
|
-
data = JSON.parse(stdout.trim());
|
|
61
|
-
} catch (e) {
|
|
62
|
-
throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
|
|
63
|
-
}
|
|
64
|
-
return getValidatedProcessCredentials(profileName, data, profiles);
|
|
65
|
-
} catch (error) {
|
|
66
|
-
throw new CredentialsProviderError(error.message, { logger });
|
|
67
|
-
}
|
|
68
|
-
} else {
|
|
69
|
-
throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
70
|
-
}
|
|
71
|
-
} else {
|
|
72
|
-
throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
73
|
-
logger
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
// ../../node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
79
|
-
var fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
80
|
-
var _a, _b;
|
|
81
|
-
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
82
|
-
const profiles = await parseKnownFiles(init);
|
|
83
|
-
return resolveProcessCredentials(getProfileName({
|
|
84
|
-
profile: (_b = init.profile) != null ? _b : callerClientConfig == null ? void 0 : callerClientConfig.profile
|
|
85
|
-
}), profiles, init.logger);
|
|
86
|
-
};
|
|
87
|
-
export {
|
|
88
|
-
fromProcess
|
|
89
|
-
};
|
|
90
|
-
//# sourceMappingURL=dist-es-XNAC47MK.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js","../../../node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js","../../../node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js"],"sourcesContent":["import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { externalDataInterceptor } from \"@smithy/shared-ini-file-loader\";\nimport { exec } from \"node:child_process\";\nimport { promisify } from \"node:util\";\nimport { getValidatedProcessCredentials } from \"./getValidatedProcessCredentials\";\nexport const resolveProcessCredentials = async (profileName, profiles, logger) => {\n const profile = profiles[profileName];\n if (profiles[profileName]) {\n const credentialProcess = profile[\"credential_process\"];\n if (credentialProcess !== undefined) {\n const execPromise = promisify(externalDataInterceptor?.getTokenRecord?.().exec ?? exec);\n try {\n const { stdout } = await execPromise(credentialProcess);\n let data;\n try {\n data = JSON.parse(stdout.trim());\n }\n catch {\n throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);\n }\n return getValidatedProcessCredentials(profileName, data, profiles);\n }\n catch (error) {\n throw new CredentialsProviderError(error.message, { logger });\n }\n }\n else {\n throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });\n }\n }\n else {\n throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {\n logger,\n });\n }\n};\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const getValidatedProcessCredentials = (profileName, data, profiles) => {\n if (data.Version !== 1) {\n throw Error(`Profile ${profileName} credential_process did not return Version 1.`);\n }\n if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) {\n throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);\n }\n if (data.Expiration) {\n const currentTime = new Date();\n const expireTime = new Date(data.Expiration);\n if (expireTime < currentTime) {\n throw Error(`Profile ${profileName} credential_process returned expired credentials.`);\n }\n }\n let accountId = data.AccountId;\n if (!accountId && profiles?.[profileName]?.aws_account_id) {\n accountId = profiles[profileName].aws_account_id;\n }\n const credentials = {\n accessKeyId: data.AccessKeyId,\n secretAccessKey: data.SecretAccessKey,\n ...(data.SessionToken && { sessionToken: data.SessionToken }),\n ...(data.Expiration && { expiration: new Date(data.Expiration) }),\n ...(data.CredentialScope && { credentialScope: data.CredentialScope }),\n ...(accountId && { accountId }),\n };\n setCredentialFeature(credentials, \"CREDENTIALS_PROCESS\", \"w\");\n return credentials;\n};\n","import { getProfileName, parseKnownFiles } from \"@smithy/shared-ini-file-loader\";\nimport { resolveProcessCredentials } from \"./resolveProcessCredentials\";\nexport const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-process - fromProcess\");\n const profiles = await parseKnownFiles(init);\n return resolveProcessCredentials(getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n }), profiles, init.logger);\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,SAAS,YAAY;AACrB,SAAS,iBAAiB;;;ACFnB,IAAM,iCAAiC,CAAC,aAAa,MAAM,aAAa;AAD/E;AAEI,MAAI,KAAK,YAAY,GAAG;AACpB,UAAM,MAAM,WAAW,WAAW,+CAA+C;AAAA,EACrF;AACA,MAAI,KAAK,gBAAgB,UAAa,KAAK,oBAAoB,QAAW;AACtE,UAAM,MAAM,WAAW,WAAW,mDAAmD;AAAA,EACzF;AACA,MAAI,KAAK,YAAY;AACjB,UAAM,cAAc,oBAAI,KAAK;AAC7B,UAAM,aAAa,IAAI,KAAK,KAAK,UAAU;AAC3C,QAAI,aAAa,aAAa;AAC1B,YAAM,MAAM,WAAW,WAAW,mDAAmD;AAAA,IACzF;AAAA,EACJ;AACA,MAAI,YAAY,KAAK;AACrB,MAAI,CAAC,eAAa,0CAAW,iBAAX,mBAAyB,iBAAgB;AACvD,gBAAY,SAAS,WAAW,EAAE;AAAA,EACtC;AACA,QAAM,cAAc;AAAA,IAChB,aAA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AAe;AAAA,IAC5C,UAAS,UAAK,YAAL,YAAgB,yDAAoB;AAAA,EACjD,CAAC,GAAG,UAAU,KAAK,MAAM;AAC7B;","names":[]}
|
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fromUtf8,
|
|
3
|
-
toUtf8
|
|
4
|
-
} from "./chunk-KJX5LOMN.js";
|
|
5
|
-
import {
|
|
6
|
-
__asyncGenerator,
|
|
7
|
-
__await,
|
|
8
|
-
__forAwait,
|
|
9
|
-
__publicField,
|
|
10
|
-
__spreadValues
|
|
11
|
-
} from "./chunk-MIXAYX55.js";
|
|
12
|
-
|
|
13
|
-
// ../../node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js
|
|
14
|
-
var EventStreamSerde = class {
|
|
15
|
-
constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType }) {
|
|
16
|
-
__publicField(this, "marshaller");
|
|
17
|
-
__publicField(this, "serializer");
|
|
18
|
-
__publicField(this, "deserializer");
|
|
19
|
-
__publicField(this, "serdeContext");
|
|
20
|
-
__publicField(this, "defaultContentType");
|
|
21
|
-
this.marshaller = marshaller;
|
|
22
|
-
this.serializer = serializer;
|
|
23
|
-
this.deserializer = deserializer;
|
|
24
|
-
this.serdeContext = serdeContext;
|
|
25
|
-
this.defaultContentType = defaultContentType;
|
|
26
|
-
}
|
|
27
|
-
async serializeEventStream({ eventStream, requestSchema, initialRequest }) {
|
|
28
|
-
const marshaller = this.marshaller;
|
|
29
|
-
const eventStreamMember = requestSchema.getEventStreamMember();
|
|
30
|
-
const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
|
|
31
|
-
const serializer = this.serializer;
|
|
32
|
-
const defaultContentType = this.defaultContentType;
|
|
33
|
-
const initialRequestMarker = /* @__PURE__ */ Symbol("initialRequestMarker");
|
|
34
|
-
const eventStreamIterable = {
|
|
35
|
-
[Symbol.asyncIterator]() {
|
|
36
|
-
return __asyncGenerator(this, null, function* () {
|
|
37
|
-
if (initialRequest) {
|
|
38
|
-
const headers = {
|
|
39
|
-
":event-type": { type: "string", value: "initial-request" },
|
|
40
|
-
":message-type": { type: "string", value: "event" },
|
|
41
|
-
":content-type": { type: "string", value: defaultContentType }
|
|
42
|
-
};
|
|
43
|
-
serializer.write(requestSchema, initialRequest);
|
|
44
|
-
const body = serializer.flush();
|
|
45
|
-
yield {
|
|
46
|
-
[initialRequestMarker]: true,
|
|
47
|
-
headers,
|
|
48
|
-
body
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
try {
|
|
52
|
-
for (var iter = __forAwait(eventStream), more, temp, error; more = !(temp = yield new __await(iter.next())).done; more = false) {
|
|
53
|
-
const page = temp.value;
|
|
54
|
-
yield page;
|
|
55
|
-
}
|
|
56
|
-
} catch (temp) {
|
|
57
|
-
error = [temp];
|
|
58
|
-
} finally {
|
|
59
|
-
try {
|
|
60
|
-
more && (temp = iter.return) && (yield new __await(temp.call(iter)));
|
|
61
|
-
} finally {
|
|
62
|
-
if (error)
|
|
63
|
-
throw error[0];
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
return marshaller.serialize(eventStreamIterable, (event) => {
|
|
70
|
-
if (event[initialRequestMarker]) {
|
|
71
|
-
return {
|
|
72
|
-
headers: event.headers,
|
|
73
|
-
body: event.body
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
let unionMember = "";
|
|
77
|
-
for (const key in event) {
|
|
78
|
-
if (key !== "__type") {
|
|
79
|
-
unionMember = key;
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
const { additionalHeaders, body, eventType, explicitPayloadContentType } = this.writeEventBody(unionMember, unionSchema, event);
|
|
84
|
-
const headers = __spreadValues({
|
|
85
|
-
":event-type": { type: "string", value: eventType },
|
|
86
|
-
":message-type": { type: "string", value: "event" },
|
|
87
|
-
":content-type": { type: "string", value: explicitPayloadContentType != null ? explicitPayloadContentType : defaultContentType }
|
|
88
|
-
}, additionalHeaders);
|
|
89
|
-
return {
|
|
90
|
-
headers,
|
|
91
|
-
body
|
|
92
|
-
};
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
async deserializeEventStream({ response, responseSchema, initialResponseContainer }) {
|
|
96
|
-
var _a;
|
|
97
|
-
const marshaller = this.marshaller;
|
|
98
|
-
const eventStreamMember = responseSchema.getEventStreamMember();
|
|
99
|
-
const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
|
|
100
|
-
const memberSchemas = unionSchema.getMemberSchemas();
|
|
101
|
-
const initialResponseMarker = /* @__PURE__ */ Symbol("initialResponseMarker");
|
|
102
|
-
const asyncIterable = marshaller.deserialize(response.body, async (event) => {
|
|
103
|
-
var _a2, _b, _c;
|
|
104
|
-
let unionMember = "";
|
|
105
|
-
for (const key in event) {
|
|
106
|
-
if (key !== "__type") {
|
|
107
|
-
unionMember = key;
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const body = event[unionMember].body;
|
|
112
|
-
if (unionMember === "initial-response") {
|
|
113
|
-
const dataObject = await this.deserializer.read(responseSchema, body);
|
|
114
|
-
delete dataObject[eventStreamMember];
|
|
115
|
-
return __spreadValues({
|
|
116
|
-
[initialResponseMarker]: true
|
|
117
|
-
}, dataObject);
|
|
118
|
-
} else if (unionMember in memberSchemas) {
|
|
119
|
-
const eventStreamSchema = memberSchemas[unionMember];
|
|
120
|
-
if (eventStreamSchema.isStructSchema()) {
|
|
121
|
-
const out = {};
|
|
122
|
-
let hasBindings = false;
|
|
123
|
-
for (const [name, member] of eventStreamSchema.structIterator()) {
|
|
124
|
-
const { eventHeader, eventPayload } = member.getMergedTraits();
|
|
125
|
-
hasBindings = hasBindings || Boolean(eventHeader || eventPayload);
|
|
126
|
-
if (eventPayload) {
|
|
127
|
-
if (member.isBlobSchema()) {
|
|
128
|
-
out[name] = body;
|
|
129
|
-
} else if (member.isStringSchema()) {
|
|
130
|
-
out[name] = ((_b = (_a2 = this.serdeContext) == null ? void 0 : _a2.utf8Encoder) != null ? _b : toUtf8)(body);
|
|
131
|
-
} else if (member.isStructSchema()) {
|
|
132
|
-
out[name] = await this.deserializer.read(member, body);
|
|
133
|
-
}
|
|
134
|
-
} else if (eventHeader) {
|
|
135
|
-
const value = (_c = event[unionMember].headers[name]) == null ? void 0 : _c.value;
|
|
136
|
-
if (value != null) {
|
|
137
|
-
if (member.isNumericSchema()) {
|
|
138
|
-
if (value && typeof value === "object" && "bytes" in value) {
|
|
139
|
-
out[name] = BigInt(value.toString());
|
|
140
|
-
} else {
|
|
141
|
-
out[name] = Number(value);
|
|
142
|
-
}
|
|
143
|
-
} else {
|
|
144
|
-
out[name] = value;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if (hasBindings) {
|
|
150
|
-
return {
|
|
151
|
-
[unionMember]: out
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
if (body.byteLength === 0) {
|
|
155
|
-
return {
|
|
156
|
-
[unionMember]: {}
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
return {
|
|
161
|
-
[unionMember]: await this.deserializer.read(eventStreamSchema, body)
|
|
162
|
-
};
|
|
163
|
-
} else {
|
|
164
|
-
return {
|
|
165
|
-
$unknown: event
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
const asyncIterator = asyncIterable[Symbol.asyncIterator]();
|
|
170
|
-
const firstEvent = await asyncIterator.next();
|
|
171
|
-
if (firstEvent.done) {
|
|
172
|
-
return asyncIterable;
|
|
173
|
-
}
|
|
174
|
-
if ((_a = firstEvent.value) == null ? void 0 : _a[initialResponseMarker]) {
|
|
175
|
-
if (!responseSchema) {
|
|
176
|
-
throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
|
|
177
|
-
}
|
|
178
|
-
for (const key in firstEvent.value) {
|
|
179
|
-
initialResponseContainer[key] = firstEvent.value[key];
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return {
|
|
183
|
-
[Symbol.asyncIterator]() {
|
|
184
|
-
return __asyncGenerator(this, null, function* () {
|
|
185
|
-
var _a2;
|
|
186
|
-
if (!((_a2 = firstEvent == null ? void 0 : firstEvent.value) == null ? void 0 : _a2[initialResponseMarker])) {
|
|
187
|
-
yield firstEvent.value;
|
|
188
|
-
}
|
|
189
|
-
while (true) {
|
|
190
|
-
const { done, value } = yield new __await(asyncIterator.next());
|
|
191
|
-
if (done) {
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
yield value;
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
writeEventBody(unionMember, unionSchema, event) {
|
|
201
|
-
var _a, _b, _c;
|
|
202
|
-
const serializer = this.serializer;
|
|
203
|
-
let eventType = unionMember;
|
|
204
|
-
let explicitPayloadMember = null;
|
|
205
|
-
let explicitPayloadContentType;
|
|
206
|
-
const isKnownSchema = (() => {
|
|
207
|
-
const struct = unionSchema.getSchema();
|
|
208
|
-
return struct[4].includes(unionMember);
|
|
209
|
-
})();
|
|
210
|
-
const additionalHeaders = {};
|
|
211
|
-
if (!isKnownSchema) {
|
|
212
|
-
const [type, value] = event[unionMember];
|
|
213
|
-
eventType = type;
|
|
214
|
-
serializer.write(15, value);
|
|
215
|
-
} else {
|
|
216
|
-
const eventSchema = unionSchema.getMemberSchema(unionMember);
|
|
217
|
-
if (eventSchema.isStructSchema()) {
|
|
218
|
-
for (const [memberName, memberSchema] of eventSchema.structIterator()) {
|
|
219
|
-
const { eventHeader, eventPayload } = memberSchema.getMergedTraits();
|
|
220
|
-
if (eventPayload) {
|
|
221
|
-
explicitPayloadMember = memberName;
|
|
222
|
-
} else if (eventHeader) {
|
|
223
|
-
const value = event[unionMember][memberName];
|
|
224
|
-
let type = "binary";
|
|
225
|
-
if (memberSchema.isNumericSchema()) {
|
|
226
|
-
if ((-2) ** 31 <= value && value <= 2 ** 31 - 1) {
|
|
227
|
-
type = "integer";
|
|
228
|
-
} else {
|
|
229
|
-
type = "long";
|
|
230
|
-
}
|
|
231
|
-
} else if (memberSchema.isTimestampSchema()) {
|
|
232
|
-
type = "timestamp";
|
|
233
|
-
} else if (memberSchema.isStringSchema()) {
|
|
234
|
-
type = "string";
|
|
235
|
-
} else if (memberSchema.isBooleanSchema()) {
|
|
236
|
-
type = "boolean";
|
|
237
|
-
}
|
|
238
|
-
if (value != null) {
|
|
239
|
-
additionalHeaders[memberName] = {
|
|
240
|
-
type,
|
|
241
|
-
value
|
|
242
|
-
};
|
|
243
|
-
delete event[unionMember][memberName];
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
if (explicitPayloadMember !== null) {
|
|
248
|
-
const payloadSchema = eventSchema.getMemberSchema(explicitPayloadMember);
|
|
249
|
-
if (payloadSchema.isBlobSchema()) {
|
|
250
|
-
explicitPayloadContentType = "application/octet-stream";
|
|
251
|
-
} else if (payloadSchema.isStringSchema()) {
|
|
252
|
-
explicitPayloadContentType = "text/plain";
|
|
253
|
-
}
|
|
254
|
-
serializer.write(payloadSchema, event[unionMember][explicitPayloadMember]);
|
|
255
|
-
} else {
|
|
256
|
-
serializer.write(eventSchema, event[unionMember]);
|
|
257
|
-
}
|
|
258
|
-
} else if (eventSchema.isUnitSchema()) {
|
|
259
|
-
serializer.write(eventSchema, {});
|
|
260
|
-
} else {
|
|
261
|
-
throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
const messageSerialization = (_a = serializer.flush()) != null ? _a : new Uint8Array();
|
|
265
|
-
const body = typeof messageSerialization === "string" ? ((_c = (_b = this.serdeContext) == null ? void 0 : _b.utf8Decoder) != null ? _c : fromUtf8)(messageSerialization) : messageSerialization;
|
|
266
|
-
return {
|
|
267
|
-
body,
|
|
268
|
-
eventType,
|
|
269
|
-
explicitPayloadContentType,
|
|
270
|
-
additionalHeaders
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
export {
|
|
275
|
-
EventStreamSerde
|
|
276
|
-
};
|
|
277
|
-
//# sourceMappingURL=event-streams-WAZW4P3K.js.map
|