@stacksjs/actions 0.70.22 → 0.70.25
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/dist/chunk-2gh7kgpc.js +3 -0
- package/dist/chunk-2kaj93p5.js +3 -0
- package/dist/chunk-2qchdrf9.js +3 -0
- package/dist/chunk-3086k7zk.js +184 -0
- package/dist/chunk-3beht8ja.js +130 -0
- package/dist/chunk-60qjz7zb.js +3 -0
- package/dist/chunk-67y94dzt.js +658 -0
- package/dist/chunk-6x1m5rkr.js +17 -0
- package/dist/chunk-7bpdkc40.js +714 -0
- package/dist/chunk-96b7fcmd.js +3 -0
- package/dist/chunk-aw6d8zr3.js +7 -0
- package/dist/chunk-c8qt2xst.js +3 -0
- package/dist/chunk-d4srk6ma.js +3 -0
- package/dist/chunk-e9tcbk71.js +1 -0
- package/dist/chunk-gt77jmb5.js +46 -0
- package/dist/chunk-h93n2j40.js +95 -0
- package/dist/chunk-jd1yzkq5.js +3 -0
- package/dist/chunk-kzhgexj4.js +3 -0
- package/dist/chunk-n1y0gpv6.js +3 -0
- package/dist/chunk-n2fd1d0m.js +3 -0
- package/dist/chunk-n2x7v39b.js +5 -0
- package/dist/chunk-rdajkt2s.js +88 -0
- package/dist/chunk-s735m9mg.js +1 -0
- package/dist/chunk-schcaf73.js +3 -0
- package/dist/chunk-tc935b45.js +93 -0
- package/dist/chunk-v0wnrnaa.js +7 -0
- package/dist/chunk-w418anbq.js +5 -0
- package/dist/chunk-wnrgcx3d.js +114 -0
- package/dist/chunk-wv5yb5wb.js +101 -0
- package/dist/chunk-x471rxrn.js +7 -0
- package/dist/chunk-xg9xscqz.js +1 -0
- package/dist/src/action.d.ts +60 -0
- package/dist/src/action.js +2 -0
- package/dist/src/actions.d.ts +2 -0
- package/dist/src/actions.js +2 -0
- package/dist/src/add.d.ts +6 -0
- package/dist/src/add.js +2 -0
- package/dist/src/ai/request-model-access.d.ts +1 -0
- package/dist/src/ai/request-model-access.js +2 -0
- package/dist/src/auth/client.d.ts +1 -0
- package/dist/src/auth/client.js +3 -0
- package/dist/src/auth/prune.d.ts +1 -0
- package/dist/src/auth/prune.js +2 -0
- package/dist/src/auth/setup.d.ts +1 -0
- package/dist/src/auth/setup.js +148 -0
- package/dist/src/auth/token.d.ts +1 -0
- package/dist/src/auth/token.js +2 -0
- package/dist/src/build/cli.d.ts +1 -0
- package/dist/src/build/cli.js +2 -0
- package/dist/src/build/component-libs.d.ts +1 -0
- package/dist/src/build/component-libs.js +2 -0
- package/dist/src/build/core.d.ts +1 -0
- package/dist/src/build/core.js +2 -0
- package/dist/src/build/desktop.d.ts +1 -0
- package/dist/src/build/desktop.js +2 -0
- package/dist/src/build/docs.d.ts +1 -0
- package/dist/src/build/docs.js +2 -0
- package/dist/src/build/server.d.ts +1 -0
- package/dist/src/build/server.js +2 -0
- package/dist/src/build/stacks.d.ts +1 -0
- package/dist/src/build/stacks.js +2 -0
- package/dist/src/build/views.d.ts +1 -0
- package/dist/src/build/views.js +2 -0
- package/dist/{build.d.ts → src/build.d.ts} +1 -2
- package/dist/src/build.js +2 -0
- package/dist/src/bump.d.ts +1 -0
- package/dist/src/bump.js +2 -0
- package/dist/src/cdn/invalidate-cache.d.ts +1 -0
- package/dist/src/cdn/invalidate-cache.js +1 -0
- package/dist/src/changelog.d.ts +1 -0
- package/dist/src/changelog.js +2 -0
- package/dist/src/check/ports.d.ts +1 -0
- package/dist/src/check/ports.js +2 -0
- package/dist/src/clean.d.ts +1 -0
- package/dist/src/clean.js +2 -0
- package/dist/{commit.d.ts → src/commit.d.ts} +1 -2
- package/dist/src/commit.js +2 -0
- package/dist/src/copy-types.d.ts +1 -0
- package/dist/src/copy-types.js +3 -0
- package/dist/src/database/seed.d.ts +1 -0
- package/dist/src/database/seed.js +2 -0
- package/dist/src/deploy/create-receipt-rule.d.ts +1 -0
- package/dist/src/deploy/create-receipt-rule.js +2 -0
- package/dist/src/deploy/index.d.ts +1 -0
- package/dist/src/deploy/index.js +307 -0
- package/dist/src/dev/api.d.ts +1 -0
- package/dist/src/dev/api.js +6 -0
- package/dist/src/dev/components.d.ts +1 -0
- package/dist/src/dev/components.js +2 -0
- package/dist/src/dev/dashboard-globals.d.ts +4 -0
- package/dist/src/dev/dashboard-globals.js +3 -0
- package/dist/src/dev/dashboard-utils.d.ts +126 -0
- package/dist/src/dev/dashboard-utils.js +2 -0
- package/dist/src/dev/dashboard.d.ts +12 -0
- package/dist/src/dev/dashboard.js +8 -0
- package/dist/src/dev/desktop.d.ts +1 -0
- package/dist/src/dev/desktop.js +2 -0
- package/dist/src/dev/docs.d.ts +1 -0
- package/dist/src/dev/docs.js +2 -0
- package/dist/src/dev/index.d.ts +10 -0
- package/dist/src/dev/index.js +2 -0
- package/dist/src/dev/system-tray.d.ts +1 -0
- package/dist/src/dev/system-tray.js +2 -0
- package/dist/src/dev/views.d.ts +1 -0
- package/dist/src/dev/views.js +2 -0
- package/dist/src/discover-packages.d.ts +18 -0
- package/dist/src/discover-packages.js +2 -0
- package/dist/src/domains/add.d.ts +1 -0
- package/dist/src/domains/add.js +2 -0
- package/dist/src/domains/purchase.d.ts +1 -0
- package/dist/src/domains/purchase.js +2 -0
- package/dist/src/domains/remove.d.ts +1 -0
- package/dist/src/domains/remove.js +2 -0
- package/dist/{examples.d.ts → src/examples.d.ts} +1 -2
- package/dist/src/examples.js +2 -0
- package/dist/src/find-projects.d.ts +1 -0
- package/dist/src/find-projects.js +2 -0
- package/dist/src/fresh.d.ts +1 -0
- package/dist/src/fresh.js +2 -0
- package/dist/src/generate/action-types.d.ts +1 -0
- package/dist/src/generate/action-types.js +8 -0
- package/dist/src/generate/component-meta.d.ts +1 -0
- package/dist/src/generate/component-meta.js +3 -0
- package/dist/src/generate/custom-cli-file.d.ts +1 -0
- package/dist/src/generate/custom-cli-file.js +4 -0
- package/dist/src/generate/env-files.d.ts +1 -0
- package/dist/src/generate/env-files.js +26 -0
- package/dist/src/generate/ide-helpers.d.ts +1 -0
- package/dist/src/generate/ide-helpers.js +3 -0
- package/dist/src/generate/index.d.ts +36 -0
- package/dist/src/generate/index.js +2 -0
- package/dist/src/generate/lib-entries.d.ts +1 -0
- package/dist/src/generate/lib-entries.js +3 -0
- package/dist/src/generate/pantry-file.d.ts +1 -0
- package/dist/src/generate/pantry-file.js +2 -0
- package/dist/src/generate/symlink-core.d.ts +1 -0
- package/dist/src/generate/symlink-core.js +2 -0
- package/dist/src/generate/types.d.ts +1 -0
- package/dist/src/generate/types.js +2 -0
- package/dist/src/generate/vscode-custom-data.d.ts +1 -0
- package/dist/src/generate/vscode-custom-data.js +3 -0
- package/dist/src/generate/web-types.d.ts +1 -0
- package/dist/src/generate/web-types.js +1 -0
- package/dist/src/helpers/component-meta.d.ts +26 -0
- package/dist/src/helpers/component-meta.js +2 -0
- package/dist/src/helpers/index.d.ts +4 -0
- package/dist/src/helpers/index.js +2 -0
- package/dist/{lib-entries.d.ts → src/helpers/lib-entries.d.ts} +9 -5
- package/dist/src/helpers/lib-entries.js +2 -0
- package/dist/src/helpers/package-json.d.ts +2 -0
- package/dist/src/helpers/package-json.js +43 -0
- package/dist/src/helpers/utils.d.ts +23 -0
- package/dist/src/helpers/utils.js +2 -0
- package/dist/{vscode-custom-data.d.ts → src/helpers/vscode-custom-data.d.ts} +1 -1
- package/dist/src/helpers/vscode-custom-data.js +2 -0
- package/dist/src/index.d.ts +42 -0
- package/dist/src/index.js +2 -0
- package/dist/src/key-generate.d.ts +1 -0
- package/dist/src/key-generate.js +2 -0
- package/dist/src/lint/fix.d.ts +1 -0
- package/dist/src/lint/fix.js +4 -0
- package/dist/src/lint/index.d.ts +1 -0
- package/dist/src/lint/index.js +2 -0
- package/dist/src/make-command.d.ts +10 -0
- package/dist/src/make-command.js +2 -0
- package/dist/src/make-job.d.ts +5 -0
- package/dist/src/make-job.js +2 -0
- package/dist/src/make-policy.d.ts +10 -0
- package/dist/src/make-policy.js +2 -0
- package/dist/src/make-resource.d.ts +10 -0
- package/dist/src/make-resource.js +2 -0
- package/dist/{make.d.ts → src/make.d.ts} +11 -9
- package/dist/src/make.js +2 -0
- package/dist/src/migrate/database.d.ts +1 -0
- package/dist/src/migrate/database.js +2 -0
- package/dist/src/migrate/fresh.d.ts +1 -0
- package/dist/src/migrate/fresh.js +2 -0
- package/dist/src/orm/base.d.ts +1 -0
- package/dist/src/orm/base.js +2 -0
- package/dist/src/orm/test.d.ts +1 -0
- package/dist/src/orm/test.js +1 -0
- package/dist/src/prepublish.d.ts +1 -0
- package/dist/src/prepublish.js +2 -0
- package/dist/src/queue/clear.d.ts +1 -0
- package/dist/src/queue/clear.js +2 -0
- package/dist/src/queue/failed.d.ts +1 -0
- package/dist/src/queue/failed.js +5 -0
- package/dist/src/queue/flush.d.ts +1 -0
- package/dist/src/queue/flush.js +3 -0
- package/dist/src/queue/inspect.d.ts +1 -0
- package/dist/src/queue/inspect.js +8 -0
- package/dist/src/queue/monitor.d.ts +1 -0
- package/dist/src/queue/monitor.js +7 -0
- package/dist/src/queue/retry.d.ts +1 -0
- package/dist/src/queue/retry.js +2 -0
- package/dist/src/queue/schedule-list.d.ts +1 -0
- package/dist/src/queue/schedule-list.js +5 -0
- package/dist/src/queue/schedule.d.ts +1 -0
- package/dist/src/queue/schedule.js +2 -0
- package/dist/src/queue/status.d.ts +1 -0
- package/dist/src/queue/status.js +5 -0
- package/dist/src/queue/table.d.ts +1 -0
- package/dist/src/queue/table.js +2 -0
- package/dist/src/queue/work.d.ts +1 -0
- package/dist/src/queue/work.js +2 -0
- package/dist/src/release.d.ts +1 -0
- package/dist/src/release.js +3 -0
- package/dist/src/route/list.d.ts +1 -0
- package/dist/src/route/list.js +3 -0
- package/dist/src/run-action.d.ts +2 -0
- package/dist/src/run-action.js +2 -0
- package/dist/src/saas/setup.d.ts +1 -0
- package/dist/src/saas/setup.js +2 -0
- package/dist/src/scaffold-crud.d.ts +25 -0
- package/dist/src/scaffold-crud.js +2 -0
- package/dist/src/schedule/run.d.ts +1 -0
- package/dist/src/schedule/run.js +2 -0
- package/dist/src/search/flush.d.ts +1 -0
- package/dist/src/search/flush.js +2 -0
- package/dist/src/search/import.d.ts +1 -0
- package/dist/src/search/import.js +2 -0
- package/dist/src/search/settings-list.d.ts +1 -0
- package/dist/src/search/settings-list.js +2 -0
- package/dist/src/search/settings.d.ts +1 -0
- package/dist/src/search/settings.js +2 -0
- package/dist/src/serve/api.d.ts +1 -0
- package/dist/src/serve/api.js +2 -0
- package/dist/src/setup/index.d.ts +1 -0
- package/dist/src/setup/index.js +2 -0
- package/dist/src/setup/ssl.d.ts +38 -0
- package/dist/src/setup/ssl.js +2 -0
- package/dist/src/stacks.d.ts +4 -0
- package/dist/src/stacks.js +2 -0
- package/dist/src/templates.d.ts +8 -0
- package/dist/src/templates.js +2 -0
- package/dist/src/test/feature.d.ts +1 -0
- package/dist/src/test/feature.js +2 -0
- package/dist/src/test/index.d.ts +1 -0
- package/dist/src/test/index.js +2 -0
- package/dist/src/test/ui.d.ts +1 -0
- package/dist/src/test/ui.js +2 -0
- package/dist/src/test/unit.d.ts +1 -0
- package/dist/src/test/unit.js +2 -0
- package/dist/src/typecheck.d.ts +1 -0
- package/dist/src/typecheck.js +2 -0
- package/dist/{types.d.ts → src/types.d.ts} +1 -2
- package/dist/src/types.js +2 -0
- package/dist/src/upgrade/binary.d.ts +1 -0
- package/dist/src/upgrade/binary.js +2 -0
- package/dist/src/upgrade/bun.d.ts +1 -0
- package/dist/src/upgrade/bun.js +1 -0
- package/dist/src/upgrade/dependencies.d.ts +1 -0
- package/dist/src/upgrade/dependencies.js +2 -0
- package/dist/src/upgrade/framework-utils.d.ts +102 -0
- package/dist/src/upgrade/framework-utils.js +2 -0
- package/dist/src/upgrade/framework.d.ts +1 -0
- package/dist/src/upgrade/framework.js +7 -0
- package/dist/src/upgrade/index.d.ts +1 -0
- package/dist/src/upgrade/index.js +2 -0
- package/dist/src/upgrade/shell.d.ts +1 -0
- package/dist/src/upgrade/shell.js +5 -0
- package/dist/src/upgrade.d.ts +7 -0
- package/dist/src/upgrade.js +2 -0
- package/package.json +39 -23
- package/dist/action-types.d.ts +0 -9
- package/dist/action.d.ts +0 -64
- package/dist/actions.d.ts +0 -2
- package/dist/add.d.ts +0 -5
- package/dist/add.js +0 -33
- package/dist/api.d.ts +0 -1
- package/dist/binary.d.ts +0 -2
- package/dist/build/component-libs.js +0 -9
- package/dist/build/core.js +0 -23
- package/dist/build/stacks.js +0 -8
- package/dist/build.js +0 -108
- package/dist/bump.d.ts +0 -2
- package/dist/bump.js +0 -17
- package/dist/changelog.d.ts +0 -2
- package/dist/changelog.js +0 -17
- package/dist/chunk-0m948f1p.js +0 -2177
- package/dist/chunk-23btgw5e.js +0 -1402
- package/dist/chunk-2dvnt46s.js +0 -7657
- package/dist/chunk-3y8t4qyf.js +0 -72
- package/dist/chunk-494jp8d5.js +0 -54
- package/dist/chunk-5wdfth6e.js +0 -901
- package/dist/chunk-8qsrwjam.js +0 -92
- package/dist/chunk-90y2wmyz.js +0 -2376
- package/dist/chunk-92e6scf8.js +0 -379
- package/dist/chunk-9v6qtbez.js +0 -45
- package/dist/chunk-a13x0e43.js +0 -1180
- package/dist/chunk-atahpwz7.js +0 -5762
- package/dist/chunk-bz3nmjmp.js +0 -212
- package/dist/chunk-ddw2jq8f.js +0 -179250
- package/dist/chunk-frw3va9v.js +0 -69
- package/dist/chunk-hqmjfnnn.js +0 -105
- package/dist/chunk-jq06qn43.js +0 -410
- package/dist/chunk-mbvdyeyw.js +0 -50
- package/dist/chunk-mdj7x1vs.js +0 -790
- package/dist/chunk-mdqphqep.js +0 -438
- package/dist/chunk-ny592jcd.js +0 -133
- package/dist/chunk-p0c688mg.js +0 -729
- package/dist/chunk-q9dmga3k.js +0 -11
- package/dist/chunk-qhh0v93n.js +0 -73
- package/dist/chunk-qka5w6cv.js +0 -1282
- package/dist/chunk-qkm8e752.js +0 -51
- package/dist/chunk-rbsehxzg.js +0 -65
- package/dist/chunk-rfdmx5yh.js +0 -170
- package/dist/chunk-s3xxrvrk.js +0 -311
- package/dist/chunk-w6fdq4hk.js +0 -14425
- package/dist/chunk-wkwtsvym.js +0 -477
- package/dist/chunk-y08qabyb.js +0 -3821
- package/dist/chunk-yyvh669b.js +0 -197
- package/dist/chunk-ze46550n.js +0 -0
- package/dist/chunk-zhrbz0qv.js +0 -661
- package/dist/chunk-zzerxbrm.js +0 -107
- package/dist/clean.js +0 -6
- package/dist/commit.js +0 -22
- package/dist/component-meta.d.ts +0 -15
- package/dist/components.d.ts +0 -3
- package/dist/copy-types.d.ts +0 -1
- package/dist/copy-types.js +0 -14
- package/dist/core.d.ts +0 -1
- package/dist/create-receipt-rule.d.ts +0 -4
- package/dist/database/seed.js +0 -30
- package/dist/database.d.ts +0 -2
- package/dist/deploy/index.js +0 -48
- package/dist/dev/components.js +0 -11
- package/dist/dev/docs.js +0 -7
- package/dist/dev/index.js +0 -58
- package/dist/env-files.d.ts +0 -9
- package/dist/examples.js +0 -46
- package/dist/feature.d.ts +0 -2
- package/dist/find-projects.d.ts +0 -1
- package/dist/fix.d.ts +0 -1
- package/dist/flush.d.ts +0 -2
- package/dist/fresh.d.ts +0 -1
- package/dist/fresh.js +0 -21
- package/dist/generate/component-meta.js +0 -17
- package/dist/generate/ide-helpers.js +0 -18
- package/dist/generate/index.js +0 -216
- package/dist/generate/lib-entries.js +0 -30
- package/dist/generate/vscode-custom-data.js +0 -17
- package/dist/helpers/component-meta.js +0 -204227
- package/dist/helpers/lib-entries.js +0 -122
- package/dist/helpers/package-json.js +0 -96
- package/dist/helpers/utils.js +0 -76
- package/dist/helpers/vscode-custom-data.js +0 -43
- package/dist/import.d.ts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -172
- package/dist/key-generate.js +0 -15
- package/dist/lint/fix.js +0 -18
- package/dist/lint/index.js +0 -5
- package/dist/list.d.ts +0 -1
- package/dist/make.js +0 -349
- package/dist/package-json.d.ts +0 -92
- package/dist/pkgx-file.d.ts +0 -8
- package/dist/ports.d.ts +0 -2
- package/dist/prepublish.d.ts +0 -1
- package/dist/prepublish.js +0 -17
- package/dist/purchase.d.ts +0 -6
- package/dist/release.js +0 -49
- package/dist/remove.d.ts +0 -6
- package/dist/request-model-access.d.ts +0 -1
- package/dist/run.d.ts +0 -1
- package/dist/settings-list.d.ts +0 -2
- package/dist/settings.d.ts +0 -1
- package/dist/setup.d.ts +0 -1
- package/dist/shell.d.ts +0 -2
- package/dist/table.d.ts +0 -1
- package/dist/test/feature.js +0 -14
- package/dist/test/index.js +0 -14
- package/dist/test/ui.js +0 -6
- package/dist/test/unit.js +0 -14
- package/dist/typecheck.js +0 -6
- package/dist/types.js +0 -23
- package/dist/unit.d.ts +0 -2
- package/dist/upgrade/dependencies.js +0 -8
- package/dist/upgrade/index.js +0 -22
- package/dist/upgrade.d.ts +0 -5
- package/dist/upgrade.js +0 -50
- package/dist/utils.d.ts +0 -75
- package/dist/work.d.ts +0 -3
- /package/dist/{upgrade/framework.js → chunk-cdk2r2jd.js} +0 -0
package/dist/chunk-bz3nmjmp.js
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getProfileName,
|
|
4
|
-
parseKnownFiles
|
|
5
|
-
} from "./chunk-yyvh669b.js";
|
|
6
|
-
import"./chunk-mbvdyeyw.js";
|
|
7
|
-
import {
|
|
8
|
-
CredentialsProviderError,
|
|
9
|
-
chain
|
|
10
|
-
} from "./chunk-zzerxbrm.js";
|
|
11
|
-
import {
|
|
12
|
-
require_client
|
|
13
|
-
} from "./chunk-frw3va9v.js";
|
|
14
|
-
import {
|
|
15
|
-
__require,
|
|
16
|
-
__toESM
|
|
17
|
-
} from "./chunk-9v6qtbez.js";
|
|
18
|
-
|
|
19
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
20
|
-
var import_client2 = __toESM(require_client(), 1);
|
|
21
|
-
|
|
22
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
23
|
-
var import_client = __toESM(require_client(), 1);
|
|
24
|
-
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
25
|
-
const sourceProvidersMap = {
|
|
26
|
-
EcsContainer: async (options) => {
|
|
27
|
-
const { fromHttp } = await import("./chunk-rfdmx5yh.js");
|
|
28
|
-
const { fromContainerMetadata } = await import("./chunk-92e6scf8.js");
|
|
29
|
-
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
30
|
-
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
31
|
-
},
|
|
32
|
-
Ec2InstanceMetadata: async (options) => {
|
|
33
|
-
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
34
|
-
const { fromInstanceMetadata } = await import("./chunk-92e6scf8.js");
|
|
35
|
-
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
36
|
-
},
|
|
37
|
-
Environment: async (options) => {
|
|
38
|
-
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
39
|
-
const { fromEnv } = await import("./chunk-qkm8e752.js");
|
|
40
|
-
return async () => fromEnv(options)().then(setNamedProvider);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
if (credentialSource in sourceProvidersMap) {
|
|
44
|
-
return sourceProvidersMap[credentialSource];
|
|
45
|
-
} else {
|
|
46
|
-
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var setNamedProvider = (creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
50
|
-
|
|
51
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
52
|
-
var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
53
|
-
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
|
|
54
|
-
};
|
|
55
|
-
var isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
|
|
56
|
-
const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
|
|
57
|
-
if (withSourceProfile) {
|
|
58
|
-
logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
|
|
59
|
-
}
|
|
60
|
-
return withSourceProfile;
|
|
61
|
-
};
|
|
62
|
-
var isCredentialSourceProfile = (arg, { profile, logger }) => {
|
|
63
|
-
const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
|
|
64
|
-
if (withProviderProfile) {
|
|
65
|
-
logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
|
|
66
|
-
}
|
|
67
|
-
return withProviderProfile;
|
|
68
|
-
};
|
|
69
|
-
var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
|
|
70
|
-
options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
|
|
71
|
-
const profileData = profiles[profileName];
|
|
72
|
-
const { source_profile, region } = profileData;
|
|
73
|
-
if (!options.roleAssumer) {
|
|
74
|
-
const { getDefaultRoleAssumer } = await import("./chunk-qka5w6cv.js");
|
|
75
|
-
options.roleAssumer = getDefaultRoleAssumer({
|
|
76
|
-
...options.clientConfig,
|
|
77
|
-
credentialProviderLogger: options.logger,
|
|
78
|
-
parentClientConfig: {
|
|
79
|
-
...options?.parentClientConfig,
|
|
80
|
-
region: region ?? options?.parentClientConfig?.region
|
|
81
|
-
}
|
|
82
|
-
}, options.clientPlugins);
|
|
83
|
-
}
|
|
84
|
-
if (source_profile && source_profile in visitedProfiles) {
|
|
85
|
-
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
|
|
86
|
-
}
|
|
87
|
-
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
88
|
-
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
|
89
|
-
...visitedProfiles,
|
|
90
|
-
[source_profile]: true
|
|
91
|
-
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
|
92
|
-
if (isCredentialSourceWithoutRoleArn(profileData)) {
|
|
93
|
-
return sourceCredsProvider.then((creds) => import_client2.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
94
|
-
} else {
|
|
95
|
-
const params = {
|
|
96
|
-
RoleArn: profileData.role_arn,
|
|
97
|
-
RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
|
|
98
|
-
ExternalId: profileData.external_id,
|
|
99
|
-
DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
|
|
100
|
-
};
|
|
101
|
-
const { mfa_serial } = profileData;
|
|
102
|
-
if (mfa_serial) {
|
|
103
|
-
if (!options.mfaCodeProvider) {
|
|
104
|
-
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
|
105
|
-
}
|
|
106
|
-
params.SerialNumber = mfa_serial;
|
|
107
|
-
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
108
|
-
}
|
|
109
|
-
const sourceCreds = await sourceCredsProvider;
|
|
110
|
-
return options.roleAssumer(sourceCreds, params).then((creds) => import_client2.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
var isCredentialSourceWithoutRoleArn = (section) => {
|
|
114
|
-
return !section.role_arn && !!section.credential_source;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
118
|
-
var import_client3 = __toESM(require_client(), 1);
|
|
119
|
-
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
120
|
-
var resolveProcessCredentials = async (options, profile) => import("./chunk-8qsrwjam.js").then(({ fromProcess }) => fromProcess({
|
|
121
|
-
...options,
|
|
122
|
-
profile
|
|
123
|
-
})().then((creds) => import_client3.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
124
|
-
|
|
125
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
126
|
-
var import_client4 = __toESM(require_client(), 1);
|
|
127
|
-
var resolveSsoCredentials = async (profile, profileData, options = {}) => {
|
|
128
|
-
const { fromSSO } = await import("./chunk-s3xxrvrk.js");
|
|
129
|
-
return fromSSO({
|
|
130
|
-
profile,
|
|
131
|
-
logger: options.logger,
|
|
132
|
-
parentClientConfig: options.parentClientConfig,
|
|
133
|
-
clientConfig: options.clientConfig
|
|
134
|
-
})().then((creds) => {
|
|
135
|
-
if (profileData.sso_session) {
|
|
136
|
-
return import_client4.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
|
|
137
|
-
} else {
|
|
138
|
-
return import_client4.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
143
|
-
|
|
144
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
145
|
-
var import_client5 = __toESM(require_client(), 1);
|
|
146
|
-
var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1;
|
|
147
|
-
var resolveStaticCredentials = async (profile, options) => {
|
|
148
|
-
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
149
|
-
const credentials = {
|
|
150
|
-
accessKeyId: profile.aws_access_key_id,
|
|
151
|
-
secretAccessKey: profile.aws_secret_access_key,
|
|
152
|
-
sessionToken: profile.aws_session_token,
|
|
153
|
-
...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
|
|
154
|
-
...profile.aws_account_id && { accountId: profile.aws_account_id }
|
|
155
|
-
};
|
|
156
|
-
return import_client5.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
160
|
-
var import_client6 = __toESM(require_client(), 1);
|
|
161
|
-
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
162
|
-
var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-3y8t4qyf.js").then(({ fromTokenFile }) => fromTokenFile({
|
|
163
|
-
webIdentityTokenFile: profile.web_identity_token_file,
|
|
164
|
-
roleArn: profile.role_arn,
|
|
165
|
-
roleSessionName: profile.role_session_name,
|
|
166
|
-
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
|
167
|
-
logger: options.logger,
|
|
168
|
-
parentClientConfig: options.parentClientConfig
|
|
169
|
-
})().then((creds) => import_client6.setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")));
|
|
170
|
-
|
|
171
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
172
|
-
var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
173
|
-
const data = profiles[profileName];
|
|
174
|
-
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
175
|
-
return resolveStaticCredentials(data, options);
|
|
176
|
-
}
|
|
177
|
-
if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
|
|
178
|
-
return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
|
|
179
|
-
}
|
|
180
|
-
if (isStaticCredsProfile(data)) {
|
|
181
|
-
return resolveStaticCredentials(data, options);
|
|
182
|
-
}
|
|
183
|
-
if (isWebIdentityProfile(data)) {
|
|
184
|
-
return resolveWebIdentityCredentials(data, options);
|
|
185
|
-
}
|
|
186
|
-
if (isProcessProfile(data)) {
|
|
187
|
-
return resolveProcessCredentials(options, profileName);
|
|
188
|
-
}
|
|
189
|
-
if (isSsoProfile(data)) {
|
|
190
|
-
return await resolveSsoCredentials(profileName, data, options);
|
|
191
|
-
}
|
|
192
|
-
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
196
|
-
var fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
197
|
-
const init = {
|
|
198
|
-
..._init,
|
|
199
|
-
parentClientConfig: {
|
|
200
|
-
...callerClientConfig,
|
|
201
|
-
..._init.parentClientConfig
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
205
|
-
const profiles = await parseKnownFiles(init);
|
|
206
|
-
return resolveProfileData(getProfileName({
|
|
207
|
-
profile: _init.profile ?? callerClientConfig?.profile
|
|
208
|
-
}), profiles, init);
|
|
209
|
-
};
|
|
210
|
-
export {
|
|
211
|
-
fromIni
|
|
212
|
-
};
|