@layerzerolabs/vm-tooling 0.0.30

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 (262) hide show
  1. package/bin/lz-tool.cjs +18 -0
  2. package/dist/2TPNSECS.cjs +274 -0
  3. package/dist/2TPNSECS.cjs.map +1 -0
  4. package/dist/33GUXAT7.js +67 -0
  5. package/dist/33GUXAT7.js.map +1 -0
  6. package/dist/3AX3IZXK.cjs +79 -0
  7. package/dist/3AX3IZXK.cjs.map +1 -0
  8. package/dist/3BKFBGX3.cjs +17 -0
  9. package/dist/3BKFBGX3.cjs.map +1 -0
  10. package/dist/3EOFF6NK.cjs +51 -0
  11. package/dist/3EOFF6NK.cjs.map +1 -0
  12. package/dist/4NINFZK7.cjs +38 -0
  13. package/dist/4NINFZK7.cjs.map +1 -0
  14. package/dist/4XKJ5GJB.js +793 -0
  15. package/dist/4XKJ5GJB.js.map +1 -0
  16. package/dist/5EKZTTNT.js +82 -0
  17. package/dist/5EKZTTNT.js.map +1 -0
  18. package/dist/5MIIPWV7.cjs +75 -0
  19. package/dist/5MIIPWV7.cjs.map +1 -0
  20. package/dist/5N3Q6FCT.cjs +4 -0
  21. package/dist/5N3Q6FCT.cjs.map +1 -0
  22. package/dist/63H5FLN6.cjs +216 -0
  23. package/dist/63H5FLN6.cjs.map +1 -0
  24. package/dist/6A3MRQDI.js +3164 -0
  25. package/dist/6A3MRQDI.js.map +1 -0
  26. package/dist/6NLXVH5R.cjs +1089 -0
  27. package/dist/6NLXVH5R.cjs.map +1 -0
  28. package/dist/6UWCX7SA.js +60 -0
  29. package/dist/6UWCX7SA.js.map +1 -0
  30. package/dist/7EXYTS34.js +125 -0
  31. package/dist/7EXYTS34.js.map +1 -0
  32. package/dist/7LKSKL4C.cjs +64 -0
  33. package/dist/7LKSKL4C.cjs.map +1 -0
  34. package/dist/7PKC46XS.js +244 -0
  35. package/dist/7PKC46XS.js.map +1 -0
  36. package/dist/7SRULFYS.cjs +55 -0
  37. package/dist/7SRULFYS.cjs.map +1 -0
  38. package/dist/AH2UQL5E.js +6 -0
  39. package/dist/AH2UQL5E.js.map +1 -0
  40. package/dist/AOG2M3LV.cjs +122 -0
  41. package/dist/AOG2M3LV.cjs.map +1 -0
  42. package/dist/BA2LAHMY.js +43 -0
  43. package/dist/BA2LAHMY.js.map +1 -0
  44. package/dist/BHBC6Q3Y.js +47 -0
  45. package/dist/BHBC6Q3Y.js.map +1 -0
  46. package/dist/CQHBPXZ2.cjs +94 -0
  47. package/dist/CQHBPXZ2.cjs.map +1 -0
  48. package/dist/CSNPKKTO.js +125 -0
  49. package/dist/CSNPKKTO.js.map +1 -0
  50. package/dist/E75FXJNJ.js +393 -0
  51. package/dist/E75FXJNJ.js.map +1 -0
  52. package/dist/EASTPCLB.js +195 -0
  53. package/dist/EASTPCLB.js.map +1 -0
  54. package/dist/EJCGU7LP.cjs +252 -0
  55. package/dist/EJCGU7LP.cjs.map +1 -0
  56. package/dist/EKUFNO5X.js +3 -0
  57. package/dist/EKUFNO5X.js.map +1 -0
  58. package/dist/EQPMZDRH.js +63 -0
  59. package/dist/EQPMZDRH.js.map +1 -0
  60. package/dist/F5UPK5ZZ.js +2445 -0
  61. package/dist/F5UPK5ZZ.js.map +1 -0
  62. package/dist/GAZMRBLT.js +36 -0
  63. package/dist/GAZMRBLT.js.map +1 -0
  64. package/dist/JBULQDMK.js +1064 -0
  65. package/dist/JBULQDMK.js.map +1 -0
  66. package/dist/JY6PMFYV.js +60 -0
  67. package/dist/JY6PMFYV.js.map +1 -0
  68. package/dist/KTOZRP5U.cjs +404 -0
  69. package/dist/KTOZRP5U.cjs.map +1 -0
  70. package/dist/L3BNN3KF.cjs +2490 -0
  71. package/dist/L3BNN3KF.cjs.map +1 -0
  72. package/dist/L75NPWJX.cjs +204 -0
  73. package/dist/L75NPWJX.cjs.map +1 -0
  74. package/dist/LBQPL6VK.cjs +46 -0
  75. package/dist/LBQPL6VK.cjs.map +1 -0
  76. package/dist/LUG7USNZ.js +120 -0
  77. package/dist/LUG7USNZ.js.map +1 -0
  78. package/dist/LXXIBLJQ.js +15 -0
  79. package/dist/LXXIBLJQ.js.map +1 -0
  80. package/dist/MBTHP667.cjs +39 -0
  81. package/dist/MBTHP667.cjs.map +1 -0
  82. package/dist/NMC54VEB.cjs +128 -0
  83. package/dist/NMC54VEB.cjs.map +1 -0
  84. package/dist/NX4KBEWA.cjs +13 -0
  85. package/dist/NX4KBEWA.cjs.map +1 -0
  86. package/dist/OU33HN4T.js +92 -0
  87. package/dist/OU33HN4T.js.map +1 -0
  88. package/dist/OVH4V3F6.js +77 -0
  89. package/dist/OVH4V3F6.js.map +1 -0
  90. package/dist/OWJM6QQP.js +233 -0
  91. package/dist/OWJM6QQP.js.map +1 -0
  92. package/dist/PC55ZLZD.cjs +66 -0
  93. package/dist/PC55ZLZD.cjs.map +1 -0
  94. package/dist/PGRNZALP.cjs +3427 -0
  95. package/dist/PGRNZALP.cjs.map +1 -0
  96. package/dist/PXT4MQYT.cjs +3191 -0
  97. package/dist/PXT4MQYT.cjs.map +1 -0
  98. package/dist/QMIU5HY3.cjs +174 -0
  99. package/dist/QMIU5HY3.cjs.map +1 -0
  100. package/dist/QNKHVJNZ.js +43 -0
  101. package/dist/QNKHVJNZ.js.map +1 -0
  102. package/dist/QSKQ7BQT.cjs +111 -0
  103. package/dist/QSKQ7BQT.cjs.map +1 -0
  104. package/dist/QWROCDWJ.cjs +315 -0
  105. package/dist/QWROCDWJ.cjs.map +1 -0
  106. package/dist/RAIK357L.js +214 -0
  107. package/dist/RAIK357L.js.map +1 -0
  108. package/dist/RLUL6JFM.cjs +4 -0
  109. package/dist/RLUL6JFM.cjs.map +1 -0
  110. package/dist/RVOOJEDH.js +3385 -0
  111. package/dist/RVOOJEDH.js.map +1 -0
  112. package/dist/RVTTXEXB.cjs +235 -0
  113. package/dist/RVTTXEXB.cjs.map +1 -0
  114. package/dist/SKAV3OJX.js +118 -0
  115. package/dist/SKAV3OJX.js.map +1 -0
  116. package/dist/TA2DABDY.cjs +126 -0
  117. package/dist/TA2DABDY.cjs.map +1 -0
  118. package/dist/THMQMWYA.cjs +17 -0
  119. package/dist/THMQMWYA.cjs.map +1 -0
  120. package/dist/TPVIFJX4.js +236 -0
  121. package/dist/TPVIFJX4.js.map +1 -0
  122. package/dist/VDH76SF6.cjs +132 -0
  123. package/dist/VDH76SF6.cjs.map +1 -0
  124. package/dist/VUOMXK5T.js +6 -0
  125. package/dist/VUOMXK5T.js.map +1 -0
  126. package/dist/W3KWDJYA.cjs +85 -0
  127. package/dist/W3KWDJYA.cjs.map +1 -0
  128. package/dist/WAGFMHUT.js +311 -0
  129. package/dist/WAGFMHUT.js.map +1 -0
  130. package/dist/WBKUP4MX.js +168 -0
  131. package/dist/WBKUP4MX.js.map +1 -0
  132. package/dist/XH4FQTBY.cjs +62 -0
  133. package/dist/XH4FQTBY.cjs.map +1 -0
  134. package/dist/YTUEW27V.js +109 -0
  135. package/dist/YTUEW27V.js.map +1 -0
  136. package/dist/YVV5I7A5.js +15 -0
  137. package/dist/YVV5I7A5.js.map +1 -0
  138. package/dist/Z5NOJAAG.cjs +796 -0
  139. package/dist/Z5NOJAAG.cjs.map +1 -0
  140. package/dist/ZEW74YLA.js +3 -0
  141. package/dist/ZEW74YLA.js.map +1 -0
  142. package/dist/config/index.cjs +27 -0
  143. package/dist/config/index.cjs.map +1 -0
  144. package/dist/config/index.d.ts +5 -0
  145. package/dist/config/index.d.ts.map +1 -0
  146. package/dist/config/index.js +6 -0
  147. package/dist/config/index.js.map +1 -0
  148. package/dist/config/tools.cjs +15 -0
  149. package/dist/config/tools.cjs.map +1 -0
  150. package/dist/config/tools.d.ts +6 -0
  151. package/dist/config/tools.d.ts.map +1 -0
  152. package/dist/config/tools.js +6 -0
  153. package/dist/config/tools.js.map +1 -0
  154. package/dist/config/version-matrices.cjs +13 -0
  155. package/dist/config/version-matrices.cjs.map +1 -0
  156. package/dist/config/version-matrices.d.ts +7 -0
  157. package/dist/config/version-matrices.d.ts.map +1 -0
  158. package/dist/config/version-matrices.js +4 -0
  159. package/dist/config/version-matrices.js.map +1 -0
  160. package/dist/core/compatibility.cjs +13 -0
  161. package/dist/core/compatibility.cjs.map +1 -0
  162. package/dist/core/compatibility.d.ts +8 -0
  163. package/dist/core/compatibility.d.ts.map +1 -0
  164. package/dist/core/compatibility.js +4 -0
  165. package/dist/core/compatibility.js.map +1 -0
  166. package/dist/core/index.cjs +35 -0
  167. package/dist/core/index.cjs.map +1 -0
  168. package/dist/core/index.d.ts +4 -0
  169. package/dist/core/index.d.ts.map +1 -0
  170. package/dist/core/index.js +10 -0
  171. package/dist/core/index.js.map +1 -0
  172. package/dist/core/tool-executor.cjs +18 -0
  173. package/dist/core/tool-executor.cjs.map +1 -0
  174. package/dist/core/tool-executor.d.ts +12 -0
  175. package/dist/core/tool-executor.d.ts.map +1 -0
  176. package/dist/core/tool-executor.js +9 -0
  177. package/dist/core/tool-executor.js.map +1 -0
  178. package/dist/core/version-resolver.cjs +25 -0
  179. package/dist/core/version-resolver.cjs.map +1 -0
  180. package/dist/core/version-resolver.d.ts +30 -0
  181. package/dist/core/version-resolver.d.ts.map +1 -0
  182. package/dist/core/version-resolver.js +8 -0
  183. package/dist/core/version-resolver.js.map +1 -0
  184. package/dist/display/formatters.cjs +17 -0
  185. package/dist/display/formatters.cjs.map +1 -0
  186. package/dist/display/formatters.d.ts +15 -0
  187. package/dist/display/formatters.d.ts.map +1 -0
  188. package/dist/display/formatters.js +4 -0
  189. package/dist/display/formatters.js.map +1 -0
  190. package/dist/display/index.cjs +30 -0
  191. package/dist/display/index.cjs.map +1 -0
  192. package/dist/display/index.d.ts +3 -0
  193. package/dist/display/index.d.ts.map +1 -0
  194. package/dist/display/index.js +9 -0
  195. package/dist/display/index.js.map +1 -0
  196. package/dist/display/version-display.cjs +21 -0
  197. package/dist/display/version-display.cjs.map +1 -0
  198. package/dist/display/version-display.d.ts +9 -0
  199. package/dist/display/version-display.d.ts.map +1 -0
  200. package/dist/display/version-display.js +8 -0
  201. package/dist/display/version-display.js.map +1 -0
  202. package/dist/index.cjs +111 -0
  203. package/dist/index.cjs.map +1 -0
  204. package/dist/index.d.ts +2 -0
  205. package/dist/index.d.ts.map +1 -0
  206. package/dist/index.js +103 -0
  207. package/dist/index.js.map +1 -0
  208. package/dist/scripts/generate-github-matrix.cjs +1946 -0
  209. package/dist/scripts/generate-github-matrix.cjs.map +1 -0
  210. package/dist/scripts/generate-github-matrix.d.ts +2 -0
  211. package/dist/scripts/generate-github-matrix.d.ts.map +1 -0
  212. package/dist/scripts/generate-github-matrix.js +1944 -0
  213. package/dist/scripts/generate-github-matrix.js.map +1 -0
  214. package/dist/types/docker.cjs +6 -0
  215. package/dist/types/docker.cjs.map +1 -0
  216. package/dist/types/docker.d.ts +10 -0
  217. package/dist/types/docker.d.ts.map +1 -0
  218. package/dist/types/docker.js +3 -0
  219. package/dist/types/docker.js.map +1 -0
  220. package/dist/types/index.cjs +6 -0
  221. package/dist/types/index.cjs.map +1 -0
  222. package/dist/types/index.d.ts +4 -0
  223. package/dist/types/index.d.ts.map +1 -0
  224. package/dist/types/index.js +3 -0
  225. package/dist/types/index.js.map +1 -0
  226. package/dist/types/tool.cjs +6 -0
  227. package/dist/types/tool.cjs.map +1 -0
  228. package/dist/types/tool.d.ts +27 -0
  229. package/dist/types/tool.d.ts.map +1 -0
  230. package/dist/types/tool.js +3 -0
  231. package/dist/types/tool.js.map +1 -0
  232. package/dist/types/version.cjs +6 -0
  233. package/dist/types/version.cjs.map +1 -0
  234. package/dist/types/version.d.ts +33 -0
  235. package/dist/types/version.d.ts.map +1 -0
  236. package/dist/types/version.js +3 -0
  237. package/dist/types/version.js.map +1 -0
  238. package/dist/utils/finder-utils.cjs +39 -0
  239. package/dist/utils/finder-utils.cjs.map +1 -0
  240. package/dist/utils/finder-utils.d.ts +31 -0
  241. package/dist/utils/finder-utils.d.ts.map +1 -0
  242. package/dist/utils/finder-utils.js +6 -0
  243. package/dist/utils/finder-utils.js.map +1 -0
  244. package/dist/utils/index.cjs +55 -0
  245. package/dist/utils/index.cjs.map +1 -0
  246. package/dist/utils/index.d.ts +3 -0
  247. package/dist/utils/index.d.ts.map +1 -0
  248. package/dist/utils/index.js +6 -0
  249. package/dist/utils/index.js.map +1 -0
  250. package/dist/utils/version-utils.cjs +27 -0
  251. package/dist/utils/version-utils.cjs.map +1 -0
  252. package/dist/utils/version-utils.d.ts +18 -0
  253. package/dist/utils/version-utils.d.ts.map +1 -0
  254. package/dist/utils/version-utils.js +6 -0
  255. package/dist/utils/version-utils.js.map +1 -0
  256. package/dist/utils.cjs +17 -0
  257. package/dist/utils.cjs.map +1 -0
  258. package/dist/utils.d.ts +9 -0
  259. package/dist/utils.d.ts.map +1 -0
  260. package/dist/utils.js +4 -0
  261. package/dist/utils.js.map +1 -0
  262. package/package.json +57 -0
@@ -0,0 +1,1944 @@
1
+ import { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode } from '../JY6PMFYV.js';
2
+ import { EndpointCache, awsEndpointFunctions, customEndpointFunctions, resolveUserAgentConfig, resolveRetryConfig, resolveRegionConfig, resolveHostHeaderConfig, resolveEndpointConfig, getUserAgentPlugin, getRetryPlugin, getContentLengthPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, getSerdePlugin, getEndpointPlugin, resolveDefaultsModeConfig, emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion$1, Hash, createDefaultUserAgentProvider, calculateBodyLength, NODE_APP_ID_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, DEFAULT_RETRY_MODE, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4Config, normalizeProvider, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, getSmithyContext, AwsSdkSigV4Signer, resolveEndpoint } from '../RVOOJEDH.js';
3
+ import { ENV_KEY, ENV_SECRET, fromEnv } from '../BHBC6Q3Y.js';
4
+ import { loadConfig, parseUrl } from '../CSNPKKTO.js';
5
+ import { ENV_PROFILE } from '../EASTPCLB.js';
6
+ import { Client, ServiceException, withBaseException, Command, emitWarningIfUnsupportedVersion, streamCollector, NodeHttpHandler, getDefaultExtensionConfiguration, getHttpHandlerExtensionConfiguration, resolveDefaultRuntimeConfig, resolveHttpHandlerRuntimeConfig, _json, NoOpLogger, toBase64, fromBase64, loadConfigsForDefaultMode, HttpRequest, decorateServiceException } from '../F5UPK5ZZ.js';
7
+ import { toUtf8, fromUtf8 } from '../33GUXAT7.js';
8
+ import '../YVV5I7A5.js';
9
+ import '../6UWCX7SA.js';
10
+ import { memoize, chain, CredentialsProviderError } from '../7EXYTS34.js';
11
+ import { versionMatrices } from '../YTUEW27V.js';
12
+ import { __name } from '../VUOMXK5T.js';
13
+ import { Command as Command$1 } from 'commander';
14
+ import { stdout } from 'node:process';
15
+ import { fileURLToPath } from 'node:url';
16
+
17
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/auth/httpAuthSchemeProvider.js
18
+ var defaultECRHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })()
24
+ };
25
+ }, "defaultECRHttpAuthSchemeParametersProvider");
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "ecr",
31
+ region: authParameters.region
32
+ },
33
+ propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context
37
+ }
38
+ }), "propertiesExtractor")
39
+ };
40
+ }
41
+ __name(createAwsAuthSigv4HttpAuthOption, "createAwsAuthSigv4HttpAuthOption");
42
+ var defaultECRHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
43
+ const options = [];
44
+ switch (authParameters.operation) {
45
+ default: {
46
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
47
+ }
48
+ }
49
+ return options;
50
+ }, "defaultECRHttpAuthSchemeProvider");
51
+ var resolveHttpAuthSchemeConfig = /* @__PURE__ */ __name((config) => {
52
+ const config_0 = resolveAwsSdkSigV4Config(config);
53
+ return Object.assign(config_0, {
54
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
55
+ });
56
+ }, "resolveHttpAuthSchemeConfig");
57
+
58
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/endpoint/EndpointParameters.js
59
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
60
+ return Object.assign(options, {
61
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
62
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
63
+ defaultSigningName: "ecr"
64
+ });
65
+ }, "resolveClientEndpointParameters");
66
+ var commonParams = {
67
+ UseFIPS: {
68
+ type: "builtInParams",
69
+ name: "useFipsEndpoint"
70
+ },
71
+ Endpoint: {
72
+ type: "builtInParams",
73
+ name: "endpoint"
74
+ },
75
+ Region: {
76
+ type: "builtInParams",
77
+ name: "region"
78
+ },
79
+ UseDualStack: {
80
+ type: "builtInParams",
81
+ name: "useDualstackEndpoint"
82
+ }
83
+ };
84
+
85
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/package.json
86
+ var package_default = {
87
+ version: "3.879.0"};
88
+
89
+ // ../../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.879.0/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
90
+ var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
91
+ var remoteProvider = /* @__PURE__ */ __name(async (init) => {
92
+ const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('../E75FXJNJ.js');
93
+ if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
94
+ init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
95
+ const { fromHttp } = await import('../WBKUP4MX.js');
96
+ return chain(fromHttp(init), fromContainerMetadata(init));
97
+ }
98
+ if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
99
+ return async () => {
100
+ throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", {
101
+ logger: init.logger
102
+ });
103
+ };
104
+ }
105
+ init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
106
+ return fromInstanceMetadata(init);
107
+ }, "remoteProvider");
108
+
109
+ // ../../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.879.0/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
110
+ var multipleCredentialSourceWarningEmitted = false;
111
+ var defaultProvider = /* @__PURE__ */ __name((init = {}) => memoize(chain(async () => {
112
+ const profile = init.profile ?? process.env[ENV_PROFILE];
113
+ if (profile) {
114
+ const envStaticCredentialsAreSet = process.env[ENV_KEY] && process.env[ENV_SECRET];
115
+ if (envStaticCredentialsAreSet) {
116
+ if (!multipleCredentialSourceWarningEmitted) {
117
+ const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger" ? init.logger.warn : console.warn;
118
+ warnFn(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
119
+ Multiple credential sources detected:
120
+ Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
121
+ This SDK will proceed with the AWS_PROFILE value.
122
+
123
+ However, a future version may change this behavior to prefer the ENV static credentials.
124
+ Please ensure that your environment only sets either the AWS_PROFILE or the
125
+ AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
126
+ `);
127
+ multipleCredentialSourceWarningEmitted = true;
128
+ }
129
+ }
130
+ throw new CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
131
+ logger: init.logger,
132
+ tryNextLink: true
133
+ });
134
+ }
135
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");
136
+ return fromEnv(init)();
137
+ }, async () => {
138
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
139
+ const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
140
+ if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
141
+ throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", {
142
+ logger: init.logger
143
+ });
144
+ }
145
+ const { fromSSO } = await import('../WAGFMHUT.js');
146
+ return fromSSO(init)();
147
+ }, async () => {
148
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
149
+ const { fromIni } = await import('../OWJM6QQP.js');
150
+ return fromIni(init)();
151
+ }, async () => {
152
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
153
+ const { fromProcess } = await import('../OU33HN4T.js');
154
+ return fromProcess(init)();
155
+ }, async () => {
156
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
157
+ const { fromTokenFile } = await import('../EQPMZDRH.js');
158
+ return fromTokenFile(init)();
159
+ }, async () => {
160
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");
161
+ return (await remoteProvider(init))();
162
+ }, async () => {
163
+ throw new CredentialsProviderError("Could not load credentials from any providers", {
164
+ tryNextLink: false,
165
+ logger: init.logger
166
+ });
167
+ }), credentialsTreatedAsExpired, credentialsWillNeedRefresh), "defaultProvider");
168
+ var credentialsWillNeedRefresh = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0, "credentialsWillNeedRefresh");
169
+ var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired");
170
+
171
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/endpoint/ruleset.js
172
+ var B = "required";
173
+ var C = "fn";
174
+ var D = "argv";
175
+ var E = "ref";
176
+ var F = "url";
177
+ var G = "properties";
178
+ var H = "headers";
179
+ var a = true;
180
+ var b = "isSet";
181
+ var c = "booleanEquals";
182
+ var d = "error";
183
+ var e = "endpoint";
184
+ var f = "tree";
185
+ var g = "PartitionResult";
186
+ var h = "stringEquals";
187
+ var i = "aws";
188
+ var j = "aws-us-gov";
189
+ var k = {
190
+ [B]: false,
191
+ "type": "String"
192
+ };
193
+ var l = {
194
+ [B]: true,
195
+ "default": false,
196
+ "type": "Boolean"
197
+ };
198
+ var m = {
199
+ [E]: "Endpoint"
200
+ };
201
+ var n = {
202
+ [C]: c,
203
+ [D]: [
204
+ {
205
+ [E]: "UseFIPS"
206
+ },
207
+ true
208
+ ]
209
+ };
210
+ var o = {
211
+ [C]: c,
212
+ [D]: [
213
+ {
214
+ [E]: "UseDualStack"
215
+ },
216
+ true
217
+ ]
218
+ };
219
+ var p = {};
220
+ var q = {
221
+ [C]: "getAttr",
222
+ [D]: [
223
+ {
224
+ [E]: g
225
+ },
226
+ "supportsFIPS"
227
+ ]
228
+ };
229
+ var r = {
230
+ [C]: c,
231
+ [D]: [
232
+ true,
233
+ {
234
+ [C]: "getAttr",
235
+ [D]: [
236
+ {
237
+ [E]: g
238
+ },
239
+ "supportsDualStack"
240
+ ]
241
+ }
242
+ ]
243
+ };
244
+ var s = {
245
+ [C]: "getAttr",
246
+ [D]: [
247
+ {
248
+ [E]: g
249
+ },
250
+ "name"
251
+ ]
252
+ };
253
+ var t = {
254
+ [F]: "https://ecr-fips.{Region}.api.aws",
255
+ [G]: {},
256
+ [H]: {}
257
+ };
258
+ var u = {
259
+ [F]: "https://ecr-fips.{Region}.amazonaws.com",
260
+ [G]: {},
261
+ [H]: {}
262
+ };
263
+ var v = {
264
+ [F]: "https://ecr.{Region}.api.aws",
265
+ [G]: {},
266
+ [H]: {}
267
+ };
268
+ var w = [
269
+ n
270
+ ];
271
+ var x = [
272
+ o
273
+ ];
274
+ var y = [
275
+ {
276
+ [E]: "Region"
277
+ }
278
+ ];
279
+ var z = [
280
+ {
281
+ [C]: h,
282
+ [D]: [
283
+ i,
284
+ s
285
+ ]
286
+ }
287
+ ];
288
+ var A = [
289
+ {
290
+ [C]: h,
291
+ [D]: [
292
+ j,
293
+ s
294
+ ]
295
+ }
296
+ ];
297
+ var _data = {
298
+ version: "1.0",
299
+ parameters: {
300
+ Region: k,
301
+ UseDualStack: l,
302
+ UseFIPS: l,
303
+ Endpoint: k
304
+ },
305
+ rules: [
306
+ {
307
+ conditions: [
308
+ {
309
+ [C]: b,
310
+ [D]: [
311
+ m
312
+ ]
313
+ }
314
+ ],
315
+ rules: [
316
+ {
317
+ conditions: w,
318
+ error: "Invalid Configuration: FIPS and custom endpoint are not supported",
319
+ type: d
320
+ },
321
+ {
322
+ conditions: x,
323
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
324
+ type: d
325
+ },
326
+ {
327
+ endpoint: {
328
+ [F]: m,
329
+ [G]: p,
330
+ [H]: p
331
+ },
332
+ type: e
333
+ }
334
+ ],
335
+ type: f
336
+ },
337
+ {
338
+ conditions: [
339
+ {
340
+ [C]: b,
341
+ [D]: y
342
+ }
343
+ ],
344
+ rules: [
345
+ {
346
+ conditions: [
347
+ {
348
+ [C]: "aws.partition",
349
+ [D]: y,
350
+ assign: g
351
+ }
352
+ ],
353
+ rules: [
354
+ {
355
+ conditions: [
356
+ n,
357
+ o
358
+ ],
359
+ rules: [
360
+ {
361
+ conditions: [
362
+ {
363
+ [C]: c,
364
+ [D]: [
365
+ a,
366
+ q
367
+ ]
368
+ },
369
+ r
370
+ ],
371
+ rules: [
372
+ {
373
+ conditions: z,
374
+ endpoint: t,
375
+ type: e
376
+ },
377
+ {
378
+ conditions: A,
379
+ endpoint: t,
380
+ type: e
381
+ },
382
+ {
383
+ endpoint: {
384
+ [F]: "https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
385
+ [G]: p,
386
+ [H]: p
387
+ },
388
+ type: e
389
+ }
390
+ ],
391
+ type: f
392
+ },
393
+ {
394
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
395
+ type: d
396
+ }
397
+ ],
398
+ type: f
399
+ },
400
+ {
401
+ conditions: w,
402
+ rules: [
403
+ {
404
+ conditions: [
405
+ {
406
+ [C]: c,
407
+ [D]: [
408
+ q,
409
+ a
410
+ ]
411
+ }
412
+ ],
413
+ rules: [
414
+ {
415
+ conditions: [
416
+ {
417
+ [C]: h,
418
+ [D]: [
419
+ s,
420
+ i
421
+ ]
422
+ }
423
+ ],
424
+ endpoint: u,
425
+ type: e
426
+ },
427
+ {
428
+ conditions: [
429
+ {
430
+ [C]: h,
431
+ [D]: [
432
+ s,
433
+ j
434
+ ]
435
+ }
436
+ ],
437
+ endpoint: u,
438
+ type: e
439
+ },
440
+ {
441
+ endpoint: {
442
+ [F]: "https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",
443
+ [G]: p,
444
+ [H]: p
445
+ },
446
+ type: e
447
+ }
448
+ ],
449
+ type: f
450
+ },
451
+ {
452
+ error: "FIPS is enabled but this partition does not support FIPS",
453
+ type: d
454
+ }
455
+ ],
456
+ type: f
457
+ },
458
+ {
459
+ conditions: x,
460
+ rules: [
461
+ {
462
+ conditions: [
463
+ r
464
+ ],
465
+ rules: [
466
+ {
467
+ conditions: z,
468
+ endpoint: v,
469
+ type: e
470
+ },
471
+ {
472
+ conditions: [
473
+ {
474
+ [C]: h,
475
+ [D]: [
476
+ "aws-cn",
477
+ s
478
+ ]
479
+ }
480
+ ],
481
+ endpoint: {
482
+ [F]: "https://ecr.{Region}.api.amazonwebservices.com.cn",
483
+ [G]: p,
484
+ [H]: p
485
+ },
486
+ type: e
487
+ },
488
+ {
489
+ conditions: A,
490
+ endpoint: v,
491
+ type: e
492
+ },
493
+ {
494
+ endpoint: {
495
+ [F]: "https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",
496
+ [G]: p,
497
+ [H]: p
498
+ },
499
+ type: e
500
+ }
501
+ ],
502
+ type: f
503
+ },
504
+ {
505
+ error: "DualStack is enabled but this partition does not support DualStack",
506
+ type: d
507
+ }
508
+ ],
509
+ type: f
510
+ },
511
+ {
512
+ endpoint: {
513
+ [F]: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",
514
+ [G]: p,
515
+ [H]: p
516
+ },
517
+ type: e
518
+ }
519
+ ],
520
+ type: f
521
+ }
522
+ ],
523
+ type: f
524
+ },
525
+ {
526
+ error: "Invalid Configuration: Missing Region",
527
+ type: d
528
+ }
529
+ ]
530
+ };
531
+ var ruleSet = _data;
532
+
533
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/endpoint/endpointResolver.js
534
+ var cache = new EndpointCache({
535
+ size: 50,
536
+ params: [
537
+ "Endpoint",
538
+ "Region",
539
+ "UseDualStack",
540
+ "UseFIPS"
541
+ ]
542
+ });
543
+ var defaultEndpointResolver = /* @__PURE__ */ __name((endpointParams, context = {}) => {
544
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
545
+ endpointParams,
546
+ logger: context.logger
547
+ }));
548
+ }, "defaultEndpointResolver");
549
+ customEndpointFunctions.aws = awsEndpointFunctions;
550
+
551
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/runtimeConfig.shared.js
552
+ var getRuntimeConfig = /* @__PURE__ */ __name((config) => {
553
+ return {
554
+ apiVersion: "2015-09-21",
555
+ base64Decoder: config?.base64Decoder ?? fromBase64,
556
+ base64Encoder: config?.base64Encoder ?? toBase64,
557
+ disableHostPrefix: config?.disableHostPrefix ?? false,
558
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
559
+ extensions: config?.extensions ?? [],
560
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultECRHttpAuthSchemeProvider,
561
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
562
+ {
563
+ schemeId: "aws.auth#sigv4",
564
+ identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
565
+ signer: new AwsSdkSigV4Signer()
566
+ }
567
+ ],
568
+ logger: config?.logger ?? new NoOpLogger(),
569
+ serviceId: config?.serviceId ?? "ECR",
570
+ urlParser: config?.urlParser ?? parseUrl,
571
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
572
+ utf8Encoder: config?.utf8Encoder ?? toUtf8
573
+ };
574
+ }, "getRuntimeConfig");
575
+
576
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/runtimeConfig.js
577
+ var getRuntimeConfig2 = /* @__PURE__ */ __name((config) => {
578
+ emitWarningIfUnsupportedVersion(process.version);
579
+ const defaultsMode = resolveDefaultsModeConfig(config);
580
+ const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(loadConfigsForDefaultMode), "defaultConfigProvider");
581
+ const clientSharedValues = getRuntimeConfig(config);
582
+ emitWarningIfUnsupportedVersion$1(process.version);
583
+ const loaderConfig = {
584
+ profile: config?.profile,
585
+ logger: clientSharedValues.logger
586
+ };
587
+ return {
588
+ ...clientSharedValues,
589
+ ...config,
590
+ runtime: "node",
591
+ defaultsMode,
592
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
593
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
594
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
595
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
596
+ serviceId: clientSharedValues.serviceId,
597
+ clientVersion: package_default.version
598
+ }),
599
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
600
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, {
601
+ ...NODE_REGION_CONFIG_FILE_OPTIONS,
602
+ ...loaderConfig
603
+ }),
604
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
605
+ retryMode: config?.retryMode ?? loadConfig({
606
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
607
+ default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, "default")
608
+ }, config),
609
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
610
+ streamCollector: config?.streamCollector ?? streamCollector,
611
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
612
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
613
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
614
+ };
615
+ }, "getRuntimeConfig");
616
+
617
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/auth/httpAuthExtensionConfiguration.js
618
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
619
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
620
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
621
+ let _credentials = runtimeConfig.credentials;
622
+ return {
623
+ setHttpAuthScheme(httpAuthScheme) {
624
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
625
+ if (index === -1) {
626
+ _httpAuthSchemes.push(httpAuthScheme);
627
+ } else {
628
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
629
+ }
630
+ },
631
+ httpAuthSchemes() {
632
+ return _httpAuthSchemes;
633
+ },
634
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
635
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
636
+ },
637
+ httpAuthSchemeProvider() {
638
+ return _httpAuthSchemeProvider;
639
+ },
640
+ setCredentials(credentials) {
641
+ _credentials = credentials;
642
+ },
643
+ credentials() {
644
+ return _credentials;
645
+ }
646
+ };
647
+ }, "getHttpAuthExtensionConfiguration");
648
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
649
+ return {
650
+ httpAuthSchemes: config.httpAuthSchemes(),
651
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
652
+ credentials: config.credentials()
653
+ };
654
+ }, "resolveHttpAuthRuntimeConfig");
655
+
656
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/runtimeExtensions.js
657
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
658
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
659
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
660
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
661
+ }, "resolveRuntimeExtensions");
662
+
663
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/ECRClient.js
664
+ var ECRClient = class extends Client {
665
+ static {
666
+ __name(this, "ECRClient");
667
+ }
668
+ config;
669
+ constructor(...[configuration]) {
670
+ const _config_0 = getRuntimeConfig2(configuration || {});
671
+ super(_config_0);
672
+ this.initConfig = _config_0;
673
+ const _config_1 = resolveClientEndpointParameters(_config_0);
674
+ const _config_2 = resolveUserAgentConfig(_config_1);
675
+ const _config_3 = resolveRetryConfig(_config_2);
676
+ const _config_4 = resolveRegionConfig(_config_3);
677
+ const _config_5 = resolveHostHeaderConfig(_config_4);
678
+ const _config_6 = resolveEndpointConfig(_config_5);
679
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
680
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
681
+ this.config = _config_8;
682
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
683
+ this.middlewareStack.use(getRetryPlugin(this.config));
684
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
685
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
686
+ this.middlewareStack.use(getLoggerPlugin(this.config));
687
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
688
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
689
+ httpAuthSchemeParametersProvider: defaultECRHttpAuthSchemeParametersProvider,
690
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new DefaultIdentityProviderConfig({
691
+ "aws.auth#sigv4": config.credentials
692
+ }), "identityProviderConfigProvider")
693
+ }));
694
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
695
+ }
696
+ destroy() {
697
+ super.destroy();
698
+ }
699
+ };
700
+
701
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/models/ECRServiceException.js
702
+ var ECRServiceException = class _ECRServiceException extends ServiceException {
703
+ static {
704
+ __name(this, "ECRServiceException");
705
+ }
706
+ constructor(options) {
707
+ super(options);
708
+ Object.setPrototypeOf(this, _ECRServiceException.prototype);
709
+ }
710
+ };
711
+
712
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/models/models_0.js
713
+ var InvalidParameterException = class _InvalidParameterException extends ECRServiceException {
714
+ static {
715
+ __name(this, "InvalidParameterException");
716
+ }
717
+ name = "InvalidParameterException";
718
+ $fault = "client";
719
+ constructor(opts) {
720
+ super({
721
+ name: "InvalidParameterException",
722
+ $fault: "client",
723
+ ...opts
724
+ });
725
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
726
+ }
727
+ };
728
+ var RepositoryNotFoundException = class _RepositoryNotFoundException extends ECRServiceException {
729
+ static {
730
+ __name(this, "RepositoryNotFoundException");
731
+ }
732
+ name = "RepositoryNotFoundException";
733
+ $fault = "client";
734
+ constructor(opts) {
735
+ super({
736
+ name: "RepositoryNotFoundException",
737
+ $fault: "client",
738
+ ...opts
739
+ });
740
+ Object.setPrototypeOf(this, _RepositoryNotFoundException.prototype);
741
+ }
742
+ };
743
+ var ServerException = class _ServerException extends ECRServiceException {
744
+ static {
745
+ __name(this, "ServerException");
746
+ }
747
+ name = "ServerException";
748
+ $fault = "server";
749
+ constructor(opts) {
750
+ super({
751
+ name: "ServerException",
752
+ $fault: "server",
753
+ ...opts
754
+ });
755
+ Object.setPrototypeOf(this, _ServerException.prototype);
756
+ }
757
+ };
758
+ var LimitExceededException = class _LimitExceededException extends ECRServiceException {
759
+ static {
760
+ __name(this, "LimitExceededException");
761
+ }
762
+ name = "LimitExceededException";
763
+ $fault = "client";
764
+ constructor(opts) {
765
+ super({
766
+ name: "LimitExceededException",
767
+ $fault: "client",
768
+ ...opts
769
+ });
770
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
771
+ }
772
+ };
773
+ var UnableToGetUpstreamImageException = class _UnableToGetUpstreamImageException extends ECRServiceException {
774
+ static {
775
+ __name(this, "UnableToGetUpstreamImageException");
776
+ }
777
+ name = "UnableToGetUpstreamImageException";
778
+ $fault = "client";
779
+ constructor(opts) {
780
+ super({
781
+ name: "UnableToGetUpstreamImageException",
782
+ $fault: "client",
783
+ ...opts
784
+ });
785
+ Object.setPrototypeOf(this, _UnableToGetUpstreamImageException.prototype);
786
+ }
787
+ };
788
+ var ValidationException = class _ValidationException extends ECRServiceException {
789
+ static {
790
+ __name(this, "ValidationException");
791
+ }
792
+ name = "ValidationException";
793
+ $fault = "client";
794
+ constructor(opts) {
795
+ super({
796
+ name: "ValidationException",
797
+ $fault: "client",
798
+ ...opts
799
+ });
800
+ Object.setPrototypeOf(this, _ValidationException.prototype);
801
+ }
802
+ };
803
+ var EmptyUploadException = class _EmptyUploadException extends ECRServiceException {
804
+ static {
805
+ __name(this, "EmptyUploadException");
806
+ }
807
+ name = "EmptyUploadException";
808
+ $fault = "client";
809
+ constructor(opts) {
810
+ super({
811
+ name: "EmptyUploadException",
812
+ $fault: "client",
813
+ ...opts
814
+ });
815
+ Object.setPrototypeOf(this, _EmptyUploadException.prototype);
816
+ }
817
+ };
818
+ var InvalidLayerException = class _InvalidLayerException extends ECRServiceException {
819
+ static {
820
+ __name(this, "InvalidLayerException");
821
+ }
822
+ name = "InvalidLayerException";
823
+ $fault = "client";
824
+ constructor(opts) {
825
+ super({
826
+ name: "InvalidLayerException",
827
+ $fault: "client",
828
+ ...opts
829
+ });
830
+ Object.setPrototypeOf(this, _InvalidLayerException.prototype);
831
+ }
832
+ };
833
+ var KmsException = class _KmsException extends ECRServiceException {
834
+ static {
835
+ __name(this, "KmsException");
836
+ }
837
+ name = "KmsException";
838
+ $fault = "client";
839
+ kmsError;
840
+ constructor(opts) {
841
+ super({
842
+ name: "KmsException",
843
+ $fault: "client",
844
+ ...opts
845
+ });
846
+ Object.setPrototypeOf(this, _KmsException.prototype);
847
+ this.kmsError = opts.kmsError;
848
+ }
849
+ };
850
+ var LayerAlreadyExistsException = class _LayerAlreadyExistsException extends ECRServiceException {
851
+ static {
852
+ __name(this, "LayerAlreadyExistsException");
853
+ }
854
+ name = "LayerAlreadyExistsException";
855
+ $fault = "client";
856
+ constructor(opts) {
857
+ super({
858
+ name: "LayerAlreadyExistsException",
859
+ $fault: "client",
860
+ ...opts
861
+ });
862
+ Object.setPrototypeOf(this, _LayerAlreadyExistsException.prototype);
863
+ }
864
+ };
865
+ var LayerPartTooSmallException = class _LayerPartTooSmallException extends ECRServiceException {
866
+ static {
867
+ __name(this, "LayerPartTooSmallException");
868
+ }
869
+ name = "LayerPartTooSmallException";
870
+ $fault = "client";
871
+ constructor(opts) {
872
+ super({
873
+ name: "LayerPartTooSmallException",
874
+ $fault: "client",
875
+ ...opts
876
+ });
877
+ Object.setPrototypeOf(this, _LayerPartTooSmallException.prototype);
878
+ }
879
+ };
880
+ var UploadNotFoundException = class _UploadNotFoundException extends ECRServiceException {
881
+ static {
882
+ __name(this, "UploadNotFoundException");
883
+ }
884
+ name = "UploadNotFoundException";
885
+ $fault = "client";
886
+ constructor(opts) {
887
+ super({
888
+ name: "UploadNotFoundException",
889
+ $fault: "client",
890
+ ...opts
891
+ });
892
+ Object.setPrototypeOf(this, _UploadNotFoundException.prototype);
893
+ }
894
+ };
895
+ var PullThroughCacheRuleAlreadyExistsException = class _PullThroughCacheRuleAlreadyExistsException extends ECRServiceException {
896
+ static {
897
+ __name(this, "PullThroughCacheRuleAlreadyExistsException");
898
+ }
899
+ name = "PullThroughCacheRuleAlreadyExistsException";
900
+ $fault = "client";
901
+ constructor(opts) {
902
+ super({
903
+ name: "PullThroughCacheRuleAlreadyExistsException",
904
+ $fault: "client",
905
+ ...opts
906
+ });
907
+ Object.setPrototypeOf(this, _PullThroughCacheRuleAlreadyExistsException.prototype);
908
+ }
909
+ };
910
+ var SecretNotFoundException = class _SecretNotFoundException extends ECRServiceException {
911
+ static {
912
+ __name(this, "SecretNotFoundException");
913
+ }
914
+ name = "SecretNotFoundException";
915
+ $fault = "client";
916
+ constructor(opts) {
917
+ super({
918
+ name: "SecretNotFoundException",
919
+ $fault: "client",
920
+ ...opts
921
+ });
922
+ Object.setPrototypeOf(this, _SecretNotFoundException.prototype);
923
+ }
924
+ };
925
+ var UnableToAccessSecretException = class _UnableToAccessSecretException extends ECRServiceException {
926
+ static {
927
+ __name(this, "UnableToAccessSecretException");
928
+ }
929
+ name = "UnableToAccessSecretException";
930
+ $fault = "client";
931
+ constructor(opts) {
932
+ super({
933
+ name: "UnableToAccessSecretException",
934
+ $fault: "client",
935
+ ...opts
936
+ });
937
+ Object.setPrototypeOf(this, _UnableToAccessSecretException.prototype);
938
+ }
939
+ };
940
+ var UnableToDecryptSecretValueException = class _UnableToDecryptSecretValueException extends ECRServiceException {
941
+ static {
942
+ __name(this, "UnableToDecryptSecretValueException");
943
+ }
944
+ name = "UnableToDecryptSecretValueException";
945
+ $fault = "client";
946
+ constructor(opts) {
947
+ super({
948
+ name: "UnableToDecryptSecretValueException",
949
+ $fault: "client",
950
+ ...opts
951
+ });
952
+ Object.setPrototypeOf(this, _UnableToDecryptSecretValueException.prototype);
953
+ }
954
+ };
955
+ var UnsupportedUpstreamRegistryException = class _UnsupportedUpstreamRegistryException extends ECRServiceException {
956
+ static {
957
+ __name(this, "UnsupportedUpstreamRegistryException");
958
+ }
959
+ name = "UnsupportedUpstreamRegistryException";
960
+ $fault = "client";
961
+ constructor(opts) {
962
+ super({
963
+ name: "UnsupportedUpstreamRegistryException",
964
+ $fault: "client",
965
+ ...opts
966
+ });
967
+ Object.setPrototypeOf(this, _UnsupportedUpstreamRegistryException.prototype);
968
+ }
969
+ };
970
+ var InvalidTagParameterException = class _InvalidTagParameterException extends ECRServiceException {
971
+ static {
972
+ __name(this, "InvalidTagParameterException");
973
+ }
974
+ name = "InvalidTagParameterException";
975
+ $fault = "client";
976
+ constructor(opts) {
977
+ super({
978
+ name: "InvalidTagParameterException",
979
+ $fault: "client",
980
+ ...opts
981
+ });
982
+ Object.setPrototypeOf(this, _InvalidTagParameterException.prototype);
983
+ }
984
+ };
985
+ var RepositoryAlreadyExistsException = class _RepositoryAlreadyExistsException extends ECRServiceException {
986
+ static {
987
+ __name(this, "RepositoryAlreadyExistsException");
988
+ }
989
+ name = "RepositoryAlreadyExistsException";
990
+ $fault = "client";
991
+ constructor(opts) {
992
+ super({
993
+ name: "RepositoryAlreadyExistsException",
994
+ $fault: "client",
995
+ ...opts
996
+ });
997
+ Object.setPrototypeOf(this, _RepositoryAlreadyExistsException.prototype);
998
+ }
999
+ };
1000
+ var TooManyTagsException = class _TooManyTagsException extends ECRServiceException {
1001
+ static {
1002
+ __name(this, "TooManyTagsException");
1003
+ }
1004
+ name = "TooManyTagsException";
1005
+ $fault = "client";
1006
+ constructor(opts) {
1007
+ super({
1008
+ name: "TooManyTagsException",
1009
+ $fault: "client",
1010
+ ...opts
1011
+ });
1012
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
1013
+ }
1014
+ };
1015
+ var TemplateAlreadyExistsException = class _TemplateAlreadyExistsException extends ECRServiceException {
1016
+ static {
1017
+ __name(this, "TemplateAlreadyExistsException");
1018
+ }
1019
+ name = "TemplateAlreadyExistsException";
1020
+ $fault = "client";
1021
+ constructor(opts) {
1022
+ super({
1023
+ name: "TemplateAlreadyExistsException",
1024
+ $fault: "client",
1025
+ ...opts
1026
+ });
1027
+ Object.setPrototypeOf(this, _TemplateAlreadyExistsException.prototype);
1028
+ }
1029
+ };
1030
+ var LifecyclePolicyNotFoundException = class _LifecyclePolicyNotFoundException extends ECRServiceException {
1031
+ static {
1032
+ __name(this, "LifecyclePolicyNotFoundException");
1033
+ }
1034
+ name = "LifecyclePolicyNotFoundException";
1035
+ $fault = "client";
1036
+ constructor(opts) {
1037
+ super({
1038
+ name: "LifecyclePolicyNotFoundException",
1039
+ $fault: "client",
1040
+ ...opts
1041
+ });
1042
+ Object.setPrototypeOf(this, _LifecyclePolicyNotFoundException.prototype);
1043
+ }
1044
+ };
1045
+ var PullThroughCacheRuleNotFoundException = class _PullThroughCacheRuleNotFoundException extends ECRServiceException {
1046
+ static {
1047
+ __name(this, "PullThroughCacheRuleNotFoundException");
1048
+ }
1049
+ name = "PullThroughCacheRuleNotFoundException";
1050
+ $fault = "client";
1051
+ constructor(opts) {
1052
+ super({
1053
+ name: "PullThroughCacheRuleNotFoundException",
1054
+ $fault: "client",
1055
+ ...opts
1056
+ });
1057
+ Object.setPrototypeOf(this, _PullThroughCacheRuleNotFoundException.prototype);
1058
+ }
1059
+ };
1060
+ var RegistryPolicyNotFoundException = class _RegistryPolicyNotFoundException extends ECRServiceException {
1061
+ static {
1062
+ __name(this, "RegistryPolicyNotFoundException");
1063
+ }
1064
+ name = "RegistryPolicyNotFoundException";
1065
+ $fault = "client";
1066
+ constructor(opts) {
1067
+ super({
1068
+ name: "RegistryPolicyNotFoundException",
1069
+ $fault: "client",
1070
+ ...opts
1071
+ });
1072
+ Object.setPrototypeOf(this, _RegistryPolicyNotFoundException.prototype);
1073
+ }
1074
+ };
1075
+ var RepositoryNotEmptyException = class _RepositoryNotEmptyException extends ECRServiceException {
1076
+ static {
1077
+ __name(this, "RepositoryNotEmptyException");
1078
+ }
1079
+ name = "RepositoryNotEmptyException";
1080
+ $fault = "client";
1081
+ constructor(opts) {
1082
+ super({
1083
+ name: "RepositoryNotEmptyException",
1084
+ $fault: "client",
1085
+ ...opts
1086
+ });
1087
+ Object.setPrototypeOf(this, _RepositoryNotEmptyException.prototype);
1088
+ }
1089
+ };
1090
+ var TemplateNotFoundException = class _TemplateNotFoundException extends ECRServiceException {
1091
+ static {
1092
+ __name(this, "TemplateNotFoundException");
1093
+ }
1094
+ name = "TemplateNotFoundException";
1095
+ $fault = "client";
1096
+ constructor(opts) {
1097
+ super({
1098
+ name: "TemplateNotFoundException",
1099
+ $fault: "client",
1100
+ ...opts
1101
+ });
1102
+ Object.setPrototypeOf(this, _TemplateNotFoundException.prototype);
1103
+ }
1104
+ };
1105
+ var RepositoryPolicyNotFoundException = class _RepositoryPolicyNotFoundException extends ECRServiceException {
1106
+ static {
1107
+ __name(this, "RepositoryPolicyNotFoundException");
1108
+ }
1109
+ name = "RepositoryPolicyNotFoundException";
1110
+ $fault = "client";
1111
+ constructor(opts) {
1112
+ super({
1113
+ name: "RepositoryPolicyNotFoundException",
1114
+ $fault: "client",
1115
+ ...opts
1116
+ });
1117
+ Object.setPrototypeOf(this, _RepositoryPolicyNotFoundException.prototype);
1118
+ }
1119
+ };
1120
+ var ImageNotFoundException = class _ImageNotFoundException extends ECRServiceException {
1121
+ static {
1122
+ __name(this, "ImageNotFoundException");
1123
+ }
1124
+ name = "ImageNotFoundException";
1125
+ $fault = "client";
1126
+ constructor(opts) {
1127
+ super({
1128
+ name: "ImageNotFoundException",
1129
+ $fault: "client",
1130
+ ...opts
1131
+ });
1132
+ Object.setPrototypeOf(this, _ImageNotFoundException.prototype);
1133
+ }
1134
+ };
1135
+ var ScanNotFoundException = class _ScanNotFoundException extends ECRServiceException {
1136
+ static {
1137
+ __name(this, "ScanNotFoundException");
1138
+ }
1139
+ name = "ScanNotFoundException";
1140
+ $fault = "client";
1141
+ constructor(opts) {
1142
+ super({
1143
+ name: "ScanNotFoundException",
1144
+ $fault: "client",
1145
+ ...opts
1146
+ });
1147
+ Object.setPrototypeOf(this, _ScanNotFoundException.prototype);
1148
+ }
1149
+ };
1150
+ var LayerInaccessibleException = class _LayerInaccessibleException extends ECRServiceException {
1151
+ static {
1152
+ __name(this, "LayerInaccessibleException");
1153
+ }
1154
+ name = "LayerInaccessibleException";
1155
+ $fault = "client";
1156
+ constructor(opts) {
1157
+ super({
1158
+ name: "LayerInaccessibleException",
1159
+ $fault: "client",
1160
+ ...opts
1161
+ });
1162
+ Object.setPrototypeOf(this, _LayerInaccessibleException.prototype);
1163
+ }
1164
+ };
1165
+ var LayersNotFoundException = class _LayersNotFoundException extends ECRServiceException {
1166
+ static {
1167
+ __name(this, "LayersNotFoundException");
1168
+ }
1169
+ name = "LayersNotFoundException";
1170
+ $fault = "client";
1171
+ constructor(opts) {
1172
+ super({
1173
+ name: "LayersNotFoundException",
1174
+ $fault: "client",
1175
+ ...opts
1176
+ });
1177
+ Object.setPrototypeOf(this, _LayersNotFoundException.prototype);
1178
+ }
1179
+ };
1180
+ var UnableToGetUpstreamLayerException = class _UnableToGetUpstreamLayerException extends ECRServiceException {
1181
+ static {
1182
+ __name(this, "UnableToGetUpstreamLayerException");
1183
+ }
1184
+ name = "UnableToGetUpstreamLayerException";
1185
+ $fault = "client";
1186
+ constructor(opts) {
1187
+ super({
1188
+ name: "UnableToGetUpstreamLayerException",
1189
+ $fault: "client",
1190
+ ...opts
1191
+ });
1192
+ Object.setPrototypeOf(this, _UnableToGetUpstreamLayerException.prototype);
1193
+ }
1194
+ };
1195
+ var LifecyclePolicyPreviewNotFoundException = class _LifecyclePolicyPreviewNotFoundException extends ECRServiceException {
1196
+ static {
1197
+ __name(this, "LifecyclePolicyPreviewNotFoundException");
1198
+ }
1199
+ name = "LifecyclePolicyPreviewNotFoundException";
1200
+ $fault = "client";
1201
+ constructor(opts) {
1202
+ super({
1203
+ name: "LifecyclePolicyPreviewNotFoundException",
1204
+ $fault: "client",
1205
+ ...opts
1206
+ });
1207
+ Object.setPrototypeOf(this, _LifecyclePolicyPreviewNotFoundException.prototype);
1208
+ }
1209
+ };
1210
+ var ImageAlreadyExistsException = class _ImageAlreadyExistsException extends ECRServiceException {
1211
+ static {
1212
+ __name(this, "ImageAlreadyExistsException");
1213
+ }
1214
+ name = "ImageAlreadyExistsException";
1215
+ $fault = "client";
1216
+ constructor(opts) {
1217
+ super({
1218
+ name: "ImageAlreadyExistsException",
1219
+ $fault: "client",
1220
+ ...opts
1221
+ });
1222
+ Object.setPrototypeOf(this, _ImageAlreadyExistsException.prototype);
1223
+ }
1224
+ };
1225
+ var ImageDigestDoesNotMatchException = class _ImageDigestDoesNotMatchException extends ECRServiceException {
1226
+ static {
1227
+ __name(this, "ImageDigestDoesNotMatchException");
1228
+ }
1229
+ name = "ImageDigestDoesNotMatchException";
1230
+ $fault = "client";
1231
+ constructor(opts) {
1232
+ super({
1233
+ name: "ImageDigestDoesNotMatchException",
1234
+ $fault: "client",
1235
+ ...opts
1236
+ });
1237
+ Object.setPrototypeOf(this, _ImageDigestDoesNotMatchException.prototype);
1238
+ }
1239
+ };
1240
+ var ImageTagAlreadyExistsException = class _ImageTagAlreadyExistsException extends ECRServiceException {
1241
+ static {
1242
+ __name(this, "ImageTagAlreadyExistsException");
1243
+ }
1244
+ name = "ImageTagAlreadyExistsException";
1245
+ $fault = "client";
1246
+ constructor(opts) {
1247
+ super({
1248
+ name: "ImageTagAlreadyExistsException",
1249
+ $fault: "client",
1250
+ ...opts
1251
+ });
1252
+ Object.setPrototypeOf(this, _ImageTagAlreadyExistsException.prototype);
1253
+ }
1254
+ };
1255
+ var ReferencedImagesNotFoundException = class _ReferencedImagesNotFoundException extends ECRServiceException {
1256
+ static {
1257
+ __name(this, "ReferencedImagesNotFoundException");
1258
+ }
1259
+ name = "ReferencedImagesNotFoundException";
1260
+ $fault = "client";
1261
+ constructor(opts) {
1262
+ super({
1263
+ name: "ReferencedImagesNotFoundException",
1264
+ $fault: "client",
1265
+ ...opts
1266
+ });
1267
+ Object.setPrototypeOf(this, _ReferencedImagesNotFoundException.prototype);
1268
+ }
1269
+ };
1270
+ var UnsupportedImageTypeException = class _UnsupportedImageTypeException extends ECRServiceException {
1271
+ static {
1272
+ __name(this, "UnsupportedImageTypeException");
1273
+ }
1274
+ name = "UnsupportedImageTypeException";
1275
+ $fault = "client";
1276
+ constructor(opts) {
1277
+ super({
1278
+ name: "UnsupportedImageTypeException",
1279
+ $fault: "client",
1280
+ ...opts
1281
+ });
1282
+ Object.setPrototypeOf(this, _UnsupportedImageTypeException.prototype);
1283
+ }
1284
+ };
1285
+ var LifecyclePolicyPreviewInProgressException = class _LifecyclePolicyPreviewInProgressException extends ECRServiceException {
1286
+ static {
1287
+ __name(this, "LifecyclePolicyPreviewInProgressException");
1288
+ }
1289
+ name = "LifecyclePolicyPreviewInProgressException";
1290
+ $fault = "client";
1291
+ constructor(opts) {
1292
+ super({
1293
+ name: "LifecyclePolicyPreviewInProgressException",
1294
+ $fault: "client",
1295
+ ...opts
1296
+ });
1297
+ Object.setPrototypeOf(this, _LifecyclePolicyPreviewInProgressException.prototype);
1298
+ }
1299
+ };
1300
+ var InvalidLayerPartException = class _InvalidLayerPartException extends ECRServiceException {
1301
+ static {
1302
+ __name(this, "InvalidLayerPartException");
1303
+ }
1304
+ name = "InvalidLayerPartException";
1305
+ $fault = "client";
1306
+ registryId;
1307
+ repositoryName;
1308
+ uploadId;
1309
+ lastValidByteReceived;
1310
+ constructor(opts) {
1311
+ super({
1312
+ name: "InvalidLayerPartException",
1313
+ $fault: "client",
1314
+ ...opts
1315
+ });
1316
+ Object.setPrototypeOf(this, _InvalidLayerPartException.prototype);
1317
+ this.registryId = opts.registryId;
1318
+ this.repositoryName = opts.repositoryName;
1319
+ this.uploadId = opts.uploadId;
1320
+ this.lastValidByteReceived = opts.lastValidByteReceived;
1321
+ }
1322
+ };
1323
+
1324
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/protocols/Aws_json1_1.js
1325
+ var se_ListImagesCommand = /* @__PURE__ */ __name(async (input, context) => {
1326
+ const headers = sharedHeaders("ListImages");
1327
+ let body;
1328
+ body = JSON.stringify(_json(input));
1329
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1330
+ }, "se_ListImagesCommand");
1331
+ var de_ListImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1332
+ if (output.statusCode >= 300) {
1333
+ return de_CommandError(output, context);
1334
+ }
1335
+ const data = await parseJsonBody(output.body, context);
1336
+ let contents = {};
1337
+ contents = _json(data);
1338
+ const response = {
1339
+ $metadata: deserializeMetadata(output),
1340
+ ...contents
1341
+ };
1342
+ return response;
1343
+ }, "de_ListImagesCommand");
1344
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1345
+ const parsedOutput = {
1346
+ ...output,
1347
+ body: await parseJsonErrorBody(output.body, context)
1348
+ };
1349
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1350
+ switch (errorCode) {
1351
+ case "InvalidParameterException":
1352
+ case "com.amazonaws.ecr#InvalidParameterException":
1353
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1354
+ case "RepositoryNotFoundException":
1355
+ case "com.amazonaws.ecr#RepositoryNotFoundException":
1356
+ throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
1357
+ case "ServerException":
1358
+ case "com.amazonaws.ecr#ServerException":
1359
+ throw await de_ServerExceptionRes(parsedOutput, context);
1360
+ case "LimitExceededException":
1361
+ case "com.amazonaws.ecr#LimitExceededException":
1362
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1363
+ case "UnableToGetUpstreamImageException":
1364
+ case "com.amazonaws.ecr#UnableToGetUpstreamImageException":
1365
+ throw await de_UnableToGetUpstreamImageExceptionRes(parsedOutput, context);
1366
+ case "ValidationException":
1367
+ case "com.amazonaws.ecr#ValidationException":
1368
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1369
+ case "EmptyUploadException":
1370
+ case "com.amazonaws.ecr#EmptyUploadException":
1371
+ throw await de_EmptyUploadExceptionRes(parsedOutput, context);
1372
+ case "InvalidLayerException":
1373
+ case "com.amazonaws.ecr#InvalidLayerException":
1374
+ throw await de_InvalidLayerExceptionRes(parsedOutput, context);
1375
+ case "KmsException":
1376
+ case "com.amazonaws.ecr#KmsException":
1377
+ throw await de_KmsExceptionRes(parsedOutput, context);
1378
+ case "LayerAlreadyExistsException":
1379
+ case "com.amazonaws.ecr#LayerAlreadyExistsException":
1380
+ throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
1381
+ case "LayerPartTooSmallException":
1382
+ case "com.amazonaws.ecr#LayerPartTooSmallException":
1383
+ throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
1384
+ case "UploadNotFoundException":
1385
+ case "com.amazonaws.ecr#UploadNotFoundException":
1386
+ throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
1387
+ case "PullThroughCacheRuleAlreadyExistsException":
1388
+ case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":
1389
+ throw await de_PullThroughCacheRuleAlreadyExistsExceptionRes(parsedOutput, context);
1390
+ case "SecretNotFoundException":
1391
+ case "com.amazonaws.ecr#SecretNotFoundException":
1392
+ throw await de_SecretNotFoundExceptionRes(parsedOutput, context);
1393
+ case "UnableToAccessSecretException":
1394
+ case "com.amazonaws.ecr#UnableToAccessSecretException":
1395
+ throw await de_UnableToAccessSecretExceptionRes(parsedOutput, context);
1396
+ case "UnableToDecryptSecretValueException":
1397
+ case "com.amazonaws.ecr#UnableToDecryptSecretValueException":
1398
+ throw await de_UnableToDecryptSecretValueExceptionRes(parsedOutput, context);
1399
+ case "UnsupportedUpstreamRegistryException":
1400
+ case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException":
1401
+ throw await de_UnsupportedUpstreamRegistryExceptionRes(parsedOutput, context);
1402
+ case "InvalidTagParameterException":
1403
+ case "com.amazonaws.ecr#InvalidTagParameterException":
1404
+ throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
1405
+ case "RepositoryAlreadyExistsException":
1406
+ case "com.amazonaws.ecr#RepositoryAlreadyExistsException":
1407
+ throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
1408
+ case "TooManyTagsException":
1409
+ case "com.amazonaws.ecr#TooManyTagsException":
1410
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1411
+ case "TemplateAlreadyExistsException":
1412
+ case "com.amazonaws.ecr#TemplateAlreadyExistsException":
1413
+ throw await de_TemplateAlreadyExistsExceptionRes(parsedOutput, context);
1414
+ case "LifecyclePolicyNotFoundException":
1415
+ case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
1416
+ throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
1417
+ case "PullThroughCacheRuleNotFoundException":
1418
+ case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
1419
+ throw await de_PullThroughCacheRuleNotFoundExceptionRes(parsedOutput, context);
1420
+ case "RegistryPolicyNotFoundException":
1421
+ case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
1422
+ throw await de_RegistryPolicyNotFoundExceptionRes(parsedOutput, context);
1423
+ case "RepositoryNotEmptyException":
1424
+ case "com.amazonaws.ecr#RepositoryNotEmptyException":
1425
+ throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
1426
+ case "TemplateNotFoundException":
1427
+ case "com.amazonaws.ecr#TemplateNotFoundException":
1428
+ throw await de_TemplateNotFoundExceptionRes(parsedOutput, context);
1429
+ case "RepositoryPolicyNotFoundException":
1430
+ case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
1431
+ throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
1432
+ case "ImageNotFoundException":
1433
+ case "com.amazonaws.ecr#ImageNotFoundException":
1434
+ throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
1435
+ case "ScanNotFoundException":
1436
+ case "com.amazonaws.ecr#ScanNotFoundException":
1437
+ throw await de_ScanNotFoundExceptionRes(parsedOutput, context);
1438
+ case "LayerInaccessibleException":
1439
+ case "com.amazonaws.ecr#LayerInaccessibleException":
1440
+ throw await de_LayerInaccessibleExceptionRes(parsedOutput, context);
1441
+ case "LayersNotFoundException":
1442
+ case "com.amazonaws.ecr#LayersNotFoundException":
1443
+ throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
1444
+ case "UnableToGetUpstreamLayerException":
1445
+ case "com.amazonaws.ecr#UnableToGetUpstreamLayerException":
1446
+ throw await de_UnableToGetUpstreamLayerExceptionRes(parsedOutput, context);
1447
+ case "LifecyclePolicyPreviewNotFoundException":
1448
+ case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":
1449
+ throw await de_LifecyclePolicyPreviewNotFoundExceptionRes(parsedOutput, context);
1450
+ case "ImageAlreadyExistsException":
1451
+ case "com.amazonaws.ecr#ImageAlreadyExistsException":
1452
+ throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
1453
+ case "ImageDigestDoesNotMatchException":
1454
+ case "com.amazonaws.ecr#ImageDigestDoesNotMatchException":
1455
+ throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
1456
+ case "ImageTagAlreadyExistsException":
1457
+ case "com.amazonaws.ecr#ImageTagAlreadyExistsException":
1458
+ throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
1459
+ case "ReferencedImagesNotFoundException":
1460
+ case "com.amazonaws.ecr#ReferencedImagesNotFoundException":
1461
+ throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
1462
+ case "UnsupportedImageTypeException":
1463
+ case "com.amazonaws.ecr#UnsupportedImageTypeException":
1464
+ throw await de_UnsupportedImageTypeExceptionRes(parsedOutput, context);
1465
+ case "LifecyclePolicyPreviewInProgressException":
1466
+ case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":
1467
+ throw await de_LifecyclePolicyPreviewInProgressExceptionRes(parsedOutput, context);
1468
+ case "InvalidLayerPartException":
1469
+ case "com.amazonaws.ecr#InvalidLayerPartException":
1470
+ throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
1471
+ default:
1472
+ const parsedBody = parsedOutput.body;
1473
+ return throwDefaultError({
1474
+ output,
1475
+ parsedBody,
1476
+ errorCode
1477
+ });
1478
+ }
1479
+ }, "de_CommandError");
1480
+ var de_EmptyUploadExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1481
+ const body = parsedOutput.body;
1482
+ const deserialized = _json(body);
1483
+ const exception = new EmptyUploadException({
1484
+ $metadata: deserializeMetadata(parsedOutput),
1485
+ ...deserialized
1486
+ });
1487
+ return decorateServiceException(exception, body);
1488
+ }, "de_EmptyUploadExceptionRes");
1489
+ var de_ImageAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1490
+ const body = parsedOutput.body;
1491
+ const deserialized = _json(body);
1492
+ const exception = new ImageAlreadyExistsException({
1493
+ $metadata: deserializeMetadata(parsedOutput),
1494
+ ...deserialized
1495
+ });
1496
+ return decorateServiceException(exception, body);
1497
+ }, "de_ImageAlreadyExistsExceptionRes");
1498
+ var de_ImageDigestDoesNotMatchExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1499
+ const body = parsedOutput.body;
1500
+ const deserialized = _json(body);
1501
+ const exception = new ImageDigestDoesNotMatchException({
1502
+ $metadata: deserializeMetadata(parsedOutput),
1503
+ ...deserialized
1504
+ });
1505
+ return decorateServiceException(exception, body);
1506
+ }, "de_ImageDigestDoesNotMatchExceptionRes");
1507
+ var de_ImageNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1508
+ const body = parsedOutput.body;
1509
+ const deserialized = _json(body);
1510
+ const exception = new ImageNotFoundException({
1511
+ $metadata: deserializeMetadata(parsedOutput),
1512
+ ...deserialized
1513
+ });
1514
+ return decorateServiceException(exception, body);
1515
+ }, "de_ImageNotFoundExceptionRes");
1516
+ var de_ImageTagAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1517
+ const body = parsedOutput.body;
1518
+ const deserialized = _json(body);
1519
+ const exception = new ImageTagAlreadyExistsException({
1520
+ $metadata: deserializeMetadata(parsedOutput),
1521
+ ...deserialized
1522
+ });
1523
+ return decorateServiceException(exception, body);
1524
+ }, "de_ImageTagAlreadyExistsExceptionRes");
1525
+ var de_InvalidLayerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1526
+ const body = parsedOutput.body;
1527
+ const deserialized = _json(body);
1528
+ const exception = new InvalidLayerException({
1529
+ $metadata: deserializeMetadata(parsedOutput),
1530
+ ...deserialized
1531
+ });
1532
+ return decorateServiceException(exception, body);
1533
+ }, "de_InvalidLayerExceptionRes");
1534
+ var de_InvalidLayerPartExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1535
+ const body = parsedOutput.body;
1536
+ const deserialized = _json(body);
1537
+ const exception = new InvalidLayerPartException({
1538
+ $metadata: deserializeMetadata(parsedOutput),
1539
+ ...deserialized
1540
+ });
1541
+ return decorateServiceException(exception, body);
1542
+ }, "de_InvalidLayerPartExceptionRes");
1543
+ var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1544
+ const body = parsedOutput.body;
1545
+ const deserialized = _json(body);
1546
+ const exception = new InvalidParameterException({
1547
+ $metadata: deserializeMetadata(parsedOutput),
1548
+ ...deserialized
1549
+ });
1550
+ return decorateServiceException(exception, body);
1551
+ }, "de_InvalidParameterExceptionRes");
1552
+ var de_InvalidTagParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1553
+ const body = parsedOutput.body;
1554
+ const deserialized = _json(body);
1555
+ const exception = new InvalidTagParameterException({
1556
+ $metadata: deserializeMetadata(parsedOutput),
1557
+ ...deserialized
1558
+ });
1559
+ return decorateServiceException(exception, body);
1560
+ }, "de_InvalidTagParameterExceptionRes");
1561
+ var de_KmsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1562
+ const body = parsedOutput.body;
1563
+ const deserialized = _json(body);
1564
+ const exception = new KmsException({
1565
+ $metadata: deserializeMetadata(parsedOutput),
1566
+ ...deserialized
1567
+ });
1568
+ return decorateServiceException(exception, body);
1569
+ }, "de_KmsExceptionRes");
1570
+ var de_LayerAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1571
+ const body = parsedOutput.body;
1572
+ const deserialized = _json(body);
1573
+ const exception = new LayerAlreadyExistsException({
1574
+ $metadata: deserializeMetadata(parsedOutput),
1575
+ ...deserialized
1576
+ });
1577
+ return decorateServiceException(exception, body);
1578
+ }, "de_LayerAlreadyExistsExceptionRes");
1579
+ var de_LayerInaccessibleExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1580
+ const body = parsedOutput.body;
1581
+ const deserialized = _json(body);
1582
+ const exception = new LayerInaccessibleException({
1583
+ $metadata: deserializeMetadata(parsedOutput),
1584
+ ...deserialized
1585
+ });
1586
+ return decorateServiceException(exception, body);
1587
+ }, "de_LayerInaccessibleExceptionRes");
1588
+ var de_LayerPartTooSmallExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1589
+ const body = parsedOutput.body;
1590
+ const deserialized = _json(body);
1591
+ const exception = new LayerPartTooSmallException({
1592
+ $metadata: deserializeMetadata(parsedOutput),
1593
+ ...deserialized
1594
+ });
1595
+ return decorateServiceException(exception, body);
1596
+ }, "de_LayerPartTooSmallExceptionRes");
1597
+ var de_LayersNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1598
+ const body = parsedOutput.body;
1599
+ const deserialized = _json(body);
1600
+ const exception = new LayersNotFoundException({
1601
+ $metadata: deserializeMetadata(parsedOutput),
1602
+ ...deserialized
1603
+ });
1604
+ return decorateServiceException(exception, body);
1605
+ }, "de_LayersNotFoundExceptionRes");
1606
+ var de_LifecyclePolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1607
+ const body = parsedOutput.body;
1608
+ const deserialized = _json(body);
1609
+ const exception = new LifecyclePolicyNotFoundException({
1610
+ $metadata: deserializeMetadata(parsedOutput),
1611
+ ...deserialized
1612
+ });
1613
+ return decorateServiceException(exception, body);
1614
+ }, "de_LifecyclePolicyNotFoundExceptionRes");
1615
+ var de_LifecyclePolicyPreviewInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1616
+ const body = parsedOutput.body;
1617
+ const deserialized = _json(body);
1618
+ const exception = new LifecyclePolicyPreviewInProgressException({
1619
+ $metadata: deserializeMetadata(parsedOutput),
1620
+ ...deserialized
1621
+ });
1622
+ return decorateServiceException(exception, body);
1623
+ }, "de_LifecyclePolicyPreviewInProgressExceptionRes");
1624
+ var de_LifecyclePolicyPreviewNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1625
+ const body = parsedOutput.body;
1626
+ const deserialized = _json(body);
1627
+ const exception = new LifecyclePolicyPreviewNotFoundException({
1628
+ $metadata: deserializeMetadata(parsedOutput),
1629
+ ...deserialized
1630
+ });
1631
+ return decorateServiceException(exception, body);
1632
+ }, "de_LifecyclePolicyPreviewNotFoundExceptionRes");
1633
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1634
+ const body = parsedOutput.body;
1635
+ const deserialized = _json(body);
1636
+ const exception = new LimitExceededException({
1637
+ $metadata: deserializeMetadata(parsedOutput),
1638
+ ...deserialized
1639
+ });
1640
+ return decorateServiceException(exception, body);
1641
+ }, "de_LimitExceededExceptionRes");
1642
+ var de_PullThroughCacheRuleAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1643
+ const body = parsedOutput.body;
1644
+ const deserialized = _json(body);
1645
+ const exception = new PullThroughCacheRuleAlreadyExistsException({
1646
+ $metadata: deserializeMetadata(parsedOutput),
1647
+ ...deserialized
1648
+ });
1649
+ return decorateServiceException(exception, body);
1650
+ }, "de_PullThroughCacheRuleAlreadyExistsExceptionRes");
1651
+ var de_PullThroughCacheRuleNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1652
+ const body = parsedOutput.body;
1653
+ const deserialized = _json(body);
1654
+ const exception = new PullThroughCacheRuleNotFoundException({
1655
+ $metadata: deserializeMetadata(parsedOutput),
1656
+ ...deserialized
1657
+ });
1658
+ return decorateServiceException(exception, body);
1659
+ }, "de_PullThroughCacheRuleNotFoundExceptionRes");
1660
+ var de_ReferencedImagesNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1661
+ const body = parsedOutput.body;
1662
+ const deserialized = _json(body);
1663
+ const exception = new ReferencedImagesNotFoundException({
1664
+ $metadata: deserializeMetadata(parsedOutput),
1665
+ ...deserialized
1666
+ });
1667
+ return decorateServiceException(exception, body);
1668
+ }, "de_ReferencedImagesNotFoundExceptionRes");
1669
+ var de_RegistryPolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1670
+ const body = parsedOutput.body;
1671
+ const deserialized = _json(body);
1672
+ const exception = new RegistryPolicyNotFoundException({
1673
+ $metadata: deserializeMetadata(parsedOutput),
1674
+ ...deserialized
1675
+ });
1676
+ return decorateServiceException(exception, body);
1677
+ }, "de_RegistryPolicyNotFoundExceptionRes");
1678
+ var de_RepositoryAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1679
+ const body = parsedOutput.body;
1680
+ const deserialized = _json(body);
1681
+ const exception = new RepositoryAlreadyExistsException({
1682
+ $metadata: deserializeMetadata(parsedOutput),
1683
+ ...deserialized
1684
+ });
1685
+ return decorateServiceException(exception, body);
1686
+ }, "de_RepositoryAlreadyExistsExceptionRes");
1687
+ var de_RepositoryNotEmptyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1688
+ const body = parsedOutput.body;
1689
+ const deserialized = _json(body);
1690
+ const exception = new RepositoryNotEmptyException({
1691
+ $metadata: deserializeMetadata(parsedOutput),
1692
+ ...deserialized
1693
+ });
1694
+ return decorateServiceException(exception, body);
1695
+ }, "de_RepositoryNotEmptyExceptionRes");
1696
+ var de_RepositoryNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1697
+ const body = parsedOutput.body;
1698
+ const deserialized = _json(body);
1699
+ const exception = new RepositoryNotFoundException({
1700
+ $metadata: deserializeMetadata(parsedOutput),
1701
+ ...deserialized
1702
+ });
1703
+ return decorateServiceException(exception, body);
1704
+ }, "de_RepositoryNotFoundExceptionRes");
1705
+ var de_RepositoryPolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1706
+ const body = parsedOutput.body;
1707
+ const deserialized = _json(body);
1708
+ const exception = new RepositoryPolicyNotFoundException({
1709
+ $metadata: deserializeMetadata(parsedOutput),
1710
+ ...deserialized
1711
+ });
1712
+ return decorateServiceException(exception, body);
1713
+ }, "de_RepositoryPolicyNotFoundExceptionRes");
1714
+ var de_ScanNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1715
+ const body = parsedOutput.body;
1716
+ const deserialized = _json(body);
1717
+ const exception = new ScanNotFoundException({
1718
+ $metadata: deserializeMetadata(parsedOutput),
1719
+ ...deserialized
1720
+ });
1721
+ return decorateServiceException(exception, body);
1722
+ }, "de_ScanNotFoundExceptionRes");
1723
+ var de_SecretNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1724
+ const body = parsedOutput.body;
1725
+ const deserialized = _json(body);
1726
+ const exception = new SecretNotFoundException({
1727
+ $metadata: deserializeMetadata(parsedOutput),
1728
+ ...deserialized
1729
+ });
1730
+ return decorateServiceException(exception, body);
1731
+ }, "de_SecretNotFoundExceptionRes");
1732
+ var de_ServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1733
+ const body = parsedOutput.body;
1734
+ const deserialized = _json(body);
1735
+ const exception = new ServerException({
1736
+ $metadata: deserializeMetadata(parsedOutput),
1737
+ ...deserialized
1738
+ });
1739
+ return decorateServiceException(exception, body);
1740
+ }, "de_ServerExceptionRes");
1741
+ var de_TemplateAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1742
+ const body = parsedOutput.body;
1743
+ const deserialized = _json(body);
1744
+ const exception = new TemplateAlreadyExistsException({
1745
+ $metadata: deserializeMetadata(parsedOutput),
1746
+ ...deserialized
1747
+ });
1748
+ return decorateServiceException(exception, body);
1749
+ }, "de_TemplateAlreadyExistsExceptionRes");
1750
+ var de_TemplateNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1751
+ const body = parsedOutput.body;
1752
+ const deserialized = _json(body);
1753
+ const exception = new TemplateNotFoundException({
1754
+ $metadata: deserializeMetadata(parsedOutput),
1755
+ ...deserialized
1756
+ });
1757
+ return decorateServiceException(exception, body);
1758
+ }, "de_TemplateNotFoundExceptionRes");
1759
+ var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1760
+ const body = parsedOutput.body;
1761
+ const deserialized = _json(body);
1762
+ const exception = new TooManyTagsException({
1763
+ $metadata: deserializeMetadata(parsedOutput),
1764
+ ...deserialized
1765
+ });
1766
+ return decorateServiceException(exception, body);
1767
+ }, "de_TooManyTagsExceptionRes");
1768
+ var de_UnableToAccessSecretExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1769
+ const body = parsedOutput.body;
1770
+ const deserialized = _json(body);
1771
+ const exception = new UnableToAccessSecretException({
1772
+ $metadata: deserializeMetadata(parsedOutput),
1773
+ ...deserialized
1774
+ });
1775
+ return decorateServiceException(exception, body);
1776
+ }, "de_UnableToAccessSecretExceptionRes");
1777
+ var de_UnableToDecryptSecretValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1778
+ const body = parsedOutput.body;
1779
+ const deserialized = _json(body);
1780
+ const exception = new UnableToDecryptSecretValueException({
1781
+ $metadata: deserializeMetadata(parsedOutput),
1782
+ ...deserialized
1783
+ });
1784
+ return decorateServiceException(exception, body);
1785
+ }, "de_UnableToDecryptSecretValueExceptionRes");
1786
+ var de_UnableToGetUpstreamImageExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1787
+ const body = parsedOutput.body;
1788
+ const deserialized = _json(body);
1789
+ const exception = new UnableToGetUpstreamImageException({
1790
+ $metadata: deserializeMetadata(parsedOutput),
1791
+ ...deserialized
1792
+ });
1793
+ return decorateServiceException(exception, body);
1794
+ }, "de_UnableToGetUpstreamImageExceptionRes");
1795
+ var de_UnableToGetUpstreamLayerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1796
+ const body = parsedOutput.body;
1797
+ const deserialized = _json(body);
1798
+ const exception = new UnableToGetUpstreamLayerException({
1799
+ $metadata: deserializeMetadata(parsedOutput),
1800
+ ...deserialized
1801
+ });
1802
+ return decorateServiceException(exception, body);
1803
+ }, "de_UnableToGetUpstreamLayerExceptionRes");
1804
+ var de_UnsupportedImageTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1805
+ const body = parsedOutput.body;
1806
+ const deserialized = _json(body);
1807
+ const exception = new UnsupportedImageTypeException({
1808
+ $metadata: deserializeMetadata(parsedOutput),
1809
+ ...deserialized
1810
+ });
1811
+ return decorateServiceException(exception, body);
1812
+ }, "de_UnsupportedImageTypeExceptionRes");
1813
+ var de_UnsupportedUpstreamRegistryExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1814
+ const body = parsedOutput.body;
1815
+ const deserialized = _json(body);
1816
+ const exception = new UnsupportedUpstreamRegistryException({
1817
+ $metadata: deserializeMetadata(parsedOutput),
1818
+ ...deserialized
1819
+ });
1820
+ return decorateServiceException(exception, body);
1821
+ }, "de_UnsupportedUpstreamRegistryExceptionRes");
1822
+ var de_UploadNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1823
+ const body = parsedOutput.body;
1824
+ const deserialized = _json(body);
1825
+ const exception = new UploadNotFoundException({
1826
+ $metadata: deserializeMetadata(parsedOutput),
1827
+ ...deserialized
1828
+ });
1829
+ return decorateServiceException(exception, body);
1830
+ }, "de_UploadNotFoundExceptionRes");
1831
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1832
+ const body = parsedOutput.body;
1833
+ const deserialized = _json(body);
1834
+ const exception = new ValidationException({
1835
+ $metadata: deserializeMetadata(parsedOutput),
1836
+ ...deserialized
1837
+ });
1838
+ return decorateServiceException(exception, body);
1839
+ }, "de_ValidationExceptionRes");
1840
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1841
+ httpStatusCode: output.statusCode,
1842
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1843
+ extendedRequestId: output.headers["x-amz-id-2"],
1844
+ cfId: output.headers["x-amz-cf-id"]
1845
+ }), "deserializeMetadata");
1846
+ var throwDefaultError = withBaseException(ECRServiceException);
1847
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1848
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1849
+ const contents = {
1850
+ protocol,
1851
+ hostname,
1852
+ port,
1853
+ method: "POST",
1854
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1855
+ headers
1856
+ };
1857
+ if (resolvedHostname !== void 0) {
1858
+ contents.hostname = resolvedHostname;
1859
+ }
1860
+ if (body !== void 0) {
1861
+ contents.body = body;
1862
+ }
1863
+ return new HttpRequest(contents);
1864
+ }, "buildHttpRpcRequest");
1865
+ function sharedHeaders(operation) {
1866
+ return {
1867
+ "content-type": "application/x-amz-json-1.1",
1868
+ "x-amz-target": `AmazonEC2ContainerRegistry_V20150921.${operation}`
1869
+ };
1870
+ }
1871
+ __name(sharedHeaders, "sharedHeaders");
1872
+
1873
+ // ../../node_modules/.pnpm/@aws-sdk+client-ecr@3.879.0/node_modules/@aws-sdk/client-ecr/dist-es/commands/ListImagesCommand.js
1874
+ var ListImagesCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command3, cs, config, o2) {
1875
+ return [
1876
+ getSerdePlugin(config, this.serialize, this.deserialize),
1877
+ getEndpointPlugin(config, Command3.getEndpointParameterInstructions())
1878
+ ];
1879
+ }).s("AmazonEC2ContainerRegistry_V20150921", "ListImages", {}).n("ECRClient", "ListImagesCommand").f(void 0, void 0).ser(se_ListImagesCommand).de(de_ListImagesCommand).build() {
1880
+ static {
1881
+ __name(this, "ListImagesCommand");
1882
+ }
1883
+ };
1884
+ var tagSeparators = [
1885
+ "-",
1886
+ "_"
1887
+ ];
1888
+ var toolTypeWhitelist = [
1889
+ "aptos",
1890
+ "starknet",
1891
+ "sui"
1892
+ ];
1893
+ var ecrClient = new ECRClient();
1894
+ var command = new Command$1().name("generate-github-matrix").requiredOption("--registry <registry>").parse();
1895
+ var { registry } = command.opts();
1896
+ var compileVersionMatrix = /* @__PURE__ */ __name(async ({ toolType, combinations }) => {
1897
+ const repository = `layerzerolabs/${toolType}-tooling`;
1898
+ let existingTags = /* @__PURE__ */ new Set();
1899
+ try {
1900
+ const imageIds = [];
1901
+ let nextToken;
1902
+ do {
1903
+ const response = await ecrClient.send(new ListImagesCommand({
1904
+ filter: {
1905
+ tagStatus: "TAGGED"
1906
+ },
1907
+ nextToken,
1908
+ repositoryName: repository
1909
+ }));
1910
+ imageIds.push(...response.imageIds ?? []);
1911
+ nextToken = response.nextToken;
1912
+ } while (nextToken);
1913
+ existingTags = new Set(imageIds.map(({ imageTag }) => imageTag));
1914
+ } catch (error) {
1915
+ if (!(error instanceof RepositoryNotFoundException)) {
1916
+ throw error;
1917
+ }
1918
+ console.error(error.message);
1919
+ }
1920
+ console.error(`Existing tags for ${toolType}:`, [
1921
+ ...existingTags
1922
+ ]);
1923
+ return combinations.map(({ versions }) => ({
1924
+ build_args: Object.entries(versions).sort().map(([key, value]) => `${key.toUpperCase()}_VERSION=${value}`),
1925
+ directory: toolType,
1926
+ repository,
1927
+ tags: tagSeparators.map((separator) => Object.entries(versions).sort().flat().join(separator)).map((tag) => `${registry}/${repository}:${tag}`)
1928
+ })).filter(({ tags }) => !tags.some((tag) => existingTags.has(tag.split(":").at(-1))));
1929
+ }, "compileVersionMatrix");
1930
+ var main = /* @__PURE__ */ __name(async () => {
1931
+ const entries = (await Promise.all(versionMatrices.filter(({ toolType }) => toolTypeWhitelist.includes(toolType)).map(compileVersionMatrix))).flat();
1932
+ console.error("GitHub Action matrix generated:", entries);
1933
+ stdout.write(JSON.stringify({
1934
+ toolchain: entries
1935
+ }));
1936
+ }, "main");
1937
+ if (import.meta.url.startsWith("file:") && process.argv[1] === fileURLToPath(import.meta.url)) {
1938
+ main().catch((error) => {
1939
+ console.error(error);
1940
+ process.exit(1);
1941
+ });
1942
+ }
1943
+ //# sourceMappingURL=generate-github-matrix.js.map
1944
+ //# sourceMappingURL=generate-github-matrix.js.map