@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-zhrbz0qv.js
DELETED
|
@@ -1,661 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
DEFAULT_RETRY_MODE,
|
|
4
|
-
EndpointCache,
|
|
5
|
-
Hash,
|
|
6
|
-
NODE_APP_ID_CONFIG_OPTIONS,
|
|
7
|
-
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
8
|
-
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
9
|
-
NODE_REGION_CONFIG_OPTIONS,
|
|
10
|
-
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
11
|
-
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
12
|
-
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
13
|
-
awsEndpointFunctions,
|
|
14
|
-
calculateBodyLength,
|
|
15
|
-
createDefaultUserAgentProvider,
|
|
16
|
-
customEndpointFunctions,
|
|
17
|
-
getAwsRegionExtensionConfiguration,
|
|
18
|
-
getContentLengthPlugin,
|
|
19
|
-
getEndpointPlugin,
|
|
20
|
-
getHostHeaderPlugin,
|
|
21
|
-
getLoggerPlugin,
|
|
22
|
-
getRecursionDetectionPlugin,
|
|
23
|
-
getRetryPlugin,
|
|
24
|
-
getSerdePlugin,
|
|
25
|
-
getSmithyContext,
|
|
26
|
-
getUserAgentPlugin,
|
|
27
|
-
normalizeProvider,
|
|
28
|
-
resolveAwsRegionExtensionConfiguration,
|
|
29
|
-
resolveDefaultsModeConfig,
|
|
30
|
-
resolveEndpoint,
|
|
31
|
-
resolveEndpointConfig,
|
|
32
|
-
resolveHostHeaderConfig,
|
|
33
|
-
resolveRegionConfig,
|
|
34
|
-
resolveRetryConfig,
|
|
35
|
-
resolveUserAgentConfig
|
|
36
|
-
} from "./chunk-0m948f1p.js";
|
|
37
|
-
import {
|
|
38
|
-
loadConfig,
|
|
39
|
-
parseUrl
|
|
40
|
-
} from "./chunk-hqmjfnnn.js";
|
|
41
|
-
import"./chunk-yyvh669b.js";
|
|
42
|
-
import {
|
|
43
|
-
Client,
|
|
44
|
-
Command,
|
|
45
|
-
NoOpLogger,
|
|
46
|
-
NodeHttpHandler,
|
|
47
|
-
SENSITIVE_STRING,
|
|
48
|
-
ServiceException,
|
|
49
|
-
_json,
|
|
50
|
-
decorateServiceException,
|
|
51
|
-
emitWarningIfUnsupportedVersion,
|
|
52
|
-
expectNonNull,
|
|
53
|
-
expectObject,
|
|
54
|
-
expectString,
|
|
55
|
-
getDefaultExtensionConfiguration,
|
|
56
|
-
isSerializableHeaderValue,
|
|
57
|
-
loadConfigsForDefaultMode,
|
|
58
|
-
map,
|
|
59
|
-
resolveDefaultRuntimeConfig,
|
|
60
|
-
streamCollector,
|
|
61
|
-
take,
|
|
62
|
-
withBaseException
|
|
63
|
-
} from "./chunk-23btgw5e.js";
|
|
64
|
-
import"./chunk-mbvdyeyw.js";
|
|
65
|
-
import"./chunk-zzerxbrm.js";
|
|
66
|
-
import {
|
|
67
|
-
require_dist_cjs2 as require_dist_cjs4,
|
|
68
|
-
require_dist_cjs5
|
|
69
|
-
} from "./chunk-atahpwz7.js";
|
|
70
|
-
import {
|
|
71
|
-
require_dist_cjs1 as require_dist_cjs,
|
|
72
|
-
require_dist_cjs4 as require_dist_cjs2,
|
|
73
|
-
require_dist_cjs5 as require_dist_cjs3
|
|
74
|
-
} from "./chunk-90y2wmyz.js";
|
|
75
|
-
import"./chunk-frw3va9v.js";
|
|
76
|
-
import {
|
|
77
|
-
__toESM
|
|
78
|
-
} from "./chunk-9v6qtbez.js";
|
|
79
|
-
|
|
80
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
|
|
81
|
-
var import_core5 = __toESM(require_dist_cjs4(), 1);
|
|
82
|
-
|
|
83
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js
|
|
84
|
-
var import_core = __toESM(require_dist_cjs5(), 1);
|
|
85
|
-
var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
86
|
-
return {
|
|
87
|
-
operation: getSmithyContext(context).operation,
|
|
88
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
89
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
90
|
-
})()
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
94
|
-
return {
|
|
95
|
-
schemeId: "aws.auth#sigv4",
|
|
96
|
-
signingProperties: {
|
|
97
|
-
name: "awsssoportal",
|
|
98
|
-
region: authParameters.region
|
|
99
|
-
},
|
|
100
|
-
propertiesExtractor: (config, context) => ({
|
|
101
|
-
signingProperties: {
|
|
102
|
-
config,
|
|
103
|
-
context
|
|
104
|
-
}
|
|
105
|
-
})
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
109
|
-
return {
|
|
110
|
-
schemeId: "smithy.api#noAuth"
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
var defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
114
|
-
const options = [];
|
|
115
|
-
switch (authParameters.operation) {
|
|
116
|
-
case "GetRoleCredentials": {
|
|
117
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
case "ListAccountRoles": {
|
|
121
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
case "ListAccounts": {
|
|
125
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
case "Logout": {
|
|
129
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
default: {
|
|
133
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return options;
|
|
137
|
-
};
|
|
138
|
-
var resolveHttpAuthSchemeConfig = (config) => {
|
|
139
|
-
const config_0 = import_core.resolveAwsSdkSigV4Config(config);
|
|
140
|
-
return Object.assign(config_0, {});
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js
|
|
144
|
-
var resolveClientEndpointParameters = (options) => {
|
|
145
|
-
return Object.assign(options, {
|
|
146
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
147
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
148
|
-
defaultSigningName: "awsssoportal"
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
var commonParams = {
|
|
152
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
153
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
154
|
-
Region: { type: "builtInParams", name: "region" },
|
|
155
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
156
|
-
};
|
|
157
|
-
// ../../../../node_modules/@aws-sdk/client-sso/package.json
|
|
158
|
-
var package_default = {
|
|
159
|
-
name: "@aws-sdk/client-sso",
|
|
160
|
-
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
161
|
-
version: "3.777.0",
|
|
162
|
-
scripts: {
|
|
163
|
-
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
164
|
-
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
165
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
166
|
-
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
167
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
168
|
-
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
169
|
-
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
170
|
-
"extract:docs": "api-extractor run --local",
|
|
171
|
-
"generate:client": "node ../../scripts/generate-clients/single-service --solo sso"
|
|
172
|
-
},
|
|
173
|
-
main: "./dist-cjs/index.js",
|
|
174
|
-
types: "./dist-types/index.d.ts",
|
|
175
|
-
module: "./dist-es/index.js",
|
|
176
|
-
sideEffects: false,
|
|
177
|
-
dependencies: {
|
|
178
|
-
"@aws-crypto/sha256-browser": "5.2.0",
|
|
179
|
-
"@aws-crypto/sha256-js": "5.2.0",
|
|
180
|
-
"@aws-sdk/core": "3.775.0",
|
|
181
|
-
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
182
|
-
"@aws-sdk/middleware-logger": "3.775.0",
|
|
183
|
-
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
184
|
-
"@aws-sdk/middleware-user-agent": "3.775.0",
|
|
185
|
-
"@aws-sdk/region-config-resolver": "3.775.0",
|
|
186
|
-
"@aws-sdk/types": "3.775.0",
|
|
187
|
-
"@aws-sdk/util-endpoints": "3.775.0",
|
|
188
|
-
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
189
|
-
"@aws-sdk/util-user-agent-node": "3.775.0",
|
|
190
|
-
"@smithy/config-resolver": "^4.1.0",
|
|
191
|
-
"@smithy/core": "^3.2.0",
|
|
192
|
-
"@smithy/fetch-http-handler": "^5.0.2",
|
|
193
|
-
"@smithy/hash-node": "^4.0.2",
|
|
194
|
-
"@smithy/invalid-dependency": "^4.0.2",
|
|
195
|
-
"@smithy/middleware-content-length": "^4.0.2",
|
|
196
|
-
"@smithy/middleware-endpoint": "^4.1.0",
|
|
197
|
-
"@smithy/middleware-retry": "^4.1.0",
|
|
198
|
-
"@smithy/middleware-serde": "^4.0.3",
|
|
199
|
-
"@smithy/middleware-stack": "^4.0.2",
|
|
200
|
-
"@smithy/node-config-provider": "^4.0.2",
|
|
201
|
-
"@smithy/node-http-handler": "^4.0.4",
|
|
202
|
-
"@smithy/protocol-http": "^5.1.0",
|
|
203
|
-
"@smithy/smithy-client": "^4.2.0",
|
|
204
|
-
"@smithy/types": "^4.2.0",
|
|
205
|
-
"@smithy/url-parser": "^4.0.2",
|
|
206
|
-
"@smithy/util-base64": "^4.0.0",
|
|
207
|
-
"@smithy/util-body-length-browser": "^4.0.0",
|
|
208
|
-
"@smithy/util-body-length-node": "^4.0.0",
|
|
209
|
-
"@smithy/util-defaults-mode-browser": "^4.0.8",
|
|
210
|
-
"@smithy/util-defaults-mode-node": "^4.0.8",
|
|
211
|
-
"@smithy/util-endpoints": "^3.0.2",
|
|
212
|
-
"@smithy/util-middleware": "^4.0.2",
|
|
213
|
-
"@smithy/util-retry": "^4.0.2",
|
|
214
|
-
"@smithy/util-utf8": "^4.0.0",
|
|
215
|
-
tslib: "^2.6.2"
|
|
216
|
-
},
|
|
217
|
-
devDependencies: {
|
|
218
|
-
"@tsconfig/node18": "18.2.4",
|
|
219
|
-
"@types/node": "^18.19.69",
|
|
220
|
-
concurrently: "7.0.0",
|
|
221
|
-
"downlevel-dts": "0.10.1",
|
|
222
|
-
rimraf: "3.0.2",
|
|
223
|
-
typescript: "~5.2.2"
|
|
224
|
-
},
|
|
225
|
-
engines: {
|
|
226
|
-
node: ">=18.0.0"
|
|
227
|
-
},
|
|
228
|
-
typesVersions: {
|
|
229
|
-
"<4.0": {
|
|
230
|
-
"dist-types/*": [
|
|
231
|
-
"dist-types/ts3.4/*"
|
|
232
|
-
]
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
files: [
|
|
236
|
-
"dist-*/**"
|
|
237
|
-
],
|
|
238
|
-
author: {
|
|
239
|
-
name: "AWS SDK for JavaScript Team",
|
|
240
|
-
url: "https://aws.amazon.com/javascript/"
|
|
241
|
-
},
|
|
242
|
-
license: "Apache-2.0",
|
|
243
|
-
browser: {
|
|
244
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
245
|
-
},
|
|
246
|
-
"react-native": {
|
|
247
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
248
|
-
},
|
|
249
|
-
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",
|
|
250
|
-
repository: {
|
|
251
|
-
type: "git",
|
|
252
|
-
url: "https://github.com/aws/aws-sdk-js-v3.git",
|
|
253
|
-
directory: "clients/client-sso"
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
|
|
258
|
-
var import_core4 = __toESM(require_dist_cjs5(), 1);
|
|
259
|
-
|
|
260
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
|
|
261
|
-
var import_core2 = __toESM(require_dist_cjs5(), 1);
|
|
262
|
-
var import_core3 = __toESM(require_dist_cjs4(), 1);
|
|
263
|
-
var import_util_base64 = __toESM(require_dist_cjs3(), 1);
|
|
264
|
-
var import_util_utf8 = __toESM(require_dist_cjs2(), 1);
|
|
265
|
-
|
|
266
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js
|
|
267
|
-
var u = "required";
|
|
268
|
-
var v = "fn";
|
|
269
|
-
var w = "argv";
|
|
270
|
-
var x = "ref";
|
|
271
|
-
var a = true;
|
|
272
|
-
var b = "isSet";
|
|
273
|
-
var c = "booleanEquals";
|
|
274
|
-
var d = "error";
|
|
275
|
-
var e = "endpoint";
|
|
276
|
-
var f = "tree";
|
|
277
|
-
var g = "PartitionResult";
|
|
278
|
-
var h = "getAttr";
|
|
279
|
-
var i = { [u]: false, type: "String" };
|
|
280
|
-
var j = { [u]: true, default: false, type: "Boolean" };
|
|
281
|
-
var k = { [x]: "Endpoint" };
|
|
282
|
-
var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
|
|
283
|
-
var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
|
|
284
|
-
var n = {};
|
|
285
|
-
var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
|
|
286
|
-
var p = { [x]: g };
|
|
287
|
-
var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
|
|
288
|
-
var r = [l];
|
|
289
|
-
var s = [m];
|
|
290
|
-
var t = [{ [x]: "Region" }];
|
|
291
|
-
var _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
292
|
-
var ruleSet = _data;
|
|
293
|
-
|
|
294
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js
|
|
295
|
-
var cache = new EndpointCache({
|
|
296
|
-
size: 50,
|
|
297
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
298
|
-
});
|
|
299
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
300
|
-
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
301
|
-
endpointParams,
|
|
302
|
-
logger: context.logger
|
|
303
|
-
}));
|
|
304
|
-
};
|
|
305
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
306
|
-
|
|
307
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
|
|
308
|
-
var getRuntimeConfig = (config) => {
|
|
309
|
-
return {
|
|
310
|
-
apiVersion: "2019-06-10",
|
|
311
|
-
base64Decoder: config?.base64Decoder ?? import_util_base64.fromBase64,
|
|
312
|
-
base64Encoder: config?.base64Encoder ?? import_util_base64.toBase64,
|
|
313
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
314
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
315
|
-
extensions: config?.extensions ?? [],
|
|
316
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
|
|
317
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
318
|
-
{
|
|
319
|
-
schemeId: "aws.auth#sigv4",
|
|
320
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
321
|
-
signer: new import_core2.AwsSdkSigV4Signer
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
schemeId: "smithy.api#noAuth",
|
|
325
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
326
|
-
signer: new import_core3.NoAuthSigner
|
|
327
|
-
}
|
|
328
|
-
],
|
|
329
|
-
logger: config?.logger ?? new NoOpLogger,
|
|
330
|
-
serviceId: config?.serviceId ?? "SSO",
|
|
331
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
332
|
-
utf8Decoder: config?.utf8Decoder ?? import_util_utf8.fromUtf8,
|
|
333
|
-
utf8Encoder: config?.utf8Encoder ?? import_util_utf8.toUtf8
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
|
|
338
|
-
var getRuntimeConfig2 = (config) => {
|
|
339
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
340
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
341
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
342
|
-
const clientSharedValues = getRuntimeConfig(config);
|
|
343
|
-
import_core4.emitWarningIfUnsupportedVersion(process.version);
|
|
344
|
-
const profileConfig = { profile: config?.profile };
|
|
345
|
-
return {
|
|
346
|
-
...clientSharedValues,
|
|
347
|
-
...config,
|
|
348
|
-
runtime: "node",
|
|
349
|
-
defaultsMode,
|
|
350
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
351
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
|
|
352
|
-
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
353
|
-
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
|
|
354
|
-
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
355
|
-
retryMode: config?.retryMode ?? loadConfig({
|
|
356
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
357
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
358
|
-
}, config),
|
|
359
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
360
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
361
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
362
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
363
|
-
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig)
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js
|
|
368
|
-
var import_protocol_http = __toESM(require_dist_cjs(), 1);
|
|
369
|
-
|
|
370
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthExtensionConfiguration.js
|
|
371
|
-
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
372
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
373
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
374
|
-
let _credentials = runtimeConfig.credentials;
|
|
375
|
-
return {
|
|
376
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
377
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
378
|
-
if (index === -1) {
|
|
379
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
380
|
-
} else {
|
|
381
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
httpAuthSchemes() {
|
|
385
|
-
return _httpAuthSchemes;
|
|
386
|
-
},
|
|
387
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
388
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
389
|
-
},
|
|
390
|
-
httpAuthSchemeProvider() {
|
|
391
|
-
return _httpAuthSchemeProvider;
|
|
392
|
-
},
|
|
393
|
-
setCredentials(credentials) {
|
|
394
|
-
_credentials = credentials;
|
|
395
|
-
},
|
|
396
|
-
credentials() {
|
|
397
|
-
return _credentials;
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
402
|
-
return {
|
|
403
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
404
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
405
|
-
credentials: config.credentials()
|
|
406
|
-
};
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js
|
|
410
|
-
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
411
|
-
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), import_protocol_http.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
412
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
413
|
-
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), import_protocol_http.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
|
|
417
|
-
class SSOClient extends Client {
|
|
418
|
-
config;
|
|
419
|
-
constructor(...[configuration]) {
|
|
420
|
-
const _config_0 = getRuntimeConfig2(configuration || {});
|
|
421
|
-
super(_config_0);
|
|
422
|
-
this.initConfig = _config_0;
|
|
423
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
424
|
-
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
425
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
426
|
-
const _config_4 = resolveRegionConfig(_config_3);
|
|
427
|
-
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
428
|
-
const _config_6 = resolveEndpointConfig(_config_5);
|
|
429
|
-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
430
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
431
|
-
this.config = _config_8;
|
|
432
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
433
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
434
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
435
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
436
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
437
|
-
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
438
|
-
this.middlewareStack.use(import_core5.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
439
|
-
httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
|
|
440
|
-
identityProviderConfigProvider: async (config) => new import_core5.DefaultIdentityProviderConfig({
|
|
441
|
-
"aws.auth#sigv4": config.credentials
|
|
442
|
-
})
|
|
443
|
-
}));
|
|
444
|
-
this.middlewareStack.use(import_core5.getHttpSigningPlugin(this.config));
|
|
445
|
-
}
|
|
446
|
-
destroy() {
|
|
447
|
-
super.destroy();
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js
|
|
452
|
-
class SSOServiceException extends ServiceException {
|
|
453
|
-
constructor(options) {
|
|
454
|
-
super(options);
|
|
455
|
-
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js
|
|
460
|
-
class InvalidRequestException extends SSOServiceException {
|
|
461
|
-
name = "InvalidRequestException";
|
|
462
|
-
$fault = "client";
|
|
463
|
-
constructor(opts) {
|
|
464
|
-
super({
|
|
465
|
-
name: "InvalidRequestException",
|
|
466
|
-
$fault: "client",
|
|
467
|
-
...opts
|
|
468
|
-
});
|
|
469
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
class ResourceNotFoundException extends SSOServiceException {
|
|
474
|
-
name = "ResourceNotFoundException";
|
|
475
|
-
$fault = "client";
|
|
476
|
-
constructor(opts) {
|
|
477
|
-
super({
|
|
478
|
-
name: "ResourceNotFoundException",
|
|
479
|
-
$fault: "client",
|
|
480
|
-
...opts
|
|
481
|
-
});
|
|
482
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
class TooManyRequestsException extends SSOServiceException {
|
|
487
|
-
name = "TooManyRequestsException";
|
|
488
|
-
$fault = "client";
|
|
489
|
-
constructor(opts) {
|
|
490
|
-
super({
|
|
491
|
-
name: "TooManyRequestsException",
|
|
492
|
-
$fault: "client",
|
|
493
|
-
...opts
|
|
494
|
-
});
|
|
495
|
-
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
class UnauthorizedException extends SSOServiceException {
|
|
500
|
-
name = "UnauthorizedException";
|
|
501
|
-
$fault = "client";
|
|
502
|
-
constructor(opts) {
|
|
503
|
-
super({
|
|
504
|
-
name: "UnauthorizedException",
|
|
505
|
-
$fault: "client",
|
|
506
|
-
...opts
|
|
507
|
-
});
|
|
508
|
-
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
|
|
512
|
-
...obj,
|
|
513
|
-
...obj.accessToken && { accessToken: SENSITIVE_STRING }
|
|
514
|
-
});
|
|
515
|
-
var RoleCredentialsFilterSensitiveLog = (obj) => ({
|
|
516
|
-
...obj,
|
|
517
|
-
...obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING },
|
|
518
|
-
...obj.sessionToken && { sessionToken: SENSITIVE_STRING }
|
|
519
|
-
});
|
|
520
|
-
var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
521
|
-
...obj,
|
|
522
|
-
...obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }
|
|
523
|
-
});
|
|
524
|
-
|
|
525
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js
|
|
526
|
-
var import_core6 = __toESM(require_dist_cjs5(), 1);
|
|
527
|
-
var import_core7 = __toESM(require_dist_cjs4(), 1);
|
|
528
|
-
var se_GetRoleCredentialsCommand = async (input, context) => {
|
|
529
|
-
const b2 = import_core7.requestBuilder(input, context);
|
|
530
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
531
|
-
[_xasbt]: input[_aT]
|
|
532
|
-
});
|
|
533
|
-
b2.bp("/federation/credentials");
|
|
534
|
-
const query = map({
|
|
535
|
-
[_rn]: [, expectNonNull(input[_rN], `roleName`)],
|
|
536
|
-
[_ai]: [, expectNonNull(input[_aI], `accountId`)]
|
|
537
|
-
});
|
|
538
|
-
let body;
|
|
539
|
-
b2.m("GET").h(headers).q(query).b(body);
|
|
540
|
-
return b2.build();
|
|
541
|
-
};
|
|
542
|
-
var de_GetRoleCredentialsCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
-
return de_CommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const contents = map({
|
|
547
|
-
$metadata: deserializeMetadata(output)
|
|
548
|
-
});
|
|
549
|
-
const data = expectNonNull(expectObject(await import_core6.parseJsonBody(output.body, context)), "body");
|
|
550
|
-
const doc = take(data, {
|
|
551
|
-
roleCredentials: _json
|
|
552
|
-
});
|
|
553
|
-
Object.assign(contents, doc);
|
|
554
|
-
return contents;
|
|
555
|
-
};
|
|
556
|
-
var de_CommandError = async (output, context) => {
|
|
557
|
-
const parsedOutput = {
|
|
558
|
-
...output,
|
|
559
|
-
body: await import_core6.parseJsonErrorBody(output.body, context)
|
|
560
|
-
};
|
|
561
|
-
const errorCode = import_core6.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
562
|
-
switch (errorCode) {
|
|
563
|
-
case "InvalidRequestException":
|
|
564
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
|
565
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ResourceNotFoundException":
|
|
567
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
568
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
|
-
case "TooManyRequestsException":
|
|
570
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
|
571
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
572
|
-
case "UnauthorizedException":
|
|
573
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
|
574
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
575
|
-
default:
|
|
576
|
-
const parsedBody = parsedOutput.body;
|
|
577
|
-
return throwDefaultError({
|
|
578
|
-
output,
|
|
579
|
-
parsedBody,
|
|
580
|
-
errorCode
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
var throwDefaultError = withBaseException(SSOServiceException);
|
|
585
|
-
var de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
586
|
-
const contents = map({});
|
|
587
|
-
const data = parsedOutput.body;
|
|
588
|
-
const doc = take(data, {
|
|
589
|
-
message: expectString
|
|
590
|
-
});
|
|
591
|
-
Object.assign(contents, doc);
|
|
592
|
-
const exception = new InvalidRequestException({
|
|
593
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
594
|
-
...contents
|
|
595
|
-
});
|
|
596
|
-
return decorateServiceException(exception, parsedOutput.body);
|
|
597
|
-
};
|
|
598
|
-
var de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
599
|
-
const contents = map({});
|
|
600
|
-
const data = parsedOutput.body;
|
|
601
|
-
const doc = take(data, {
|
|
602
|
-
message: expectString
|
|
603
|
-
});
|
|
604
|
-
Object.assign(contents, doc);
|
|
605
|
-
const exception = new ResourceNotFoundException({
|
|
606
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
607
|
-
...contents
|
|
608
|
-
});
|
|
609
|
-
return decorateServiceException(exception, parsedOutput.body);
|
|
610
|
-
};
|
|
611
|
-
var de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
612
|
-
const contents = map({});
|
|
613
|
-
const data = parsedOutput.body;
|
|
614
|
-
const doc = take(data, {
|
|
615
|
-
message: expectString
|
|
616
|
-
});
|
|
617
|
-
Object.assign(contents, doc);
|
|
618
|
-
const exception = new TooManyRequestsException({
|
|
619
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
620
|
-
...contents
|
|
621
|
-
});
|
|
622
|
-
return decorateServiceException(exception, parsedOutput.body);
|
|
623
|
-
};
|
|
624
|
-
var de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
625
|
-
const contents = map({});
|
|
626
|
-
const data = parsedOutput.body;
|
|
627
|
-
const doc = take(data, {
|
|
628
|
-
message: expectString
|
|
629
|
-
});
|
|
630
|
-
Object.assign(contents, doc);
|
|
631
|
-
const exception = new UnauthorizedException({
|
|
632
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
633
|
-
...contents
|
|
634
|
-
});
|
|
635
|
-
return decorateServiceException(exception, parsedOutput.body);
|
|
636
|
-
};
|
|
637
|
-
var deserializeMetadata = (output) => ({
|
|
638
|
-
httpStatusCode: output.statusCode,
|
|
639
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
640
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
641
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
642
|
-
});
|
|
643
|
-
var _aI = "accountId";
|
|
644
|
-
var _aT = "accessToken";
|
|
645
|
-
var _ai = "account_id";
|
|
646
|
-
var _rN = "roleName";
|
|
647
|
-
var _rn = "role_name";
|
|
648
|
-
var _xasbt = "x-amz-sso_bearer_token";
|
|
649
|
-
|
|
650
|
-
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js
|
|
651
|
-
class GetRoleCredentialsCommand extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
|
|
652
|
-
return [
|
|
653
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
654
|
-
getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
655
|
-
];
|
|
656
|
-
}).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog).ser(se_GetRoleCredentialsCommand).de(de_GetRoleCredentialsCommand).build() {
|
|
657
|
-
}
|
|
658
|
-
export {
|
|
659
|
-
SSOClient,
|
|
660
|
-
GetRoleCredentialsCommand
|
|
661
|
-
};
|