thinkwork-cli 0.13.1 → 1.0.0
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 +3 -14
- package/dist/{api-client-4DZ266J5.js → api-client-4P4JZOBX.js} +3 -1
- package/dist/bowser-6Z6JFAIR.js +2822 -0
- package/dist/{chunk-Y2WHJECR.js → chunk-4OMDWYZQ.js} +5 -44
- package/dist/chunk-AD2NIWB5.js +6516 -0
- package/dist/chunk-DV3MRBR5.js +43 -0
- package/dist/chunk-EI5ZX7CN.js +522 -0
- package/dist/chunk-EUJ7X6YD.js +126 -0
- package/dist/chunk-GG5WKBOX.js +436 -0
- package/dist/chunk-I64EZSU5.js +358 -0
- package/dist/chunk-KMIJ5KGT.js +128 -0
- package/dist/chunk-MWQ7RO76.js +137 -0
- package/dist/chunk-OCPHU34C.js +996 -0
- package/dist/chunk-OLUQ4U2Z.js +1728 -0
- package/dist/chunk-XYM7PE2A.js +2264 -0
- package/dist/chunk-YQCYD6NE.js +3299 -0
- package/dist/cli.js +49156 -31257
- package/dist/commands/enterprise/templates/deploy-repo/scripts/apply-release.mjs +0 -1
- package/dist/commands/enterprise/templates/deploy-repo/scripts/smoke.mjs +0 -1
- package/dist/commands/enterprise/templates/deploy-repo/terraform/main.tf +0 -14
- package/dist/dist-es-2OTNTL4N.js +315 -0
- package/dist/dist-es-2XVAH4BQ.js +14726 -0
- package/dist/dist-es-3DPDUJAH.js +2000 -0
- package/dist/dist-es-BNZTBBVC.js +176 -0
- package/dist/dist-es-CD2RBDAC.js +88 -0
- package/dist/dist-es-I4FW57PS.js +88 -0
- package/dist/dist-es-KL7Y5NB2.js +377 -0
- package/dist/dist-es-KVFWJNDY.js +318 -0
- package/dist/dist-es-PS73DWNL.js +70 -0
- package/dist/dist-es-S3NZQFGT.js +170 -0
- package/dist/dist-es-SGCA4P32.js +48 -0
- package/dist/dist-es-WBM6J4RA.js +70 -0
- package/dist/dist-es-ZGVADYIF.js +485 -0
- package/dist/dist-es-ZKC2QKD2.js +377 -0
- package/dist/drizzle/0076_scheduled_jobs_marco_backfill.sql +2 -1
- package/dist/drizzle/0079_seed_tenant_customize_catalog.sql +1 -0
- package/dist/drizzle/0090_brain_schema_extraction.sql +10 -0
- package/dist/drizzle/0132_drop_computer_tables.sql +3 -0
- package/dist/drizzle/0160_compliance_event_types_plugins.sql +2 -0
- package/dist/drizzle/0214_think137_drop_judge_evidence_roi.sql +1 -0
- package/dist/drizzle/0216_drop_agent_loop_versions_goal_worker_policy.sql +1 -0
- package/dist/drizzle/0227_analyst_reader_role.sql +17 -20
- package/dist/drizzle/0230_analyst_rls.sql +28 -36
- package/dist/drizzle/0250_kg_schema_extraction.sql +27 -0
- package/dist/drizzle/0251_brain_stragglers.sql +21 -0
- package/dist/drizzle/0253_drop_brain_substrate.sql +2 -0
- package/dist/drizzle/0257_agents_runtime_allow_harness.sql +24 -0
- package/dist/drizzle/0261_native_auth_control_plane.sql +332 -0
- package/dist/drizzle/0262_auth_subscription_tickets.sql +59 -0
- package/dist/drizzle/0263_agentcore_runtime_identifier.sql +69 -0
- package/dist/drizzle/0263_drop_workos_auth_runtime.sql +236 -0
- package/dist/drizzle/0264_auth_enrollment_attempt_limits.sql +15 -0
- package/dist/drizzle/0265_eval_runs_requester_identity.sql +28 -0
- package/dist/drizzle/0265_require_fully_valid_auth_publication.sql +27 -0
- package/dist/drizzle/0266_auth_identity_recovery_grants.sql +9 -0
- package/dist/drizzle/0266_eval_profiles_runtime_type.sql +12 -0
- package/dist/drizzle/0267_ontology_candidate_rejections.sql +53 -0
- package/dist/drizzle/0268_identity_crosswalk_routing.sql +182 -0
- package/dist/drizzle/0269_ontology_system_map.sql +31 -0
- package/dist/drizzle/0270_tool_execution_ledger.sql +115 -0
- package/dist/drizzle/0271_ontology_twin_declarations.sql +47 -0
- package/dist/drizzle/0272_identity_graph_projection_cursor.sql +23 -0
- package/dist/drizzle/0273_twin_materialization_suggestions.sql +29 -0
- package/dist/drizzle/0274_tenant_mcp_twin_keys.sql +59 -0
- package/dist/drizzle/0275_identity_bulk_rebuild_fence.sql +30 -0
- package/dist/drizzle/0276_tool_execution_ledger_allow_cascade_delete.sql +18 -0
- package/dist/drizzle/0277_knowledge_base_sources.sql +107 -0
- package/dist/drizzle/0278_kb_page_transcription.sql +55 -0
- package/dist/drizzle/0279_mcp_servers_off_plugin_provenance.sql +93 -0
- package/dist/drizzle/0280_work_item_external_refs_drop_plane_provider.sql +46 -0
- package/dist/drizzle/0281_tenant_mcp_twin_keys_expiry_suffix.sql +9 -0
- package/dist/drizzle/0282_tenant_mcp_twin_keys_grants.sql +24 -0
- package/dist/drizzle/0283_agents_agentcore_runtime_dispatch.sql +13 -0
- package/dist/drizzle/0284_user_brain_claims.sql +69 -0
- package/dist/drizzle/0285_tenant_mcp_twin_keys_trusted_subsystem.sql +30 -0
- package/dist/drizzle/0286_brain_analytics_key.sql +26 -0
- package/dist/drizzle/0287_brain_subject.sql +25 -0
- package/dist/drizzle/0288_multi_lane_identities.sql +25 -0
- package/dist/event-streams-7JNLJEEL.js +894 -0
- package/dist/event-streams-KDF5RWR6.js +1515 -0
- package/dist/loadSso-ETCXTR4I.js +576 -0
- package/dist/loadSso-UBD7KUHE.js +583 -0
- package/dist/plugins/README.md +2 -2
- package/dist/plugins/catalog/package.json +1 -5
- package/dist/plugins/catalog/src/__tests__/build-catalog.test.ts +6 -4
- package/dist/plugins/catalog/src/__tests__/catalog.test.ts +21 -21
- package/dist/plugins/catalog/src/__tests__/contracts.test.ts +102 -94
- package/dist/plugins/catalog/src/__tests__/plugin-package.test.ts +7 -8
- package/dist/plugins/catalog/src/__tests__/plugin-registry.test.ts +0 -20
- package/dist/plugins/catalog/src/contracts.ts +17 -179
- package/dist/plugins/catalog/src/registry/generated-first-party.ts +0 -24
- package/dist/plugins/n8n/test/integrated-app-contract.test.ts +1 -1
- package/dist/plugins/twenty/package.json +2 -1
- package/dist/plugins/twenty/scripts/LAMBDA_DEPLOY.md +114 -0
- package/dist/plugins/twenty/scripts/build-lambda.sh +29 -0
- package/dist/plugins/twenty/scripts/configure-product-views.ts +195 -0
- package/dist/plugins/twenty/scripts/lambda-handler.ts +49 -0
- package/dist/plugins/twenty/scripts/lib/__tests__/load-attachments.test.ts +38 -0
- package/dist/plugins/twenty/scripts/lib/__tests__/load-records.test.ts +145 -2
- package/dist/plugins/twenty/scripts/lib/__tests__/mappers.test.ts +397 -151
- package/dist/plugins/twenty/scripts/lib/__tests__/members-ensure.test.ts +28 -129
- package/dist/plugins/twenty/scripts/lib/__tests__/provision-members-db.test.ts +10 -0
- package/dist/plugins/twenty/scripts/lib/__tests__/schema-ensure.test.ts +13 -8
- package/dist/plugins/twenty/scripts/lib/lastmile-reader.ts +222 -2
- package/dist/plugins/twenty/scripts/lib/load-attachments.ts +29 -0
- package/dist/plugins/twenty/scripts/lib/load-records.ts +160 -43
- package/dist/plugins/twenty/scripts/lib/mappers.ts +368 -152
- package/dist/plugins/twenty/scripts/lib/members-ensure.ts +43 -268
- package/dist/plugins/twenty/scripts/lib/provision-members-db.ts +57 -0
- package/dist/plugins/twenty/scripts/lib/schema-ensure.ts +136 -31
- package/dist/plugins/twenty/scripts/migrate-lastmile.ts +254 -152
- package/dist/plugins/twenty/scripts/provision-twenty-members.ts +44 -1
- package/dist/plugins/twenty/scripts/purge-lastmile-import.ts +178 -0
- package/dist/plugins/twenty/scripts/restructure-products.ts +312 -0
- package/dist/plugins/twenty/scripts/retag-stage-values.ts +362 -0
- package/dist/plugins/twenty/test/manifest.test.ts +2 -4
- package/dist/scripts/post-deploy.sh +79 -1
- package/dist/signin-5QZNRSOO.js +821 -0
- package/dist/sso-oidc-XK673P54.js +837 -0
- package/dist/sts-OXI2UALF.js +1113 -0
- package/dist/sts-SQW4NBK3.js +1117 -0
- package/dist/terraform/examples/greenfield/main.tf +391 -176
- package/dist/terraform/examples/greenfield/terraform.tfvars.example +26 -8
- package/dist/terraform/modules/app/agentcore-admin/main.tf +47 -0
- package/dist/terraform/modules/app/agentcore-code-interpreter/README.md +39 -47
- package/dist/terraform/modules/app/agentcore-code-interpreter/main.tf +13 -66
- package/dist/terraform/modules/app/agentcore-identity/main.tf +253 -0
- package/dist/terraform/modules/app/agentcore-identity/outputs.tf +51 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/bootstrap_twenty_oauth_client.sh +239 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/delete_identity.sh +22 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/delete_twenty_identity.sh +16 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/delete_workload_identity.sh +19 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/ensure_workload_identity.sh +29 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/read_identity.sh +55 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/reconcile_identity.sh +73 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/reconcile_twenty_identity.sh +45 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/reconcile_twenty_provider.mjs +123 -0
- package/dist/terraform/modules/app/agentcore-identity/tests/tainted-marker/after.tf +15 -0
- package/dist/terraform/modules/app/agentcore-identity/tests/tainted-marker/before.tf +7 -0
- package/dist/terraform/modules/app/agentcore-identity/tests/tainted-marker/identity-after.tf +8 -0
- package/dist/terraform/modules/app/agentcore-identity/tests/tainted-marker/identity-before.tf +9 -0
- package/dist/terraform/modules/app/agentcore-identity/tests/tainted-marker/thinkwork-after.tf +3 -0
- package/dist/terraform/modules/app/agentcore-identity/tests/tainted-marker/thinkwork-before.tf +3 -0
- package/dist/terraform/modules/app/agentcore-identity/variables.tf +60 -0
- package/dist/terraform/modules/app/agentcore-memory/README.md +46 -9
- package/dist/terraform/modules/app/agentcore-memory/main.tf +27 -10
- package/dist/terraform/modules/app/agentcore-memory/scripts/create_or_find_memory.sh +156 -24
- package/dist/terraform/modules/app/agentcore-pi/README.md +1 -3
- package/dist/terraform/modules/app/agentcore-pi/main.tf +42 -52
- package/dist/terraform/modules/app/agentcore-pi/outputs.tf +3 -3
- package/dist/terraform/modules/app/agentcore-pi/scripts/reconcile_pi_runtime.mjs +175 -0
- package/dist/terraform/modules/app/agentcore-pi/variables.tf +35 -28
- package/dist/terraform/modules/app/agentcore-platform/main.tf +68 -0
- package/dist/terraform/modules/app/agentcore-runtime/main.tf +4 -20
- package/dist/terraform/modules/app/appsync-subscriptions/main.tf +127 -21
- package/dist/terraform/modules/app/appsync-subscriptions/outputs.tf +0 -6
- package/dist/terraform/modules/app/appsync-subscriptions/variables.tf +5 -0
- package/dist/terraform/modules/app/capability-broker/main.tf +2 -2
- package/dist/terraform/modules/app/capability-broker/variables.tf +11 -0
- package/dist/terraform/modules/app/deployment-control-plane/README.md +264 -0
- package/dist/terraform/modules/app/deployment-control-plane/buildspec.yml +4 -1
- package/dist/terraform/modules/app/deployment-control-plane/main.tf +94 -0
- package/dist/terraform/modules/app/deployment-control-plane/outputs.tf +5 -0
- package/dist/terraform/modules/app/deployment-control-plane/runner.py +3689 -233
- package/dist/terraform/modules/app/deployment-control-plane/test_runner_bundle.py +2579 -140
- package/dist/terraform/modules/app/deployment-control-plane/variables.tf +33 -0
- package/dist/terraform/modules/app/lambda-api/auth-state.tf +72 -0
- package/dist/terraform/modules/app/lambda-api/chat-latency-observability.tf +466 -0
- package/dist/terraform/modules/app/lambda-api/dispatch-dlq.tf +55 -0
- package/dist/terraform/modules/app/lambda-api/handlers.tf +531 -619
- package/dist/terraform/modules/app/lambda-api/iam-grouped.tf +350 -241
- package/dist/terraform/modules/app/lambda-api/main.tf +75 -13
- package/dist/terraform/modules/app/lambda-api/memory-alarms.tf +3 -28
- package/dist/terraform/modules/app/lambda-api/oauth-secrets.tf +1 -2
- package/dist/terraform/modules/app/lambda-api/outputs.tf +17 -10
- package/dist/terraform/modules/app/lambda-api/runtime-config.tf +3 -21
- package/dist/terraform/modules/app/lambda-api/turn-assertion.tf +45 -0
- package/dist/terraform/modules/app/lambda-api/variables.tf +307 -121
- package/dist/{plugins/n8n/terraform → terraform/modules/app}/n8n/README.md +1 -1
- package/dist/{plugins/n8n/terraform → terraform/modules/app}/n8n/main.tf +18 -18
- package/dist/terraform/modules/app/sandbox-log-scrubber/README.md +11 -10
- package/dist/terraform/modules/app/sandbox-log-scrubber/main.tf +5 -5
- package/dist/terraform/modules/app/static-site/main.tf +1 -1
- package/dist/terraform/modules/app/www-dns/main.tf +9 -27
- package/dist/terraform/modules/app/www-dns/variables.tf +4 -10
- package/dist/terraform/modules/data/aurora-postgres/README.md +34 -0
- package/dist/terraform/modules/data/aurora-postgres/alarms.tf +82 -0
- package/dist/terraform/modules/data/aurora-postgres/main.tf +27 -57
- package/dist/terraform/modules/data/aurora-postgres/outputs.tf +0 -9
- package/dist/terraform/modules/data/aurora-postgres/variables.tf +41 -0
- package/dist/terraform/modules/data/s3-buckets/main.tf +5 -6
- package/dist/terraform/modules/foundation/cognito/main.tf +367 -72
- package/dist/terraform/modules/foundation/cognito/outputs.tf +47 -0
- package/dist/terraform/modules/foundation/cognito/variables.tf +131 -9
- package/dist/terraform/modules/thinkwork/README.md +5 -1
- package/dist/terraform/modules/thinkwork/main.tf +459 -234
- package/dist/terraform/modules/thinkwork/outputs.tf +44 -62
- package/dist/terraform/modules/thinkwork/variables.tf +353 -89
- package/dist/terraform/schema.graphql +69 -36
- package/dist/workspace-defaults/files/INSTRUCTIONS.md +9 -11
- package/dist/workspace-defaults/files/MEMORY_GUIDE.md +38 -35
- package/dist/workspace-defaults/files/ROUTER.md +1 -1
- package/dist/workspace-defaults/files/TOOLS.md +9 -39
- package/dist/workspace-defaults/files/USER.md +1 -0
- package/dist/workspace-defaults/files/agents/analyst/INSTRUCTIONS.md +6 -3
- package/dist/workspace-defaults/files/catalog-skills/brain-brief-builder/SKILL.md +165 -0
- package/dist/workspace-defaults/files/catalog-skills/n8n-workflow-operator/SKILL.md +75 -0
- package/dist/workspace-defaults/files/catalog-skills/n8n-workflow-operator/references/mcp-tooling.md +40 -0
- package/dist/workspace-defaults/files/catalog-skills/n8n-workflow-operator/references/validation-and-handoff.md +40 -0
- package/dist/workspace-defaults/files/catalog-skills/n8n-workflow-operator/references/workflow-authoring.md +46 -0
- package/dist/workspace-defaults/files/skills/artifact-builder/references/crm-dashboard.md +1 -1
- package/dist/workspace-defaults/files/skills/document-composer/SKILL.md +22 -3
- package/package.json +3 -2
- package/dist/drizzle/0261_thread_turns_origin_turn_index.sql +0 -11
- package/dist/plugins/company-data/README.md +0 -49
- package/dist/plugins/company-data/package.json +0 -21
- package/dist/plugins/company-data/src/index.ts +0 -30
- package/dist/plugins/company-data/src/manifest.ts +0 -26
- package/dist/plugins/company-data/test/manifest.test.ts +0 -116
- package/dist/plugins/company-data/tsconfig.json +0 -8
- package/dist/plugins/company-etl/README.md +0 -46
- package/dist/plugins/company-etl/package.json +0 -21
- package/dist/plugins/company-etl/src/index.ts +0 -29
- package/dist/plugins/company-etl/src/manifest.ts +0 -26
- package/dist/plugins/company-etl/test/manifest.test.ts +0 -108
- package/dist/plugins/company-etl/tsconfig.json +0 -8
- package/dist/plugins/lastmile/README.md +0 -50
- package/dist/plugins/lastmile/package.json +0 -23
- package/dist/plugins/lastmile/smoke/lastmile-plugin-smoke.mjs +0 -661
- package/dist/plugins/lastmile/src/api/tasks-adapter.ts +0 -572
- package/dist/plugins/lastmile/src/discovery.fixture.ts +0 -64
- package/dist/plugins/lastmile/src/index.ts +0 -46
- package/dist/plugins/lastmile/src/manifest.ts +0 -139
- package/dist/plugins/lastmile/test/api/tasks-adapter.test.ts +0 -266
- package/dist/plugins/lastmile/test/discovery.test.ts +0 -88
- package/dist/plugins/lastmile/tsconfig.json +0 -8
- package/dist/plugins/n8n/smoke/n8n-managed-app-smoke.mjs +0 -409
- package/dist/plugins/twenty/smoke/twenty-managed-app-smoke.mjs +0 -359
- package/dist/plugins/workos-auth/package.json +0 -22
- package/dist/plugins/workos-auth/src/index.ts +0 -30
- package/dist/plugins/workos-auth/src/manifest.ts +0 -40
- package/dist/plugins/workos-auth/src/provider-contract.ts +0 -39
- package/dist/plugins/workos-auth/test/manifest.test.ts +0 -94
- package/dist/plugins/workos-auth/tsconfig.json +0 -8
- package/dist/terraform/modules/app/agentcore-code-interpreter/Dockerfile.sandbox-base +0 -61
- package/dist/terraform/modules/app/agentcore-code-interpreter/sandbox/sitecustomize.py +0 -227
- package/dist/terraform/modules/app/agentcore-code-interpreter/sandbox/test_sitecustomize.py +0 -277
- package/dist/terraform/modules/app/agentcore-code-interpreter/scripts/build_and_push_sandbox_base.sh +0 -70
- package/dist/terraform/modules/app/agentcore-harness/main.tf +0 -101
- package/dist/terraform/modules/app/agentcore-harness/outputs.tf +0 -9
- package/dist/terraform/modules/app/agentcore-harness/variables.tf +0 -25
- package/dist/terraform/modules/app/hindsight-memory/README.md +0 -89
- package/dist/terraform/modules/app/hindsight-memory/main.tf +0 -411
- package/dist/terraform/modules/data/bedrock-knowledge-base/main.tf +0 -102
- /package/dist/{plugins/n8n/terraform → terraform/modules/app}/n8n/outputs.tf +0 -0
- /package/dist/{plugins/n8n/terraform → terraform/modules/app}/n8n/scripts/sync-database.py +0 -0
- /package/dist/{plugins/n8n/terraform → terraform/modules/app}/n8n/scripts/test_sync_database.py +0 -0
- /package/dist/{plugins/n8n/terraform → terraform/modules/app}/n8n/variables.tf +0 -0
- /package/dist/{plugins/twenty/terraform → terraform/modules/app}/twenty/README.md +0 -0
- /package/dist/{plugins/twenty/terraform → terraform/modules/app}/twenty/main.tf +0 -0
- /package/dist/{plugins/twenty/terraform → terraform/modules/app}/twenty/outputs.tf +0 -0
- /package/dist/{plugins/twenty/terraform → terraform/modules/app}/twenty/variables.tf +0 -0
|
@@ -0,0 +1,837 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
package_default
|
|
4
|
+
} from "./chunk-KMIJ5KGT.js";
|
|
5
|
+
import {
|
|
6
|
+
AwsRestJsonProtocol,
|
|
7
|
+
AwsSdkSigV4Signer,
|
|
8
|
+
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
9
|
+
resolveAwsSdkSigV4Config
|
|
10
|
+
} from "./chunk-OLUQ4U2Z.js";
|
|
11
|
+
import "./chunk-EI5ZX7CN.js";
|
|
12
|
+
import {
|
|
13
|
+
Sha256Node
|
|
14
|
+
} from "./chunk-I64EZSU5.js";
|
|
15
|
+
import {
|
|
16
|
+
NodeHttpHandler
|
|
17
|
+
} from "./chunk-GG5WKBOX.js";
|
|
18
|
+
import {
|
|
19
|
+
BinaryDecisionDiagram,
|
|
20
|
+
Client,
|
|
21
|
+
Command,
|
|
22
|
+
DEFAULT_RETRY_MODE,
|
|
23
|
+
DefaultIdentityProviderConfig,
|
|
24
|
+
EndpointCache,
|
|
25
|
+
NODE_APP_ID_CONFIG_OPTIONS,
|
|
26
|
+
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
27
|
+
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
28
|
+
NoAuthSigner,
|
|
29
|
+
NoOpLogger,
|
|
30
|
+
ServiceException,
|
|
31
|
+
awsEndpointFunctions,
|
|
32
|
+
createAggregatedClient,
|
|
33
|
+
createDefaultUserAgentProvider,
|
|
34
|
+
customEndpointFunctions,
|
|
35
|
+
decideEndpoint,
|
|
36
|
+
emitWarningIfUnsupportedVersion,
|
|
37
|
+
emitWarningIfUnsupportedVersion2,
|
|
38
|
+
getAwsRegionExtensionConfiguration,
|
|
39
|
+
getDefaultExtensionConfiguration,
|
|
40
|
+
getEndpointPlugin,
|
|
41
|
+
getHostHeaderPlugin,
|
|
42
|
+
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
43
|
+
getHttpSigningPlugin,
|
|
44
|
+
getLoggerPlugin,
|
|
45
|
+
getRecursionDetectionPlugin,
|
|
46
|
+
getRetryPlugin,
|
|
47
|
+
getUserAgentPlugin,
|
|
48
|
+
loadConfigsForDefaultMode,
|
|
49
|
+
makeBuilder,
|
|
50
|
+
resolveAwsRegionExtensionConfiguration,
|
|
51
|
+
resolveDefaultRuntimeConfig,
|
|
52
|
+
resolveEndpointConfig,
|
|
53
|
+
resolveHostHeaderConfig,
|
|
54
|
+
resolveRetryConfig,
|
|
55
|
+
resolveUserAgentConfig
|
|
56
|
+
} from "./chunk-YQCYD6NE.js";
|
|
57
|
+
import {
|
|
58
|
+
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
59
|
+
NODE_REGION_CONFIG_OPTIONS,
|
|
60
|
+
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
61
|
+
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
62
|
+
TypeRegistry,
|
|
63
|
+
getContentLengthPlugin,
|
|
64
|
+
getHttpHandlerExtensionConfiguration,
|
|
65
|
+
getSchemaSerdePlugin,
|
|
66
|
+
getSmithyContext,
|
|
67
|
+
loadConfig,
|
|
68
|
+
normalizeProvider,
|
|
69
|
+
parseUrl,
|
|
70
|
+
resolveDefaultsModeConfig,
|
|
71
|
+
resolveHttpHandlerRuntimeConfig,
|
|
72
|
+
resolveRegionConfig
|
|
73
|
+
} from "./chunk-XYM7PE2A.js";
|
|
74
|
+
import {
|
|
75
|
+
calculateBodyLength,
|
|
76
|
+
fromBase64,
|
|
77
|
+
fromUtf8,
|
|
78
|
+
streamCollector,
|
|
79
|
+
toBase64,
|
|
80
|
+
toUtf8
|
|
81
|
+
} from "./chunk-OCPHU34C.js";
|
|
82
|
+
import "./chunk-DV3MRBR5.js";
|
|
83
|
+
|
|
84
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
|
|
85
|
+
var defaultSSOOIDCHttpAuthSchemeParametersProvider = 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: "sso-oauth",
|
|
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 defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
114
|
+
const options = [];
|
|
115
|
+
switch (authParameters.operation) {
|
|
116
|
+
case "CreateToken":
|
|
117
|
+
{
|
|
118
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
;
|
|
122
|
+
default: {
|
|
123
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return options;
|
|
127
|
+
};
|
|
128
|
+
var resolveHttpAuthSchemeConfig = (config) => {
|
|
129
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
130
|
+
return Object.assign(config_0, {
|
|
131
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js
|
|
136
|
+
var resolveClientEndpointParameters = (options) => {
|
|
137
|
+
return Object.assign(options, {
|
|
138
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
139
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
140
|
+
defaultSigningName: "sso-oauth"
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
var commonParams = {
|
|
144
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
145
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
146
|
+
Region: { type: "builtInParams", name: "region" },
|
|
147
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js
|
|
151
|
+
var k = "ref";
|
|
152
|
+
var a = -1;
|
|
153
|
+
var b = true;
|
|
154
|
+
var c = "isSet";
|
|
155
|
+
var d = "PartitionResult";
|
|
156
|
+
var e = "booleanEquals";
|
|
157
|
+
var f = "getAttr";
|
|
158
|
+
var g = { [k]: "Endpoint" };
|
|
159
|
+
var h = { [k]: d };
|
|
160
|
+
var i = {};
|
|
161
|
+
var j = [{ [k]: "Region" }];
|
|
162
|
+
var _data = {
|
|
163
|
+
conditions: [
|
|
164
|
+
[c, [g]],
|
|
165
|
+
[c, j],
|
|
166
|
+
["aws.partition", j, d],
|
|
167
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
168
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
169
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
170
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
171
|
+
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
|
|
172
|
+
],
|
|
173
|
+
results: [
|
|
174
|
+
[a],
|
|
175
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
176
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
177
|
+
[g, i],
|
|
178
|
+
["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
179
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
180
|
+
["https://oidc.{Region}.amazonaws.com", i],
|
|
181
|
+
["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
182
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
183
|
+
["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
184
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
185
|
+
["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
186
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
187
|
+
]
|
|
188
|
+
};
|
|
189
|
+
var root = 2;
|
|
190
|
+
var r = 1e8;
|
|
191
|
+
var nodes = new Int32Array([
|
|
192
|
+
-1,
|
|
193
|
+
1,
|
|
194
|
+
-1,
|
|
195
|
+
0,
|
|
196
|
+
13,
|
|
197
|
+
3,
|
|
198
|
+
1,
|
|
199
|
+
4,
|
|
200
|
+
r + 12,
|
|
201
|
+
2,
|
|
202
|
+
5,
|
|
203
|
+
r + 12,
|
|
204
|
+
3,
|
|
205
|
+
8,
|
|
206
|
+
6,
|
|
207
|
+
4,
|
|
208
|
+
7,
|
|
209
|
+
r + 11,
|
|
210
|
+
5,
|
|
211
|
+
r + 9,
|
|
212
|
+
r + 10,
|
|
213
|
+
4,
|
|
214
|
+
11,
|
|
215
|
+
9,
|
|
216
|
+
6,
|
|
217
|
+
10,
|
|
218
|
+
r + 8,
|
|
219
|
+
7,
|
|
220
|
+
r + 6,
|
|
221
|
+
r + 7,
|
|
222
|
+
5,
|
|
223
|
+
12,
|
|
224
|
+
r + 5,
|
|
225
|
+
6,
|
|
226
|
+
r + 4,
|
|
227
|
+
r + 5,
|
|
228
|
+
3,
|
|
229
|
+
r + 1,
|
|
230
|
+
14,
|
|
231
|
+
4,
|
|
232
|
+
r + 2,
|
|
233
|
+
r + 3
|
|
234
|
+
]);
|
|
235
|
+
var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
236
|
+
|
|
237
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js
|
|
238
|
+
var cache = new EndpointCache({
|
|
239
|
+
size: 50,
|
|
240
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
241
|
+
});
|
|
242
|
+
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
243
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
244
|
+
endpointParams,
|
|
245
|
+
logger: context.logger
|
|
246
|
+
}));
|
|
247
|
+
};
|
|
248
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
249
|
+
|
|
250
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js
|
|
251
|
+
var SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceException {
|
|
252
|
+
constructor(options) {
|
|
253
|
+
super(options);
|
|
254
|
+
Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js
|
|
259
|
+
var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
|
|
260
|
+
name = "AccessDeniedException";
|
|
261
|
+
$fault = "client";
|
|
262
|
+
error;
|
|
263
|
+
reason;
|
|
264
|
+
error_description;
|
|
265
|
+
constructor(opts) {
|
|
266
|
+
super({
|
|
267
|
+
name: "AccessDeniedException",
|
|
268
|
+
$fault: "client",
|
|
269
|
+
...opts
|
|
270
|
+
});
|
|
271
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
272
|
+
this.error = opts.error;
|
|
273
|
+
this.reason = opts.reason;
|
|
274
|
+
this.error_description = opts.error_description;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
|
|
278
|
+
name = "AuthorizationPendingException";
|
|
279
|
+
$fault = "client";
|
|
280
|
+
error;
|
|
281
|
+
error_description;
|
|
282
|
+
constructor(opts) {
|
|
283
|
+
super({
|
|
284
|
+
name: "AuthorizationPendingException",
|
|
285
|
+
$fault: "client",
|
|
286
|
+
...opts
|
|
287
|
+
});
|
|
288
|
+
Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
|
|
289
|
+
this.error = opts.error;
|
|
290
|
+
this.error_description = opts.error_description;
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
|
|
294
|
+
name = "ExpiredTokenException";
|
|
295
|
+
$fault = "client";
|
|
296
|
+
error;
|
|
297
|
+
error_description;
|
|
298
|
+
constructor(opts) {
|
|
299
|
+
super({
|
|
300
|
+
name: "ExpiredTokenException",
|
|
301
|
+
$fault: "client",
|
|
302
|
+
...opts
|
|
303
|
+
});
|
|
304
|
+
Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
|
|
305
|
+
this.error = opts.error;
|
|
306
|
+
this.error_description = opts.error_description;
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
var InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
|
|
310
|
+
name = "InternalServerException";
|
|
311
|
+
$fault = "server";
|
|
312
|
+
error;
|
|
313
|
+
error_description;
|
|
314
|
+
constructor(opts) {
|
|
315
|
+
super({
|
|
316
|
+
name: "InternalServerException",
|
|
317
|
+
$fault: "server",
|
|
318
|
+
...opts
|
|
319
|
+
});
|
|
320
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
321
|
+
this.error = opts.error;
|
|
322
|
+
this.error_description = opts.error_description;
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
|
|
326
|
+
name = "InvalidClientException";
|
|
327
|
+
$fault = "client";
|
|
328
|
+
error;
|
|
329
|
+
error_description;
|
|
330
|
+
constructor(opts) {
|
|
331
|
+
super({
|
|
332
|
+
name: "InvalidClientException",
|
|
333
|
+
$fault: "client",
|
|
334
|
+
...opts
|
|
335
|
+
});
|
|
336
|
+
Object.setPrototypeOf(this, _InvalidClientException.prototype);
|
|
337
|
+
this.error = opts.error;
|
|
338
|
+
this.error_description = opts.error_description;
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
|
|
342
|
+
name = "InvalidGrantException";
|
|
343
|
+
$fault = "client";
|
|
344
|
+
error;
|
|
345
|
+
error_description;
|
|
346
|
+
constructor(opts) {
|
|
347
|
+
super({
|
|
348
|
+
name: "InvalidGrantException",
|
|
349
|
+
$fault: "client",
|
|
350
|
+
...opts
|
|
351
|
+
});
|
|
352
|
+
Object.setPrototypeOf(this, _InvalidGrantException.prototype);
|
|
353
|
+
this.error = opts.error;
|
|
354
|
+
this.error_description = opts.error_description;
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
|
|
358
|
+
name = "InvalidRequestException";
|
|
359
|
+
$fault = "client";
|
|
360
|
+
error;
|
|
361
|
+
reason;
|
|
362
|
+
error_description;
|
|
363
|
+
constructor(opts) {
|
|
364
|
+
super({
|
|
365
|
+
name: "InvalidRequestException",
|
|
366
|
+
$fault: "client",
|
|
367
|
+
...opts
|
|
368
|
+
});
|
|
369
|
+
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
370
|
+
this.error = opts.error;
|
|
371
|
+
this.reason = opts.reason;
|
|
372
|
+
this.error_description = opts.error_description;
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
|
|
376
|
+
name = "InvalidScopeException";
|
|
377
|
+
$fault = "client";
|
|
378
|
+
error;
|
|
379
|
+
error_description;
|
|
380
|
+
constructor(opts) {
|
|
381
|
+
super({
|
|
382
|
+
name: "InvalidScopeException",
|
|
383
|
+
$fault: "client",
|
|
384
|
+
...opts
|
|
385
|
+
});
|
|
386
|
+
Object.setPrototypeOf(this, _InvalidScopeException.prototype);
|
|
387
|
+
this.error = opts.error;
|
|
388
|
+
this.error_description = opts.error_description;
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
var SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
|
|
392
|
+
name = "SlowDownException";
|
|
393
|
+
$fault = "client";
|
|
394
|
+
error;
|
|
395
|
+
error_description;
|
|
396
|
+
constructor(opts) {
|
|
397
|
+
super({
|
|
398
|
+
name: "SlowDownException",
|
|
399
|
+
$fault: "client",
|
|
400
|
+
...opts
|
|
401
|
+
});
|
|
402
|
+
Object.setPrototypeOf(this, _SlowDownException.prototype);
|
|
403
|
+
this.error = opts.error;
|
|
404
|
+
this.error_description = opts.error_description;
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
|
|
408
|
+
name = "UnauthorizedClientException";
|
|
409
|
+
$fault = "client";
|
|
410
|
+
error;
|
|
411
|
+
error_description;
|
|
412
|
+
constructor(opts) {
|
|
413
|
+
super({
|
|
414
|
+
name: "UnauthorizedClientException",
|
|
415
|
+
$fault: "client",
|
|
416
|
+
...opts
|
|
417
|
+
});
|
|
418
|
+
Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
|
|
419
|
+
this.error = opts.error;
|
|
420
|
+
this.error_description = opts.error_description;
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
424
|
+
name = "UnsupportedGrantTypeException";
|
|
425
|
+
$fault = "client";
|
|
426
|
+
error;
|
|
427
|
+
error_description;
|
|
428
|
+
constructor(opts) {
|
|
429
|
+
super({
|
|
430
|
+
name: "UnsupportedGrantTypeException",
|
|
431
|
+
$fault: "client",
|
|
432
|
+
...opts
|
|
433
|
+
});
|
|
434
|
+
Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
|
|
435
|
+
this.error = opts.error;
|
|
436
|
+
this.error_description = opts.error_description;
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js
|
|
441
|
+
var _ADE = "AccessDeniedException";
|
|
442
|
+
var _APE = "AuthorizationPendingException";
|
|
443
|
+
var _AT = "AccessToken";
|
|
444
|
+
var _CS = "ClientSecret";
|
|
445
|
+
var _CT = "CreateToken";
|
|
446
|
+
var _CTR = "CreateTokenRequest";
|
|
447
|
+
var _CTRr = "CreateTokenResponse";
|
|
448
|
+
var _CV = "CodeVerifier";
|
|
449
|
+
var _ETE = "ExpiredTokenException";
|
|
450
|
+
var _ICE = "InvalidClientException";
|
|
451
|
+
var _IGE = "InvalidGrantException";
|
|
452
|
+
var _IRE = "InvalidRequestException";
|
|
453
|
+
var _ISE = "InternalServerException";
|
|
454
|
+
var _ISEn = "InvalidScopeException";
|
|
455
|
+
var _IT = "IdToken";
|
|
456
|
+
var _RT = "RefreshToken";
|
|
457
|
+
var _SDE = "SlowDownException";
|
|
458
|
+
var _UCE = "UnauthorizedClientException";
|
|
459
|
+
var _UGTE = "UnsupportedGrantTypeException";
|
|
460
|
+
var _aT = "accessToken";
|
|
461
|
+
var _c = "client";
|
|
462
|
+
var _cI = "clientId";
|
|
463
|
+
var _cS = "clientSecret";
|
|
464
|
+
var _cV = "codeVerifier";
|
|
465
|
+
var _co = "code";
|
|
466
|
+
var _dC = "deviceCode";
|
|
467
|
+
var _e = "error";
|
|
468
|
+
var _eI = "expiresIn";
|
|
469
|
+
var _ed = "error_description";
|
|
470
|
+
var _gT = "grantType";
|
|
471
|
+
var _h = "http";
|
|
472
|
+
var _hE = "httpError";
|
|
473
|
+
var _iT = "idToken";
|
|
474
|
+
var _r = "reason";
|
|
475
|
+
var _rT = "refreshToken";
|
|
476
|
+
var _rU = "redirectUri";
|
|
477
|
+
var _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
478
|
+
var _sc = "scope";
|
|
479
|
+
var _se = "server";
|
|
480
|
+
var _tT = "tokenType";
|
|
481
|
+
var n0 = "com.amazonaws.ssooidc";
|
|
482
|
+
var _s_registry = TypeRegistry.for(_s);
|
|
483
|
+
var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
484
|
+
_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
485
|
+
var n0_registry = TypeRegistry.for(n0);
|
|
486
|
+
var AccessDeniedException$ = [
|
|
487
|
+
-3,
|
|
488
|
+
n0,
|
|
489
|
+
_ADE,
|
|
490
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
491
|
+
[_e, _r, _ed],
|
|
492
|
+
[0, 0, 0]
|
|
493
|
+
];
|
|
494
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
495
|
+
var AuthorizationPendingException$ = [
|
|
496
|
+
-3,
|
|
497
|
+
n0,
|
|
498
|
+
_APE,
|
|
499
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
500
|
+
[_e, _ed],
|
|
501
|
+
[0, 0]
|
|
502
|
+
];
|
|
503
|
+
n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
504
|
+
var ExpiredTokenException$ = [
|
|
505
|
+
-3,
|
|
506
|
+
n0,
|
|
507
|
+
_ETE,
|
|
508
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
509
|
+
[_e, _ed],
|
|
510
|
+
[0, 0]
|
|
511
|
+
];
|
|
512
|
+
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
513
|
+
var InternalServerException$ = [
|
|
514
|
+
-3,
|
|
515
|
+
n0,
|
|
516
|
+
_ISE,
|
|
517
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
518
|
+
[_e, _ed],
|
|
519
|
+
[0, 0]
|
|
520
|
+
];
|
|
521
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
522
|
+
var InvalidClientException$ = [
|
|
523
|
+
-3,
|
|
524
|
+
n0,
|
|
525
|
+
_ICE,
|
|
526
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
527
|
+
[_e, _ed],
|
|
528
|
+
[0, 0]
|
|
529
|
+
];
|
|
530
|
+
n0_registry.registerError(InvalidClientException$, InvalidClientException);
|
|
531
|
+
var InvalidGrantException$ = [
|
|
532
|
+
-3,
|
|
533
|
+
n0,
|
|
534
|
+
_IGE,
|
|
535
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
536
|
+
[_e, _ed],
|
|
537
|
+
[0, 0]
|
|
538
|
+
];
|
|
539
|
+
n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
|
|
540
|
+
var InvalidRequestException$ = [
|
|
541
|
+
-3,
|
|
542
|
+
n0,
|
|
543
|
+
_IRE,
|
|
544
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
545
|
+
[_e, _r, _ed],
|
|
546
|
+
[0, 0, 0]
|
|
547
|
+
];
|
|
548
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
549
|
+
var InvalidScopeException$ = [
|
|
550
|
+
-3,
|
|
551
|
+
n0,
|
|
552
|
+
_ISEn,
|
|
553
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
554
|
+
[_e, _ed],
|
|
555
|
+
[0, 0]
|
|
556
|
+
];
|
|
557
|
+
n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
|
|
558
|
+
var SlowDownException$ = [
|
|
559
|
+
-3,
|
|
560
|
+
n0,
|
|
561
|
+
_SDE,
|
|
562
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
563
|
+
[_e, _ed],
|
|
564
|
+
[0, 0]
|
|
565
|
+
];
|
|
566
|
+
n0_registry.registerError(SlowDownException$, SlowDownException);
|
|
567
|
+
var UnauthorizedClientException$ = [
|
|
568
|
+
-3,
|
|
569
|
+
n0,
|
|
570
|
+
_UCE,
|
|
571
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
572
|
+
[_e, _ed],
|
|
573
|
+
[0, 0]
|
|
574
|
+
];
|
|
575
|
+
n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
576
|
+
var UnsupportedGrantTypeException$ = [
|
|
577
|
+
-3,
|
|
578
|
+
n0,
|
|
579
|
+
_UGTE,
|
|
580
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
581
|
+
[_e, _ed],
|
|
582
|
+
[0, 0]
|
|
583
|
+
];
|
|
584
|
+
n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
585
|
+
var errorTypeRegistries = [
|
|
586
|
+
_s_registry,
|
|
587
|
+
n0_registry
|
|
588
|
+
];
|
|
589
|
+
var AccessToken = [0, n0, _AT, 8, 0];
|
|
590
|
+
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
591
|
+
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
592
|
+
var IdToken = [0, n0, _IT, 8, 0];
|
|
593
|
+
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
594
|
+
var CreateTokenRequest$ = [
|
|
595
|
+
3,
|
|
596
|
+
n0,
|
|
597
|
+
_CTR,
|
|
598
|
+
0,
|
|
599
|
+
[_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
|
|
600
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
601
|
+
3
|
|
602
|
+
];
|
|
603
|
+
var CreateTokenResponse$ = [
|
|
604
|
+
3,
|
|
605
|
+
n0,
|
|
606
|
+
_CTRr,
|
|
607
|
+
0,
|
|
608
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
609
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
610
|
+
];
|
|
611
|
+
var Scopes = 64 | 0;
|
|
612
|
+
var CreateToken$ = [
|
|
613
|
+
9,
|
|
614
|
+
n0,
|
|
615
|
+
_CT,
|
|
616
|
+
{ [_h]: ["POST", "/token", 200] },
|
|
617
|
+
() => CreateTokenRequest$,
|
|
618
|
+
() => CreateTokenResponse$
|
|
619
|
+
];
|
|
620
|
+
|
|
621
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js
|
|
622
|
+
var getRuntimeConfig = (config) => {
|
|
623
|
+
return {
|
|
624
|
+
apiVersion: "2019-06-10",
|
|
625
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
626
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
627
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
628
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
629
|
+
extensions: config?.extensions ?? [],
|
|
630
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
|
|
631
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
632
|
+
{
|
|
633
|
+
schemeId: "aws.auth#sigv4",
|
|
634
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
635
|
+
signer: new AwsSdkSigV4Signer()
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
schemeId: "smithy.api#noAuth",
|
|
639
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
640
|
+
signer: new NoAuthSigner()
|
|
641
|
+
}
|
|
642
|
+
],
|
|
643
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
644
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
645
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
646
|
+
defaultNamespace: "com.amazonaws.ssooidc",
|
|
647
|
+
errorTypeRegistries,
|
|
648
|
+
version: "2019-06-10",
|
|
649
|
+
serviceTarget: "AWSSSOOIDCService"
|
|
650
|
+
},
|
|
651
|
+
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
652
|
+
sha256: config?.sha256 ?? Sha256Node,
|
|
653
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
654
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
655
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js
|
|
660
|
+
var getRuntimeConfig2 = (config) => {
|
|
661
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
662
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
663
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
664
|
+
const clientSharedValues = getRuntimeConfig(config);
|
|
665
|
+
emitWarningIfUnsupportedVersion2(process.version);
|
|
666
|
+
const loaderConfig = {
|
|
667
|
+
profile: config?.profile,
|
|
668
|
+
logger: clientSharedValues.logger
|
|
669
|
+
};
|
|
670
|
+
return {
|
|
671
|
+
...clientSharedValues,
|
|
672
|
+
...config,
|
|
673
|
+
runtime: "node",
|
|
674
|
+
defaultsMode,
|
|
675
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
676
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
677
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
|
|
678
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
679
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
680
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
681
|
+
retryMode: config?.retryMode ?? loadConfig({
|
|
682
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
683
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
684
|
+
}, config),
|
|
685
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
686
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
687
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
688
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js
|
|
693
|
+
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
694
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
695
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
696
|
+
let _credentials = runtimeConfig.credentials;
|
|
697
|
+
return {
|
|
698
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
699
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
700
|
+
if (index === -1) {
|
|
701
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
702
|
+
} else {
|
|
703
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
httpAuthSchemes() {
|
|
707
|
+
return _httpAuthSchemes;
|
|
708
|
+
},
|
|
709
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
710
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
711
|
+
},
|
|
712
|
+
httpAuthSchemeProvider() {
|
|
713
|
+
return _httpAuthSchemeProvider;
|
|
714
|
+
},
|
|
715
|
+
setCredentials(credentials) {
|
|
716
|
+
_credentials = credentials;
|
|
717
|
+
},
|
|
718
|
+
credentials() {
|
|
719
|
+
return _credentials;
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
724
|
+
return {
|
|
725
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
726
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
727
|
+
credentials: config.credentials()
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
|
|
732
|
+
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
733
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
734
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
735
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js
|
|
739
|
+
var SSOOIDCClient = class extends Client {
|
|
740
|
+
config;
|
|
741
|
+
constructor(...[configuration]) {
|
|
742
|
+
const _config_0 = getRuntimeConfig2(configuration || {});
|
|
743
|
+
super(_config_0);
|
|
744
|
+
this.initConfig = _config_0;
|
|
745
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
746
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
747
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
748
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
749
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
750
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
751
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
752
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
753
|
+
this.config = _config_8;
|
|
754
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
755
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
756
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
757
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
758
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
759
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
760
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
761
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
762
|
+
httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
|
763
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
764
|
+
"aws.auth#sigv4": config.credentials
|
|
765
|
+
})
|
|
766
|
+
}));
|
|
767
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
768
|
+
}
|
|
769
|
+
destroy() {
|
|
770
|
+
super.destroy();
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js
|
|
775
|
+
var command = makeBuilder(commonParams, "AWSSSOOIDCService", "SSOOIDCClient", getEndpointPlugin);
|
|
776
|
+
var _ep0 = {};
|
|
777
|
+
var _mw0 = (Command2, cs, config, o) => [];
|
|
778
|
+
|
|
779
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js
|
|
780
|
+
var CreateTokenCommand = class extends command(_ep0, _mw0, "CreateToken", CreateToken$) {
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js
|
|
784
|
+
var commands = {
|
|
785
|
+
CreateTokenCommand
|
|
786
|
+
};
|
|
787
|
+
var SSOOIDC = class extends SSOOIDCClient {
|
|
788
|
+
};
|
|
789
|
+
createAggregatedClient(commands, SSOOIDC);
|
|
790
|
+
|
|
791
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.33/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js
|
|
792
|
+
var AccessDeniedExceptionReason = {
|
|
793
|
+
KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
|
|
794
|
+
};
|
|
795
|
+
var InvalidRequestExceptionReason = {
|
|
796
|
+
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
797
|
+
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
798
|
+
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
799
|
+
KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
|
|
800
|
+
};
|
|
801
|
+
export {
|
|
802
|
+
Command as $Command,
|
|
803
|
+
AccessDeniedException,
|
|
804
|
+
AccessDeniedException$,
|
|
805
|
+
AccessDeniedExceptionReason,
|
|
806
|
+
AuthorizationPendingException,
|
|
807
|
+
AuthorizationPendingException$,
|
|
808
|
+
CreateToken$,
|
|
809
|
+
CreateTokenCommand,
|
|
810
|
+
CreateTokenRequest$,
|
|
811
|
+
CreateTokenResponse$,
|
|
812
|
+
ExpiredTokenException,
|
|
813
|
+
ExpiredTokenException$,
|
|
814
|
+
InternalServerException,
|
|
815
|
+
InternalServerException$,
|
|
816
|
+
InvalidClientException,
|
|
817
|
+
InvalidClientException$,
|
|
818
|
+
InvalidGrantException,
|
|
819
|
+
InvalidGrantException$,
|
|
820
|
+
InvalidRequestException,
|
|
821
|
+
InvalidRequestException$,
|
|
822
|
+
InvalidRequestExceptionReason,
|
|
823
|
+
InvalidScopeException,
|
|
824
|
+
InvalidScopeException$,
|
|
825
|
+
SSOOIDC,
|
|
826
|
+
SSOOIDCClient,
|
|
827
|
+
SSOOIDCServiceException,
|
|
828
|
+
SSOOIDCServiceException$,
|
|
829
|
+
SlowDownException,
|
|
830
|
+
SlowDownException$,
|
|
831
|
+
UnauthorizedClientException,
|
|
832
|
+
UnauthorizedClientException$,
|
|
833
|
+
UnsupportedGrantTypeException,
|
|
834
|
+
UnsupportedGrantTypeException$,
|
|
835
|
+
Client as __Client,
|
|
836
|
+
errorTypeRegistries
|
|
837
|
+
};
|