thinkwork-cli 0.13.2 → 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-JYZXYQJR.js → api-client-4P4JZOBX.js} +1 -1
- package/dist/{chunk-Z2F6RJFR.js → chunk-4OMDWYZQ.js} +4 -5
- package/dist/{chunk-ILZKG5WV.js → chunk-AD2NIWB5.js} +434 -69
- package/dist/chunk-MWQ7RO76.js +137 -0
- package/dist/{chunk-DVPBI5HM.js → chunk-OLUQ4U2Z.js} +26 -26
- package/dist/{chunk-QOERT44A.js → chunk-YQCYD6NE.js} +57 -44
- package/dist/cli.js +4400 -16431
- 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-CRV46D5B.js → dist-es-2OTNTL4N.js} +4 -4
- package/dist/{dist-es-ENBUC3JP.js → dist-es-2XVAH4BQ.js} +2 -2
- package/dist/{dist-es-DCY4IC3Y.js → dist-es-3DPDUJAH.js} +2 -2
- package/dist/{dist-es-G7PTG75M.js → dist-es-BNZTBBVC.js} +1 -1
- package/dist/{dist-es-GKDBE7E6.js → dist-es-CD2RBDAC.js} +1 -1
- package/dist/{dist-es-R7FGL2IB.js → dist-es-I4FW57PS.js} +1 -1
- package/dist/{dist-es-USORBXZ5.js → dist-es-KVFWJNDY.js} +4 -4
- package/dist/{dist-es-HY3535OI.js → dist-es-PS73DWNL.js} +2 -2
- package/dist/{dist-es-LDE437AM.js → dist-es-S3NZQFGT.js} +1 -1
- package/dist/{dist-es-G54LBMRN.js → dist-es-SGCA4P32.js} +1 -1
- package/dist/{dist-es-Q57SZXZ7.js → dist-es-WBM6J4RA.js} +2 -2
- package/dist/{dist-es-P26FWFLT.js → dist-es-ZGVADYIF.js} +8 -8
- package/dist/drizzle/0227_analyst_reader_role.sql +17 -26
- package/dist/drizzle/0230_analyst_rls.sql +28 -45
- package/dist/drizzle/0261_native_auth_control_plane.sql +7 -3
- 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/{loadSso-DJVB7BXE.js → loadSso-ETCXTR4I.js} +2 -2
- package/dist/{loadSso-JAMNA3WY.js → loadSso-UBD7KUHE.js} +2 -2
- package/dist/plugins/README.md +2 -2
- package/dist/plugins/catalog/package.json +0 -3
- package/dist/plugins/catalog/src/__tests__/build-catalog.test.ts +6 -3
- package/dist/plugins/catalog/src/__tests__/catalog.test.ts +21 -21
- package/dist/plugins/catalog/src/__tests__/contracts.test.ts +102 -25
- package/dist/plugins/catalog/src/__tests__/plugin-package.test.ts +7 -6
- package/dist/plugins/catalog/src/__tests__/plugin-registry.test.ts +0 -15
- package/dist/plugins/catalog/src/contracts.ts +15 -0
- package/dist/plugins/catalog/src/registry/generated-first-party.ts +0 -18
- 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-UGDWTGS4.js → signin-5QZNRSOO.js} +2 -2
- package/dist/{sso-oidc-Q4VXANXY.js → sso-oidc-XK673P54.js} +2 -2
- package/dist/{sts-CWLSE3GH.js → sts-OXI2UALF.js} +6 -134
- package/dist/{sts-DNZLNVOV.js → sts-SQW4NBK3.js} +6 -134
- package/dist/terraform/examples/greenfield/main.tf +233 -175
- package/dist/terraform/examples/greenfield/terraform.tfvars.example +12 -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 +106 -26
- package/dist/terraform/modules/app/agentcore-identity/outputs.tf +6 -6
- package/dist/terraform/modules/app/agentcore-identity/scripts/bootstrap_twenty_oauth_client.sh +216 -99
- package/dist/terraform/modules/app/agentcore-identity/scripts/delete_identity.sh +6 -9
- 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 +22 -7
- package/dist/terraform/modules/app/agentcore-identity/scripts/reconcile_twenty_identity.sh +17 -46
- package/dist/terraform/modules/app/agentcore-identity/scripts/reconcile_twenty_provider.mjs +65 -3
- 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 +6 -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/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 +2641 -124
- package/dist/terraform/modules/app/deployment-control-plane/test_runner_bundle.py +2034 -154
- 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 +411 -723
- package/dist/terraform/modules/app/lambda-api/iam-grouped.tf +262 -198
- package/dist/terraform/modules/app/lambda-api/main.tf +51 -13
- package/dist/terraform/modules/app/lambda-api/mcp-oauth.tf +4 -181
- 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 -45
- package/dist/terraform/modules/app/lambda-api/turn-assertion.tf +45 -0
- package/dist/terraform/modules/app/lambda-api/variables.tf +219 -126
- 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 +81 -8
- package/dist/terraform/modules/foundation/cognito/outputs.tf +5 -0
- package/dist/terraform/modules/foundation/cognito/variables.tf +24 -12
- package/dist/terraform/modules/thinkwork/README.md +5 -1
- package/dist/terraform/modules/thinkwork/main.tf +376 -374
- package/dist/terraform/modules/thinkwork/outputs.tf +12 -158
- package/dist/terraform/modules/thinkwork/variables.tf +246 -89
- 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/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 +1 -1
- package/dist/drizzle/0261_managed_harness_multiplayer.sql +0 -313
- package/dist/drizzle/0262_parallel_harness_threads.sql +0 -9
- package/dist/drizzle/0264_harness_tool_execution_ledger.sql +0 -113
- 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/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-gateway/main.tf +0 -305
- package/dist/terraform/modules/app/agentcore-gateway/outputs.tf +0 -44
- package/dist/terraform/modules/app/agentcore-gateway/scripts/delete_gateway.sh +0 -93
- package/dist/terraform/modules/app/agentcore-gateway/scripts/read_gateway.sh +0 -33
- package/dist/terraform/modules/app/agentcore-gateway/scripts/reconcile_gateway.sh +0 -543
- package/dist/terraform/modules/app/agentcore-gateway/variables.tf +0 -70
- package/dist/terraform/modules/app/agentcore-harness/main.tf +0 -330
- package/dist/terraform/modules/app/agentcore-harness/outputs.tf +0 -72
- package/dist/terraform/modules/app/agentcore-harness/scripts/delete_harness.sh +0 -5
- package/dist/terraform/modules/app/agentcore-harness/scripts/harness-lifecycle.mjs +0 -430
- package/dist/terraform/modules/app/agentcore-harness/scripts/harness-readback.mjs +0 -180
- package/dist/terraform/modules/app/agentcore-harness/scripts/harness-tool-contract.mjs +0 -193
- package/dist/terraform/modules/app/agentcore-harness/scripts/prune_harness.sh +0 -5
- package/dist/terraform/modules/app/agentcore-harness/scripts/read_harness.sh +0 -5
- package/dist/terraform/modules/app/agentcore-harness/scripts/reconcile_harness.sh +0 -5
- package/dist/terraform/modules/app/agentcore-harness/variables.tf +0 -96
- 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/app/lambda-api/agentcore-harness-alarms.tf +0 -88
- package/dist/terraform/modules/app/lambda-api/agentcore-identity-alarms.tf +0 -91
- 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
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
AlgorithmId,
|
|
7
7
|
EndpointURLScheme,
|
|
8
|
+
Retry,
|
|
8
9
|
customEndpointFunctions,
|
|
9
10
|
decorateServiceException,
|
|
10
11
|
doesIdentityRequireRefresh,
|
|
@@ -14,7 +15,7 @@ import {
|
|
|
14
15
|
normalizeProvider,
|
|
15
16
|
setCredentialFeature,
|
|
16
17
|
setFeature
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YQCYD6NE.js";
|
|
18
19
|
import {
|
|
19
20
|
CredentialsProviderError,
|
|
20
21
|
ENV_PROFILE,
|
|
@@ -1333,12 +1334,12 @@ var parseArn = (value) => {
|
|
|
1333
1334
|
const segments = value.split(ARN_DELIMITER);
|
|
1334
1335
|
if (segments.length < 6)
|
|
1335
1336
|
return null;
|
|
1336
|
-
const [arn,
|
|
1337
|
-
if (arn !== "arn" ||
|
|
1337
|
+
const [arn, partition4, service, region, accountId, ...resourcePath] = segments;
|
|
1338
|
+
if (arn !== "arn" || partition4 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
1338
1339
|
return null;
|
|
1339
1340
|
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
1340
1341
|
return {
|
|
1341
|
-
partition:
|
|
1342
|
+
partition: partition4,
|
|
1342
1343
|
service,
|
|
1343
1344
|
region,
|
|
1344
1345
|
accountId,
|
|
@@ -1620,8 +1621,8 @@ var selectedPartitionsInfo = partitions_default;
|
|
|
1620
1621
|
var selectedUserAgentPrefix = "";
|
|
1621
1622
|
var partition = (value) => {
|
|
1622
1623
|
const { partitions } = selectedPartitionsInfo;
|
|
1623
|
-
for (const
|
|
1624
|
-
const { regions, outputs } =
|
|
1624
|
+
for (const partition4 of partitions) {
|
|
1625
|
+
const { regions, outputs } = partition4;
|
|
1625
1626
|
for (const [region, regionData] of Object.entries(regions)) {
|
|
1626
1627
|
if (region === value) {
|
|
1627
1628
|
return {
|
|
@@ -1631,15 +1632,15 @@ var partition = (value) => {
|
|
|
1631
1632
|
}
|
|
1632
1633
|
}
|
|
1633
1634
|
}
|
|
1634
|
-
for (const
|
|
1635
|
-
const { regionRegex, outputs } =
|
|
1635
|
+
for (const partition4 of partitions) {
|
|
1636
|
+
const { regionRegex, outputs } = partition4;
|
|
1636
1637
|
if (new RegExp(regionRegex).test(value)) {
|
|
1637
1638
|
return {
|
|
1638
1639
|
...outputs
|
|
1639
1640
|
};
|
|
1640
1641
|
}
|
|
1641
1642
|
}
|
|
1642
|
-
const DEFAULT_PARTITION = partitions.find((
|
|
1643
|
+
const DEFAULT_PARTITION = partitions.find((partition4) => partition4.id === "aws");
|
|
1643
1644
|
if (!DEFAULT_PARTITION) {
|
|
1644
1645
|
throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
|
|
1645
1646
|
}
|
|
@@ -1699,6 +1700,382 @@ var parseUrl = (url) => {
|
|
|
1699
1700
|
};
|
|
1700
1701
|
};
|
|
1701
1702
|
|
|
1703
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.975.3/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
|
|
1704
|
+
Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
|
|
1705
|
+
function setFeature2(context, feature, value) {
|
|
1706
|
+
if (!context.__aws_sdk_context) {
|
|
1707
|
+
context.__aws_sdk_context = {
|
|
1708
|
+
features: {}
|
|
1709
|
+
};
|
|
1710
|
+
} else if (!context.__aws_sdk_context.features) {
|
|
1711
|
+
context.__aws_sdk_context.features = {};
|
|
1712
|
+
}
|
|
1713
|
+
context.__aws_sdk_context.features[feature] = value;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.975.3/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js
|
|
1717
|
+
var partitionsInfo = {
|
|
1718
|
+
"partitions": [
|
|
1719
|
+
{
|
|
1720
|
+
"id": "aws",
|
|
1721
|
+
"outputs": {
|
|
1722
|
+
"dnsSuffix": "amazonaws.com",
|
|
1723
|
+
"dualStackDnsSuffix": "api.aws",
|
|
1724
|
+
"implicitGlobalRegion": "us-east-1",
|
|
1725
|
+
"name": "aws",
|
|
1726
|
+
"supportsDualStack": true,
|
|
1727
|
+
"supportsFIPS": true
|
|
1728
|
+
},
|
|
1729
|
+
"regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
|
1730
|
+
"regions": {
|
|
1731
|
+
"af-south-1": {
|
|
1732
|
+
"description": "Africa (Cape Town)"
|
|
1733
|
+
},
|
|
1734
|
+
"ap-east-1": {
|
|
1735
|
+
"description": "Asia Pacific (Hong Kong)"
|
|
1736
|
+
},
|
|
1737
|
+
"ap-east-2": {
|
|
1738
|
+
"description": "Asia Pacific (Taipei)"
|
|
1739
|
+
},
|
|
1740
|
+
"ap-northeast-1": {
|
|
1741
|
+
"description": "Asia Pacific (Tokyo)"
|
|
1742
|
+
},
|
|
1743
|
+
"ap-northeast-2": {
|
|
1744
|
+
"description": "Asia Pacific (Seoul)"
|
|
1745
|
+
},
|
|
1746
|
+
"ap-northeast-3": {
|
|
1747
|
+
"description": "Asia Pacific (Osaka)"
|
|
1748
|
+
},
|
|
1749
|
+
"ap-south-1": {
|
|
1750
|
+
"description": "Asia Pacific (Mumbai)"
|
|
1751
|
+
},
|
|
1752
|
+
"ap-south-2": {
|
|
1753
|
+
"description": "Asia Pacific (Hyderabad)"
|
|
1754
|
+
},
|
|
1755
|
+
"ap-southeast-1": {
|
|
1756
|
+
"description": "Asia Pacific (Singapore)"
|
|
1757
|
+
},
|
|
1758
|
+
"ap-southeast-2": {
|
|
1759
|
+
"description": "Asia Pacific (Sydney)"
|
|
1760
|
+
},
|
|
1761
|
+
"ap-southeast-3": {
|
|
1762
|
+
"description": "Asia Pacific (Jakarta)"
|
|
1763
|
+
},
|
|
1764
|
+
"ap-southeast-4": {
|
|
1765
|
+
"description": "Asia Pacific (Melbourne)"
|
|
1766
|
+
},
|
|
1767
|
+
"ap-southeast-5": {
|
|
1768
|
+
"description": "Asia Pacific (Malaysia)"
|
|
1769
|
+
},
|
|
1770
|
+
"ap-southeast-6": {
|
|
1771
|
+
"description": "Asia Pacific (New Zealand)"
|
|
1772
|
+
},
|
|
1773
|
+
"ap-southeast-7": {
|
|
1774
|
+
"description": "Asia Pacific (Thailand)"
|
|
1775
|
+
},
|
|
1776
|
+
"aws-global": {
|
|
1777
|
+
"description": "aws global region"
|
|
1778
|
+
},
|
|
1779
|
+
"ca-central-1": {
|
|
1780
|
+
"description": "Canada (Central)"
|
|
1781
|
+
},
|
|
1782
|
+
"ca-west-1": {
|
|
1783
|
+
"description": "Canada West (Calgary)"
|
|
1784
|
+
},
|
|
1785
|
+
"eu-central-1": {
|
|
1786
|
+
"description": "Europe (Frankfurt)"
|
|
1787
|
+
},
|
|
1788
|
+
"eu-central-2": {
|
|
1789
|
+
"description": "Europe (Zurich)"
|
|
1790
|
+
},
|
|
1791
|
+
"eu-north-1": {
|
|
1792
|
+
"description": "Europe (Stockholm)"
|
|
1793
|
+
},
|
|
1794
|
+
"eu-south-1": {
|
|
1795
|
+
"description": "Europe (Milan)"
|
|
1796
|
+
},
|
|
1797
|
+
"eu-south-2": {
|
|
1798
|
+
"description": "Europe (Spain)"
|
|
1799
|
+
},
|
|
1800
|
+
"eu-west-1": {
|
|
1801
|
+
"description": "Europe (Ireland)"
|
|
1802
|
+
},
|
|
1803
|
+
"eu-west-2": {
|
|
1804
|
+
"description": "Europe (London)"
|
|
1805
|
+
},
|
|
1806
|
+
"eu-west-3": {
|
|
1807
|
+
"description": "Europe (Paris)"
|
|
1808
|
+
},
|
|
1809
|
+
"il-central-1": {
|
|
1810
|
+
"description": "Israel (Tel Aviv)"
|
|
1811
|
+
},
|
|
1812
|
+
"me-central-1": {
|
|
1813
|
+
"description": "Middle East (UAE)"
|
|
1814
|
+
},
|
|
1815
|
+
"me-south-1": {
|
|
1816
|
+
"description": "Middle East (Bahrain)"
|
|
1817
|
+
},
|
|
1818
|
+
"mx-central-1": {
|
|
1819
|
+
"description": "Mexico (Central)"
|
|
1820
|
+
},
|
|
1821
|
+
"sa-east-1": {
|
|
1822
|
+
"description": "South America (Sao Paulo)"
|
|
1823
|
+
},
|
|
1824
|
+
"us-east-1": {
|
|
1825
|
+
"description": "US East (N. Virginia)"
|
|
1826
|
+
},
|
|
1827
|
+
"us-east-2": {
|
|
1828
|
+
"description": "US East (Ohio)"
|
|
1829
|
+
},
|
|
1830
|
+
"us-west-1": {
|
|
1831
|
+
"description": "US West (N. California)"
|
|
1832
|
+
},
|
|
1833
|
+
"us-west-2": {
|
|
1834
|
+
"description": "US West (Oregon)"
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"id": "aws-cn",
|
|
1840
|
+
"outputs": {
|
|
1841
|
+
"dnsSuffix": "amazonaws.com.cn",
|
|
1842
|
+
"dualStackDnsSuffix": "api.amazonwebservices.com.cn",
|
|
1843
|
+
"implicitGlobalRegion": "cn-northwest-1",
|
|
1844
|
+
"name": "aws-cn",
|
|
1845
|
+
"supportsDualStack": true,
|
|
1846
|
+
"supportsFIPS": true
|
|
1847
|
+
},
|
|
1848
|
+
"regionRegex": "^cn\\-\\w+\\-\\d+$",
|
|
1849
|
+
"regions": {
|
|
1850
|
+
"aws-cn-global": {
|
|
1851
|
+
"description": "aws-cn global region"
|
|
1852
|
+
},
|
|
1853
|
+
"cn-north-1": {
|
|
1854
|
+
"description": "China (Beijing)"
|
|
1855
|
+
},
|
|
1856
|
+
"cn-northwest-1": {
|
|
1857
|
+
"description": "China (Ningxia)"
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"id": "aws-eusc",
|
|
1863
|
+
"outputs": {
|
|
1864
|
+
"dnsSuffix": "amazonaws.eu",
|
|
1865
|
+
"dualStackDnsSuffix": "api.amazonwebservices.eu",
|
|
1866
|
+
"implicitGlobalRegion": "eusc-de-east-1",
|
|
1867
|
+
"name": "aws-eusc",
|
|
1868
|
+
"supportsDualStack": true,
|
|
1869
|
+
"supportsFIPS": true
|
|
1870
|
+
},
|
|
1871
|
+
"regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
|
1872
|
+
"regions": {
|
|
1873
|
+
"eusc-de-east-1": {
|
|
1874
|
+
"description": "AWS European Sovereign Cloud (Germany)"
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
"id": "aws-iso",
|
|
1880
|
+
"outputs": {
|
|
1881
|
+
"dnsSuffix": "c2s.ic.gov",
|
|
1882
|
+
"dualStackDnsSuffix": "api.aws.ic.gov",
|
|
1883
|
+
"implicitGlobalRegion": "us-iso-east-1",
|
|
1884
|
+
"name": "aws-iso",
|
|
1885
|
+
"supportsDualStack": true,
|
|
1886
|
+
"supportsFIPS": true
|
|
1887
|
+
},
|
|
1888
|
+
"regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
|
|
1889
|
+
"regions": {
|
|
1890
|
+
"aws-iso-global": {
|
|
1891
|
+
"description": "aws-iso global region"
|
|
1892
|
+
},
|
|
1893
|
+
"us-iso-east-1": {
|
|
1894
|
+
"description": "US ISO East"
|
|
1895
|
+
},
|
|
1896
|
+
"us-iso-west-1": {
|
|
1897
|
+
"description": "US ISO WEST"
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
"id": "aws-iso-b",
|
|
1903
|
+
"outputs": {
|
|
1904
|
+
"dnsSuffix": "sc2s.sgov.gov",
|
|
1905
|
+
"dualStackDnsSuffix": "api.aws.scloud",
|
|
1906
|
+
"implicitGlobalRegion": "us-isob-east-1",
|
|
1907
|
+
"name": "aws-iso-b",
|
|
1908
|
+
"supportsDualStack": true,
|
|
1909
|
+
"supportsFIPS": true
|
|
1910
|
+
},
|
|
1911
|
+
"regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
|
|
1912
|
+
"regions": {
|
|
1913
|
+
"aws-iso-b-global": {
|
|
1914
|
+
"description": "aws-iso-b global region"
|
|
1915
|
+
},
|
|
1916
|
+
"us-isob-east-1": {
|
|
1917
|
+
"description": "US ISOB East (Ohio)"
|
|
1918
|
+
},
|
|
1919
|
+
"us-isob-west-1": {
|
|
1920
|
+
"description": "US ISOB West"
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
"id": "aws-iso-e",
|
|
1926
|
+
"outputs": {
|
|
1927
|
+
"dnsSuffix": "cloud.adc-e.uk",
|
|
1928
|
+
"dualStackDnsSuffix": "api.cloud-aws.adc-e.uk",
|
|
1929
|
+
"implicitGlobalRegion": "eu-isoe-west-1",
|
|
1930
|
+
"name": "aws-iso-e",
|
|
1931
|
+
"supportsDualStack": true,
|
|
1932
|
+
"supportsFIPS": true
|
|
1933
|
+
},
|
|
1934
|
+
"regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$",
|
|
1935
|
+
"regions": {
|
|
1936
|
+
"aws-iso-e-global": {
|
|
1937
|
+
"description": "aws-iso-e global region"
|
|
1938
|
+
},
|
|
1939
|
+
"eu-isoe-west-1": {
|
|
1940
|
+
"description": "EU ISOE West"
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
"id": "aws-iso-f",
|
|
1946
|
+
"outputs": {
|
|
1947
|
+
"dnsSuffix": "csp.hci.ic.gov",
|
|
1948
|
+
"dualStackDnsSuffix": "api.aws.hci.ic.gov",
|
|
1949
|
+
"implicitGlobalRegion": "us-isof-south-1",
|
|
1950
|
+
"name": "aws-iso-f",
|
|
1951
|
+
"supportsDualStack": true,
|
|
1952
|
+
"supportsFIPS": true
|
|
1953
|
+
},
|
|
1954
|
+
"regionRegex": "^us\\-isof\\-\\w+\\-\\d+$",
|
|
1955
|
+
"regions": {
|
|
1956
|
+
"aws-iso-f-global": {
|
|
1957
|
+
"description": "aws-iso-f global region"
|
|
1958
|
+
},
|
|
1959
|
+
"us-isof-east-1": {
|
|
1960
|
+
"description": "US ISOF EAST"
|
|
1961
|
+
},
|
|
1962
|
+
"us-isof-south-1": {
|
|
1963
|
+
"description": "US ISOF SOUTH"
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
"id": "aws-us-gov",
|
|
1969
|
+
"outputs": {
|
|
1970
|
+
"dnsSuffix": "amazonaws.com",
|
|
1971
|
+
"dualStackDnsSuffix": "api.aws",
|
|
1972
|
+
"implicitGlobalRegion": "us-gov-west-1",
|
|
1973
|
+
"name": "aws-us-gov",
|
|
1974
|
+
"supportsDualStack": true,
|
|
1975
|
+
"supportsFIPS": true
|
|
1976
|
+
},
|
|
1977
|
+
"regionRegex": "^us\\-gov\\-\\w+\\-\\d+$",
|
|
1978
|
+
"regions": {
|
|
1979
|
+
"aws-us-gov-global": {
|
|
1980
|
+
"description": "aws-us-gov global region"
|
|
1981
|
+
},
|
|
1982
|
+
"us-gov-east-1": {
|
|
1983
|
+
"description": "AWS GovCloud (US-East)"
|
|
1984
|
+
},
|
|
1985
|
+
"us-gov-west-1": {
|
|
1986
|
+
"description": "AWS GovCloud (US-West)"
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
],
|
|
1991
|
+
"version": "1.1"
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.975.3/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partition.js
|
|
1995
|
+
var selectedPartitionsInfo2 = partitionsInfo;
|
|
1996
|
+
var partition2 = (value) => {
|
|
1997
|
+
const { partitions } = selectedPartitionsInfo2;
|
|
1998
|
+
for (const partition4 of partitions) {
|
|
1999
|
+
const { regions, outputs } = partition4;
|
|
2000
|
+
for (const [region, regionData] of Object.entries(regions)) {
|
|
2001
|
+
if (region === value) {
|
|
2002
|
+
return {
|
|
2003
|
+
...outputs,
|
|
2004
|
+
...regionData
|
|
2005
|
+
};
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
for (const partition4 of partitions) {
|
|
2010
|
+
const { regionRegex, outputs } = partition4;
|
|
2011
|
+
if (new RegExp(regionRegex).test(value)) {
|
|
2012
|
+
return {
|
|
2013
|
+
...outputs
|
|
2014
|
+
};
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
const DEFAULT_PARTITION = partitions.find((partition4) => partition4.id === "aws");
|
|
2018
|
+
if (!DEFAULT_PARTITION) {
|
|
2019
|
+
throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
|
|
2020
|
+
}
|
|
2021
|
+
return {
|
|
2022
|
+
...DEFAULT_PARTITION.outputs
|
|
2023
|
+
};
|
|
2024
|
+
};
|
|
2025
|
+
|
|
2026
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.975.3/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.js
|
|
2027
|
+
var isVirtualHostableS3Bucket2 = (value, allowSubDomains = false) => {
|
|
2028
|
+
if (allowSubDomains) {
|
|
2029
|
+
for (const label of value.split(".")) {
|
|
2030
|
+
if (!isVirtualHostableS3Bucket2(label)) {
|
|
2031
|
+
return false;
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
return true;
|
|
2035
|
+
}
|
|
2036
|
+
if (!isValidHostLabel(value)) {
|
|
2037
|
+
return false;
|
|
2038
|
+
}
|
|
2039
|
+
if (value.length < 3 || value.length > 63) {
|
|
2040
|
+
return false;
|
|
2041
|
+
}
|
|
2042
|
+
if (value !== value.toLowerCase()) {
|
|
2043
|
+
return false;
|
|
2044
|
+
}
|
|
2045
|
+
if (isIpAddress(value)) {
|
|
2046
|
+
return false;
|
|
2047
|
+
}
|
|
2048
|
+
return true;
|
|
2049
|
+
};
|
|
2050
|
+
|
|
2051
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.975.3/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js
|
|
2052
|
+
var ARN_DELIMITER2 = ":";
|
|
2053
|
+
var RESOURCE_DELIMITER2 = "/";
|
|
2054
|
+
var parseArn2 = (value) => {
|
|
2055
|
+
const segments = value.split(ARN_DELIMITER2);
|
|
2056
|
+
if (segments.length < 6)
|
|
2057
|
+
return null;
|
|
2058
|
+
const [arn, partition4, service, region, accountId, ...resourcePath] = segments;
|
|
2059
|
+
if (arn !== "arn" || partition4 === "" || service === "" || resourcePath.join(ARN_DELIMITER2) === "")
|
|
2060
|
+
return null;
|
|
2061
|
+
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER2)).flat();
|
|
2062
|
+
return {
|
|
2063
|
+
partition: partition4,
|
|
2064
|
+
service,
|
|
2065
|
+
region,
|
|
2066
|
+
accountId,
|
|
2067
|
+
resourceId
|
|
2068
|
+
};
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.975.3/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/aws.js
|
|
2072
|
+
var awsEndpointFunctions2 = {
|
|
2073
|
+
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket2,
|
|
2074
|
+
parseArn: parseArn2,
|
|
2075
|
+
partition: partition2
|
|
2076
|
+
};
|
|
2077
|
+
customEndpointFunctions.aws = awsEndpointFunctions2;
|
|
2078
|
+
|
|
1702
2079
|
// ../../node_modules/.pnpm/@smithy+util-retry@4.3.6/node_modules/@smithy/util-retry/dist-es/config.js
|
|
1703
2080
|
var RETRY_MODES;
|
|
1704
2081
|
(function(RETRY_MODES2) {
|
|
@@ -1882,7 +2259,7 @@ var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
|
|
|
1882
2259
|
var REQUEST_HEADER = "amz-sdk-request";
|
|
1883
2260
|
|
|
1884
2261
|
// ../../node_modules/.pnpm/@smithy+util-retry@4.3.6/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js
|
|
1885
|
-
var
|
|
2262
|
+
var Retry2 = class _Retry {
|
|
1886
2263
|
static v2026 = typeof process !== "undefined" && process.env?.SMITHY_NEW_RETRIES_2026 === "true";
|
|
1887
2264
|
static delay() {
|
|
1888
2265
|
return _Retry.v2026 ? 50 : 100;
|
|
@@ -1903,7 +2280,7 @@ var Retry = class _Retry {
|
|
|
1903
2280
|
|
|
1904
2281
|
// ../../node_modules/.pnpm/@smithy+util-retry@4.3.6/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js
|
|
1905
2282
|
var DefaultRetryBackoffStrategy = class {
|
|
1906
|
-
x =
|
|
2283
|
+
x = Retry2.delay();
|
|
1907
2284
|
computeNextBackoffDelay(i) {
|
|
1908
2285
|
const b = Math.random();
|
|
1909
2286
|
const r = 2;
|
|
@@ -1964,11 +2341,11 @@ var StandardRetryStrategy = class {
|
|
|
1964
2341
|
this.retryBackoffStrategy = arg1.backoff;
|
|
1965
2342
|
}
|
|
1966
2343
|
this.maxAttemptsProvider ??= async () => DEFAULT_MAX_ATTEMPTS;
|
|
1967
|
-
this.baseDelay ??=
|
|
2344
|
+
this.baseDelay ??= Retry2.delay();
|
|
1968
2345
|
this.retryBackoffStrategy ??= new DefaultRetryBackoffStrategy();
|
|
1969
2346
|
}
|
|
1970
2347
|
async acquireInitialRetryToken(retryTokenScope) {
|
|
1971
|
-
return new DefaultRetryToken(
|
|
2348
|
+
return new DefaultRetryToken(Retry2.delay(), 0, void 0, Retry2.v2026 && retryTokenScope.includes(":longpoll"));
|
|
1972
2349
|
}
|
|
1973
2350
|
async refreshRetryTokenForRetry(token, errorInfo) {
|
|
1974
2351
|
const maxAttempts = await this.getMaxAttempts();
|
|
@@ -1977,7 +2354,7 @@ var StandardRetryStrategy = class {
|
|
|
1977
2354
|
const isLongPoll = token.isLongPoll?.();
|
|
1978
2355
|
if (shouldRetry || isLongPoll) {
|
|
1979
2356
|
const errorType = errorInfo.errorType;
|
|
1980
|
-
this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ?
|
|
2357
|
+
this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? Retry2.throttlingDelay() : this.baseDelay);
|
|
1981
2358
|
const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount());
|
|
1982
2359
|
let retryDelay = delayFromErrorType;
|
|
1983
2360
|
if (errorInfo.retryAfterHint instanceof Date) {
|
|
@@ -1985,7 +2362,7 @@ var StandardRetryStrategy = class {
|
|
|
1985
2362
|
}
|
|
1986
2363
|
if (!shouldRetry) {
|
|
1987
2364
|
throw Object.assign(new Error("No retry token available"), {
|
|
1988
|
-
$backoff:
|
|
2365
|
+
$backoff: Retry2.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0
|
|
1989
2366
|
});
|
|
1990
2367
|
} else {
|
|
1991
2368
|
const capacityCost = this.getCapacityCost(errorType);
|
|
@@ -2020,7 +2397,7 @@ var StandardRetryStrategy = class {
|
|
|
2020
2397
|
return retryableStatus || attemptStatus || capacityStatus;
|
|
2021
2398
|
}
|
|
2022
2399
|
getCapacityCost(errorType) {
|
|
2023
|
-
return errorType ===
|
|
2400
|
+
return errorType === Retry2.modifiedCostType() ? Retry2.throttlingCost() : Retry2.cost();
|
|
2024
2401
|
}
|
|
2025
2402
|
isRetryableError(errorType) {
|
|
2026
2403
|
return errorType === "THROTTLING" || errorType === "TRANSIENT";
|
|
@@ -2065,17 +2442,17 @@ var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
|
|
2065
2442
|
async function checkFeatures(context, config, args) {
|
|
2066
2443
|
const request = args.request;
|
|
2067
2444
|
if (request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") {
|
|
2068
|
-
|
|
2445
|
+
setFeature2(context, "PROTOCOL_RPC_V2_CBOR", "M");
|
|
2069
2446
|
}
|
|
2070
2447
|
if (typeof config.retryStrategy === "function") {
|
|
2071
2448
|
const retryStrategy = await config.retryStrategy();
|
|
2072
2449
|
if (typeof retryStrategy.mode === "string") {
|
|
2073
2450
|
switch (retryStrategy.mode) {
|
|
2074
2451
|
case RETRY_MODES.ADAPTIVE:
|
|
2075
|
-
|
|
2452
|
+
setFeature2(context, "RETRY_MODE_ADAPTIVE", "F");
|
|
2076
2453
|
break;
|
|
2077
2454
|
case RETRY_MODES.STANDARD:
|
|
2078
|
-
|
|
2455
|
+
setFeature2(context, "RETRY_MODE_STANDARD", "E");
|
|
2079
2456
|
break;
|
|
2080
2457
|
}
|
|
2081
2458
|
}
|
|
@@ -2083,17 +2460,17 @@ async function checkFeatures(context, config, args) {
|
|
|
2083
2460
|
if (typeof config.accountIdEndpointMode === "function") {
|
|
2084
2461
|
const endpointV2 = context.endpointV2;
|
|
2085
2462
|
if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) {
|
|
2086
|
-
|
|
2463
|
+
setFeature2(context, "ACCOUNT_ID_ENDPOINT", "O");
|
|
2087
2464
|
}
|
|
2088
2465
|
switch (await config.accountIdEndpointMode?.()) {
|
|
2089
2466
|
case "disabled":
|
|
2090
|
-
|
|
2467
|
+
setFeature2(context, "ACCOUNT_ID_MODE_DISABLED", "Q");
|
|
2091
2468
|
break;
|
|
2092
2469
|
case "preferred":
|
|
2093
|
-
|
|
2470
|
+
setFeature2(context, "ACCOUNT_ID_MODE_PREFERRED", "P");
|
|
2094
2471
|
break;
|
|
2095
2472
|
case "required":
|
|
2096
|
-
|
|
2473
|
+
setFeature2(context, "ACCOUNT_ID_MODE_REQUIRED", "R");
|
|
2097
2474
|
break;
|
|
2098
2475
|
}
|
|
2099
2476
|
}
|
|
@@ -2101,10 +2478,10 @@ async function checkFeatures(context, config, args) {
|
|
|
2101
2478
|
if (identity?.$source) {
|
|
2102
2479
|
const credentials = identity;
|
|
2103
2480
|
if (credentials.accountId) {
|
|
2104
|
-
|
|
2481
|
+
setFeature2(context, "RESOLVED_ACCOUNT_ID", "T");
|
|
2105
2482
|
}
|
|
2106
2483
|
for (const [key, value] of Object.entries(credentials.$source ?? {})) {
|
|
2107
|
-
|
|
2484
|
+
setFeature2(context, key, value);
|
|
2108
2485
|
}
|
|
2109
2486
|
}
|
|
2110
2487
|
}
|
|
@@ -2780,18 +3157,6 @@ var DefaultIdentityProviderConfig = class {
|
|
|
2780
3157
|
}
|
|
2781
3158
|
};
|
|
2782
3159
|
|
|
2783
|
-
// ../../node_modules/.pnpm/@smithy+core@3.24.6/node_modules/@smithy/core/dist-es/setFeature.js
|
|
2784
|
-
function setFeature2(context, feature, value) {
|
|
2785
|
-
if (!context.__smithy_context) {
|
|
2786
|
-
context.__smithy_context = {
|
|
2787
|
-
features: {}
|
|
2788
|
-
};
|
|
2789
|
-
} else if (!context.__smithy_context.features) {
|
|
2790
|
-
context.__smithy_context.features = {};
|
|
2791
|
-
}
|
|
2792
|
-
context.__smithy_context.features[feature] = value;
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
3160
|
// ../../node_modules/.pnpm/@smithy+middleware-content-length@4.2.14/node_modules/@smithy/middleware-content-length/dist-es/index.js
|
|
2796
3161
|
var CONTENT_LENGTH_HEADER = "content-length";
|
|
2797
3162
|
function contentLengthMiddleware(bodyLengthChecker) {
|
|
@@ -2871,9 +3236,9 @@ var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
|
|
|
2871
3236
|
var DOTS_PATTERN = /\.\./;
|
|
2872
3237
|
var isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName);
|
|
2873
3238
|
var isArnBucketName = (bucketName) => {
|
|
2874
|
-
const [arn,
|
|
3239
|
+
const [arn, partition4, service, , , bucket] = bucketName.split(":");
|
|
2875
3240
|
const isArn = arn === "arn" && bucketName.split(":").length >= 6;
|
|
2876
|
-
const isValidArn = Boolean(isArn &&
|
|
3241
|
+
const isValidArn = Boolean(isArn && partition4 && service && bucket);
|
|
2877
3242
|
if (isArn && !isValidArn) {
|
|
2878
3243
|
throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`);
|
|
2879
3244
|
}
|
|
@@ -3360,7 +3725,7 @@ var resolveParams = async (commandInput, instructionsSupplier, clientConfig) =>
|
|
|
3360
3725
|
var endpointMiddleware = ({ config, instructions }) => {
|
|
3361
3726
|
return (next, context) => async (args) => {
|
|
3362
3727
|
if (config.isCustomEndpoint) {
|
|
3363
|
-
|
|
3728
|
+
setFeature(context, "ENDPOINT_OVERRIDE", "N");
|
|
3364
3729
|
}
|
|
3365
3730
|
const endpoint = await getEndpointFromInstructions(args.input, {
|
|
3366
3731
|
getEndpointParameterInstructions() {
|
|
@@ -3963,14 +4328,14 @@ function setCredentialFeature2(credentials, feature, value) {
|
|
|
3963
4328
|
}
|
|
3964
4329
|
|
|
3965
4330
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.19/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js
|
|
3966
|
-
var
|
|
4331
|
+
var partitionsInfo2 = { "partitions": [{ "id": "aws", "outputs": { "dnsSuffix": "amazonaws.com", "dualStackDnsSuffix": "api.aws", "implicitGlobalRegion": "us-east-1", "name": "aws", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", "regions": { "af-south-1": { "description": "Africa (Cape Town)" }, "ap-east-1": { "description": "Asia Pacific (Hong Kong)" }, "ap-east-2": { "description": "Asia Pacific (Taipei)" }, "ap-northeast-1": { "description": "Asia Pacific (Tokyo)" }, "ap-northeast-2": { "description": "Asia Pacific (Seoul)" }, "ap-northeast-3": { "description": "Asia Pacific (Osaka)" }, "ap-south-1": { "description": "Asia Pacific (Mumbai)" }, "ap-south-2": { "description": "Asia Pacific (Hyderabad)" }, "ap-southeast-1": { "description": "Asia Pacific (Singapore)" }, "ap-southeast-2": { "description": "Asia Pacific (Sydney)" }, "ap-southeast-3": { "description": "Asia Pacific (Jakarta)" }, "ap-southeast-4": { "description": "Asia Pacific (Melbourne)" }, "ap-southeast-5": { "description": "Asia Pacific (Malaysia)" }, "ap-southeast-6": { "description": "Asia Pacific (New Zealand)" }, "ap-southeast-7": { "description": "Asia Pacific (Thailand)" }, "aws-global": { "description": "aws global region" }, "ca-central-1": { "description": "Canada (Central)" }, "ca-west-1": { "description": "Canada West (Calgary)" }, "eu-central-1": { "description": "Europe (Frankfurt)" }, "eu-central-2": { "description": "Europe (Zurich)" }, "eu-north-1": { "description": "Europe (Stockholm)" }, "eu-south-1": { "description": "Europe (Milan)" }, "eu-south-2": { "description": "Europe (Spain)" }, "eu-west-1": { "description": "Europe (Ireland)" }, "eu-west-2": { "description": "Europe (London)" }, "eu-west-3": { "description": "Europe (Paris)" }, "il-central-1": { "description": "Israel (Tel Aviv)" }, "me-central-1": { "description": "Middle East (UAE)" }, "me-south-1": { "description": "Middle East (Bahrain)" }, "mx-central-1": { "description": "Mexico (Central)" }, "sa-east-1": { "description": "South America (Sao Paulo)" }, "us-east-1": { "description": "US East (N. Virginia)" }, "us-east-2": { "description": "US East (Ohio)" }, "us-west-1": { "description": "US West (N. California)" }, "us-west-2": { "description": "US West (Oregon)" } } }, { "id": "aws-cn", "outputs": { "dnsSuffix": "amazonaws.com.cn", "dualStackDnsSuffix": "api.amazonwebservices.com.cn", "implicitGlobalRegion": "cn-northwest-1", "name": "aws-cn", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^cn\\-\\w+\\-\\d+$", "regions": { "aws-cn-global": { "description": "aws-cn global region" }, "cn-north-1": { "description": "China (Beijing)" }, "cn-northwest-1": { "description": "China (Ningxia)" } } }, { "id": "aws-eusc", "outputs": { "dnsSuffix": "amazonaws.eu", "dualStackDnsSuffix": "api.amazonwebservices.eu", "implicitGlobalRegion": "eusc-de-east-1", "name": "aws-eusc", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$", "regions": { "eusc-de-east-1": { "description": "AWS European Sovereign Cloud (Germany)" } } }, { "id": "aws-iso", "outputs": { "dnsSuffix": "c2s.ic.gov", "dualStackDnsSuffix": "api.aws.ic.gov", "implicitGlobalRegion": "us-iso-east-1", "name": "aws-iso", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$", "regions": { "aws-iso-global": { "description": "aws-iso global region" }, "us-iso-east-1": { "description": "US ISO East" }, "us-iso-west-1": { "description": "US ISO WEST" } } }, { "id": "aws-iso-b", "outputs": { "dnsSuffix": "sc2s.sgov.gov", "dualStackDnsSuffix": "api.aws.scloud", "implicitGlobalRegion": "us-isob-east-1", "name": "aws-iso-b", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$", "regions": { "aws-iso-b-global": { "description": "aws-iso-b global region" }, "us-isob-east-1": { "description": "US ISOB East (Ohio)" }, "us-isob-west-1": { "description": "US ISOB West" } } }, { "id": "aws-iso-e", "outputs": { "dnsSuffix": "cloud.adc-e.uk", "dualStackDnsSuffix": "api.cloud-aws.adc-e.uk", "implicitGlobalRegion": "eu-isoe-west-1", "name": "aws-iso-e", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$", "regions": { "aws-iso-e-global": { "description": "aws-iso-e global region" }, "eu-isoe-west-1": { "description": "EU ISOE West" } } }, { "id": "aws-iso-f", "outputs": { "dnsSuffix": "csp.hci.ic.gov", "dualStackDnsSuffix": "api.aws.hci.ic.gov", "implicitGlobalRegion": "us-isof-south-1", "name": "aws-iso-f", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$", "regions": { "aws-iso-f-global": { "description": "aws-iso-f global region" }, "us-isof-east-1": { "description": "US ISOF EAST" }, "us-isof-south-1": { "description": "US ISOF SOUTH" } } }, { "id": "aws-us-gov", "outputs": { "dnsSuffix": "amazonaws.com", "dualStackDnsSuffix": "api.aws", "implicitGlobalRegion": "us-gov-west-1", "name": "aws-us-gov", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$", "regions": { "aws-us-gov-global": { "description": "aws-us-gov global region" }, "us-gov-east-1": { "description": "AWS GovCloud (US-East)" }, "us-gov-west-1": { "description": "AWS GovCloud (US-West)" } } }], "version": "1.1" };
|
|
3967
4332
|
|
|
3968
4333
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.19/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partition.js
|
|
3969
|
-
var
|
|
3970
|
-
var
|
|
3971
|
-
const { partitions } =
|
|
3972
|
-
for (const
|
|
3973
|
-
const { regions, outputs } =
|
|
4334
|
+
var selectedPartitionsInfo3 = partitionsInfo2;
|
|
4335
|
+
var partition3 = (value) => {
|
|
4336
|
+
const { partitions } = selectedPartitionsInfo3;
|
|
4337
|
+
for (const partition4 of partitions) {
|
|
4338
|
+
const { regions, outputs } = partition4;
|
|
3974
4339
|
for (const [region, regionData] of Object.entries(regions)) {
|
|
3975
4340
|
if (region === value) {
|
|
3976
4341
|
return {
|
|
@@ -3980,15 +4345,15 @@ var partition2 = (value) => {
|
|
|
3980
4345
|
}
|
|
3981
4346
|
}
|
|
3982
4347
|
}
|
|
3983
|
-
for (const
|
|
3984
|
-
const { regionRegex, outputs } =
|
|
4348
|
+
for (const partition4 of partitions) {
|
|
4349
|
+
const { regionRegex, outputs } = partition4;
|
|
3985
4350
|
if (new RegExp(regionRegex).test(value)) {
|
|
3986
4351
|
return {
|
|
3987
4352
|
...outputs
|
|
3988
4353
|
};
|
|
3989
4354
|
}
|
|
3990
4355
|
}
|
|
3991
|
-
const DEFAULT_PARTITION = partitions.find((
|
|
4356
|
+
const DEFAULT_PARTITION = partitions.find((partition4) => partition4.id === "aws");
|
|
3992
4357
|
if (!DEFAULT_PARTITION) {
|
|
3993
4358
|
throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
|
|
3994
4359
|
}
|
|
@@ -3998,10 +4363,10 @@ var partition2 = (value) => {
|
|
|
3998
4363
|
};
|
|
3999
4364
|
|
|
4000
4365
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.19/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.js
|
|
4001
|
-
var
|
|
4366
|
+
var isVirtualHostableS3Bucket3 = (value, allowSubDomains = false) => {
|
|
4002
4367
|
if (allowSubDomains) {
|
|
4003
4368
|
for (const label of value.split(".")) {
|
|
4004
|
-
if (!
|
|
4369
|
+
if (!isVirtualHostableS3Bucket3(label)) {
|
|
4005
4370
|
return false;
|
|
4006
4371
|
}
|
|
4007
4372
|
}
|
|
@@ -4023,18 +4388,18 @@ var isVirtualHostableS3Bucket2 = (value, allowSubDomains = false) => {
|
|
|
4023
4388
|
};
|
|
4024
4389
|
|
|
4025
4390
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.19/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js
|
|
4026
|
-
var
|
|
4027
|
-
var
|
|
4028
|
-
var
|
|
4029
|
-
const segments = value.split(
|
|
4391
|
+
var ARN_DELIMITER3 = ":";
|
|
4392
|
+
var RESOURCE_DELIMITER3 = "/";
|
|
4393
|
+
var parseArn3 = (value) => {
|
|
4394
|
+
const segments = value.split(ARN_DELIMITER3);
|
|
4030
4395
|
if (segments.length < 6)
|
|
4031
4396
|
return null;
|
|
4032
|
-
const [arn,
|
|
4033
|
-
if (arn !== "arn" ||
|
|
4397
|
+
const [arn, partition4, service, region, accountId, ...resourcePath] = segments;
|
|
4398
|
+
if (arn !== "arn" || partition4 === "" || service === "" || resourcePath.join(ARN_DELIMITER3) === "")
|
|
4034
4399
|
return null;
|
|
4035
|
-
const resourceId = resourcePath.map((resource) => resource.split(
|
|
4400
|
+
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER3)).flat();
|
|
4036
4401
|
return {
|
|
4037
|
-
partition:
|
|
4402
|
+
partition: partition4,
|
|
4038
4403
|
service,
|
|
4039
4404
|
region,
|
|
4040
4405
|
accountId,
|
|
@@ -4043,12 +4408,12 @@ var parseArn2 = (value) => {
|
|
|
4043
4408
|
};
|
|
4044
4409
|
|
|
4045
4410
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.19/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/aws.js
|
|
4046
|
-
var
|
|
4047
|
-
isVirtualHostableS3Bucket:
|
|
4048
|
-
parseArn:
|
|
4049
|
-
partition:
|
|
4411
|
+
var awsEndpointFunctions3 = {
|
|
4412
|
+
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket3,
|
|
4413
|
+
parseArn: parseArn3,
|
|
4414
|
+
partition: partition3
|
|
4050
4415
|
};
|
|
4051
|
-
customEndpointFunctions.aws =
|
|
4416
|
+
customEndpointFunctions.aws = awsEndpointFunctions3;
|
|
4052
4417
|
|
|
4053
4418
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.19/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
|
|
4054
4419
|
var resolveAwsSdkSigV4Config = (config) => {
|
|
@@ -4215,7 +4580,7 @@ var remoteProvider = async (init) => {
|
|
|
4215
4580
|
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import("./dist-es-ZKC2QKD2.js");
|
|
4216
4581
|
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
4217
4582
|
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
4218
|
-
const { fromHttp } = await import("./dist-es-
|
|
4583
|
+
const { fromHttp } = await import("./dist-es-S3NZQFGT.js");
|
|
4219
4584
|
return chain(fromHttp(init), fromContainerMetadata(init));
|
|
4220
4585
|
}
|
|
4221
4586
|
if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
|
|
@@ -4327,22 +4692,22 @@ var defaultProvider = (init = {}) => memoizeChain([
|
|
|
4327
4692
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
4328
4693
|
throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
|
|
4329
4694
|
}
|
|
4330
|
-
const { fromSSO } = await import("./dist-es-
|
|
4695
|
+
const { fromSSO } = await import("./dist-es-2OTNTL4N.js");
|
|
4331
4696
|
return fromSSO(init)(awsIdentityProperties);
|
|
4332
4697
|
},
|
|
4333
4698
|
async (awsIdentityProperties) => {
|
|
4334
4699
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
|
|
4335
|
-
const { fromIni } = await import("./dist-es-
|
|
4700
|
+
const { fromIni } = await import("./dist-es-ZGVADYIF.js");
|
|
4336
4701
|
return fromIni(init)(awsIdentityProperties);
|
|
4337
4702
|
},
|
|
4338
4703
|
async (awsIdentityProperties) => {
|
|
4339
4704
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
|
|
4340
|
-
const { fromProcess } = await import("./dist-es-
|
|
4705
|
+
const { fromProcess } = await import("./dist-es-I4FW57PS.js");
|
|
4341
4706
|
return fromProcess(init)(awsIdentityProperties);
|
|
4342
4707
|
},
|
|
4343
4708
|
async (awsIdentityProperties) => {
|
|
4344
4709
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
|
4345
|
-
const { fromTokenFile } = await import("./dist-es-
|
|
4710
|
+
const { fromTokenFile } = await import("./dist-es-PS73DWNL.js");
|
|
4346
4711
|
return fromTokenFile(init)(awsIdentityProperties);
|
|
4347
4712
|
},
|
|
4348
4713
|
async () => {
|