appos 0.1.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/README.md +399 -0
- package/build/client/assets/IconMail-BZadZvAd.js +1 -0
- package/build/client/assets/_-CgPm6_fJ.js +1 -0
- package/build/client/assets/_index-BCLDp_mg.js +1 -0
- package/build/client/assets/_layout-CTmjtKOZ.js +1 -0
- package/build/client/assets/_layout-HsJ3Zu5t.js +1 -0
- package/build/client/assets/_layout-OcS85aOt.js +1 -0
- package/build/client/assets/app-sidebar-Bm6e4kn_.js +1 -0
- package/build/client/assets/app-sidebar-D2Nsi85j.js +1 -0
- package/build/client/assets/auth-provider-rkzBVtYX.js +1 -0
- package/build/client/assets/brand-CbTWw97e.js +1 -0
- package/build/client/assets/browser-ponyfill-D3yQFvRu.js +2 -0
- package/build/client/assets/button-DtZhoqpk.js +1 -0
- package/build/client/assets/check-D5D2EGI4.js +1 -0
- package/build/client/assets/checkbox-B35Nn166.js +1 -0
- package/build/client/assets/chunk-JG3XND5A-BetDbdG0.js +1 -0
- package/build/client/assets/chunk-UIGDSWPH-DeiamgQc.js +26 -0
- package/build/client/assets/chunk-vBKQ29Cd.js +1 -0
- package/build/client/assets/circle-alert-DB4JluX5.js +1 -0
- package/build/client/assets/compare-Br3z3FUS-BXkA2ojG.js +2 -0
- package/build/client/assets/compiler-runtime-Co9svCia.js +1 -0
- package/build/client/assets/config-ChcA_Pkv.js +1 -0
- package/build/client/assets/createReactComponent-C2TSpqC7.js +1 -0
- package/build/client/assets/dialog-CQrpvURm.js +1 -0
- package/build/client/assets/dist-B6TkSbxV.js +1 -0
- package/build/client/assets/dist-BNO39Rfs.js +1 -0
- package/build/client/assets/dist-BWnI-4xl.js +1 -0
- package/build/client/assets/dist-CA21wN5I.js +1 -0
- package/build/client/assets/dist-CBNvQRbZ.js +1 -0
- package/build/client/assets/dist-CYRPrwOb.js +1 -0
- package/build/client/assets/dist-DKtC0FSi.js +1 -0
- package/build/client/assets/dist-DhfcebhF.js +1 -0
- package/build/client/assets/dist-VqaKdvZu.js +1 -0
- package/build/client/assets/dist-Yn6lj8QC.js +5 -0
- package/build/client/assets/dropdown-menu-CbzduuDa.js +1 -0
- package/build/client/assets/empty-DQRarCKT.js +1 -0
- package/build/client/assets/entry.client-BN1GPjAL.js +10 -0
- package/build/client/assets/es2015-BJguufLZ.js +41 -0
- package/build/client/assets/eye-Ctrln70x.js +1 -0
- package/build/client/assets/file-preview-dialog-BRkWSRN4.js +14 -0
- package/build/client/assets/index-Del2yBnb.js +1 -0
- package/build/client/assets/initReactI18next-CyHiepAw.js +1 -0
- package/build/client/assets/input-V1lM1yoz.js +1 -0
- package/build/client/assets/jsx-runtime-SCjaiuzT.js +1 -0
- package/build/client/assets/lock-Bj7dxHab.js +1 -0
- package/build/client/assets/manifest-ca813980.js +1 -0
- package/build/client/assets/nav-user-BqPUBe9x.js +1 -0
- package/build/client/assets/nav-user-Yu7wt7b_.js +1 -0
- package/build/client/assets/org-switcher-BIuearbE.js +1 -0
- package/build/client/assets/password-input-bor7e4TM.js +1 -0
- package/build/client/assets/react-dom-Bhi-1tDD.js +1 -0
- package/build/client/assets/realtime-BmU1LPhx.js +1 -0
- package/build/client/assets/root-CS5YIV-V.js +3 -0
- package/build/client/assets/root-D0CFuQYc.css +2 -0
- package/build/client/assets/route-B9cwW-UK.js +1 -0
- package/build/client/assets/route-BD2nV1q2.js +1 -0
- package/build/client/assets/route-BEnDcljt.js +1 -0
- package/build/client/assets/route-BR4LdxHR.js +1 -0
- package/build/client/assets/route-BU5TYmVE.js +0 -0
- package/build/client/assets/route-BVmIPEvK.js +11 -0
- package/build/client/assets/route-BY244T48.js +1 -0
- package/build/client/assets/route-Bwd903CU.js +1 -0
- package/build/client/assets/route-CN9iChOk.js +1 -0
- package/build/client/assets/route-CQ3p9Qb1.js +1 -0
- package/build/client/assets/route-CVLnTONw.js +1 -0
- package/build/client/assets/route-CoMZag4T.js +1 -0
- package/build/client/assets/route-CsYSLbnx.js +1 -0
- package/build/client/assets/route-DWNrq2GE.js +1 -0
- package/build/client/assets/route-Dxfmap_u.js +1 -0
- package/build/client/assets/route-Gnx1fkRX.js +0 -0
- package/build/client/assets/route-NduA4SS_.js +1 -0
- package/build/client/assets/route-u2hskgE_.js +1 -0
- package/build/client/assets/route-v9Jwv-AW.js +1 -0
- package/build/client/assets/select-DATRE76_.js +1 -0
- package/build/client/assets/separator-Cla0V581.js +1 -0
- package/build/client/assets/shim-TRiHENXu.js +1 -0
- package/build/client/assets/sidebar-CqrdL512.js +1 -0
- package/build/client/assets/site-header-CZO3qBhf.js +1 -0
- package/build/client/assets/site-header-CwidwSv1.js +1 -0
- package/build/client/assets/social-providers-Bz7f1_yd.js +1 -0
- package/build/client/assets/test-WdoqKbLa.js +1 -0
- package/build/client/assets/tooltip-BeDraHQn.js +1 -0
- package/build/client/assets/trpc-C1CjVipH.js +6 -0
- package/build/client/assets/trust-indicator-D4tEs4Dr.js +20 -0
- package/build/client/assets/use-file-upload-CNPfWC6W.js +1 -0
- package/build/client/assets/useTranslation-Bz7VuQ7j.js +1 -0
- package/build/client/assets/utils-InBzhUf_.js +1 -0
- package/build/client/assets/x-4CC8aqOW.js +1 -0
- package/build/client/favicon.ico +0 -0
- package/build/client/locales/en/emails.json +11 -0
- package/build/client/locales/en/translation.json +411 -0
- package/build/client/locales/zh-CN/emails.json +11 -0
- package/build/client/locales/zh-CN/translation.json +1 -0
- package/build/client/locales/zh-TW/emails.json +11 -0
- package/build/client/locales/zh-TW/translation.json +1 -0
- package/build/client/logo-invert.png +0 -0
- package/build/client/logo.png +0 -0
- package/build/lib/adapter-factory-CLtf7vT5-CTKiMV2u.mjs +19675 -0
- package/build/lib/bun-sqlite-dialect-DN7EKoIB-0pWIoG0L.mjs +155 -0
- package/build/lib/chunk-BYI67GdN.mjs +1 -0
- package/build/lib/chunk-CkKlU7xI.mjs +44 -0
- package/build/lib/client-BtuhFgvy.mjs +65 -0
- package/build/lib/client.d.ts +2272 -0
- package/build/lib/client.js +24 -0
- package/build/lib/date.d.ts +1 -0
- package/build/lib/date.js +1 -0
- package/build/lib/dialect-BeMwdQoz-D41NdSow.mjs +72 -0
- package/build/lib/dist-cjs-B43A5HXv.mjs +169 -0
- package/build/lib/dist-cjs-B_wkbabY.mjs +214 -0
- package/build/lib/dist-cjs-BmbYbMhp.mjs +143 -0
- package/build/lib/dist-cjs-Cc337rwW.mjs +7 -0
- package/build/lib/dist-cjs-CgzfN8xY.mjs +4974 -0
- package/build/lib/dist-cjs-DBFcizQf.mjs +50 -0
- package/build/lib/dist-cjs-DC-UL-xx.mjs +97 -0
- package/build/lib/dist-cjs-DHlTgXUO.mjs +6975 -0
- package/build/lib/dist-cjs-DYAmJYzN.mjs +323 -0
- package/build/lib/dist-cjs-Ddm6Stp9.mjs +1294 -0
- package/build/lib/dist-cjs-GFGBhaZg.mjs +84 -0
- package/build/lib/dist-cjs-ieCOxrOi.mjs +181 -0
- package/build/lib/dist-cjs-nbOGa7i_.mjs +47 -0
- package/build/lib/dist-cjs-pN6ekzMW.mjs +66 -0
- package/build/lib/dist-cjs-yYlQ1OiO.mjs +102 -0
- package/build/lib/esm-DPet4lFW.mjs +15816 -0
- package/build/lib/event-streams-x9fP9BzF.mjs +185 -0
- package/build/lib/file-preview-dialog-Cugg8tEc.mjs +59 -0
- package/build/lib/kysely-adapter-BTWfu5rn.mjs +183 -0
- package/build/lib/magic-string.es-jZcifc5m.mjs +1013 -0
- package/build/lib/memory-adapter-DiU519m9.mjs +147 -0
- package/build/lib/node-ponyfill-Dmm1SWTU.mjs +38212 -0
- package/build/lib/node-sqlite-dialect-BqISUSC3-DYvTLBpY.mjs +155 -0
- package/build/lib/package-DfozRyK6.mjs +5 -0
- package/build/lib/react-dom-CPjM_WCt.mjs +42 -0
- package/build/lib/server.d.mts +76273 -0
- package/build/lib/server.mjs +325 -0
- package/build/lib/sso-oidc-Qom0PEDW.mjs +1036 -0
- package/build/lib/sts-CLRaHSW_.mjs +13 -0
- package/build/lib/sts-Dl7yZqX1.mjs +1405 -0
- package/build/lib/test.d.mts +8922 -0
- package/build/lib/test.mjs +175650 -0
- package/build/lib/ui/index.d.ts +1643 -0
- package/build/lib/ui/index.js +160 -0
- package/build/lib/utils.d.ts +21 -0
- package/build/lib/utils.js +1 -0
- package/build/lib/zod.d.ts +1 -0
- package/build/lib/zod.js +23 -0
- package/build/main.js +2383 -0
- package/build/server/assets/context-BoNg86Eh.js +35 -0
- package/build/server/assets/dialog-B8YbGNaz.js +54 -0
- package/build/server/assets/file-preview-dialog-qWSViOWQ.js +15 -0
- package/build/server/assets/react-CFQ4y0AA.js +13 -0
- package/build/server/assets/react-dom-Ca1YUVo2.js +5 -0
- package/build/server/assets/server-build-BMOfm0ad.js +118 -0
- package/build/server/assets/server.node-B2oksIp8.js +196 -0
- package/build/server/assets/server.node-VQzoub0A.js +1 -0
- package/build/server/index.js +123 -0
- package/package.json +224 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { t as __commonJS } from "./chunk-CkKlU7xI.mjs";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/@smithy/types/dist-cjs/index.js
|
|
4
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJS({ "node_modules/@smithy/types/dist-cjs/index.js": ((exports) => {
|
|
5
|
+
exports.HttpAuthLocation = void 0;
|
|
6
|
+
(function(HttpAuthLocation) {
|
|
7
|
+
HttpAuthLocation["HEADER"] = "header";
|
|
8
|
+
HttpAuthLocation["QUERY"] = "query";
|
|
9
|
+
})(exports.HttpAuthLocation || (exports.HttpAuthLocation = {}));
|
|
10
|
+
exports.HttpApiKeyAuthLocation = void 0;
|
|
11
|
+
(function(HttpApiKeyAuthLocation) {
|
|
12
|
+
HttpApiKeyAuthLocation["HEADER"] = "header";
|
|
13
|
+
HttpApiKeyAuthLocation["QUERY"] = "query";
|
|
14
|
+
})(exports.HttpApiKeyAuthLocation || (exports.HttpApiKeyAuthLocation = {}));
|
|
15
|
+
exports.EndpointURLScheme = void 0;
|
|
16
|
+
(function(EndpointURLScheme) {
|
|
17
|
+
EndpointURLScheme["HTTP"] = "http";
|
|
18
|
+
EndpointURLScheme["HTTPS"] = "https";
|
|
19
|
+
})(exports.EndpointURLScheme || (exports.EndpointURLScheme = {}));
|
|
20
|
+
exports.AlgorithmId = void 0;
|
|
21
|
+
(function(AlgorithmId) {
|
|
22
|
+
AlgorithmId["MD5"] = "md5";
|
|
23
|
+
AlgorithmId["CRC32"] = "crc32";
|
|
24
|
+
AlgorithmId["CRC32C"] = "crc32c";
|
|
25
|
+
AlgorithmId["SHA1"] = "sha1";
|
|
26
|
+
AlgorithmId["SHA256"] = "sha256";
|
|
27
|
+
})(exports.AlgorithmId || (exports.AlgorithmId = {}));
|
|
28
|
+
const getChecksumConfiguration = (runtimeConfig) => {
|
|
29
|
+
const checksumAlgorithms = [];
|
|
30
|
+
if (runtimeConfig.sha256 !== void 0) checksumAlgorithms.push({
|
|
31
|
+
algorithmId: () => exports.AlgorithmId.SHA256,
|
|
32
|
+
checksumConstructor: () => runtimeConfig.sha256
|
|
33
|
+
});
|
|
34
|
+
if (runtimeConfig.md5 != void 0) checksumAlgorithms.push({
|
|
35
|
+
algorithmId: () => exports.AlgorithmId.MD5,
|
|
36
|
+
checksumConstructor: () => runtimeConfig.md5
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
addChecksumAlgorithm(algo) {
|
|
40
|
+
checksumAlgorithms.push(algo);
|
|
41
|
+
},
|
|
42
|
+
checksumAlgorithms() {
|
|
43
|
+
return checksumAlgorithms;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
const resolveChecksumRuntimeConfig = (clientConfig) => {
|
|
48
|
+
const runtimeConfig = {};
|
|
49
|
+
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
50
|
+
runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
|
|
51
|
+
});
|
|
52
|
+
return runtimeConfig;
|
|
53
|
+
};
|
|
54
|
+
const getDefaultClientConfiguration = (runtimeConfig) => {
|
|
55
|
+
return getChecksumConfiguration(runtimeConfig);
|
|
56
|
+
};
|
|
57
|
+
const resolveDefaultRuntimeConfig = (config) => {
|
|
58
|
+
return resolveChecksumRuntimeConfig(config);
|
|
59
|
+
};
|
|
60
|
+
exports.FieldPosition = void 0;
|
|
61
|
+
(function(FieldPosition) {
|
|
62
|
+
FieldPosition[FieldPosition["HEADER"] = 0] = "HEADER";
|
|
63
|
+
FieldPosition[FieldPosition["TRAILER"] = 1] = "TRAILER";
|
|
64
|
+
})(exports.FieldPosition || (exports.FieldPosition = {}));
|
|
65
|
+
const SMITHY_CONTEXT_KEY = "__smithy_context";
|
|
66
|
+
exports.IniSectionType = void 0;
|
|
67
|
+
(function(IniSectionType) {
|
|
68
|
+
IniSectionType["PROFILE"] = "profile";
|
|
69
|
+
IniSectionType["SSO_SESSION"] = "sso-session";
|
|
70
|
+
IniSectionType["SERVICES"] = "services";
|
|
71
|
+
})(exports.IniSectionType || (exports.IniSectionType = {}));
|
|
72
|
+
exports.RequestHandlerProtocol = void 0;
|
|
73
|
+
(function(RequestHandlerProtocol) {
|
|
74
|
+
RequestHandlerProtocol["HTTP_0_9"] = "http/0.9";
|
|
75
|
+
RequestHandlerProtocol["HTTP_1_0"] = "http/1.0";
|
|
76
|
+
RequestHandlerProtocol["TDS_8_0"] = "tds/8.0";
|
|
77
|
+
})(exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {}));
|
|
78
|
+
exports.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY;
|
|
79
|
+
exports.getDefaultClientConfiguration = getDefaultClientConfiguration;
|
|
80
|
+
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
81
|
+
}) });
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
export { require_dist_cjs as t };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { a as __require, o as __toCommonJS, t as __commonJS } from "./chunk-CkKlU7xI.mjs";
|
|
2
|
+
import { I as require_dist_cjs$1, M as require_dist_cjs$3, P as require_dist_cjs$4, t as require_dist_cjs$2, v as init_tslib_es6, y as tslib_es6_exports } from "./dist-cjs-CgzfN8xY.mjs";
|
|
3
|
+
import { t as require_dist_cjs$5 } from "./dist-cjs-DC-UL-xx.mjs";
|
|
4
|
+
import "./dist-cjs-GFGBhaZg.mjs";
|
|
5
|
+
import "./dist-cjs-DBFcizQf.mjs";
|
|
6
|
+
import { n as init_client, t as client_exports } from "./client-BtuhFgvy.mjs";
|
|
7
|
+
|
|
8
|
+
//#region node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js
|
|
9
|
+
var require_checkUrl = /* @__PURE__ */ __commonJS({ "node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js": ((exports) => {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.checkUrl = void 0;
|
|
12
|
+
const property_provider_1$2 = require_dist_cjs$5();
|
|
13
|
+
const ECS_CONTAINER_HOST = "169.254.170.2";
|
|
14
|
+
const EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
15
|
+
const EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
16
|
+
const checkUrl = (url, logger) => {
|
|
17
|
+
if (url.protocol === "https:") return;
|
|
18
|
+
if (url.hostname === ECS_CONTAINER_HOST || url.hostname === EKS_CONTAINER_HOST_IPv4 || url.hostname === EKS_CONTAINER_HOST_IPv6) return;
|
|
19
|
+
if (url.hostname.includes("[")) {
|
|
20
|
+
if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") return;
|
|
21
|
+
} else {
|
|
22
|
+
if (url.hostname === "localhost") return;
|
|
23
|
+
const ipComponents = url.hostname.split(".");
|
|
24
|
+
const inRange = (component) => {
|
|
25
|
+
const num = parseInt(component, 10);
|
|
26
|
+
return 0 <= num && num <= 255;
|
|
27
|
+
};
|
|
28
|
+
if (ipComponents[0] === "127" && inRange(ipComponents[1]) && inRange(ipComponents[2]) && inRange(ipComponents[3]) && ipComponents.length === 4) return;
|
|
29
|
+
}
|
|
30
|
+
throw new property_provider_1$2.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
31
|
+
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
32
|
+
- ECS container host 169.254.170.2
|
|
33
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
|
|
34
|
+
};
|
|
35
|
+
exports.checkUrl = checkUrl;
|
|
36
|
+
}) });
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js
|
|
40
|
+
var require_requestHelpers = /* @__PURE__ */ __commonJS({ "node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js": ((exports) => {
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.createGetRequest = createGetRequest;
|
|
43
|
+
exports.getCredentials = getCredentials;
|
|
44
|
+
const property_provider_1$1 = require_dist_cjs$5();
|
|
45
|
+
const protocol_http_1 = require_dist_cjs$1();
|
|
46
|
+
const smithy_client_1 = require_dist_cjs$2();
|
|
47
|
+
const util_stream_1 = require_dist_cjs$3();
|
|
48
|
+
function createGetRequest(url) {
|
|
49
|
+
return new protocol_http_1.HttpRequest({
|
|
50
|
+
protocol: url.protocol,
|
|
51
|
+
hostname: url.hostname,
|
|
52
|
+
port: Number(url.port),
|
|
53
|
+
path: url.pathname,
|
|
54
|
+
query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {
|
|
55
|
+
acc[k] = v;
|
|
56
|
+
return acc;
|
|
57
|
+
}, {}),
|
|
58
|
+
fragment: url.hash
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
async function getCredentials(response, logger) {
|
|
62
|
+
const str = await (0, util_stream_1.sdkStreamMixin)(response.body).transformToString();
|
|
63
|
+
if (response.statusCode === 200) {
|
|
64
|
+
const parsed = JSON.parse(str);
|
|
65
|
+
if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") throw new property_provider_1$1.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
|
|
66
|
+
return {
|
|
67
|
+
accessKeyId: parsed.AccessKeyId,
|
|
68
|
+
secretAccessKey: parsed.SecretAccessKey,
|
|
69
|
+
sessionToken: parsed.Token,
|
|
70
|
+
expiration: (0, smithy_client_1.parseRfc3339DateTime)(parsed.Expiration)
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
if (response.statusCode >= 400 && response.statusCode < 500) {
|
|
74
|
+
let parsedBody = {};
|
|
75
|
+
try {
|
|
76
|
+
parsedBody = JSON.parse(str);
|
|
77
|
+
} catch (e) {}
|
|
78
|
+
throw Object.assign(new property_provider_1$1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
|
|
79
|
+
Code: parsedBody.Code,
|
|
80
|
+
Message: parsedBody.Message
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
throw new property_provider_1$1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
84
|
+
}
|
|
85
|
+
}) });
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js
|
|
89
|
+
var require_retry_wrapper = /* @__PURE__ */ __commonJS({ "node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js": ((exports) => {
|
|
90
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
91
|
+
exports.retryWrapper = void 0;
|
|
92
|
+
const retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
93
|
+
return async () => {
|
|
94
|
+
for (let i = 0; i < maxRetries; ++i) try {
|
|
95
|
+
return await toRetry();
|
|
96
|
+
} catch (e) {
|
|
97
|
+
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
98
|
+
}
|
|
99
|
+
return await toRetry();
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
exports.retryWrapper = retryWrapper;
|
|
103
|
+
}) });
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js
|
|
107
|
+
var require_fromHttp = /* @__PURE__ */ __commonJS({ "node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js": ((exports) => {
|
|
108
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109
|
+
exports.fromHttp = void 0;
|
|
110
|
+
const tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
111
|
+
const client_1 = (init_client(), __toCommonJS(client_exports));
|
|
112
|
+
const node_http_handler_1 = require_dist_cjs$4();
|
|
113
|
+
const property_provider_1 = require_dist_cjs$5();
|
|
114
|
+
const promises_1 = tslib_1.__importDefault(__require("fs/promises"));
|
|
115
|
+
const checkUrl_1 = require_checkUrl();
|
|
116
|
+
const requestHelpers_1 = require_requestHelpers();
|
|
117
|
+
const retry_wrapper_1 = require_retry_wrapper();
|
|
118
|
+
const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
|
119
|
+
const DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
|
120
|
+
const AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
|
121
|
+
const AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
|
|
122
|
+
const AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
|
|
123
|
+
const fromHttp = (options = {}) => {
|
|
124
|
+
options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
125
|
+
let host;
|
|
126
|
+
const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
|
|
127
|
+
const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
|
|
128
|
+
const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
|
|
129
|
+
const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
|
|
130
|
+
const warn = options.logger?.constructor?.name === "NoOpLogger" || !options.logger?.warn ? console.warn : options.logger.warn.bind(options.logger);
|
|
131
|
+
if (relative && full) {
|
|
132
|
+
warn("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
|
|
133
|
+
warn("awsContainerCredentialsFullUri will take precedence.");
|
|
134
|
+
}
|
|
135
|
+
if (token && tokenFile) {
|
|
136
|
+
warn("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");
|
|
137
|
+
warn("awsContainerAuthorizationToken will take precedence.");
|
|
138
|
+
}
|
|
139
|
+
if (full) host = full;
|
|
140
|
+
else if (relative) host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
|
|
141
|
+
else throw new property_provider_1.CredentialsProviderError(`No HTTP credential provider host provided.
|
|
142
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
|
|
143
|
+
const url = new URL(host);
|
|
144
|
+
(0, checkUrl_1.checkUrl)(url, options.logger);
|
|
145
|
+
const requestHandler = node_http_handler_1.NodeHttpHandler.create({
|
|
146
|
+
requestTimeout: options.timeout ?? 1e3,
|
|
147
|
+
connectionTimeout: options.timeout ?? 1e3
|
|
148
|
+
});
|
|
149
|
+
return (0, retry_wrapper_1.retryWrapper)(async () => {
|
|
150
|
+
const request = (0, requestHelpers_1.createGetRequest)(url);
|
|
151
|
+
if (token) request.headers.Authorization = token;
|
|
152
|
+
else if (tokenFile) request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
|
|
153
|
+
try {
|
|
154
|
+
const result = await requestHandler.handle(request);
|
|
155
|
+
return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z"));
|
|
156
|
+
} catch (e) {
|
|
157
|
+
throw new property_provider_1.CredentialsProviderError(String(e), { logger: options.logger });
|
|
158
|
+
}
|
|
159
|
+
}, options.maxRetries ?? 3, options.timeout ?? 1e3);
|
|
160
|
+
};
|
|
161
|
+
exports.fromHttp = fromHttp;
|
|
162
|
+
}) });
|
|
163
|
+
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
|
|
166
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJS({ "node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js": ((exports) => {
|
|
167
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
168
|
+
exports.fromHttp = void 0;
|
|
169
|
+
var fromHttp_1 = require_fromHttp();
|
|
170
|
+
Object.defineProperty(exports, "fromHttp", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function() {
|
|
173
|
+
return fromHttp_1.fromHttp;
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}) });
|
|
177
|
+
|
|
178
|
+
//#endregion
|
|
179
|
+
export default require_dist_cjs();
|
|
180
|
+
|
|
181
|
+
export { };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { o as __toCommonJS, t as __commonJS } from "./chunk-CkKlU7xI.mjs";
|
|
2
|
+
import { t as require_dist_cjs$1 } from "./dist-cjs-DC-UL-xx.mjs";
|
|
3
|
+
import { n as init_client, t as client_exports } from "./client-BtuhFgvy.mjs";
|
|
4
|
+
|
|
5
|
+
//#region node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js
|
|
6
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJS({ "node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js": ((exports) => {
|
|
7
|
+
var client = (init_client(), __toCommonJS(client_exports));
|
|
8
|
+
var propertyProvider = require_dist_cjs$1();
|
|
9
|
+
const ENV_KEY = "AWS_ACCESS_KEY_ID";
|
|
10
|
+
const ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
|
11
|
+
const ENV_SESSION = "AWS_SESSION_TOKEN";
|
|
12
|
+
const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
|
13
|
+
const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
|
14
|
+
const ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
|
|
15
|
+
const fromEnv = (init) => async () => {
|
|
16
|
+
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
17
|
+
const accessKeyId = process.env[ENV_KEY];
|
|
18
|
+
const secretAccessKey = process.env[ENV_SECRET];
|
|
19
|
+
const sessionToken = process.env[ENV_SESSION];
|
|
20
|
+
const expiry = process.env[ENV_EXPIRATION];
|
|
21
|
+
const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
|
|
22
|
+
const accountId = process.env[ENV_ACCOUNT_ID];
|
|
23
|
+
if (accessKeyId && secretAccessKey) {
|
|
24
|
+
const credentials = {
|
|
25
|
+
accessKeyId,
|
|
26
|
+
secretAccessKey,
|
|
27
|
+
...sessionToken && { sessionToken },
|
|
28
|
+
...expiry && { expiration: new Date(expiry) },
|
|
29
|
+
...credentialScope && { credentialScope },
|
|
30
|
+
...accountId && { accountId }
|
|
31
|
+
};
|
|
32
|
+
client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
|
|
33
|
+
return credentials;
|
|
34
|
+
}
|
|
35
|
+
throw new propertyProvider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
|
36
|
+
};
|
|
37
|
+
exports.ENV_ACCOUNT_ID = ENV_ACCOUNT_ID;
|
|
38
|
+
exports.ENV_CREDENTIAL_SCOPE = ENV_CREDENTIAL_SCOPE;
|
|
39
|
+
exports.ENV_EXPIRATION = ENV_EXPIRATION;
|
|
40
|
+
exports.ENV_KEY = ENV_KEY;
|
|
41
|
+
exports.ENV_SECRET = ENV_SECRET;
|
|
42
|
+
exports.ENV_SESSION = ENV_SESSION;
|
|
43
|
+
exports.fromEnv = fromEnv;
|
|
44
|
+
}) });
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { require_dist_cjs as t };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { a as __require, o as __toCommonJS, t as __commonJS } from "./chunk-CkKlU7xI.mjs";
|
|
2
|
+
import { t as require_dist_cjs$1 } from "./dist-cjs-DC-UL-xx.mjs";
|
|
3
|
+
import { t as require_dist_cjs$2 } from "./dist-cjs-B_wkbabY.mjs";
|
|
4
|
+
import "./dist-cjs-GFGBhaZg.mjs";
|
|
5
|
+
import { n as init_client, t as client_exports } from "./client-BtuhFgvy.mjs";
|
|
6
|
+
|
|
7
|
+
//#region node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
|
|
8
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJS({ "node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js": ((exports) => {
|
|
9
|
+
var sharedIniFileLoader = require_dist_cjs$2();
|
|
10
|
+
var propertyProvider = require_dist_cjs$1();
|
|
11
|
+
var child_process = __require("child_process");
|
|
12
|
+
var util = __require("util");
|
|
13
|
+
var client = (init_client(), __toCommonJS(client_exports));
|
|
14
|
+
const getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
15
|
+
if (data.Version !== 1) throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
16
|
+
if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
|
|
17
|
+
if (data.Expiration) {
|
|
18
|
+
const currentTime = /* @__PURE__ */ new Date();
|
|
19
|
+
if (new Date(data.Expiration) < currentTime) throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
|
|
20
|
+
}
|
|
21
|
+
let accountId = data.AccountId;
|
|
22
|
+
if (!accountId && profiles?.[profileName]?.aws_account_id) accountId = profiles[profileName].aws_account_id;
|
|
23
|
+
const credentials = {
|
|
24
|
+
accessKeyId: data.AccessKeyId,
|
|
25
|
+
secretAccessKey: data.SecretAccessKey,
|
|
26
|
+
...data.SessionToken && { sessionToken: data.SessionToken },
|
|
27
|
+
...data.Expiration && { expiration: new Date(data.Expiration) },
|
|
28
|
+
...data.CredentialScope && { credentialScope: data.CredentialScope },
|
|
29
|
+
...accountId && { accountId }
|
|
30
|
+
};
|
|
31
|
+
client.setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
|
|
32
|
+
return credentials;
|
|
33
|
+
};
|
|
34
|
+
const resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
35
|
+
const profile = profiles[profileName];
|
|
36
|
+
if (profiles[profileName]) {
|
|
37
|
+
const credentialProcess = profile["credential_process"];
|
|
38
|
+
if (credentialProcess !== void 0) {
|
|
39
|
+
const execPromise = util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? child_process.exec);
|
|
40
|
+
try {
|
|
41
|
+
const { stdout } = await execPromise(credentialProcess);
|
|
42
|
+
let data;
|
|
43
|
+
try {
|
|
44
|
+
data = JSON.parse(stdout.trim());
|
|
45
|
+
} catch {
|
|
46
|
+
throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
|
|
47
|
+
}
|
|
48
|
+
return getValidatedProcessCredentials(profileName, data, profiles);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
throw new propertyProvider.CredentialsProviderError(error.message, { logger });
|
|
51
|
+
}
|
|
52
|
+
} else throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
53
|
+
} else throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, { logger });
|
|
54
|
+
};
|
|
55
|
+
const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
56
|
+
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
57
|
+
const profiles = await sharedIniFileLoader.parseKnownFiles(init);
|
|
58
|
+
return resolveProcessCredentials(sharedIniFileLoader.getProfileName({ profile: init.profile ?? callerClientConfig?.profile }), profiles, init.logger);
|
|
59
|
+
};
|
|
60
|
+
exports.fromProcess = fromProcess;
|
|
61
|
+
}) });
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export default require_dist_cjs();
|
|
65
|
+
|
|
66
|
+
export { };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { t as __commonJS } from "./chunk-CkKlU7xI.mjs";
|
|
2
|
+
import { t as require_dist_cjs$3 } from "./dist-cjs-DC-UL-xx.mjs";
|
|
3
|
+
import { t as require_dist_cjs$4 } from "./dist-cjs-B_wkbabY.mjs";
|
|
4
|
+
|
|
5
|
+
//#region node_modules/@smithy/node-config-provider/dist-cjs/index.js
|
|
6
|
+
var require_dist_cjs$2 = /* @__PURE__ */ __commonJS({ "node_modules/@smithy/node-config-provider/dist-cjs/index.js": ((exports) => {
|
|
7
|
+
var propertyProvider = require_dist_cjs$3();
|
|
8
|
+
var sharedIniFileLoader = require_dist_cjs$4();
|
|
9
|
+
function getSelectorName(functionString) {
|
|
10
|
+
try {
|
|
11
|
+
const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
12
|
+
constants.delete("CONFIG");
|
|
13
|
+
constants.delete("CONFIG_PREFIX_SEPARATOR");
|
|
14
|
+
constants.delete("ENV");
|
|
15
|
+
return [...constants].join(", ");
|
|
16
|
+
} catch (e) {
|
|
17
|
+
return functionString;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const fromEnv = (envVarSelector, options) => async () => {
|
|
21
|
+
try {
|
|
22
|
+
const config = envVarSelector(process.env, options);
|
|
23
|
+
if (config === void 0) throw new Error();
|
|
24
|
+
return config;
|
|
25
|
+
} catch (e) {
|
|
26
|
+
throw new propertyProvider.CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const fromSharedConfigFiles = (configSelector, { preferredFile = "config",...init } = {}) => async () => {
|
|
30
|
+
const profile = sharedIniFileLoader.getProfileName(init);
|
|
31
|
+
const { configFile, credentialsFile } = await sharedIniFileLoader.loadSharedConfigFiles(init);
|
|
32
|
+
const profileFromCredentials = credentialsFile[profile] || {};
|
|
33
|
+
const profileFromConfig = configFile[profile] || {};
|
|
34
|
+
const mergedProfile = preferredFile === "config" ? {
|
|
35
|
+
...profileFromCredentials,
|
|
36
|
+
...profileFromConfig
|
|
37
|
+
} : {
|
|
38
|
+
...profileFromConfig,
|
|
39
|
+
...profileFromCredentials
|
|
40
|
+
};
|
|
41
|
+
try {
|
|
42
|
+
const configValue = configSelector(mergedProfile, preferredFile === "config" ? configFile : credentialsFile);
|
|
43
|
+
if (configValue === void 0) throw new Error();
|
|
44
|
+
return configValue;
|
|
45
|
+
} catch (e) {
|
|
46
|
+
throw new propertyProvider.CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const isFunction = (func) => typeof func === "function";
|
|
50
|
+
const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : propertyProvider.fromStatic(defaultValue);
|
|
51
|
+
const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
|
52
|
+
const { signingName, logger } = configuration;
|
|
53
|
+
const envOptions = {
|
|
54
|
+
signingName,
|
|
55
|
+
logger
|
|
56
|
+
};
|
|
57
|
+
return propertyProvider.memoize(propertyProvider.chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
|
|
58
|
+
};
|
|
59
|
+
exports.loadConfig = loadConfig;
|
|
60
|
+
}) });
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region node_modules/@smithy/querystring-parser/dist-cjs/index.js
|
|
64
|
+
var require_dist_cjs$1 = /* @__PURE__ */ __commonJS({ "node_modules/@smithy/querystring-parser/dist-cjs/index.js": ((exports) => {
|
|
65
|
+
function parseQueryString(querystring) {
|
|
66
|
+
const query = {};
|
|
67
|
+
querystring = querystring.replace(/^\?/, "");
|
|
68
|
+
if (querystring) for (const pair of querystring.split("&")) {
|
|
69
|
+
let [key, value = null] = pair.split("=");
|
|
70
|
+
key = decodeURIComponent(key);
|
|
71
|
+
if (value) value = decodeURIComponent(value);
|
|
72
|
+
if (!(key in query)) query[key] = value;
|
|
73
|
+
else if (Array.isArray(query[key])) query[key].push(value);
|
|
74
|
+
else query[key] = [query[key], value];
|
|
75
|
+
}
|
|
76
|
+
return query;
|
|
77
|
+
}
|
|
78
|
+
exports.parseQueryString = parseQueryString;
|
|
79
|
+
}) });
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region node_modules/@smithy/url-parser/dist-cjs/index.js
|
|
83
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJS({ "node_modules/@smithy/url-parser/dist-cjs/index.js": ((exports) => {
|
|
84
|
+
var querystringParser = require_dist_cjs$1();
|
|
85
|
+
const parseUrl = (url) => {
|
|
86
|
+
if (typeof url === "string") return parseUrl(new URL(url));
|
|
87
|
+
const { hostname, pathname, port, protocol, search } = url;
|
|
88
|
+
let query;
|
|
89
|
+
if (search) query = querystringParser.parseQueryString(search);
|
|
90
|
+
return {
|
|
91
|
+
hostname,
|
|
92
|
+
port: port ? parseInt(port) : void 0,
|
|
93
|
+
protocol,
|
|
94
|
+
path: pathname,
|
|
95
|
+
query
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
exports.parseUrl = parseUrl;
|
|
99
|
+
}) });
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
export { require_dist_cjs$2 as n, require_dist_cjs as t };
|