@monolayer/sdk 1.2.5 → 1.3.0-canary.2

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.
Files changed (47) hide show
  1. package/dist/bin/chunk-2DM36AIF.js +60 -0
  2. package/dist/bin/chunk-3TV5KLB7.js +105 -0
  3. package/dist/bin/chunk-54HDPH52.js +116 -0
  4. package/dist/bin/chunk-AKHG66MJ.js +2359 -0
  5. package/dist/bin/chunk-ASIK3ESJ.js +37 -0
  6. package/dist/bin/chunk-AV7FB56K.js +14 -0
  7. package/dist/bin/chunk-D6MRFOU6.js +62 -0
  8. package/dist/bin/chunk-DQ2PXUF5.js +44 -0
  9. package/dist/bin/chunk-GE4ESXBP.js +57 -0
  10. package/dist/bin/chunk-K4XCYO2X.js +1637 -0
  11. package/dist/bin/chunk-KHQQRHZY.js +969 -0
  12. package/dist/bin/chunk-KSHJCBUY.js +938 -0
  13. package/dist/bin/chunk-KW25ZB6Z.js +14 -0
  14. package/dist/bin/chunk-SYAMBCRY.js +54 -0
  15. package/dist/bin/chunk-T4MZMT2A.js +122 -0
  16. package/dist/bin/chunk-U43L2J36.js +1875 -0
  17. package/dist/bin/chunk-UKX3KEC2.js +37 -0
  18. package/dist/bin/chunk-X7GJVU6X.js +182 -0
  19. package/dist/bin/cli.js +23 -61
  20. package/dist/bin/dist-es-4LCK4BMD.js +81 -0
  21. package/dist/bin/dist-es-4ULGGWP4.js +361 -0
  22. package/dist/bin/dist-es-7BYCFULM.js +7 -0
  23. package/dist/bin/dist-es-A2JHLMIV.js +154 -0
  24. package/dist/bin/dist-es-AWY666YH.js +292 -0
  25. package/dist/bin/dist-es-KUMQWKJB.js +194 -0
  26. package/dist/bin/dist-es-TNZXIBKF.js +292 -0
  27. package/dist/bin/dist-es-TV7F3ZAE.js +7 -0
  28. package/dist/bin/dist-es-XD3WAN5D.js +154 -0
  29. package/dist/bin/dist-es-YGJKPYIO.js +81 -0
  30. package/dist/bin/dist-es-YYROUSP5.js +62 -0
  31. package/dist/bin/dist-es-ZOY57CKU.js +62 -0
  32. package/dist/bin/dist-es-ZVXNFAFI.js +194 -0
  33. package/dist/bin/esm-ID5USS7G.js +4773 -0
  34. package/dist/bin/loadSso-55OGDGPY.js +484 -0
  35. package/dist/bin/loadSso-UYOIOSOA.js +480 -0
  36. package/dist/bin/sso-oidc-BHBT6MBW.js +732 -0
  37. package/dist/bin/sso-oidc-WOAY6JEM.js +733 -0
  38. package/dist/bin/sts-22SIO74C.js +1109 -0
  39. package/dist/bin/sts-SCV3QXFF.js +1064 -0
  40. package/dist/bin/sts-YWYJ3LVJ.js +1064 -0
  41. package/dist/cjs/workloads/stateless/broadcast/client/provider.d.ts +3 -1
  42. package/dist/cjs/workloads/stateless/broadcast/client/provider.js +16 -5
  43. package/dist/cjs/workloads/stateless/task/dispatcher.js +31 -0
  44. package/dist/esm/workloads/stateless/broadcast/client/provider.d.ts +3 -1
  45. package/dist/esm/workloads/stateless/broadcast/client/provider.js +16 -5
  46. package/dist/esm/workloads/stateless/task/dispatcher.js +8 -0
  47. package/package.json +1 -1
@@ -0,0 +1,37 @@
1
+ import { createRequire } from 'module';
2
+ import { setCredentialFeature } from './chunk-AV7FB56K.js';
3
+ import { CredentialsProviderError } from './chunk-54HDPH52.js';
4
+
5
+ createRequire(import.meta.url);
6
+
7
+ // ../../node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
8
+ var ENV_KEY = "AWS_ACCESS_KEY_ID";
9
+ var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
10
+ var ENV_SESSION = "AWS_SESSION_TOKEN";
11
+ var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
12
+ var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
13
+ var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
14
+ var fromEnv = (init) => async () => {
15
+ init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
16
+ const accessKeyId = process.env[ENV_KEY];
17
+ const secretAccessKey = process.env[ENV_SECRET];
18
+ const sessionToken = process.env[ENV_SESSION];
19
+ const expiry = process.env[ENV_EXPIRATION];
20
+ const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
21
+ const accountId = process.env[ENV_ACCOUNT_ID];
22
+ if (accessKeyId && secretAccessKey) {
23
+ const credentials = {
24
+ accessKeyId,
25
+ secretAccessKey,
26
+ ...sessionToken && { sessionToken },
27
+ ...expiry && { expiration: new Date(expiry) },
28
+ ...credentialScope && { credentialScope },
29
+ ...accountId && { accountId }
30
+ };
31
+ setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
32
+ return credentials;
33
+ }
34
+ throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
35
+ };
36
+
37
+ export { ENV_ACCOUNT_ID, ENV_CREDENTIAL_SCOPE, ENV_EXPIRATION, ENV_KEY, ENV_SECRET, ENV_SESSION, fromEnv };
@@ -0,0 +1,14 @@
1
+ import { createRequire } from 'module';
2
+
3
+ createRequire(import.meta.url);
4
+
5
+ // ../../node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js
6
+ function setCredentialFeature(credentials, feature, value) {
7
+ if (!credentials.$source) {
8
+ credentials.$source = {};
9
+ }
10
+ credentials.$source[feature] = value;
11
+ return credentials;
12
+ }
13
+
14
+ export { setCredentialFeature };
@@ -0,0 +1,62 @@
1
+ import { createRequire } from 'module';
2
+
3
+ createRequire(import.meta.url);
4
+
5
+ // ../../node_modules/@smithy/types/dist-es/middleware.js
6
+ var SMITHY_CONTEXT_KEY = "__smithy_context";
7
+
8
+ // ../../node_modules/@smithy/types/dist-es/auth/auth.js
9
+ var HttpAuthLocation;
10
+ (function(HttpAuthLocation2) {
11
+ HttpAuthLocation2["HEADER"] = "header";
12
+ HttpAuthLocation2["QUERY"] = "query";
13
+ })(HttpAuthLocation || (HttpAuthLocation = {}));
14
+
15
+ // ../../node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js
16
+ var HttpApiKeyAuthLocation;
17
+ (function(HttpApiKeyAuthLocation2) {
18
+ HttpApiKeyAuthLocation2["HEADER"] = "header";
19
+ HttpApiKeyAuthLocation2["QUERY"] = "query";
20
+ })(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {}));
21
+
22
+ // ../../node_modules/@smithy/types/dist-es/endpoint.js
23
+ var EndpointURLScheme;
24
+ (function(EndpointURLScheme2) {
25
+ EndpointURLScheme2["HTTP"] = "http";
26
+ EndpointURLScheme2["HTTPS"] = "https";
27
+ })(EndpointURLScheme || (EndpointURLScheme = {}));
28
+
29
+ // ../../node_modules/@smithy/types/dist-es/extensions/checksum.js
30
+ var AlgorithmId;
31
+ (function(AlgorithmId2) {
32
+ AlgorithmId2["MD5"] = "md5";
33
+ AlgorithmId2["CRC32"] = "crc32";
34
+ AlgorithmId2["CRC32C"] = "crc32c";
35
+ AlgorithmId2["SHA1"] = "sha1";
36
+ AlgorithmId2["SHA256"] = "sha256";
37
+ })(AlgorithmId || (AlgorithmId = {}));
38
+
39
+ // ../../node_modules/@smithy/types/dist-es/http.js
40
+ var FieldPosition;
41
+ (function(FieldPosition2) {
42
+ FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
43
+ FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
44
+ })(FieldPosition || (FieldPosition = {}));
45
+
46
+ // ../../node_modules/@smithy/types/dist-es/profile.js
47
+ var IniSectionType;
48
+ (function(IniSectionType2) {
49
+ IniSectionType2["PROFILE"] = "profile";
50
+ IniSectionType2["SSO_SESSION"] = "sso-session";
51
+ IniSectionType2["SERVICES"] = "services";
52
+ })(IniSectionType || (IniSectionType = {}));
53
+
54
+ // ../../node_modules/@smithy/types/dist-es/transfer.js
55
+ var RequestHandlerProtocol;
56
+ (function(RequestHandlerProtocol2) {
57
+ RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
58
+ RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
59
+ RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
60
+ })(RequestHandlerProtocol || (RequestHandlerProtocol = {}));
61
+
62
+ export { AlgorithmId, EndpointURLScheme, IniSectionType, SMITHY_CONTEXT_KEY };
@@ -0,0 +1,44 @@
1
+ import { createRequire } from 'module';
2
+
3
+ const require$1 = createRequire(import.meta.url);
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __require = /* @__PURE__ */ ((x) => typeof require$1 !== "undefined" ? require$1 : typeof Proxy !== "undefined" ? new Proxy(x, {
11
+ get: (a, b) => (typeof require$1 !== "undefined" ? require$1 : a)[b]
12
+ }) : x)(function(x) {
13
+ if (typeof require$1 !== "undefined") return require$1.apply(this, arguments);
14
+ throw Error('Dynamic require of "' + x + '" is not supported');
15
+ });
16
+ var __esm = (fn, res) => function __init() {
17
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
18
+ };
19
+ var __commonJS = (cb, mod) => function __require2() {
20
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
21
+ };
22
+ var __export = (target, all) => {
23
+ for (var name in all)
24
+ __defProp(target, name, { get: all[name], enumerable: true });
25
+ };
26
+ var __copyProps = (to, from, except, desc) => {
27
+ if (from && typeof from === "object" || typeof from === "function") {
28
+ for (let key of __getOwnPropNames(from))
29
+ if (!__hasOwnProp.call(to, key) && key !== except)
30
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
31
+ }
32
+ return to;
33
+ };
34
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
35
+ // If the importer is in node compatibility mode or this is not an ESM
36
+ // file that has been converted to a CommonJS file using a Babel-
37
+ // compatible transform (i.e. "__esModule" has not been set), then set
38
+ // "default" to the CommonJS "module.exports" for node compatibility.
39
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
40
+ mod
41
+ ));
42
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
43
+
44
+ export { __commonJS, __esm, __export, __require, __toCommonJS, __toESM };
@@ -0,0 +1,57 @@
1
+ import { createRequire } from 'module';
2
+ import { collectBodyString } from './chunk-KSHJCBUY.js';
3
+
4
+ createRequire(import.meta.url);
5
+
6
+ // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
7
+ var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
8
+ if (encoded.length) {
9
+ try {
10
+ return JSON.parse(encoded);
11
+ } catch (e) {
12
+ if (e?.name === "SyntaxError") {
13
+ Object.defineProperty(e, "$responseBodyText", {
14
+ value: encoded
15
+ });
16
+ }
17
+ throw e;
18
+ }
19
+ }
20
+ return {};
21
+ });
22
+ var parseJsonErrorBody = async (errorBody, context) => {
23
+ const value = await parseJsonBody(errorBody, context);
24
+ value.message = value.message ?? value.Message;
25
+ return value;
26
+ };
27
+ var loadRestJsonErrorCode = (output, data) => {
28
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
29
+ const sanitizeErrorCode = (rawValue) => {
30
+ let cleanValue = rawValue;
31
+ if (typeof cleanValue === "number") {
32
+ cleanValue = cleanValue.toString();
33
+ }
34
+ if (cleanValue.indexOf(",") >= 0) {
35
+ cleanValue = cleanValue.split(",")[0];
36
+ }
37
+ if (cleanValue.indexOf(":") >= 0) {
38
+ cleanValue = cleanValue.split(":")[0];
39
+ }
40
+ if (cleanValue.indexOf("#") >= 0) {
41
+ cleanValue = cleanValue.split("#")[1];
42
+ }
43
+ return cleanValue;
44
+ };
45
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
46
+ if (headerKey !== void 0) {
47
+ return sanitizeErrorCode(output.headers[headerKey]);
48
+ }
49
+ if (data.code !== void 0) {
50
+ return sanitizeErrorCode(data.code);
51
+ }
52
+ if (data["__type"] !== void 0) {
53
+ return sanitizeErrorCode(data["__type"]);
54
+ }
55
+ };
56
+
57
+ export { loadRestJsonErrorCode, parseJsonBody, parseJsonErrorBody };