@etainabl/nodejs-sdk 1.3.144 → 1.3.146

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 (35) hide show
  1. package/dist/esm/chunk-5VQORBLK.js +136 -0
  2. package/dist/esm/chunk-5VQORBLK.js.map +1 -0
  3. package/dist/esm/{chunk-WM7HFHZ7.js → chunk-GEJJRBZZ.js} +2 -2
  4. package/dist/esm/{chunk-ERJ7YQOC.js → chunk-JFJBZL6W.js} +2 -3
  5. package/dist/esm/chunk-JFJBZL6W.js.map +1 -0
  6. package/dist/esm/{chunk-XSNDIVB7.js → chunk-V42NON4H.js} +17 -17
  7. package/dist/esm/chunk-V42NON4H.js.map +1 -0
  8. package/dist/esm/{dist-es-H6RNNZCB.js → dist-es-AV5FKRC6.js} +2 -2
  9. package/dist/esm/dist-es-AV5FKRC6.js.map +1 -0
  10. package/dist/esm/{dist-es-TB64XY7K.js → dist-es-CQVI4NNF.js} +4 -4
  11. package/dist/esm/{dist-es-UR3AUDEA.js → dist-es-HQRLUYWI.js} +2 -2
  12. package/dist/esm/{dist-es-NTQEV6F2.js → dist-es-IIKV4LDE.js} +5 -5
  13. package/dist/esm/index.js +3630 -577
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/{loadSso-V7VCWVTK.js → loadSso-2Q7LGXOS.js} +20 -22
  16. package/dist/esm/loadSso-2Q7LGXOS.js.map +1 -0
  17. package/dist/esm/{sso-oidc-NMJAI4GO.js → sso-oidc-7RZV73L6.js} +5 -7
  18. package/dist/esm/{sso-oidc-NMJAI4GO.js.map → sso-oidc-7RZV73L6.js.map} +1 -1
  19. package/dist/esm/{sts-TWR2FNQX.js → sts-IERANB7E.js} +4 -4
  20. package/dist/index.js +4437 -1257
  21. package/dist/index.js.map +1 -1
  22. package/package.json +5 -5
  23. package/dist/esm/chunk-ERJ7YQOC.js.map +0 -1
  24. package/dist/esm/chunk-R7YQNQCA.js +0 -64
  25. package/dist/esm/chunk-R7YQNQCA.js.map +0 -1
  26. package/dist/esm/chunk-UGK43V2L.js +0 -76
  27. package/dist/esm/chunk-UGK43V2L.js.map +0 -1
  28. package/dist/esm/chunk-XSNDIVB7.js.map +0 -1
  29. package/dist/esm/dist-es-H6RNNZCB.js.map +0 -1
  30. package/dist/esm/loadSso-V7VCWVTK.js.map +0 -1
  31. /package/dist/esm/{chunk-WM7HFHZ7.js.map → chunk-GEJJRBZZ.js.map} +0 -0
  32. /package/dist/esm/{dist-es-TB64XY7K.js.map → dist-es-CQVI4NNF.js.map} +0 -0
  33. /package/dist/esm/{dist-es-UR3AUDEA.js.map → dist-es-HQRLUYWI.js.map} +0 -0
  34. /package/dist/esm/{dist-es-NTQEV6F2.js.map → dist-es-IIKV4LDE.js.map} +0 -0
  35. /package/dist/esm/{sts-TWR2FNQX.js.map → sts-IERANB7E.js.map} +0 -0
@@ -0,0 +1,136 @@
1
+ import {
2
+ collectBodyString
3
+ } from "./chunk-JFJBZL6W.js";
4
+ import {
5
+ HttpRequest,
6
+ resolvedPath
7
+ } from "./chunk-6ZE6VFBF.js";
8
+
9
+ // node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js
10
+ function requestBuilder(input, context) {
11
+ return new RequestBuilder(input, context);
12
+ }
13
+ var RequestBuilder = class {
14
+ constructor(input, context) {
15
+ this.input = input;
16
+ this.context = context;
17
+ this.query = {};
18
+ this.method = "";
19
+ this.headers = {};
20
+ this.path = "";
21
+ this.body = null;
22
+ this.hostname = "";
23
+ this.resolvePathStack = [];
24
+ }
25
+ async build() {
26
+ const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint();
27
+ this.path = basePath;
28
+ for (const resolvePath of this.resolvePathStack) {
29
+ resolvePath(this.path);
30
+ }
31
+ return new HttpRequest({
32
+ protocol,
33
+ hostname: this.hostname || hostname,
34
+ port,
35
+ method: this.method,
36
+ path: this.path,
37
+ query: this.query,
38
+ body: this.body,
39
+ headers: this.headers
40
+ });
41
+ }
42
+ hn(hostname) {
43
+ this.hostname = hostname;
44
+ return this;
45
+ }
46
+ bp(uriLabel) {
47
+ this.resolvePathStack.push((basePath) => {
48
+ this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel;
49
+ });
50
+ return this;
51
+ }
52
+ p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
53
+ this.resolvePathStack.push((path) => {
54
+ this.path = resolvedPath(path, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
55
+ });
56
+ return this;
57
+ }
58
+ h(headers) {
59
+ this.headers = headers;
60
+ return this;
61
+ }
62
+ q(query) {
63
+ this.query = query;
64
+ return this;
65
+ }
66
+ b(body) {
67
+ this.body = body;
68
+ return this;
69
+ }
70
+ m(method) {
71
+ this.method = method;
72
+ return this;
73
+ }
74
+ };
75
+
76
+ // node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
77
+ var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
78
+ if (encoded.length) {
79
+ try {
80
+ return JSON.parse(encoded);
81
+ } catch (e) {
82
+ if (e?.name === "SyntaxError") {
83
+ Object.defineProperty(e, "$responseBodyText", {
84
+ value: encoded
85
+ });
86
+ }
87
+ throw e;
88
+ }
89
+ }
90
+ return {};
91
+ });
92
+ var parseJsonErrorBody = async (errorBody, context) => {
93
+ const value = await parseJsonBody(errorBody, context);
94
+ value.message = value.message ?? value.Message;
95
+ return value;
96
+ };
97
+ var loadRestJsonErrorCode = (output, data) => {
98
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
99
+ const sanitizeErrorCode = (rawValue) => {
100
+ let cleanValue = rawValue;
101
+ if (typeof cleanValue === "number") {
102
+ cleanValue = cleanValue.toString();
103
+ }
104
+ if (cleanValue.indexOf(",") >= 0) {
105
+ cleanValue = cleanValue.split(",")[0];
106
+ }
107
+ if (cleanValue.indexOf(":") >= 0) {
108
+ cleanValue = cleanValue.split(":")[0];
109
+ }
110
+ if (cleanValue.indexOf("#") >= 0) {
111
+ cleanValue = cleanValue.split("#")[1];
112
+ }
113
+ return cleanValue;
114
+ };
115
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
116
+ if (headerKey !== void 0) {
117
+ return sanitizeErrorCode(output.headers[headerKey]);
118
+ }
119
+ if (data && typeof data === "object") {
120
+ const codeKey = findKey(data, "code");
121
+ if (codeKey && data[codeKey] !== void 0) {
122
+ return sanitizeErrorCode(data[codeKey]);
123
+ }
124
+ if (data["__type"] !== void 0) {
125
+ return sanitizeErrorCode(data["__type"]);
126
+ }
127
+ }
128
+ };
129
+
130
+ export {
131
+ requestBuilder,
132
+ parseJsonBody,
133
+ parseJsonErrorBody,
134
+ loadRestJsonErrorCode
135
+ };
136
+ //# sourceMappingURL=chunk-5VQORBLK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js","../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js"],"sourcesContent":["import { HttpRequest } from \"@smithy/protocol-http\";\nimport { resolvedPath } from \"./resolve-path\";\nexport function requestBuilder(input, context) {\n return new RequestBuilder(input, context);\n}\nexport class RequestBuilder {\n constructor(input, context) {\n this.input = input;\n this.context = context;\n this.query = {};\n this.method = \"\";\n this.headers = {};\n this.path = \"\";\n this.body = null;\n this.hostname = \"\";\n this.resolvePathStack = [];\n }\n async build() {\n const { hostname, protocol = \"https\", port, path: basePath } = await this.context.endpoint();\n this.path = basePath;\n for (const resolvePath of this.resolvePathStack) {\n resolvePath(this.path);\n }\n return new HttpRequest({\n protocol,\n hostname: this.hostname || hostname,\n port,\n method: this.method,\n path: this.path,\n query: this.query,\n body: this.body,\n headers: this.headers,\n });\n }\n hn(hostname) {\n this.hostname = hostname;\n return this;\n }\n bp(uriLabel) {\n this.resolvePathStack.push((basePath) => {\n this.path = `${basePath?.endsWith(\"/\") ? basePath.slice(0, -1) : basePath || \"\"}` + uriLabel;\n });\n return this;\n }\n p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {\n this.resolvePathStack.push((path) => {\n this.path = resolvedPath(path, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);\n });\n return this;\n }\n h(headers) {\n this.headers = headers;\n return this;\n }\n q(query) {\n this.query = query;\n return this;\n }\n b(body) {\n this.body = body;\n return this;\n }\n m(method) {\n this.method = method;\n return this;\n }\n}\n","import { collectBodyString } from \"../common\";\nexport const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {\n if (encoded.length) {\n try {\n return JSON.parse(encoded);\n }\n catch (e) {\n if (e?.name === \"SyntaxError\") {\n Object.defineProperty(e, \"$responseBodyText\", {\n value: encoded,\n });\n }\n throw e;\n }\n }\n return {};\n});\nexport const parseJsonErrorBody = async (errorBody, context) => {\n const value = await parseJsonBody(errorBody, context);\n value.message = value.message ?? value.Message;\n return value;\n};\nexport const loadRestJsonErrorCode = (output, data) => {\n const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());\n const sanitizeErrorCode = (rawValue) => {\n let cleanValue = rawValue;\n if (typeof cleanValue === \"number\") {\n cleanValue = cleanValue.toString();\n }\n if (cleanValue.indexOf(\",\") >= 0) {\n cleanValue = cleanValue.split(\",\")[0];\n }\n if (cleanValue.indexOf(\":\") >= 0) {\n cleanValue = cleanValue.split(\":\")[0];\n }\n if (cleanValue.indexOf(\"#\") >= 0) {\n cleanValue = cleanValue.split(\"#\")[1];\n }\n return cleanValue;\n };\n const headerKey = findKey(output.headers, \"x-amzn-errortype\");\n if (headerKey !== undefined) {\n return sanitizeErrorCode(output.headers[headerKey]);\n }\n if (data && typeof data === \"object\") {\n const codeKey = findKey(data, \"code\");\n if (codeKey && data[codeKey] !== undefined) {\n return sanitizeErrorCode(data[codeKey]);\n }\n if (data[\"__type\"] !== undefined) {\n return sanitizeErrorCode(data[\"__type\"]);\n }\n }\n};\n"],"mappings":";;;;;;;;;AAEO,SA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M,GAAG,EAAE,CAAC;AAAA,IACxC;AACA,WAAO;AAAA,EACX;AACA,QAAM,YAAY,QAAQ,OAAO,SAAS,kBAAkB;AAC5D,MAAI,cAAc,QAAW;AACzB,WAAO,kBAAkB,OAAO,QAAQ,SAAS,CAAC;AAAA,EACtD;AACA,MAAI,QAAQ,OAAO,SAAS,UAAU;AAClC,UAAM,UAAU,QAAQ,MAAM,MAAM;AACpC,QAAI,WAAW,KAAK,OAAO,MAAM,QAAW;AACxC,aAAO,kBAAkB,KAAK,OAAO,CAAC;AAAA,IAC1C;AACA,QAAI,KAAK,QAAQ,MAAM,QAAW;AAC9B,aAAO,kBAAkB,KAAK,QAAQ,CAAC;AAAA,IAC3C;AAAA,EACJ;AACJ;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  collectBodyString
3
- } from "./chunk-ERJ7YQOC.js";
3
+ } from "./chunk-JFJBZL6W.js";
4
4
  import {
5
5
  getValueFromTextNode
6
6
  } from "./chunk-6ZE6VFBF.js";
@@ -1411,4 +1411,4 @@ export {
1411
1411
  parseXmlErrorBody,
1412
1412
  loadRestXmlErrorCode
1413
1413
  };
1414
- //# sourceMappingURL=chunk-WM7HFHZ7.js.map
1414
+ //# sourceMappingURL=chunk-GEJJRBZZ.js.map
@@ -15,7 +15,6 @@ import {
15
15
  isArrayBuffer,
16
16
  toHex,
17
17
  toUint8Array,
18
- toUtf8,
19
18
  v4_default
20
19
  } from "./chunk-6ZE6VFBF.js";
21
20
  import {
@@ -2103,7 +2102,7 @@ function bindCallerConfig(config, credentialsProvider) {
2103
2102
  }
2104
2103
 
2105
2104
  // node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
2106
- var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
2105
+ var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2107
2106
 
2108
2107
  // node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
2109
2108
  var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
@@ -3309,4 +3308,4 @@ export {
3309
3308
  getAwsRegionExtensionConfiguration,
3310
3309
  resolveAwsRegionExtensionConfiguration
3311
3310
  };
3312
- //# sourceMappingURL=chunk-ERJ7YQOC.js.map
3311
+ //# sourceMappingURL=chunk-JFJBZL6W.js.map