agentv 3.10.3 → 3.11.1
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/{agentv-provider-NFFLXG5M-TJAWCWCX.js → agentv-provider-MIDKLYIH-6LIYKQRP.js} +2 -1
- package/dist/chunk-2QFWRIYL.js +186 -0
- package/dist/chunk-2QFWRIYL.js.map +1 -0
- package/dist/chunk-2RMPO6LY.js +747 -0
- package/dist/chunk-2RMPO6LY.js.map +1 -0
- package/dist/chunk-3Q7WIXT4.js +4846 -0
- package/dist/chunk-3Q7WIXT4.js.map +1 -0
- package/dist/chunk-73O2DCJP.js +1274 -0
- package/dist/chunk-73O2DCJP.js.map +1 -0
- package/dist/chunk-AUKF3Y3W.js +212 -0
- package/dist/chunk-AUKF3Y3W.js.map +1 -0
- package/dist/{chunk-XOSNETAV.js → chunk-BAUNAXHT.js} +1 -1
- package/dist/chunk-BRH7SIDP.js +133 -0
- package/dist/chunk-BRH7SIDP.js.map +1 -0
- package/dist/chunk-BXM4I3BM.js +526 -0
- package/dist/chunk-BXM4I3BM.js.map +1 -0
- package/dist/{chunk-U556GRI3.js → chunk-CKMAM2GD.js} +76 -34
- package/dist/chunk-CKMAM2GD.js.map +1 -0
- package/dist/chunk-FHTURHTY.js +546 -0
- package/dist/chunk-FHTURHTY.js.map +1 -0
- package/dist/chunk-GJFXQQWG.js +21 -0
- package/dist/chunk-GJFXQQWG.js.map +1 -0
- package/dist/chunk-HKMLG4KF.js +38 -0
- package/dist/chunk-HKMLG4KF.js.map +1 -0
- package/dist/chunk-JGU3PVA4.js +133 -0
- package/dist/chunk-JGU3PVA4.js.map +1 -0
- package/dist/chunk-LHU5FGVZ.js +4804 -0
- package/dist/chunk-LHU5FGVZ.js.map +1 -0
- package/dist/chunk-OL2WGI6E.js +149 -0
- package/dist/chunk-OL2WGI6E.js.map +1 -0
- package/dist/chunk-ONETZL6N.js +15 -0
- package/dist/chunk-ONETZL6N.js.map +1 -0
- package/dist/{chunk-JUQCB3ZW.js → chunk-OYD2NB55.js} +1292 -896
- package/dist/chunk-OYD2NB55.js.map +1 -0
- package/dist/chunk-QV4UGEN6.js +320 -0
- package/dist/chunk-QV4UGEN6.js.map +1 -0
- package/dist/chunk-QXLDKGF3.js +46 -0
- package/dist/chunk-QXLDKGF3.js.map +1 -0
- package/dist/chunk-U6VEM66A.js +63 -0
- package/dist/chunk-U6VEM66A.js.map +1 -0
- package/dist/chunk-UALXHIMX.js +48 -0
- package/dist/chunk-UALXHIMX.js.map +1 -0
- package/dist/chunk-UGXG73VF.js +55 -0
- package/dist/chunk-UGXG73VF.js.map +1 -0
- package/dist/chunk-UHP5KEDL.js +38 -0
- package/dist/chunk-UHP5KEDL.js.map +1 -0
- package/dist/{chunk-7LC3VNOC.js → chunk-V2S5CZU3.js} +1141 -60
- package/dist/chunk-V2S5CZU3.js.map +1 -0
- package/dist/chunk-WVSXFZWP.js +204 -0
- package/dist/chunk-WVSXFZWP.js.map +1 -0
- package/dist/chunk-XSUMCWKO.js +30 -0
- package/dist/chunk-XSUMCWKO.js.map +1 -0
- package/dist/chunk-XUO7ZEHU.js +181 -0
- package/dist/chunk-XUO7ZEHU.js.map +1 -0
- package/dist/chunk-YSGUX5JT.js +1002 -0
- package/dist/chunk-YSGUX5JT.js.map +1 -0
- package/dist/cli.js +5 -4
- package/dist/cli.js.map +1 -1
- package/dist/dist-3PCP5TNF-RYMVLILE.js +25785 -0
- package/dist/dist-3PCP5TNF-RYMVLILE.js.map +1 -0
- package/dist/dist-BOIN5LC5-T5UWUK43.js +76113 -0
- package/dist/dist-BOIN5LC5-T5UWUK43.js.map +1 -0
- package/dist/dist-LXPDQOBI-4V5J2WDS.js +13 -0
- package/dist/dist-LXPDQOBI-4V5J2WDS.js.map +1 -0
- package/dist/{dist-2X7A3TTC.js → dist-VUPMLHIV.js} +4 -3
- package/dist/dist-es-4WSJUIYR-XKIX65IH.js +69 -0
- package/dist/dist-es-4WSJUIYR-XKIX65IH.js.map +1 -0
- package/dist/dist-es-7K7MKRME-CCMAZOQC.js +355 -0
- package/dist/dist-es-7K7MKRME-CCMAZOQC.js.map +1 -0
- package/dist/dist-es-B2RTOKRI-VWZHK5RE.js +191 -0
- package/dist/dist-es-B2RTOKRI-VWZHK5RE.js.map +1 -0
- package/dist/dist-es-HHZ4FAXA-CRERHWKB.js +164 -0
- package/dist/dist-es-HHZ4FAXA-CRERHWKB.js.map +1 -0
- package/dist/dist-es-HVS3RPMX-AYJ3DW4L.js +355 -0
- package/dist/dist-es-HVS3RPMX-AYJ3DW4L.js.map +1 -0
- package/dist/dist-es-L6R4FPI5-IKIRYN45.js +472 -0
- package/dist/dist-es-L6R4FPI5-IKIRYN45.js.map +1 -0
- package/dist/dist-es-SRVEB5QV-Q4CTC2HX.js +24 -0
- package/dist/dist-es-TRIVUKV4-2J47CDXR.js +85 -0
- package/dist/dist-es-TRIVUKV4-2J47CDXR.js.map +1 -0
- package/dist/dist-es-UEEUAV34-IZQDTAMW.js +16 -0
- package/dist/{esm-5Q4BZALM-5REQWAUV.js → esm-OJ2BXJK4-YKEI3Z7E.js} +3 -2
- package/dist/{esm-5Q4BZALM-5REQWAUV.js.map → esm-OJ2BXJK4-YKEI3Z7E.js.map} +1 -1
- package/dist/{esm-CZAWIY6F.js → esm-UYZ3HJBU.js} +2 -2
- package/dist/event-streams-NZADSH5J-6MOSNEV3.js +247 -0
- package/dist/event-streams-NZADSH5J-6MOSNEV3.js.map +1 -0
- package/dist/index.js +5 -4
- package/dist/{interactive-CSA4KIND.js → interactive-FZJANO4A.js} +5 -4
- package/dist/{interactive-CSA4KIND.js.map → interactive-FZJANO4A.js.map} +1 -1
- package/dist/loadSso-IQZ5NB6C-DZJTORO3.js +738 -0
- package/dist/loadSso-IQZ5NB6C-DZJTORO3.js.map +1 -0
- package/dist/multipart-parser-IPYBIGNL-LFMNMM6D.js +387 -0
- package/dist/multipart-parser-IPYBIGNL-LFMNMM6D.js.map +1 -0
- package/dist/{otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js → otlp-json-file-exporter-VN67MK3S-RQIM6EHY.js} +2 -1
- package/dist/otlp-json-file-exporter-VN67MK3S-RQIM6EHY.js.map +1 -0
- package/dist/signin-2ANR4DVS-K5VGBEJF.js +556 -0
- package/dist/signin-2ANR4DVS-K5VGBEJF.js.map +1 -0
- package/dist/{simple-trace-file-exporter-S76DMABU-5FCJESD2.js → simple-trace-file-exporter-XWZTIZR2-4JKATE5G.js} +2 -1
- package/dist/simple-trace-file-exporter-XWZTIZR2-4JKATE5G.js.map +1 -0
- package/dist/{src-ML4D2MC2.js → src-PXDA7QIS.js} +2 -2
- package/dist/src-SLOMUG7K-CV5JG263.js +1408 -0
- package/dist/src-SLOMUG7K-CV5JG263.js.map +1 -0
- package/dist/sso-oidc-HVCDATR2-CYP3BM5O.js +708 -0
- package/dist/sso-oidc-HVCDATR2-CYP3BM5O.js.map +1 -0
- package/dist/sts-X7JGSP4H-PDAAYDDH.js +2917 -0
- package/dist/sts-X7JGSP4H-PDAAYDDH.js.map +1 -0
- package/dist/templates/.agentv/config.yaml +4 -13
- package/dist/templates/.agentv/targets.yaml +0 -16
- package/dist/undici-VAR2VUJI-6PAOUXZC.js +23388 -0
- package/dist/undici-VAR2VUJI-6PAOUXZC.js.map +1 -0
- package/package.json +11 -3
- package/dist/chunk-7LC3VNOC.js.map +0 -1
- package/dist/chunk-JUQCB3ZW.js.map +0 -1
- package/dist/chunk-U556GRI3.js.map +0 -1
- package/dist/templates/.agentv/.env.example +0 -23
- /package/dist/{agentv-provider-NFFLXG5M-TJAWCWCX.js.map → agentv-provider-MIDKLYIH-6LIYKQRP.js.map} +0 -0
- /package/dist/{chunk-XOSNETAV.js.map → chunk-BAUNAXHT.js.map} +0 -0
- /package/dist/{dist-2X7A3TTC.js.map → dist-VUPMLHIV.js.map} +0 -0
- /package/dist/{esm-CZAWIY6F.js.map → dist-es-SRVEB5QV-Q4CTC2HX.js.map} +0 -0
- /package/dist/{otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js.map → dist-es-UEEUAV34-IZQDTAMW.js.map} +0 -0
- /package/dist/{simple-trace-file-exporter-S76DMABU-5FCJESD2.js.map → esm-UYZ3HJBU.js.map} +0 -0
- /package/dist/{src-ML4D2MC2.js.map → src-PXDA7QIS.js.map} +0 -0
|
@@ -0,0 +1,708 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
createAggregatedClient,
|
|
4
|
+
package_default
|
|
5
|
+
} from "./chunk-XUO7ZEHU.js";
|
|
6
|
+
import {
|
|
7
|
+
AwsRestJsonProtocol
|
|
8
|
+
} from "./chunk-YSGUX5JT.js";
|
|
9
|
+
import {
|
|
10
|
+
EndpointCache,
|
|
11
|
+
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
12
|
+
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
13
|
+
NoAuthSigner,
|
|
14
|
+
customEndpointFunctions,
|
|
15
|
+
getHttpHandlerExtensionConfiguration,
|
|
16
|
+
resolveEndpoint,
|
|
17
|
+
resolveHttpHandlerRuntimeConfig,
|
|
18
|
+
resolveRegionConfig
|
|
19
|
+
} from "./chunk-BXM4I3BM.js";
|
|
20
|
+
import {
|
|
21
|
+
AwsSdkSigV4Signer,
|
|
22
|
+
Client,
|
|
23
|
+
Command,
|
|
24
|
+
DEFAULT_RETRY_MODE,
|
|
25
|
+
DefaultIdentityProviderConfig,
|
|
26
|
+
Hash,
|
|
27
|
+
NODE_APP_ID_CONFIG_OPTIONS,
|
|
28
|
+
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
29
|
+
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
30
|
+
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
31
|
+
NODE_REGION_CONFIG_OPTIONS,
|
|
32
|
+
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
33
|
+
NoOpLogger,
|
|
34
|
+
ServiceException,
|
|
35
|
+
TypeRegistry,
|
|
36
|
+
awsEndpointFunctions,
|
|
37
|
+
calculateBodyLength,
|
|
38
|
+
createDefaultUserAgentProvider,
|
|
39
|
+
emitWarningIfUnsupportedVersion,
|
|
40
|
+
emitWarningIfUnsupportedVersion2,
|
|
41
|
+
getAwsRegionExtensionConfiguration,
|
|
42
|
+
getContentLengthPlugin,
|
|
43
|
+
getDefaultExtensionConfiguration,
|
|
44
|
+
getEndpointPlugin,
|
|
45
|
+
getHostHeaderPlugin,
|
|
46
|
+
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
47
|
+
getHttpSigningPlugin,
|
|
48
|
+
getLoggerPlugin,
|
|
49
|
+
getRecursionDetectionPlugin,
|
|
50
|
+
getRetryPlugin,
|
|
51
|
+
getSchemaSerdePlugin,
|
|
52
|
+
getSmithyContext,
|
|
53
|
+
getUserAgentPlugin,
|
|
54
|
+
loadConfigsForDefaultMode,
|
|
55
|
+
normalizeProvider,
|
|
56
|
+
resolveAwsRegionExtensionConfiguration,
|
|
57
|
+
resolveAwsSdkSigV4Config,
|
|
58
|
+
resolveDefaultRuntimeConfig,
|
|
59
|
+
resolveDefaultsModeConfig,
|
|
60
|
+
resolveEndpointConfig,
|
|
61
|
+
resolveHostHeaderConfig,
|
|
62
|
+
resolveRetryConfig,
|
|
63
|
+
resolveUserAgentConfig
|
|
64
|
+
} from "./chunk-3Q7WIXT4.js";
|
|
65
|
+
import "./chunk-QXLDKGF3.js";
|
|
66
|
+
import "./chunk-2QFWRIYL.js";
|
|
67
|
+
import {
|
|
68
|
+
fromBase64,
|
|
69
|
+
toBase64
|
|
70
|
+
} from "./chunk-QV4UGEN6.js";
|
|
71
|
+
import "./chunk-U6VEM66A.js";
|
|
72
|
+
import {
|
|
73
|
+
NodeHttpHandler,
|
|
74
|
+
streamCollector
|
|
75
|
+
} from "./chunk-2RMPO6LY.js";
|
|
76
|
+
import "./chunk-ONETZL6N.js";
|
|
77
|
+
import {
|
|
78
|
+
fromUtf8,
|
|
79
|
+
toUtf8
|
|
80
|
+
} from "./chunk-HKMLG4KF.js";
|
|
81
|
+
import {
|
|
82
|
+
loadConfig,
|
|
83
|
+
parseUrl
|
|
84
|
+
} from "./chunk-OL2WGI6E.js";
|
|
85
|
+
import "./chunk-XSUMCWKO.js";
|
|
86
|
+
import "./chunk-WVSXFZWP.js";
|
|
87
|
+
import "./chunk-UHP5KEDL.js";
|
|
88
|
+
import "./chunk-UGXG73VF.js";
|
|
89
|
+
import "./chunk-5H446C7X.js";
|
|
90
|
+
|
|
91
|
+
// ../../packages/core/dist/sso-oidc-HVCDATR2.js
|
|
92
|
+
var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
93
|
+
return {
|
|
94
|
+
operation: getSmithyContext(context).operation,
|
|
95
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
96
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
97
|
+
})()
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
101
|
+
return {
|
|
102
|
+
schemeId: "aws.auth#sigv4",
|
|
103
|
+
signingProperties: {
|
|
104
|
+
name: "sso-oauth",
|
|
105
|
+
region: authParameters.region
|
|
106
|
+
},
|
|
107
|
+
propertiesExtractor: (config, context) => ({
|
|
108
|
+
signingProperties: {
|
|
109
|
+
config,
|
|
110
|
+
context
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
116
|
+
return {
|
|
117
|
+
schemeId: "smithy.api#noAuth"
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
121
|
+
const options = [];
|
|
122
|
+
switch (authParameters.operation) {
|
|
123
|
+
case "CreateToken": {
|
|
124
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
default: {
|
|
128
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return options;
|
|
132
|
+
};
|
|
133
|
+
var resolveHttpAuthSchemeConfig = (config) => {
|
|
134
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
135
|
+
return Object.assign(config_0, {
|
|
136
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
var resolveClientEndpointParameters = (options) => {
|
|
140
|
+
return Object.assign(options, {
|
|
141
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
142
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
143
|
+
defaultSigningName: "sso-oauth"
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
var commonParams = {
|
|
147
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
148
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
149
|
+
Region: { type: "builtInParams", name: "region" },
|
|
150
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
151
|
+
};
|
|
152
|
+
var u = "required";
|
|
153
|
+
var v = "fn";
|
|
154
|
+
var w = "argv";
|
|
155
|
+
var x = "ref";
|
|
156
|
+
var a = true;
|
|
157
|
+
var b = "isSet";
|
|
158
|
+
var c = "booleanEquals";
|
|
159
|
+
var d = "error";
|
|
160
|
+
var e = "endpoint";
|
|
161
|
+
var f = "tree";
|
|
162
|
+
var g = "PartitionResult";
|
|
163
|
+
var h = "getAttr";
|
|
164
|
+
var i = { [u]: false, "type": "string" };
|
|
165
|
+
var j = { [u]: true, "default": false, "type": "boolean" };
|
|
166
|
+
var k = { [x]: "Endpoint" };
|
|
167
|
+
var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
|
|
168
|
+
var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
|
|
169
|
+
var n = {};
|
|
170
|
+
var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
|
|
171
|
+
var p = { [x]: g };
|
|
172
|
+
var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
|
|
173
|
+
var r = [l];
|
|
174
|
+
var s = [m];
|
|
175
|
+
var t = [{ [x]: "Region" }];
|
|
176
|
+
var _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
177
|
+
var ruleSet = _data;
|
|
178
|
+
var cache = new EndpointCache({
|
|
179
|
+
size: 50,
|
|
180
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
181
|
+
});
|
|
182
|
+
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
183
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
184
|
+
endpointParams,
|
|
185
|
+
logger: context.logger
|
|
186
|
+
}));
|
|
187
|
+
};
|
|
188
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
189
|
+
var SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceException {
|
|
190
|
+
constructor(options) {
|
|
191
|
+
super(options);
|
|
192
|
+
Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
|
|
196
|
+
name = "AccessDeniedException";
|
|
197
|
+
$fault = "client";
|
|
198
|
+
error;
|
|
199
|
+
reason;
|
|
200
|
+
error_description;
|
|
201
|
+
constructor(opts) {
|
|
202
|
+
super({
|
|
203
|
+
name: "AccessDeniedException",
|
|
204
|
+
$fault: "client",
|
|
205
|
+
...opts
|
|
206
|
+
});
|
|
207
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
208
|
+
this.error = opts.error;
|
|
209
|
+
this.reason = opts.reason;
|
|
210
|
+
this.error_description = opts.error_description;
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
|
|
214
|
+
name = "AuthorizationPendingException";
|
|
215
|
+
$fault = "client";
|
|
216
|
+
error;
|
|
217
|
+
error_description;
|
|
218
|
+
constructor(opts) {
|
|
219
|
+
super({
|
|
220
|
+
name: "AuthorizationPendingException",
|
|
221
|
+
$fault: "client",
|
|
222
|
+
...opts
|
|
223
|
+
});
|
|
224
|
+
Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
|
|
225
|
+
this.error = opts.error;
|
|
226
|
+
this.error_description = opts.error_description;
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
|
|
230
|
+
name = "ExpiredTokenException";
|
|
231
|
+
$fault = "client";
|
|
232
|
+
error;
|
|
233
|
+
error_description;
|
|
234
|
+
constructor(opts) {
|
|
235
|
+
super({
|
|
236
|
+
name: "ExpiredTokenException",
|
|
237
|
+
$fault: "client",
|
|
238
|
+
...opts
|
|
239
|
+
});
|
|
240
|
+
Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
|
|
241
|
+
this.error = opts.error;
|
|
242
|
+
this.error_description = opts.error_description;
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
var InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
|
|
246
|
+
name = "InternalServerException";
|
|
247
|
+
$fault = "server";
|
|
248
|
+
error;
|
|
249
|
+
error_description;
|
|
250
|
+
constructor(opts) {
|
|
251
|
+
super({
|
|
252
|
+
name: "InternalServerException",
|
|
253
|
+
$fault: "server",
|
|
254
|
+
...opts
|
|
255
|
+
});
|
|
256
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
257
|
+
this.error = opts.error;
|
|
258
|
+
this.error_description = opts.error_description;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
|
|
262
|
+
name = "InvalidClientException";
|
|
263
|
+
$fault = "client";
|
|
264
|
+
error;
|
|
265
|
+
error_description;
|
|
266
|
+
constructor(opts) {
|
|
267
|
+
super({
|
|
268
|
+
name: "InvalidClientException",
|
|
269
|
+
$fault: "client",
|
|
270
|
+
...opts
|
|
271
|
+
});
|
|
272
|
+
Object.setPrototypeOf(this, _InvalidClientException.prototype);
|
|
273
|
+
this.error = opts.error;
|
|
274
|
+
this.error_description = opts.error_description;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
|
|
278
|
+
name = "InvalidGrantException";
|
|
279
|
+
$fault = "client";
|
|
280
|
+
error;
|
|
281
|
+
error_description;
|
|
282
|
+
constructor(opts) {
|
|
283
|
+
super({
|
|
284
|
+
name: "InvalidGrantException",
|
|
285
|
+
$fault: "client",
|
|
286
|
+
...opts
|
|
287
|
+
});
|
|
288
|
+
Object.setPrototypeOf(this, _InvalidGrantException.prototype);
|
|
289
|
+
this.error = opts.error;
|
|
290
|
+
this.error_description = opts.error_description;
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
|
|
294
|
+
name = "InvalidRequestException";
|
|
295
|
+
$fault = "client";
|
|
296
|
+
error;
|
|
297
|
+
reason;
|
|
298
|
+
error_description;
|
|
299
|
+
constructor(opts) {
|
|
300
|
+
super({
|
|
301
|
+
name: "InvalidRequestException",
|
|
302
|
+
$fault: "client",
|
|
303
|
+
...opts
|
|
304
|
+
});
|
|
305
|
+
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
306
|
+
this.error = opts.error;
|
|
307
|
+
this.reason = opts.reason;
|
|
308
|
+
this.error_description = opts.error_description;
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
|
|
312
|
+
name = "InvalidScopeException";
|
|
313
|
+
$fault = "client";
|
|
314
|
+
error;
|
|
315
|
+
error_description;
|
|
316
|
+
constructor(opts) {
|
|
317
|
+
super({
|
|
318
|
+
name: "InvalidScopeException",
|
|
319
|
+
$fault: "client",
|
|
320
|
+
...opts
|
|
321
|
+
});
|
|
322
|
+
Object.setPrototypeOf(this, _InvalidScopeException.prototype);
|
|
323
|
+
this.error = opts.error;
|
|
324
|
+
this.error_description = opts.error_description;
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
var SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
|
|
328
|
+
name = "SlowDownException";
|
|
329
|
+
$fault = "client";
|
|
330
|
+
error;
|
|
331
|
+
error_description;
|
|
332
|
+
constructor(opts) {
|
|
333
|
+
super({
|
|
334
|
+
name: "SlowDownException",
|
|
335
|
+
$fault: "client",
|
|
336
|
+
...opts
|
|
337
|
+
});
|
|
338
|
+
Object.setPrototypeOf(this, _SlowDownException.prototype);
|
|
339
|
+
this.error = opts.error;
|
|
340
|
+
this.error_description = opts.error_description;
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
|
|
344
|
+
name = "UnauthorizedClientException";
|
|
345
|
+
$fault = "client";
|
|
346
|
+
error;
|
|
347
|
+
error_description;
|
|
348
|
+
constructor(opts) {
|
|
349
|
+
super({
|
|
350
|
+
name: "UnauthorizedClientException",
|
|
351
|
+
$fault: "client",
|
|
352
|
+
...opts
|
|
353
|
+
});
|
|
354
|
+
Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
|
|
355
|
+
this.error = opts.error;
|
|
356
|
+
this.error_description = opts.error_description;
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
360
|
+
name = "UnsupportedGrantTypeException";
|
|
361
|
+
$fault = "client";
|
|
362
|
+
error;
|
|
363
|
+
error_description;
|
|
364
|
+
constructor(opts) {
|
|
365
|
+
super({
|
|
366
|
+
name: "UnsupportedGrantTypeException",
|
|
367
|
+
$fault: "client",
|
|
368
|
+
...opts
|
|
369
|
+
});
|
|
370
|
+
Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
|
|
371
|
+
this.error = opts.error;
|
|
372
|
+
this.error_description = opts.error_description;
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
var _ADE = "AccessDeniedException";
|
|
376
|
+
var _APE = "AuthorizationPendingException";
|
|
377
|
+
var _AT = "AccessToken";
|
|
378
|
+
var _CS = "ClientSecret";
|
|
379
|
+
var _CT = "CreateToken";
|
|
380
|
+
var _CTR = "CreateTokenRequest";
|
|
381
|
+
var _CTRr = "CreateTokenResponse";
|
|
382
|
+
var _CV = "CodeVerifier";
|
|
383
|
+
var _ETE = "ExpiredTokenException";
|
|
384
|
+
var _ICE = "InvalidClientException";
|
|
385
|
+
var _IGE = "InvalidGrantException";
|
|
386
|
+
var _IRE = "InvalidRequestException";
|
|
387
|
+
var _ISE = "InternalServerException";
|
|
388
|
+
var _ISEn = "InvalidScopeException";
|
|
389
|
+
var _IT = "IdToken";
|
|
390
|
+
var _RT = "RefreshToken";
|
|
391
|
+
var _SDE = "SlowDownException";
|
|
392
|
+
var _UCE = "UnauthorizedClientException";
|
|
393
|
+
var _UGTE = "UnsupportedGrantTypeException";
|
|
394
|
+
var _aT = "accessToken";
|
|
395
|
+
var _c = "client";
|
|
396
|
+
var _cI = "clientId";
|
|
397
|
+
var _cS = "clientSecret";
|
|
398
|
+
var _cV = "codeVerifier";
|
|
399
|
+
var _co = "code";
|
|
400
|
+
var _dC = "deviceCode";
|
|
401
|
+
var _e = "error";
|
|
402
|
+
var _eI = "expiresIn";
|
|
403
|
+
var _ed = "error_description";
|
|
404
|
+
var _gT = "grantType";
|
|
405
|
+
var _h = "http";
|
|
406
|
+
var _hE = "httpError";
|
|
407
|
+
var _iT = "idToken";
|
|
408
|
+
var _r = "reason";
|
|
409
|
+
var _rT = "refreshToken";
|
|
410
|
+
var _rU = "redirectUri";
|
|
411
|
+
var _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
412
|
+
var _sc = "scope";
|
|
413
|
+
var _se = "server";
|
|
414
|
+
var _tT = "tokenType";
|
|
415
|
+
var n0 = "com.amazonaws.ssooidc";
|
|
416
|
+
var _s_registry = TypeRegistry.for(_s);
|
|
417
|
+
var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
418
|
+
_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
419
|
+
var n0_registry = TypeRegistry.for(n0);
|
|
420
|
+
var AccessDeniedException$ = [
|
|
421
|
+
-3,
|
|
422
|
+
n0,
|
|
423
|
+
_ADE,
|
|
424
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
425
|
+
[_e, _r, _ed],
|
|
426
|
+
[0, 0, 0]
|
|
427
|
+
];
|
|
428
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
429
|
+
var AuthorizationPendingException$ = [
|
|
430
|
+
-3,
|
|
431
|
+
n0,
|
|
432
|
+
_APE,
|
|
433
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
434
|
+
[_e, _ed],
|
|
435
|
+
[0, 0]
|
|
436
|
+
];
|
|
437
|
+
n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
438
|
+
var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
439
|
+
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
440
|
+
var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
|
|
441
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
442
|
+
var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
|
|
443
|
+
n0_registry.registerError(InvalidClientException$, InvalidClientException);
|
|
444
|
+
var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
445
|
+
n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
|
|
446
|
+
var InvalidRequestException$ = [
|
|
447
|
+
-3,
|
|
448
|
+
n0,
|
|
449
|
+
_IRE,
|
|
450
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
451
|
+
[_e, _r, _ed],
|
|
452
|
+
[0, 0, 0]
|
|
453
|
+
];
|
|
454
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
455
|
+
var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
456
|
+
n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
|
|
457
|
+
var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
458
|
+
n0_registry.registerError(SlowDownException$, SlowDownException);
|
|
459
|
+
var UnauthorizedClientException$ = [
|
|
460
|
+
-3,
|
|
461
|
+
n0,
|
|
462
|
+
_UCE,
|
|
463
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
464
|
+
[_e, _ed],
|
|
465
|
+
[0, 0]
|
|
466
|
+
];
|
|
467
|
+
n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
468
|
+
var UnsupportedGrantTypeException$ = [
|
|
469
|
+
-3,
|
|
470
|
+
n0,
|
|
471
|
+
_UGTE,
|
|
472
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
473
|
+
[_e, _ed],
|
|
474
|
+
[0, 0]
|
|
475
|
+
];
|
|
476
|
+
n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
477
|
+
var errorTypeRegistries = [_s_registry, n0_registry];
|
|
478
|
+
var AccessToken = [0, n0, _AT, 8, 0];
|
|
479
|
+
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
480
|
+
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
481
|
+
var IdToken = [0, n0, _IT, 8, 0];
|
|
482
|
+
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
483
|
+
var CreateTokenRequest$ = [
|
|
484
|
+
3,
|
|
485
|
+
n0,
|
|
486
|
+
_CTR,
|
|
487
|
+
0,
|
|
488
|
+
[_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
|
|
489
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
490
|
+
3
|
|
491
|
+
];
|
|
492
|
+
var CreateTokenResponse$ = [
|
|
493
|
+
3,
|
|
494
|
+
n0,
|
|
495
|
+
_CTRr,
|
|
496
|
+
0,
|
|
497
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
498
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
499
|
+
];
|
|
500
|
+
var Scopes = 64 | 0;
|
|
501
|
+
var CreateToken$ = [
|
|
502
|
+
9,
|
|
503
|
+
n0,
|
|
504
|
+
_CT,
|
|
505
|
+
{ [_h]: ["POST", "/token", 200] },
|
|
506
|
+
() => CreateTokenRequest$,
|
|
507
|
+
() => CreateTokenResponse$
|
|
508
|
+
];
|
|
509
|
+
var getRuntimeConfig = (config) => {
|
|
510
|
+
return {
|
|
511
|
+
apiVersion: "2019-06-10",
|
|
512
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
513
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
514
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
515
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
516
|
+
extensions: config?.extensions ?? [],
|
|
517
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
|
|
518
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
519
|
+
{
|
|
520
|
+
schemeId: "aws.auth#sigv4",
|
|
521
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
522
|
+
signer: new AwsSdkSigV4Signer()
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
schemeId: "smithy.api#noAuth",
|
|
526
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
527
|
+
signer: new NoAuthSigner()
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
531
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
532
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
533
|
+
defaultNamespace: "com.amazonaws.ssooidc",
|
|
534
|
+
errorTypeRegistries,
|
|
535
|
+
version: "2019-06-10",
|
|
536
|
+
serviceTarget: "AWSSSOOIDCService"
|
|
537
|
+
},
|
|
538
|
+
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
539
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
540
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
541
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
var getRuntimeConfig2 = (config) => {
|
|
545
|
+
emitWarningIfUnsupportedVersion2(process.version);
|
|
546
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
547
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
548
|
+
const clientSharedValues = getRuntimeConfig(config);
|
|
549
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
550
|
+
const loaderConfig = {
|
|
551
|
+
profile: config?.profile,
|
|
552
|
+
logger: clientSharedValues.logger
|
|
553
|
+
};
|
|
554
|
+
return {
|
|
555
|
+
...clientSharedValues,
|
|
556
|
+
...config,
|
|
557
|
+
runtime: "node",
|
|
558
|
+
defaultsMode,
|
|
559
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
560
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
561
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
|
|
562
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
563
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
564
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
565
|
+
retryMode: config?.retryMode ?? loadConfig({
|
|
566
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
567
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
568
|
+
}, config),
|
|
569
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
570
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
571
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
572
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
573
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
577
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
578
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
579
|
+
let _credentials = runtimeConfig.credentials;
|
|
580
|
+
return {
|
|
581
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
582
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
583
|
+
if (index === -1) {
|
|
584
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
585
|
+
} else {
|
|
586
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
httpAuthSchemes() {
|
|
590
|
+
return _httpAuthSchemes;
|
|
591
|
+
},
|
|
592
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
593
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
594
|
+
},
|
|
595
|
+
httpAuthSchemeProvider() {
|
|
596
|
+
return _httpAuthSchemeProvider;
|
|
597
|
+
},
|
|
598
|
+
setCredentials(credentials) {
|
|
599
|
+
_credentials = credentials;
|
|
600
|
+
},
|
|
601
|
+
credentials() {
|
|
602
|
+
return _credentials;
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
607
|
+
return {
|
|
608
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
609
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
610
|
+
credentials: config.credentials()
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
614
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
615
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
616
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
617
|
+
};
|
|
618
|
+
var SSOOIDCClient = class extends Client {
|
|
619
|
+
config;
|
|
620
|
+
constructor(...[configuration]) {
|
|
621
|
+
const _config_0 = getRuntimeConfig2(configuration || {});
|
|
622
|
+
super(_config_0);
|
|
623
|
+
this.initConfig = _config_0;
|
|
624
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
625
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
626
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
627
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
628
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
629
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
630
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
631
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
632
|
+
this.config = _config_8;
|
|
633
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
634
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
635
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
636
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
637
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
638
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
639
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
640
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
641
|
+
httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
|
642
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
643
|
+
"aws.auth#sigv4": config.credentials
|
|
644
|
+
})
|
|
645
|
+
}));
|
|
646
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
647
|
+
}
|
|
648
|
+
destroy() {
|
|
649
|
+
super.destroy();
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
var CreateTokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
|
|
653
|
+
return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
|
|
654
|
+
}).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken$).build() {
|
|
655
|
+
};
|
|
656
|
+
var commands = {
|
|
657
|
+
CreateTokenCommand
|
|
658
|
+
};
|
|
659
|
+
var SSOOIDC = class extends SSOOIDCClient {
|
|
660
|
+
};
|
|
661
|
+
createAggregatedClient(commands, SSOOIDC);
|
|
662
|
+
var AccessDeniedExceptionReason = {
|
|
663
|
+
KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
|
|
664
|
+
};
|
|
665
|
+
var InvalidRequestExceptionReason = {
|
|
666
|
+
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
667
|
+
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
668
|
+
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
669
|
+
KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
|
|
670
|
+
};
|
|
671
|
+
export {
|
|
672
|
+
Command as $Command,
|
|
673
|
+
AccessDeniedException,
|
|
674
|
+
AccessDeniedException$,
|
|
675
|
+
AccessDeniedExceptionReason,
|
|
676
|
+
AuthorizationPendingException,
|
|
677
|
+
AuthorizationPendingException$,
|
|
678
|
+
CreateToken$,
|
|
679
|
+
CreateTokenCommand,
|
|
680
|
+
CreateTokenRequest$,
|
|
681
|
+
CreateTokenResponse$,
|
|
682
|
+
ExpiredTokenException,
|
|
683
|
+
ExpiredTokenException$,
|
|
684
|
+
InternalServerException,
|
|
685
|
+
InternalServerException$,
|
|
686
|
+
InvalidClientException,
|
|
687
|
+
InvalidClientException$,
|
|
688
|
+
InvalidGrantException,
|
|
689
|
+
InvalidGrantException$,
|
|
690
|
+
InvalidRequestException,
|
|
691
|
+
InvalidRequestException$,
|
|
692
|
+
InvalidRequestExceptionReason,
|
|
693
|
+
InvalidScopeException,
|
|
694
|
+
InvalidScopeException$,
|
|
695
|
+
SSOOIDC,
|
|
696
|
+
SSOOIDCClient,
|
|
697
|
+
SSOOIDCServiceException,
|
|
698
|
+
SSOOIDCServiceException$,
|
|
699
|
+
SlowDownException,
|
|
700
|
+
SlowDownException$,
|
|
701
|
+
UnauthorizedClientException,
|
|
702
|
+
UnauthorizedClientException$,
|
|
703
|
+
UnsupportedGrantTypeException,
|
|
704
|
+
UnsupportedGrantTypeException$,
|
|
705
|
+
Client as __Client,
|
|
706
|
+
errorTypeRegistries
|
|
707
|
+
};
|
|
708
|
+
//# sourceMappingURL=sso-oidc-HVCDATR2-CYP3BM5O.js.map
|