thinkwork-cli 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{api-client-4DZ266J5.js → api-client-JYZXYQJR.js} +3 -1
- package/dist/bowser-6Z6JFAIR.js +2822 -0
- package/dist/chunk-DV3MRBR5.js +43 -0
- package/dist/chunk-DVPBI5HM.js +1728 -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-ILZKG5WV.js +6151 -0
- package/dist/chunk-KMIJ5KGT.js +128 -0
- package/dist/chunk-OCPHU34C.js +996 -0
- package/dist/chunk-QOERT44A.js +3286 -0
- package/dist/chunk-XYM7PE2A.js +2264 -0
- package/dist/{chunk-Y2WHJECR.js → chunk-Z2F6RJFR.js} +1 -39
- package/dist/cli.js +43080 -13150
- package/dist/dist-es-CRV46D5B.js +315 -0
- package/dist/dist-es-DCY4IC3Y.js +2000 -0
- package/dist/dist-es-ENBUC3JP.js +14726 -0
- package/dist/dist-es-G54LBMRN.js +48 -0
- package/dist/dist-es-G7PTG75M.js +176 -0
- package/dist/dist-es-GKDBE7E6.js +88 -0
- package/dist/dist-es-HY3535OI.js +70 -0
- package/dist/dist-es-KL7Y5NB2.js +377 -0
- package/dist/dist-es-LDE437AM.js +170 -0
- package/dist/dist-es-P26FWFLT.js +485 -0
- package/dist/dist-es-Q57SZXZ7.js +70 -0
- package/dist/dist-es-R7FGL2IB.js +88 -0
- package/dist/dist-es-USORBXZ5.js +318 -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 +6 -0
- package/dist/drizzle/0230_analyst_rls.sql +9 -0
- 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_managed_harness_multiplayer.sql +313 -0
- package/dist/drizzle/0261_native_auth_control_plane.sql +328 -0
- package/dist/drizzle/0262_auth_subscription_tickets.sql +59 -0
- package/dist/drizzle/0262_parallel_harness_threads.sql +9 -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/0264_harness_tool_execution_ledger.sql +113 -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/event-streams-7JNLJEEL.js +894 -0
- package/dist/event-streams-KDF5RWR6.js +1515 -0
- package/dist/loadSso-DJVB7BXE.js +576 -0
- package/dist/loadSso-JAMNA3WY.js +583 -0
- package/dist/plugins/catalog/package.json +1 -2
- package/dist/plugins/catalog/src/__tests__/build-catalog.test.ts +0 -1
- package/dist/plugins/catalog/src/__tests__/contracts.test.ts +0 -69
- package/dist/plugins/catalog/src/__tests__/plugin-package.test.ts +0 -2
- package/dist/plugins/catalog/src/__tests__/plugin-registry.test.ts +0 -5
- package/dist/plugins/catalog/src/contracts.ts +2 -179
- package/dist/plugins/catalog/src/registry/generated-first-party.ts +0 -6
- package/dist/signin-UGDWTGS4.js +821 -0
- package/dist/sso-oidc-Q4VXANXY.js +837 -0
- package/dist/sts-CWLSE3GH.js +1241 -0
- package/dist/sts-DNZLNVOV.js +1245 -0
- package/dist/terraform/examples/greenfield/main.tf +223 -66
- package/dist/terraform/examples/greenfield/terraform.tfvars.example +15 -1
- package/dist/terraform/modules/app/agentcore-gateway/main.tf +305 -0
- package/dist/terraform/modules/app/agentcore-gateway/outputs.tf +44 -0
- package/dist/terraform/modules/app/agentcore-gateway/scripts/delete_gateway.sh +93 -0
- package/dist/terraform/modules/app/agentcore-gateway/scripts/read_gateway.sh +33 -0
- package/dist/terraform/modules/app/agentcore-gateway/scripts/reconcile_gateway.sh +543 -0
- package/dist/terraform/modules/app/agentcore-gateway/variables.tf +70 -0
- package/dist/terraform/modules/app/agentcore-harness/main.tf +237 -8
- package/dist/terraform/modules/app/agentcore-harness/outputs.tf +63 -0
- package/dist/terraform/modules/app/agentcore-harness/scripts/delete_harness.sh +5 -0
- package/dist/terraform/modules/app/agentcore-harness/scripts/harness-lifecycle.mjs +430 -0
- package/dist/terraform/modules/app/agentcore-harness/scripts/harness-readback.mjs +180 -0
- package/dist/terraform/modules/app/agentcore-harness/scripts/harness-tool-contract.mjs +193 -0
- package/dist/terraform/modules/app/agentcore-harness/scripts/prune_harness.sh +5 -0
- package/dist/terraform/modules/app/agentcore-harness/scripts/read_harness.sh +5 -0
- package/dist/terraform/modules/app/agentcore-harness/scripts/reconcile_harness.sh +5 -0
- package/dist/terraform/modules/app/agentcore-harness/variables.tf +72 -1
- package/dist/terraform/modules/app/agentcore-identity/main.tf +173 -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 +122 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/delete_identity.sh +25 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/delete_twenty_identity.sh +16 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/read_identity.sh +40 -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 +74 -0
- package/dist/terraform/modules/app/agentcore-identity/scripts/reconcile_twenty_provider.mjs +61 -0
- package/dist/terraform/modules/app/agentcore-identity/variables.tf +54 -0
- 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/deployment-control-plane/runner.py +966 -27
- package/dist/terraform/modules/app/deployment-control-plane/test_runner_bundle.py +581 -22
- package/dist/terraform/modules/app/lambda-api/agentcore-harness-alarms.tf +88 -0
- package/dist/terraform/modules/app/lambda-api/agentcore-identity-alarms.tf +91 -0
- package/dist/terraform/modules/app/lambda-api/handlers.tf +298 -74
- package/dist/terraform/modules/app/lambda-api/iam-grouped.tf +99 -54
- package/dist/terraform/modules/app/lambda-api/main.tf +24 -0
- package/dist/terraform/modules/app/lambda-api/mcp-oauth.tf +181 -4
- package/dist/terraform/modules/app/lambda-api/outputs.tf +35 -0
- package/dist/terraform/modules/app/lambda-api/runtime-config.tf +3 -21
- package/dist/terraform/modules/app/lambda-api/variables.tf +109 -16
- package/dist/terraform/modules/foundation/cognito/main.tf +294 -72
- package/dist/terraform/modules/foundation/cognito/outputs.tf +42 -0
- package/dist/terraform/modules/foundation/cognito/variables.tf +114 -4
- package/dist/terraform/modules/thinkwork/main.tf +269 -46
- package/dist/terraform/modules/thinkwork/outputs.tf +136 -8
- package/dist/terraform/modules/thinkwork/variables.tf +124 -17
- package/dist/terraform/schema.graphql +69 -36
- package/dist/workspace-defaults/files/USER.md +1 -0
- package/package.json +3 -2
- package/dist/drizzle/0261_thread_turns_origin_turn_index.sql +0 -11
- 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
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
package_default
|
|
4
|
+
} from "./chunk-EUJ7X6YD.js";
|
|
5
|
+
import {
|
|
6
|
+
AwsRestJsonProtocol,
|
|
7
|
+
AwsSdkSigV4Signer,
|
|
8
|
+
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
9
|
+
resolveAwsSdkSigV4Config
|
|
10
|
+
} from "./chunk-DVPBI5HM.js";
|
|
11
|
+
import "./chunk-EI5ZX7CN.js";
|
|
12
|
+
import {
|
|
13
|
+
NodeHttpHandler
|
|
14
|
+
} from "./chunk-GG5WKBOX.js";
|
|
15
|
+
import {
|
|
16
|
+
BinaryDecisionDiagram,
|
|
17
|
+
Client,
|
|
18
|
+
Command,
|
|
19
|
+
DEFAULT_RETRY_MODE,
|
|
20
|
+
DefaultIdentityProviderConfig,
|
|
21
|
+
EndpointCache,
|
|
22
|
+
NODE_APP_ID_CONFIG_OPTIONS,
|
|
23
|
+
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
24
|
+
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
25
|
+
NoAuthSigner,
|
|
26
|
+
NoOpLogger,
|
|
27
|
+
ServiceException,
|
|
28
|
+
awsEndpointFunctions,
|
|
29
|
+
createDefaultUserAgentProvider,
|
|
30
|
+
customEndpointFunctions,
|
|
31
|
+
decideEndpoint,
|
|
32
|
+
emitWarningIfUnsupportedVersion,
|
|
33
|
+
emitWarningIfUnsupportedVersion2,
|
|
34
|
+
getAwsRegionExtensionConfiguration,
|
|
35
|
+
getDefaultExtensionConfiguration,
|
|
36
|
+
getEndpointPlugin,
|
|
37
|
+
getHostHeaderPlugin,
|
|
38
|
+
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
39
|
+
getHttpSigningPlugin,
|
|
40
|
+
getLoggerPlugin,
|
|
41
|
+
getRecursionDetectionPlugin,
|
|
42
|
+
getRetryPlugin,
|
|
43
|
+
getUserAgentPlugin,
|
|
44
|
+
loadConfigsForDefaultMode,
|
|
45
|
+
resolveAwsRegionExtensionConfiguration,
|
|
46
|
+
resolveDefaultRuntimeConfig,
|
|
47
|
+
resolveEndpointConfig,
|
|
48
|
+
resolveHostHeaderConfig,
|
|
49
|
+
resolveRetryConfig,
|
|
50
|
+
resolveUserAgentConfig
|
|
51
|
+
} from "./chunk-QOERT44A.js";
|
|
52
|
+
import {
|
|
53
|
+
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
54
|
+
NODE_REGION_CONFIG_OPTIONS,
|
|
55
|
+
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
56
|
+
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
57
|
+
TypeRegistry,
|
|
58
|
+
getContentLengthPlugin,
|
|
59
|
+
getHttpHandlerExtensionConfiguration,
|
|
60
|
+
getSchemaSerdePlugin,
|
|
61
|
+
getSmithyContext,
|
|
62
|
+
loadConfig,
|
|
63
|
+
normalizeProvider,
|
|
64
|
+
parseUrl,
|
|
65
|
+
resolveDefaultsModeConfig,
|
|
66
|
+
resolveHttpHandlerRuntimeConfig,
|
|
67
|
+
resolveRegionConfig
|
|
68
|
+
} from "./chunk-XYM7PE2A.js";
|
|
69
|
+
import {
|
|
70
|
+
Hash,
|
|
71
|
+
calculateBodyLength,
|
|
72
|
+
fromBase64,
|
|
73
|
+
fromUtf8,
|
|
74
|
+
streamCollector,
|
|
75
|
+
toBase64,
|
|
76
|
+
toUtf8
|
|
77
|
+
} from "./chunk-OCPHU34C.js";
|
|
78
|
+
import "./chunk-DV3MRBR5.js";
|
|
79
|
+
|
|
80
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
|
|
81
|
+
var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
82
|
+
return {
|
|
83
|
+
operation: getSmithyContext(context).operation,
|
|
84
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
85
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
86
|
+
})()
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
90
|
+
return {
|
|
91
|
+
schemeId: "aws.auth#sigv4",
|
|
92
|
+
signingProperties: {
|
|
93
|
+
name: "awsssoportal",
|
|
94
|
+
region: authParameters.region
|
|
95
|
+
},
|
|
96
|
+
propertiesExtractor: (config, context) => ({
|
|
97
|
+
signingProperties: {
|
|
98
|
+
config,
|
|
99
|
+
context
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
105
|
+
return {
|
|
106
|
+
schemeId: "smithy.api#noAuth"
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
var defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
110
|
+
const options = [];
|
|
111
|
+
switch (authParameters.operation) {
|
|
112
|
+
case "GetRoleCredentials": {
|
|
113
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
default: {
|
|
117
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return options;
|
|
121
|
+
};
|
|
122
|
+
var resolveHttpAuthSchemeConfig = (config) => {
|
|
123
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
124
|
+
return Object.assign(config_0, {
|
|
125
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
|
|
130
|
+
var resolveClientEndpointParameters = (options) => {
|
|
131
|
+
return Object.assign(options, {
|
|
132
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
133
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
134
|
+
defaultSigningName: "awsssoportal"
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
var commonParams = {
|
|
138
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
139
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
140
|
+
Region: { type: "builtInParams", name: "region" },
|
|
141
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js
|
|
145
|
+
var k = "ref";
|
|
146
|
+
var a = -1;
|
|
147
|
+
var b = true;
|
|
148
|
+
var c = "isSet";
|
|
149
|
+
var d = "PartitionResult";
|
|
150
|
+
var e = "booleanEquals";
|
|
151
|
+
var f = "getAttr";
|
|
152
|
+
var g = { [k]: "Endpoint" };
|
|
153
|
+
var h = { [k]: d };
|
|
154
|
+
var i = {};
|
|
155
|
+
var j = [{ [k]: "Region" }];
|
|
156
|
+
var _data = {
|
|
157
|
+
conditions: [
|
|
158
|
+
[c, [g]],
|
|
159
|
+
[c, j],
|
|
160
|
+
["aws.partition", j, d],
|
|
161
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
162
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
163
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
164
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
165
|
+
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
|
|
166
|
+
],
|
|
167
|
+
results: [
|
|
168
|
+
[a],
|
|
169
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
170
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
171
|
+
[g, i],
|
|
172
|
+
["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
173
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
174
|
+
["https://portal.sso.{Region}.amazonaws.com", i],
|
|
175
|
+
["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
176
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
177
|
+
["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
178
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
179
|
+
["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
180
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
181
|
+
]
|
|
182
|
+
};
|
|
183
|
+
var root = 2;
|
|
184
|
+
var r = 1e8;
|
|
185
|
+
var nodes = new Int32Array([
|
|
186
|
+
-1,
|
|
187
|
+
1,
|
|
188
|
+
-1,
|
|
189
|
+
0,
|
|
190
|
+
13,
|
|
191
|
+
3,
|
|
192
|
+
1,
|
|
193
|
+
4,
|
|
194
|
+
r + 12,
|
|
195
|
+
2,
|
|
196
|
+
5,
|
|
197
|
+
r + 12,
|
|
198
|
+
3,
|
|
199
|
+
8,
|
|
200
|
+
6,
|
|
201
|
+
4,
|
|
202
|
+
7,
|
|
203
|
+
r + 11,
|
|
204
|
+
5,
|
|
205
|
+
r + 9,
|
|
206
|
+
r + 10,
|
|
207
|
+
4,
|
|
208
|
+
11,
|
|
209
|
+
9,
|
|
210
|
+
6,
|
|
211
|
+
10,
|
|
212
|
+
r + 8,
|
|
213
|
+
7,
|
|
214
|
+
r + 6,
|
|
215
|
+
r + 7,
|
|
216
|
+
5,
|
|
217
|
+
12,
|
|
218
|
+
r + 5,
|
|
219
|
+
6,
|
|
220
|
+
r + 4,
|
|
221
|
+
r + 5,
|
|
222
|
+
3,
|
|
223
|
+
r + 1,
|
|
224
|
+
14,
|
|
225
|
+
4,
|
|
226
|
+
r + 2,
|
|
227
|
+
r + 3
|
|
228
|
+
]);
|
|
229
|
+
var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
230
|
+
|
|
231
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
|
|
232
|
+
var cache = new EndpointCache({
|
|
233
|
+
size: 50,
|
|
234
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
235
|
+
});
|
|
236
|
+
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
237
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
238
|
+
endpointParams,
|
|
239
|
+
logger: context.logger
|
|
240
|
+
}));
|
|
241
|
+
};
|
|
242
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
243
|
+
|
|
244
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
|
|
245
|
+
var SSOServiceException = class _SSOServiceException extends ServiceException {
|
|
246
|
+
constructor(options) {
|
|
247
|
+
super(options);
|
|
248
|
+
Object.setPrototypeOf(this, _SSOServiceException.prototype);
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
|
|
253
|
+
var InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
|
|
254
|
+
name = "InvalidRequestException";
|
|
255
|
+
$fault = "client";
|
|
256
|
+
constructor(opts) {
|
|
257
|
+
super({
|
|
258
|
+
name: "InvalidRequestException",
|
|
259
|
+
$fault: "client",
|
|
260
|
+
...opts
|
|
261
|
+
});
|
|
262
|
+
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
var ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException {
|
|
266
|
+
name = "ResourceNotFoundException";
|
|
267
|
+
$fault = "client";
|
|
268
|
+
constructor(opts) {
|
|
269
|
+
super({
|
|
270
|
+
name: "ResourceNotFoundException",
|
|
271
|
+
$fault: "client",
|
|
272
|
+
...opts
|
|
273
|
+
});
|
|
274
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
var TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException {
|
|
278
|
+
name = "TooManyRequestsException";
|
|
279
|
+
$fault = "client";
|
|
280
|
+
constructor(opts) {
|
|
281
|
+
super({
|
|
282
|
+
name: "TooManyRequestsException",
|
|
283
|
+
$fault: "client",
|
|
284
|
+
...opts
|
|
285
|
+
});
|
|
286
|
+
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
var UnauthorizedException = class _UnauthorizedException extends SSOServiceException {
|
|
290
|
+
name = "UnauthorizedException";
|
|
291
|
+
$fault = "client";
|
|
292
|
+
constructor(opts) {
|
|
293
|
+
super({
|
|
294
|
+
name: "UnauthorizedException",
|
|
295
|
+
$fault: "client",
|
|
296
|
+
...opts
|
|
297
|
+
});
|
|
298
|
+
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
|
|
303
|
+
var _ATT = "AccessTokenType";
|
|
304
|
+
var _GRC = "GetRoleCredentials";
|
|
305
|
+
var _GRCR = "GetRoleCredentialsRequest";
|
|
306
|
+
var _GRCRe = "GetRoleCredentialsResponse";
|
|
307
|
+
var _IRE = "InvalidRequestException";
|
|
308
|
+
var _RC = "RoleCredentials";
|
|
309
|
+
var _RNFE = "ResourceNotFoundException";
|
|
310
|
+
var _SAKT = "SecretAccessKeyType";
|
|
311
|
+
var _STT = "SessionTokenType";
|
|
312
|
+
var _TMRE = "TooManyRequestsException";
|
|
313
|
+
var _UE = "UnauthorizedException";
|
|
314
|
+
var _aI = "accountId";
|
|
315
|
+
var _aKI = "accessKeyId";
|
|
316
|
+
var _aT = "accessToken";
|
|
317
|
+
var _ai = "account_id";
|
|
318
|
+
var _c = "client";
|
|
319
|
+
var _e = "error";
|
|
320
|
+
var _ex = "expiration";
|
|
321
|
+
var _h = "http";
|
|
322
|
+
var _hE = "httpError";
|
|
323
|
+
var _hH = "httpHeader";
|
|
324
|
+
var _hQ = "httpQuery";
|
|
325
|
+
var _m = "message";
|
|
326
|
+
var _rC = "roleCredentials";
|
|
327
|
+
var _rN = "roleName";
|
|
328
|
+
var _rn = "role_name";
|
|
329
|
+
var _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
|
|
330
|
+
var _sAK = "secretAccessKey";
|
|
331
|
+
var _sT = "sessionToken";
|
|
332
|
+
var _xasbt = "x-amz-sso_bearer_token";
|
|
333
|
+
var n0 = "com.amazonaws.sso";
|
|
334
|
+
var _s_registry = TypeRegistry.for(_s);
|
|
335
|
+
var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
336
|
+
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
337
|
+
var n0_registry = TypeRegistry.for(n0);
|
|
338
|
+
var InvalidRequestException$ = [
|
|
339
|
+
-3,
|
|
340
|
+
n0,
|
|
341
|
+
_IRE,
|
|
342
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
343
|
+
[_m],
|
|
344
|
+
[0]
|
|
345
|
+
];
|
|
346
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
347
|
+
var ResourceNotFoundException$ = [
|
|
348
|
+
-3,
|
|
349
|
+
n0,
|
|
350
|
+
_RNFE,
|
|
351
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
352
|
+
[_m],
|
|
353
|
+
[0]
|
|
354
|
+
];
|
|
355
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
356
|
+
var TooManyRequestsException$ = [
|
|
357
|
+
-3,
|
|
358
|
+
n0,
|
|
359
|
+
_TMRE,
|
|
360
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
361
|
+
[_m],
|
|
362
|
+
[0]
|
|
363
|
+
];
|
|
364
|
+
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
365
|
+
var UnauthorizedException$ = [
|
|
366
|
+
-3,
|
|
367
|
+
n0,
|
|
368
|
+
_UE,
|
|
369
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
370
|
+
[_m],
|
|
371
|
+
[0]
|
|
372
|
+
];
|
|
373
|
+
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
374
|
+
var errorTypeRegistries = [
|
|
375
|
+
_s_registry,
|
|
376
|
+
n0_registry
|
|
377
|
+
];
|
|
378
|
+
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
379
|
+
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
380
|
+
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
381
|
+
var GetRoleCredentialsRequest$ = [
|
|
382
|
+
3,
|
|
383
|
+
n0,
|
|
384
|
+
_GRCR,
|
|
385
|
+
0,
|
|
386
|
+
[_rN, _aI, _aT],
|
|
387
|
+
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]],
|
|
388
|
+
3
|
|
389
|
+
];
|
|
390
|
+
var GetRoleCredentialsResponse$ = [
|
|
391
|
+
3,
|
|
392
|
+
n0,
|
|
393
|
+
_GRCRe,
|
|
394
|
+
0,
|
|
395
|
+
[_rC],
|
|
396
|
+
[[() => RoleCredentials$, 0]]
|
|
397
|
+
];
|
|
398
|
+
var RoleCredentials$ = [
|
|
399
|
+
3,
|
|
400
|
+
n0,
|
|
401
|
+
_RC,
|
|
402
|
+
0,
|
|
403
|
+
[_aKI, _sAK, _sT, _ex],
|
|
404
|
+
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
405
|
+
];
|
|
406
|
+
var GetRoleCredentials$ = [
|
|
407
|
+
9,
|
|
408
|
+
n0,
|
|
409
|
+
_GRC,
|
|
410
|
+
{ [_h]: ["GET", "/federation/credentials", 200] },
|
|
411
|
+
() => GetRoleCredentialsRequest$,
|
|
412
|
+
() => GetRoleCredentialsResponse$
|
|
413
|
+
];
|
|
414
|
+
|
|
415
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
|
|
416
|
+
var getRuntimeConfig = (config) => {
|
|
417
|
+
return {
|
|
418
|
+
apiVersion: "2019-06-10",
|
|
419
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
420
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
421
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
422
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
423
|
+
extensions: config?.extensions ?? [],
|
|
424
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
|
|
425
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
426
|
+
{
|
|
427
|
+
schemeId: "aws.auth#sigv4",
|
|
428
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
429
|
+
signer: new AwsSdkSigV4Signer()
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
schemeId: "smithy.api#noAuth",
|
|
433
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
434
|
+
signer: new NoAuthSigner()
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
438
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
439
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
440
|
+
defaultNamespace: "com.amazonaws.sso",
|
|
441
|
+
errorTypeRegistries,
|
|
442
|
+
version: "2019-06-10",
|
|
443
|
+
serviceTarget: "SWBPortalService"
|
|
444
|
+
},
|
|
445
|
+
serviceId: config?.serviceId ?? "SSO",
|
|
446
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
447
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
448
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
|
|
453
|
+
var getRuntimeConfig2 = (config) => {
|
|
454
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
455
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
456
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
457
|
+
const clientSharedValues = getRuntimeConfig(config);
|
|
458
|
+
emitWarningIfUnsupportedVersion2(process.version);
|
|
459
|
+
const loaderConfig = {
|
|
460
|
+
profile: config?.profile,
|
|
461
|
+
logger: clientSharedValues.logger
|
|
462
|
+
};
|
|
463
|
+
return {
|
|
464
|
+
...clientSharedValues,
|
|
465
|
+
...config,
|
|
466
|
+
runtime: "node",
|
|
467
|
+
defaultsMode,
|
|
468
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
469
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
470
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
|
|
471
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
472
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
473
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
474
|
+
retryMode: config?.retryMode ?? loadConfig({
|
|
475
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
476
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
477
|
+
}, config),
|
|
478
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
479
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
480
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
481
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
482
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
|
|
487
|
+
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
488
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
489
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
490
|
+
let _credentials = runtimeConfig.credentials;
|
|
491
|
+
return {
|
|
492
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
493
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
494
|
+
if (index === -1) {
|
|
495
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
496
|
+
} else {
|
|
497
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
httpAuthSchemes() {
|
|
501
|
+
return _httpAuthSchemes;
|
|
502
|
+
},
|
|
503
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
504
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
505
|
+
},
|
|
506
|
+
httpAuthSchemeProvider() {
|
|
507
|
+
return _httpAuthSchemeProvider;
|
|
508
|
+
},
|
|
509
|
+
setCredentials(credentials) {
|
|
510
|
+
_credentials = credentials;
|
|
511
|
+
},
|
|
512
|
+
credentials() {
|
|
513
|
+
return _credentials;
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
518
|
+
return {
|
|
519
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
520
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
521
|
+
credentials: config.credentials()
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
|
|
526
|
+
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
527
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
528
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
529
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
|
|
533
|
+
var SSOClient = class extends Client {
|
|
534
|
+
config;
|
|
535
|
+
constructor(...[configuration]) {
|
|
536
|
+
const _config_0 = getRuntimeConfig2(configuration || {});
|
|
537
|
+
super(_config_0);
|
|
538
|
+
this.initConfig = _config_0;
|
|
539
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
540
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
541
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
542
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
543
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
544
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
545
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
546
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
547
|
+
this.config = _config_8;
|
|
548
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
549
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
550
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
551
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
552
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
553
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
554
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
555
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
556
|
+
httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
|
|
557
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
558
|
+
"aws.auth#sigv4": config.credentials
|
|
559
|
+
})
|
|
560
|
+
}));
|
|
561
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
562
|
+
}
|
|
563
|
+
destroy() {
|
|
564
|
+
super.destroy();
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
|
|
569
|
+
var GetRoleCredentialsCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o) {
|
|
570
|
+
return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
|
|
571
|
+
}).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").sc(GetRoleCredentials$).build() {
|
|
572
|
+
};
|
|
573
|
+
export {
|
|
574
|
+
GetRoleCredentialsCommand,
|
|
575
|
+
SSOClient
|
|
576
|
+
};
|