@awsless/cli 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +487 -0
- package/dist/app.json +1 -0
- package/dist/app.stage.json +1 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +49025 -0
- package/dist/build-json-schema.js +1925 -0
- package/dist/chunk-2TBBLACH.js +37 -0
- package/dist/chunk-3YEPERYO.js +1021 -0
- package/dist/chunk-4JFIJMQ6.js +46 -0
- package/dist/chunk-5TWBDDXS.js +60 -0
- package/dist/chunk-7NRPMOO4.js +876 -0
- package/dist/chunk-7XIGSOF4.js +100 -0
- package/dist/chunk-DSXFE5X2.js +174 -0
- package/dist/chunk-E7FQOYML.js +12 -0
- package/dist/chunk-GH475CSF.js +5005 -0
- package/dist/chunk-JHYKYQ5P.js +163 -0
- package/dist/chunk-LBISIOIM.js +28 -0
- package/dist/chunk-RCNT4C4P.js +50 -0
- package/dist/chunk-SIAA4J6H.js +21 -0
- package/dist/chunk-XNYTWFP6.js +241 -0
- package/dist/chunk-Z37AK4IA.js +546 -0
- package/dist/chunk-ZKH7AMP3.js +42 -0
- package/dist/dist-es-GXHCNXAC.js +489 -0
- package/dist/dist-es-J7SL4PXO.js +88 -0
- package/dist/dist-es-LL3VAI2X.js +70 -0
- package/dist/dist-es-QND3CYLI.js +380 -0
- package/dist/dist-es-STVZUSZG.js +21 -0
- package/dist/dist-es-TCFHB4OF.js +324 -0
- package/dist/dist-es-YFQTZTNE.js +167 -0
- package/dist/event-streams-74K5M656.js +244 -0
- package/dist/layers/sharp-arm.zip +0 -0
- package/dist/loadSso-O7PM54HL.js +592 -0
- package/dist/prebuild/icon/HASH +1 -0
- package/dist/prebuild/icon/bundle.zip +0 -0
- package/dist/prebuild/image/HASH +1 -0
- package/dist/prebuild/image/bundle.zip +0 -0
- package/dist/prebuild/on-error-log/HASH +1 -0
- package/dist/prebuild/on-error-log/bundle.zip +0 -0
- package/dist/prebuild/on-failure/HASH +1 -0
- package/dist/prebuild/on-failure/bundle.zip +0 -0
- package/dist/prebuild/rpc/HASH +1 -0
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/dist/prebuild.js +159 -0
- package/dist/signin-6SPMGGJN.js +704 -0
- package/dist/sso-oidc-5IIWGKXY.js +829 -0
- package/dist/stack.json +1 -0
- package/dist/stack.stage.json +1 -0
- package/dist/sts-6SQWH4BL.js +3788 -0
- package/dist/test-global-setup.js +22 -0
- package/package.json +120 -0
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NormalizedSchema,
|
|
3
|
+
SMITHY_CONTEXT_KEY,
|
|
4
|
+
constructStack,
|
|
5
|
+
getEndpointFromConfig,
|
|
6
|
+
getSmithyContext,
|
|
7
|
+
toEndpointV1
|
|
8
|
+
} from "./chunk-GH475CSF.js";
|
|
9
|
+
|
|
10
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.12.8/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js
|
|
11
|
+
var SENSITIVE_STRING = "***SensitiveInformation***";
|
|
12
|
+
function schemaLogFilter(schema, data) {
|
|
13
|
+
if (data == null) {
|
|
14
|
+
return data;
|
|
15
|
+
}
|
|
16
|
+
const ns = NormalizedSchema.of(schema);
|
|
17
|
+
if (ns.getMergedTraits().sensitive) {
|
|
18
|
+
return SENSITIVE_STRING;
|
|
19
|
+
}
|
|
20
|
+
if (ns.isListSchema()) {
|
|
21
|
+
const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
|
|
22
|
+
if (isSensitive) {
|
|
23
|
+
return SENSITIVE_STRING;
|
|
24
|
+
}
|
|
25
|
+
} else if (ns.isMapSchema()) {
|
|
26
|
+
const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
|
|
27
|
+
if (isSensitive) {
|
|
28
|
+
return SENSITIVE_STRING;
|
|
29
|
+
}
|
|
30
|
+
} else if (ns.isStructSchema() && typeof data === "object") {
|
|
31
|
+
const object = data;
|
|
32
|
+
const newObject = {};
|
|
33
|
+
for (const [member, memberNs] of ns.structIterator()) {
|
|
34
|
+
if (object[member] != null) {
|
|
35
|
+
newObject[member] = schemaLogFilter(memberNs, object[member]);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return newObject;
|
|
39
|
+
}
|
|
40
|
+
return data;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.12.8/node_modules/@smithy/smithy-client/dist-es/command.js
|
|
44
|
+
var Command = class {
|
|
45
|
+
middlewareStack = constructStack();
|
|
46
|
+
schema;
|
|
47
|
+
static classBuilder() {
|
|
48
|
+
return new ClassBuilder();
|
|
49
|
+
}
|
|
50
|
+
resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor }) {
|
|
51
|
+
for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
|
|
52
|
+
this.middlewareStack.use(mw);
|
|
53
|
+
}
|
|
54
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
55
|
+
const { logger } = configuration;
|
|
56
|
+
const handlerExecutionContext = {
|
|
57
|
+
logger,
|
|
58
|
+
clientName,
|
|
59
|
+
commandName,
|
|
60
|
+
inputFilterSensitiveLog,
|
|
61
|
+
outputFilterSensitiveLog,
|
|
62
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
63
|
+
commandInstance: this,
|
|
64
|
+
...smithyContext
|
|
65
|
+
},
|
|
66
|
+
...additionalContext
|
|
67
|
+
};
|
|
68
|
+
const { requestHandler } = configuration;
|
|
69
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var ClassBuilder = class {
|
|
73
|
+
_init = () => {
|
|
74
|
+
};
|
|
75
|
+
_ep = {};
|
|
76
|
+
_middlewareFn = () => [];
|
|
77
|
+
_commandName = "";
|
|
78
|
+
_clientName = "";
|
|
79
|
+
_additionalContext = {};
|
|
80
|
+
_smithyContext = {};
|
|
81
|
+
_inputFilterSensitiveLog = void 0;
|
|
82
|
+
_outputFilterSensitiveLog = void 0;
|
|
83
|
+
_serializer = null;
|
|
84
|
+
_deserializer = null;
|
|
85
|
+
_operationSchema;
|
|
86
|
+
init(cb) {
|
|
87
|
+
this._init = cb;
|
|
88
|
+
}
|
|
89
|
+
ep(endpointParameterInstructions) {
|
|
90
|
+
this._ep = endpointParameterInstructions;
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
m(middlewareSupplier) {
|
|
94
|
+
this._middlewareFn = middlewareSupplier;
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
s(service, operation, smithyContext = {}) {
|
|
98
|
+
this._smithyContext = {
|
|
99
|
+
service,
|
|
100
|
+
operation,
|
|
101
|
+
...smithyContext
|
|
102
|
+
};
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
105
|
+
c(additionalContext = {}) {
|
|
106
|
+
this._additionalContext = additionalContext;
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
109
|
+
n(clientName, commandName) {
|
|
110
|
+
this._clientName = clientName;
|
|
111
|
+
this._commandName = commandName;
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
f(inputFilter = (_) => _, outputFilter = (_) => _) {
|
|
115
|
+
this._inputFilterSensitiveLog = inputFilter;
|
|
116
|
+
this._outputFilterSensitiveLog = outputFilter;
|
|
117
|
+
return this;
|
|
118
|
+
}
|
|
119
|
+
ser(serializer) {
|
|
120
|
+
this._serializer = serializer;
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
de(deserializer) {
|
|
124
|
+
this._deserializer = deserializer;
|
|
125
|
+
return this;
|
|
126
|
+
}
|
|
127
|
+
sc(operation) {
|
|
128
|
+
this._operationSchema = operation;
|
|
129
|
+
this._smithyContext.operationSchema = operation;
|
|
130
|
+
return this;
|
|
131
|
+
}
|
|
132
|
+
build() {
|
|
133
|
+
const closure = this;
|
|
134
|
+
let CommandRef;
|
|
135
|
+
return CommandRef = class extends Command {
|
|
136
|
+
input;
|
|
137
|
+
static getEndpointParameterInstructions() {
|
|
138
|
+
return closure._ep;
|
|
139
|
+
}
|
|
140
|
+
constructor(...[input]) {
|
|
141
|
+
super();
|
|
142
|
+
this.input = input ?? {};
|
|
143
|
+
closure._init(this);
|
|
144
|
+
this.schema = closure._operationSchema;
|
|
145
|
+
}
|
|
146
|
+
resolveMiddleware(stack, configuration, options) {
|
|
147
|
+
const op = closure._operationSchema;
|
|
148
|
+
const input = op?.[4] ?? op?.input;
|
|
149
|
+
const output = op?.[5] ?? op?.output;
|
|
150
|
+
return this.resolveMiddlewareWithContext(stack, configuration, options, {
|
|
151
|
+
CommandCtor: CommandRef,
|
|
152
|
+
middlewareFn: closure._middlewareFn,
|
|
153
|
+
clientName: closure._clientName,
|
|
154
|
+
commandName: closure._commandName,
|
|
155
|
+
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, input) : (_) => _),
|
|
156
|
+
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, output) : (_) => _),
|
|
157
|
+
smithyContext: closure._smithyContext,
|
|
158
|
+
additionalContext: closure._additionalContext
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
serialize = closure._serializer;
|
|
162
|
+
deserialize = closure._deserializer;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
// ../../node_modules/.pnpm/@smithy+middleware-serde@4.2.16/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js
|
|
168
|
+
var serializerMiddlewareOption = {
|
|
169
|
+
name: "serializerMiddleware",
|
|
170
|
+
step: "serialize",
|
|
171
|
+
tags: ["SERIALIZER"],
|
|
172
|
+
override: true
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// ../../node_modules/.pnpm/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/setFeature.js
|
|
176
|
+
function setFeature(context, feature, value) {
|
|
177
|
+
if (!context.__smithy_context) {
|
|
178
|
+
context.__smithy_context = {
|
|
179
|
+
features: {}
|
|
180
|
+
};
|
|
181
|
+
} else if (!context.__smithy_context.features) {
|
|
182
|
+
context.__smithy_context.features = {};
|
|
183
|
+
}
|
|
184
|
+
context.__smithy_context.features[feature] = value;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// ../../node_modules/.pnpm/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
|
|
188
|
+
var NoAuthSigner = class {
|
|
189
|
+
async sign(httpRequest, identity, signingProperties) {
|
|
190
|
+
return httpRequest;
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
|
|
195
|
+
var resolveParamsForS3 = async (endpointParams) => {
|
|
196
|
+
const bucket = endpointParams?.Bucket || "";
|
|
197
|
+
if (typeof endpointParams.Bucket === "string") {
|
|
198
|
+
endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?"));
|
|
199
|
+
}
|
|
200
|
+
if (isArnBucketName(bucket)) {
|
|
201
|
+
if (endpointParams.ForcePathStyle === true) {
|
|
202
|
+
throw new Error("Path-style addressing cannot be used with ARN buckets");
|
|
203
|
+
}
|
|
204
|
+
} else if (!isDnsCompatibleBucketName(bucket) || bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:") || bucket.toLowerCase() !== bucket || bucket.length < 3) {
|
|
205
|
+
endpointParams.ForcePathStyle = true;
|
|
206
|
+
}
|
|
207
|
+
if (endpointParams.DisableMultiRegionAccessPoints) {
|
|
208
|
+
endpointParams.disableMultiRegionAccessPoints = true;
|
|
209
|
+
endpointParams.DisableMRAP = true;
|
|
210
|
+
}
|
|
211
|
+
return endpointParams;
|
|
212
|
+
};
|
|
213
|
+
var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
|
|
214
|
+
var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
|
|
215
|
+
var DOTS_PATTERN = /\.\./;
|
|
216
|
+
var isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName);
|
|
217
|
+
var isArnBucketName = (bucketName) => {
|
|
218
|
+
const [arn, partition, service, , , bucket] = bucketName.split(":");
|
|
219
|
+
const isArn = arn === "arn" && bucketName.split(":").length >= 6;
|
|
220
|
+
const isValidArn = Boolean(isArn && partition && service && bucket);
|
|
221
|
+
if (isArn && !isValidArn) {
|
|
222
|
+
throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`);
|
|
223
|
+
}
|
|
224
|
+
return isValidArn;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js
|
|
228
|
+
var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config, isClientContextParam = false) => {
|
|
229
|
+
const configProvider = async () => {
|
|
230
|
+
let configValue;
|
|
231
|
+
if (isClientContextParam) {
|
|
232
|
+
const clientContextParams = config.clientContextParams;
|
|
233
|
+
const nestedValue = clientContextParams?.[configKey];
|
|
234
|
+
configValue = nestedValue ?? config[configKey] ?? config[canonicalEndpointParamKey];
|
|
235
|
+
} else {
|
|
236
|
+
configValue = config[configKey] ?? config[canonicalEndpointParamKey];
|
|
237
|
+
}
|
|
238
|
+
if (typeof configValue === "function") {
|
|
239
|
+
return configValue();
|
|
240
|
+
}
|
|
241
|
+
return configValue;
|
|
242
|
+
};
|
|
243
|
+
if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") {
|
|
244
|
+
return async () => {
|
|
245
|
+
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
|
|
246
|
+
const configValue = credentials?.credentialScope ?? credentials?.CredentialScope;
|
|
247
|
+
return configValue;
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") {
|
|
251
|
+
return async () => {
|
|
252
|
+
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
|
|
253
|
+
const configValue = credentials?.accountId ?? credentials?.AccountId;
|
|
254
|
+
return configValue;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
|
|
258
|
+
return async () => {
|
|
259
|
+
if (config.isCustomEndpoint === false) {
|
|
260
|
+
return void 0;
|
|
261
|
+
}
|
|
262
|
+
const endpoint = await configProvider();
|
|
263
|
+
if (endpoint && typeof endpoint === "object") {
|
|
264
|
+
if ("url" in endpoint) {
|
|
265
|
+
return endpoint.url.href;
|
|
266
|
+
}
|
|
267
|
+
if ("hostname" in endpoint) {
|
|
268
|
+
const { protocol, hostname, port, path } = endpoint;
|
|
269
|
+
return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return endpoint;
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
return configProvider;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
|
|
279
|
+
var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
|
|
280
|
+
if (!clientConfig.isCustomEndpoint) {
|
|
281
|
+
let endpointFromConfig;
|
|
282
|
+
if (clientConfig.serviceConfiguredEndpoint) {
|
|
283
|
+
endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
|
|
284
|
+
} else {
|
|
285
|
+
endpointFromConfig = await getEndpointFromConfig(clientConfig.serviceId);
|
|
286
|
+
}
|
|
287
|
+
if (endpointFromConfig) {
|
|
288
|
+
clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
|
|
289
|
+
clientConfig.isCustomEndpoint = true;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
|
|
293
|
+
if (typeof clientConfig.endpointProvider !== "function") {
|
|
294
|
+
throw new Error("config.endpointProvider is not set.");
|
|
295
|
+
}
|
|
296
|
+
const endpoint = clientConfig.endpointProvider(endpointParams, context);
|
|
297
|
+
if (clientConfig.isCustomEndpoint && clientConfig.endpoint) {
|
|
298
|
+
const customEndpoint = await clientConfig.endpoint();
|
|
299
|
+
if (customEndpoint?.headers) {
|
|
300
|
+
endpoint.headers ??= {};
|
|
301
|
+
for (const [name, value] of Object.entries(customEndpoint.headers)) {
|
|
302
|
+
endpoint.headers[name] = Array.isArray(value) ? value : [value];
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return endpoint;
|
|
307
|
+
};
|
|
308
|
+
var resolveParams = async (commandInput, instructionsSupplier, clientConfig) => {
|
|
309
|
+
const endpointParams = {};
|
|
310
|
+
const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};
|
|
311
|
+
for (const [name, instruction] of Object.entries(instructions)) {
|
|
312
|
+
switch (instruction.type) {
|
|
313
|
+
case "staticContextParams":
|
|
314
|
+
endpointParams[name] = instruction.value;
|
|
315
|
+
break;
|
|
316
|
+
case "contextParams":
|
|
317
|
+
endpointParams[name] = commandInput[instruction.name];
|
|
318
|
+
break;
|
|
319
|
+
case "clientContextParams":
|
|
320
|
+
case "builtInParams":
|
|
321
|
+
endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig, instruction.type !== "builtInParams")();
|
|
322
|
+
break;
|
|
323
|
+
case "operationContextParams":
|
|
324
|
+
endpointParams[name] = instruction.get(commandInput);
|
|
325
|
+
break;
|
|
326
|
+
default:
|
|
327
|
+
throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
if (Object.keys(instructions).length === 0) {
|
|
331
|
+
Object.assign(endpointParams, clientConfig);
|
|
332
|
+
}
|
|
333
|
+
if (String(clientConfig.serviceId).toLowerCase() === "s3") {
|
|
334
|
+
await resolveParamsForS3(endpointParams);
|
|
335
|
+
}
|
|
336
|
+
return endpointParams;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
|
|
340
|
+
var endpointMiddleware = ({ config, instructions }) => {
|
|
341
|
+
return (next, context) => async (args) => {
|
|
342
|
+
if (config.isCustomEndpoint) {
|
|
343
|
+
setFeature(context, "ENDPOINT_OVERRIDE", "N");
|
|
344
|
+
}
|
|
345
|
+
const endpoint = await getEndpointFromInstructions(args.input, {
|
|
346
|
+
getEndpointParameterInstructions() {
|
|
347
|
+
return instructions;
|
|
348
|
+
}
|
|
349
|
+
}, { ...config }, context);
|
|
350
|
+
context.endpointV2 = endpoint;
|
|
351
|
+
context.authSchemes = endpoint.properties?.authSchemes;
|
|
352
|
+
const authScheme = context.authSchemes?.[0];
|
|
353
|
+
if (authScheme) {
|
|
354
|
+
context["signing_region"] = authScheme.signingRegion;
|
|
355
|
+
context["signing_service"] = authScheme.signingName;
|
|
356
|
+
const smithyContext = getSmithyContext(context);
|
|
357
|
+
const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
|
|
358
|
+
if (httpAuthOption) {
|
|
359
|
+
httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, {
|
|
360
|
+
signing_region: authScheme.signingRegion,
|
|
361
|
+
signingRegion: authScheme.signingRegion,
|
|
362
|
+
signing_service: authScheme.signingName,
|
|
363
|
+
signingName: authScheme.signingName,
|
|
364
|
+
signingRegionSet: authScheme.signingRegionSet
|
|
365
|
+
}, authScheme.properties);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
return next({
|
|
369
|
+
...args
|
|
370
|
+
});
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js
|
|
375
|
+
var endpointMiddlewareOptions = {
|
|
376
|
+
step: "serialize",
|
|
377
|
+
tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
|
|
378
|
+
name: "endpointV2Middleware",
|
|
379
|
+
override: true,
|
|
380
|
+
relation: "before",
|
|
381
|
+
toMiddleware: serializerMiddlewareOption.name
|
|
382
|
+
};
|
|
383
|
+
var getEndpointPlugin = (config, instructions) => ({
|
|
384
|
+
applyToStack: (clientStack) => {
|
|
385
|
+
clientStack.addRelativeTo(endpointMiddleware({
|
|
386
|
+
config,
|
|
387
|
+
instructions
|
|
388
|
+
}), endpointMiddlewareOptions);
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/package.json
|
|
393
|
+
var package_default = {
|
|
394
|
+
name: "@aws-sdk/nested-clients",
|
|
395
|
+
version: "3.996.18",
|
|
396
|
+
description: "Nested clients for AWS SDK packages.",
|
|
397
|
+
main: "./dist-cjs/index.js",
|
|
398
|
+
module: "./dist-es/index.js",
|
|
399
|
+
types: "./dist-types/index.d.ts",
|
|
400
|
+
scripts: {
|
|
401
|
+
build: "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
402
|
+
"build:cjs": "node ../../scripts/compilation/inline nested-clients",
|
|
403
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
404
|
+
"build:include:deps": 'yarn g:turbo run build -F="$npm_package_name"',
|
|
405
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
406
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
407
|
+
clean: "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
408
|
+
lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
|
|
409
|
+
test: "yarn g:vitest run",
|
|
410
|
+
"test:watch": "yarn g:vitest watch"
|
|
411
|
+
},
|
|
412
|
+
engines: {
|
|
413
|
+
node: ">=20.0.0"
|
|
414
|
+
},
|
|
415
|
+
sideEffects: false,
|
|
416
|
+
author: {
|
|
417
|
+
name: "AWS SDK for JavaScript Team",
|
|
418
|
+
url: "https://aws.amazon.com/javascript/"
|
|
419
|
+
},
|
|
420
|
+
license: "Apache-2.0",
|
|
421
|
+
dependencies: {
|
|
422
|
+
"@aws-crypto/sha256-browser": "5.2.0",
|
|
423
|
+
"@aws-crypto/sha256-js": "5.2.0",
|
|
424
|
+
"@aws-sdk/core": "^3.973.26",
|
|
425
|
+
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
426
|
+
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
427
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.9",
|
|
428
|
+
"@aws-sdk/middleware-user-agent": "^3.972.28",
|
|
429
|
+
"@aws-sdk/region-config-resolver": "^3.972.10",
|
|
430
|
+
"@aws-sdk/types": "^3.973.6",
|
|
431
|
+
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
432
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
433
|
+
"@aws-sdk/util-user-agent-node": "^3.973.14",
|
|
434
|
+
"@smithy/config-resolver": "^4.4.13",
|
|
435
|
+
"@smithy/core": "^3.23.13",
|
|
436
|
+
"@smithy/fetch-http-handler": "^5.3.15",
|
|
437
|
+
"@smithy/hash-node": "^4.2.12",
|
|
438
|
+
"@smithy/invalid-dependency": "^4.2.12",
|
|
439
|
+
"@smithy/middleware-content-length": "^4.2.12",
|
|
440
|
+
"@smithy/middleware-endpoint": "^4.4.28",
|
|
441
|
+
"@smithy/middleware-retry": "^4.4.46",
|
|
442
|
+
"@smithy/middleware-serde": "^4.2.16",
|
|
443
|
+
"@smithy/middleware-stack": "^4.2.12",
|
|
444
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
445
|
+
"@smithy/node-http-handler": "^4.5.1",
|
|
446
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
447
|
+
"@smithy/smithy-client": "^4.12.8",
|
|
448
|
+
"@smithy/types": "^4.13.1",
|
|
449
|
+
"@smithy/url-parser": "^4.2.12",
|
|
450
|
+
"@smithy/util-base64": "^4.3.2",
|
|
451
|
+
"@smithy/util-body-length-browser": "^4.2.2",
|
|
452
|
+
"@smithy/util-body-length-node": "^4.2.3",
|
|
453
|
+
"@smithy/util-defaults-mode-browser": "^4.3.44",
|
|
454
|
+
"@smithy/util-defaults-mode-node": "^4.2.48",
|
|
455
|
+
"@smithy/util-endpoints": "^3.3.3",
|
|
456
|
+
"@smithy/util-middleware": "^4.2.12",
|
|
457
|
+
"@smithy/util-retry": "^4.2.13",
|
|
458
|
+
"@smithy/util-utf8": "^4.2.2",
|
|
459
|
+
tslib: "^2.6.2"
|
|
460
|
+
},
|
|
461
|
+
devDependencies: {
|
|
462
|
+
concurrently: "7.0.0",
|
|
463
|
+
"downlevel-dts": "0.10.1",
|
|
464
|
+
premove: "4.0.0",
|
|
465
|
+
typescript: "~5.8.3"
|
|
466
|
+
},
|
|
467
|
+
typesVersions: {
|
|
468
|
+
"<4.5": {
|
|
469
|
+
"dist-types/*": [
|
|
470
|
+
"dist-types/ts3.4/*"
|
|
471
|
+
]
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
files: [
|
|
475
|
+
"./cognito-identity.d.ts",
|
|
476
|
+
"./cognito-identity.js",
|
|
477
|
+
"./signin.d.ts",
|
|
478
|
+
"./signin.js",
|
|
479
|
+
"./sso-oidc.d.ts",
|
|
480
|
+
"./sso-oidc.js",
|
|
481
|
+
"./sso.d.ts",
|
|
482
|
+
"./sso.js",
|
|
483
|
+
"./sts.d.ts",
|
|
484
|
+
"./sts.js",
|
|
485
|
+
"dist-*/**"
|
|
486
|
+
],
|
|
487
|
+
browser: {
|
|
488
|
+
"./dist-es/submodules/cognito-identity/runtimeConfig": "./dist-es/submodules/cognito-identity/runtimeConfig.browser",
|
|
489
|
+
"./dist-es/submodules/signin/runtimeConfig": "./dist-es/submodules/signin/runtimeConfig.browser",
|
|
490
|
+
"./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
|
|
491
|
+
"./dist-es/submodules/sso/runtimeConfig": "./dist-es/submodules/sso/runtimeConfig.browser",
|
|
492
|
+
"./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
|
|
493
|
+
},
|
|
494
|
+
"react-native": {},
|
|
495
|
+
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
|
496
|
+
repository: {
|
|
497
|
+
type: "git",
|
|
498
|
+
url: "https://github.com/aws/aws-sdk-js-v3.git",
|
|
499
|
+
directory: "packages/nested-clients"
|
|
500
|
+
},
|
|
501
|
+
exports: {
|
|
502
|
+
"./package.json": "./package.json",
|
|
503
|
+
"./sso-oidc": {
|
|
504
|
+
types: "./dist-types/submodules/sso-oidc/index.d.ts",
|
|
505
|
+
module: "./dist-es/submodules/sso-oidc/index.js",
|
|
506
|
+
node: "./dist-cjs/submodules/sso-oidc/index.js",
|
|
507
|
+
import: "./dist-es/submodules/sso-oidc/index.js",
|
|
508
|
+
require: "./dist-cjs/submodules/sso-oidc/index.js"
|
|
509
|
+
},
|
|
510
|
+
"./sts": {
|
|
511
|
+
types: "./dist-types/submodules/sts/index.d.ts",
|
|
512
|
+
module: "./dist-es/submodules/sts/index.js",
|
|
513
|
+
node: "./dist-cjs/submodules/sts/index.js",
|
|
514
|
+
import: "./dist-es/submodules/sts/index.js",
|
|
515
|
+
require: "./dist-cjs/submodules/sts/index.js"
|
|
516
|
+
},
|
|
517
|
+
"./signin": {
|
|
518
|
+
types: "./dist-types/submodules/signin/index.d.ts",
|
|
519
|
+
module: "./dist-es/submodules/signin/index.js",
|
|
520
|
+
node: "./dist-cjs/submodules/signin/index.js",
|
|
521
|
+
import: "./dist-es/submodules/signin/index.js",
|
|
522
|
+
require: "./dist-cjs/submodules/signin/index.js"
|
|
523
|
+
},
|
|
524
|
+
"./cognito-identity": {
|
|
525
|
+
types: "./dist-types/submodules/cognito-identity/index.d.ts",
|
|
526
|
+
module: "./dist-es/submodules/cognito-identity/index.js",
|
|
527
|
+
node: "./dist-cjs/submodules/cognito-identity/index.js",
|
|
528
|
+
import: "./dist-es/submodules/cognito-identity/index.js",
|
|
529
|
+
require: "./dist-cjs/submodules/cognito-identity/index.js"
|
|
530
|
+
},
|
|
531
|
+
"./sso": {
|
|
532
|
+
types: "./dist-types/submodules/sso/index.d.ts",
|
|
533
|
+
module: "./dist-es/submodules/sso/index.js",
|
|
534
|
+
node: "./dist-cjs/submodules/sso/index.js",
|
|
535
|
+
import: "./dist-es/submodules/sso/index.js",
|
|
536
|
+
require: "./dist-cjs/submodules/sso/index.js"
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
export {
|
|
542
|
+
NoAuthSigner,
|
|
543
|
+
getEndpointPlugin,
|
|
544
|
+
Command,
|
|
545
|
+
package_default
|
|
546
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@smithy+is-array-buffer@4.2.2/node_modules/@smithy/is-array-buffer/dist-es/index.js
|
|
2
|
+
var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
3
|
+
|
|
4
|
+
// ../../node_modules/.pnpm/@smithy+util-buffer-from@4.2.2/node_modules/@smithy/util-buffer-from/dist-es/index.js
|
|
5
|
+
import { Buffer } from "buffer";
|
|
6
|
+
var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
7
|
+
if (!isArrayBuffer(input)) {
|
|
8
|
+
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
9
|
+
}
|
|
10
|
+
return Buffer.from(input, offset, length);
|
|
11
|
+
};
|
|
12
|
+
var fromString = (input, encoding) => {
|
|
13
|
+
if (typeof input !== "string") {
|
|
14
|
+
throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
|
|
15
|
+
}
|
|
16
|
+
return encoding ? Buffer.from(input, encoding) : Buffer.from(input);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// ../../node_modules/.pnpm/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js
|
|
20
|
+
var fromUtf8 = (input) => {
|
|
21
|
+
const buf = fromString(input, "utf8");
|
|
22
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// ../../node_modules/.pnpm/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-es/toUtf8.js
|
|
26
|
+
var toUtf8 = (input) => {
|
|
27
|
+
if (typeof input === "string") {
|
|
28
|
+
return input;
|
|
29
|
+
}
|
|
30
|
+
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
|
|
31
|
+
throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
|
|
32
|
+
}
|
|
33
|
+
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
isArrayBuffer,
|
|
38
|
+
fromArrayBuffer,
|
|
39
|
+
fromString,
|
|
40
|
+
fromUtf8,
|
|
41
|
+
toUtf8
|
|
42
|
+
};
|