@sisense/mcp-server 0.2.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.
Files changed (37) hide show
  1. package/LICENSE.md +35 -0
  2. package/README.md +121 -0
  3. package/dist/ai-hspmgr2c.js +3148 -0
  4. package/dist/fileFromPath-s6ap5vrh.js +128 -0
  5. package/dist/index-29n08mw7.js +95 -0
  6. package/dist/index-atgbxy7h.js +98603 -0
  7. package/dist/index-d6843g0v.js +372 -0
  8. package/dist/index-dcrjg3fk.js +207 -0
  9. package/dist/index-dxfb3krz.js +1489 -0
  10. package/dist/index-er0yspcy.js +918 -0
  11. package/dist/index-g8bgq79c.js +53 -0
  12. package/dist/index-p1pxtmwn.js +162 -0
  13. package/dist/index-qdth51hx.js +250 -0
  14. package/dist/index-tqba2rwh.js +603 -0
  15. package/dist/index-vrapm0b4.js +765 -0
  16. package/dist/index-vx54d05h.js +475 -0
  17. package/dist/sse-server-3343e7xh.js +117 -0
  18. package/dist/sse-server-36t17nga.js +12127 -0
  19. package/dist/sse-server-3e0efmg2.js +6276 -0
  20. package/dist/sse-server-4b60tg0c.js +136 -0
  21. package/dist/sse-server-4g9za0qq.js +89 -0
  22. package/dist/sse-server-4jjec4fz.js +9753 -0
  23. package/dist/sse-server-5tmgacdx.js +62 -0
  24. package/dist/sse-server-7wcvyxyj.js +31 -0
  25. package/dist/sse-server-brx9qtyd.js +2131 -0
  26. package/dist/sse-server-epd916s3.js +167 -0
  27. package/dist/sse-server-gt7tx6n2.js +2240 -0
  28. package/dist/sse-server-mkesh468.js +53 -0
  29. package/dist/sse-server-nwjjjz6x.js +113 -0
  30. package/dist/sse-server-qj4zxq0f.js +267 -0
  31. package/dist/sse-server-rr3dp62e.js +116721 -0
  32. package/dist/sse-server-ss0mydv4.js +3980 -0
  33. package/dist/sse-server-txz5g5t0.js +5328 -0
  34. package/dist/sse-server.js +30432 -0
  35. package/dist/view.html +3016 -0
  36. package/dist/widget-renderer-66ws3xtk.js +312 -0
  37. package/package.json +82 -0
@@ -0,0 +1,765 @@
1
+ import {
2
+ require_package
3
+ } from "./sse-server-4b60tg0c.js";
4
+ import {
5
+ require_dist_cjs as require_dist_cjs6,
6
+ require_dist_cjs10 as require_dist_cjs16,
7
+ require_dist_cjs11 as require_dist_cjs17,
8
+ require_dist_cjs12 as require_dist_cjs19,
9
+ require_dist_cjs13 as require_dist_cjs20,
10
+ require_dist_cjs14 as require_dist_cjs21,
11
+ require_dist_cjs15 as require_dist_cjs22,
12
+ require_dist_cjs16 as require_dist_cjs23,
13
+ require_dist_cjs17 as require_dist_cjs24,
14
+ require_dist_cjs18 as require_dist_cjs25,
15
+ require_dist_cjs19 as require_dist_cjs26,
16
+ require_dist_cjs2 as require_dist_cjs8,
17
+ require_dist_cjs3 as require_dist_cjs9,
18
+ require_dist_cjs4 as require_dist_cjs10,
19
+ require_dist_cjs5 as require_dist_cjs11,
20
+ require_dist_cjs7 as require_dist_cjs12,
21
+ require_dist_cjs8 as require_dist_cjs14,
22
+ require_dist_cjs9 as require_dist_cjs15,
23
+ require_protocols
24
+ } from "./sse-server-4jjec4fz.js";
25
+ import {
26
+ require_dist_cjs as require_dist_cjs13,
27
+ require_dist_cjs1 as require_dist_cjs18
28
+ } from "./sse-server-nwjjjz6x.js";
29
+ import"./sse-server-qj4zxq0f.js";
30
+ import {
31
+ require_dist_cjs as require_dist_cjs2,
32
+ require_dist_cjs1 as require_dist_cjs4,
33
+ require_dist_cjs3 as require_dist_cjs5,
34
+ require_dist_cjs7,
35
+ require_schema,
36
+ require_tslib
37
+ } from "./sse-server-txz5g5t0.js";
38
+ import {
39
+ require_dist_cjs
40
+ } from "./sse-server-epd916s3.js";
41
+ import {
42
+ require_dist_cjs2 as require_dist_cjs3
43
+ } from "./sse-server-5tmgacdx.js";
44
+ import"./sse-server-4g9za0qq.js";
45
+ import"./sse-server-mkesh468.js";
46
+ import"./sse-server-3343e7xh.js";
47
+ import {
48
+ __commonJS
49
+ } from "./sse-server-7wcvyxyj.js";
50
+
51
+ // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
52
+ var require_httpAuthSchemeProvider = __commonJS((exports) => {
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = undefined;
55
+ var core_1 = require_dist_cjs8();
56
+ var util_middleware_1 = require_dist_cjs2();
57
+ var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
58
+ return {
59
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
60
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
61
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
62
+ })()
63
+ };
64
+ };
65
+ exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
66
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
67
+ return {
68
+ schemeId: "aws.auth#sigv4",
69
+ signingProperties: {
70
+ name: "sso-oauth",
71
+ region: authParameters.region
72
+ },
73
+ propertiesExtractor: (config, context) => ({
74
+ signingProperties: {
75
+ config,
76
+ context
77
+ }
78
+ })
79
+ };
80
+ }
81
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
82
+ return {
83
+ schemeId: "smithy.api#noAuth"
84
+ };
85
+ }
86
+ var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
87
+ const options = [];
88
+ switch (authParameters.operation) {
89
+ case "CreateToken": {
90
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
91
+ break;
92
+ }
93
+ default: {
94
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
95
+ }
96
+ }
97
+ return options;
98
+ };
99
+ exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
100
+ var resolveHttpAuthSchemeConfig = (config) => {
101
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
102
+ return Object.assign(config_0, {
103
+ authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
104
+ });
105
+ };
106
+ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
107
+ });
108
+
109
+ // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js
110
+ var require_ruleset = __commonJS((exports) => {
111
+ Object.defineProperty(exports, "__esModule", { value: true });
112
+ exports.ruleSet = undefined;
113
+ var u = "required";
114
+ var v = "fn";
115
+ var w = "argv";
116
+ var x = "ref";
117
+ var a = true;
118
+ var b = "isSet";
119
+ var c = "booleanEquals";
120
+ var d = "error";
121
+ var e = "endpoint";
122
+ var f = "tree";
123
+ var g = "PartitionResult";
124
+ var h = "getAttr";
125
+ var i = { [u]: false, type: "string" };
126
+ var j = { [u]: true, default: false, type: "boolean" };
127
+ var k = { [x]: "Endpoint" };
128
+ var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
129
+ var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
130
+ var n = {};
131
+ var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
132
+ var p = { [x]: g };
133
+ var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
134
+ var r = [l];
135
+ var s = [m];
136
+ var t = [{ [x]: "Region" }];
137
+ 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 }] };
138
+ exports.ruleSet = _data;
139
+ });
140
+
141
+ // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js
142
+ var require_endpointResolver = __commonJS((exports) => {
143
+ Object.defineProperty(exports, "__esModule", { value: true });
144
+ exports.defaultEndpointResolver = undefined;
145
+ var util_endpoints_1 = require_dist_cjs14();
146
+ var util_endpoints_2 = require_dist_cjs12();
147
+ var ruleset_1 = require_ruleset();
148
+ var cache = new util_endpoints_2.EndpointCache({
149
+ size: 50,
150
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
151
+ });
152
+ var defaultEndpointResolver = (endpointParams, context = {}) => {
153
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
154
+ endpointParams,
155
+ logger: context.logger
156
+ }));
157
+ };
158
+ exports.defaultEndpointResolver = defaultEndpointResolver;
159
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
160
+ });
161
+
162
+ // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js
163
+ var require_runtimeConfig_shared = __commonJS((exports) => {
164
+ Object.defineProperty(exports, "__esModule", { value: true });
165
+ exports.getRuntimeConfig = undefined;
166
+ var core_1 = require_dist_cjs8();
167
+ var protocols_1 = require_protocols();
168
+ var core_2 = require_dist_cjs6();
169
+ var smithy_client_1 = require_dist_cjs7();
170
+ var url_parser_1 = require_dist_cjs13();
171
+ var util_base64_1 = require_dist_cjs4();
172
+ var util_utf8_1 = require_dist_cjs3();
173
+ var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider();
174
+ var endpointResolver_1 = require_endpointResolver();
175
+ var getRuntimeConfig = (config) => {
176
+ return {
177
+ apiVersion: "2019-06-10",
178
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
179
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
180
+ disableHostPrefix: config?.disableHostPrefix ?? false,
181
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
182
+ extensions: config?.extensions ?? [],
183
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
184
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
185
+ {
186
+ schemeId: "aws.auth#sigv4",
187
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
188
+ signer: new core_1.AwsSdkSigV4Signer
189
+ },
190
+ {
191
+ schemeId: "smithy.api#noAuth",
192
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
193
+ signer: new core_2.NoAuthSigner
194
+ }
195
+ ],
196
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger,
197
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
198
+ protocolSettings: config?.protocolSettings ?? {
199
+ defaultNamespace: "com.amazonaws.ssooidc",
200
+ version: "2019-06-10",
201
+ serviceTarget: "AWSSSOOIDCService"
202
+ },
203
+ serviceId: config?.serviceId ?? "SSO OIDC",
204
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
205
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
206
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
207
+ };
208
+ };
209
+ exports.getRuntimeConfig = getRuntimeConfig;
210
+ });
211
+
212
+ // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js
213
+ var require_runtimeConfig = __commonJS((exports) => {
214
+ Object.defineProperty(exports, "__esModule", { value: true });
215
+ exports.getRuntimeConfig = undefined;
216
+ var tslib_1 = require_tslib();
217
+ var package_json_1 = tslib_1.__importDefault(require_package());
218
+ var core_1 = require_dist_cjs8();
219
+ var util_user_agent_node_1 = require_dist_cjs22();
220
+ var config_resolver_1 = require_dist_cjs16();
221
+ var hash_node_1 = require_dist_cjs23();
222
+ var middleware_retry_1 = require_dist_cjs21();
223
+ var node_config_provider_1 = require_dist_cjs18();
224
+ var node_http_handler_1 = require_dist_cjs5();
225
+ var smithy_client_1 = require_dist_cjs7();
226
+ var util_body_length_node_1 = require_dist_cjs24();
227
+ var util_defaults_mode_node_1 = require_dist_cjs25();
228
+ var util_retry_1 = require_dist_cjs20();
229
+ var runtimeConfig_shared_1 = require_runtimeConfig_shared();
230
+ var getRuntimeConfig = (config) => {
231
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
232
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
233
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
234
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
235
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
236
+ const loaderConfig = {
237
+ profile: config?.profile,
238
+ logger: clientSharedValues.logger
239
+ };
240
+ return {
241
+ ...clientSharedValues,
242
+ ...config,
243
+ runtime: "node",
244
+ defaultsMode,
245
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
246
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
247
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
248
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
249
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
250
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
251
+ retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
252
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
253
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE
254
+ }, config),
255
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
256
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
257
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
258
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
259
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
260
+ };
261
+ };
262
+ exports.getRuntimeConfig = getRuntimeConfig;
263
+ });
264
+
265
+ // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
266
+ var require_sso_oidc = __commonJS((exports) => {
267
+ var middlewareHostHeader = require_dist_cjs9();
268
+ var middlewareLogger = require_dist_cjs10();
269
+ var middlewareRecursionDetection = require_dist_cjs11();
270
+ var middlewareUserAgent = require_dist_cjs15();
271
+ var configResolver = require_dist_cjs16();
272
+ var core = require_dist_cjs6();
273
+ var schema = require_schema();
274
+ var middlewareContentLength = require_dist_cjs17();
275
+ var middlewareEndpoint = require_dist_cjs19();
276
+ var middlewareRetry = require_dist_cjs21();
277
+ var smithyClient = require_dist_cjs7();
278
+ var httpAuthSchemeProvider = require_httpAuthSchemeProvider();
279
+ var runtimeConfig = require_runtimeConfig();
280
+ var regionConfigResolver = require_dist_cjs26();
281
+ var protocolHttp = require_dist_cjs();
282
+ var resolveClientEndpointParameters = (options) => {
283
+ return Object.assign(options, {
284
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
285
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
286
+ defaultSigningName: "sso-oauth"
287
+ });
288
+ };
289
+ var commonParams = {
290
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
291
+ Endpoint: { type: "builtInParams", name: "endpoint" },
292
+ Region: { type: "builtInParams", name: "region" },
293
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
294
+ };
295
+ var getHttpAuthExtensionConfiguration = (runtimeConfig2) => {
296
+ const _httpAuthSchemes = runtimeConfig2.httpAuthSchemes;
297
+ let _httpAuthSchemeProvider = runtimeConfig2.httpAuthSchemeProvider;
298
+ let _credentials = runtimeConfig2.credentials;
299
+ return {
300
+ setHttpAuthScheme(httpAuthScheme) {
301
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
302
+ if (index === -1) {
303
+ _httpAuthSchemes.push(httpAuthScheme);
304
+ } else {
305
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
306
+ }
307
+ },
308
+ httpAuthSchemes() {
309
+ return _httpAuthSchemes;
310
+ },
311
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider2) {
312
+ _httpAuthSchemeProvider = httpAuthSchemeProvider2;
313
+ },
314
+ httpAuthSchemeProvider() {
315
+ return _httpAuthSchemeProvider;
316
+ },
317
+ setCredentials(credentials) {
318
+ _credentials = credentials;
319
+ },
320
+ credentials() {
321
+ return _credentials;
322
+ }
323
+ };
324
+ };
325
+ var resolveHttpAuthRuntimeConfig = (config) => {
326
+ return {
327
+ httpAuthSchemes: config.httpAuthSchemes(),
328
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
329
+ credentials: config.credentials()
330
+ };
331
+ };
332
+ var resolveRuntimeExtensions = (runtimeConfig2, extensions) => {
333
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig2), smithyClient.getDefaultExtensionConfiguration(runtimeConfig2), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig2), getHttpAuthExtensionConfiguration(runtimeConfig2));
334
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
335
+ return Object.assign(runtimeConfig2, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
336
+ };
337
+
338
+ class SSOOIDCClient extends smithyClient.Client {
339
+ config;
340
+ constructor(...[configuration]) {
341
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
342
+ super(_config_0);
343
+ this.initConfig = _config_0;
344
+ const _config_1 = resolveClientEndpointParameters(_config_0);
345
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
346
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
347
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
348
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
349
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
350
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
351
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
352
+ this.config = _config_8;
353
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
354
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
355
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
356
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
357
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
358
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
359
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
360
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
361
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,
362
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
363
+ "aws.auth#sigv4": config.credentials
364
+ })
365
+ }));
366
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
367
+ }
368
+ destroy() {
369
+ super.destroy();
370
+ }
371
+ }
372
+
373
+ class SSOOIDCServiceException extends smithyClient.ServiceException {
374
+ constructor(options) {
375
+ super(options);
376
+ Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
377
+ }
378
+ }
379
+
380
+ class AccessDeniedException extends SSOOIDCServiceException {
381
+ name = "AccessDeniedException";
382
+ $fault = "client";
383
+ error;
384
+ reason;
385
+ error_description;
386
+ constructor(opts) {
387
+ super({
388
+ name: "AccessDeniedException",
389
+ $fault: "client",
390
+ ...opts
391
+ });
392
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
393
+ this.error = opts.error;
394
+ this.reason = opts.reason;
395
+ this.error_description = opts.error_description;
396
+ }
397
+ }
398
+
399
+ class AuthorizationPendingException extends SSOOIDCServiceException {
400
+ name = "AuthorizationPendingException";
401
+ $fault = "client";
402
+ error;
403
+ error_description;
404
+ constructor(opts) {
405
+ super({
406
+ name: "AuthorizationPendingException",
407
+ $fault: "client",
408
+ ...opts
409
+ });
410
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
411
+ this.error = opts.error;
412
+ this.error_description = opts.error_description;
413
+ }
414
+ }
415
+
416
+ class ExpiredTokenException extends SSOOIDCServiceException {
417
+ name = "ExpiredTokenException";
418
+ $fault = "client";
419
+ error;
420
+ error_description;
421
+ constructor(opts) {
422
+ super({
423
+ name: "ExpiredTokenException",
424
+ $fault: "client",
425
+ ...opts
426
+ });
427
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
428
+ this.error = opts.error;
429
+ this.error_description = opts.error_description;
430
+ }
431
+ }
432
+
433
+ class InternalServerException extends SSOOIDCServiceException {
434
+ name = "InternalServerException";
435
+ $fault = "server";
436
+ error;
437
+ error_description;
438
+ constructor(opts) {
439
+ super({
440
+ name: "InternalServerException",
441
+ $fault: "server",
442
+ ...opts
443
+ });
444
+ Object.setPrototypeOf(this, InternalServerException.prototype);
445
+ this.error = opts.error;
446
+ this.error_description = opts.error_description;
447
+ }
448
+ }
449
+
450
+ class InvalidClientException extends SSOOIDCServiceException {
451
+ name = "InvalidClientException";
452
+ $fault = "client";
453
+ error;
454
+ error_description;
455
+ constructor(opts) {
456
+ super({
457
+ name: "InvalidClientException",
458
+ $fault: "client",
459
+ ...opts
460
+ });
461
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
462
+ this.error = opts.error;
463
+ this.error_description = opts.error_description;
464
+ }
465
+ }
466
+
467
+ class InvalidGrantException extends SSOOIDCServiceException {
468
+ name = "InvalidGrantException";
469
+ $fault = "client";
470
+ error;
471
+ error_description;
472
+ constructor(opts) {
473
+ super({
474
+ name: "InvalidGrantException",
475
+ $fault: "client",
476
+ ...opts
477
+ });
478
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
479
+ this.error = opts.error;
480
+ this.error_description = opts.error_description;
481
+ }
482
+ }
483
+
484
+ class InvalidRequestException extends SSOOIDCServiceException {
485
+ name = "InvalidRequestException";
486
+ $fault = "client";
487
+ error;
488
+ reason;
489
+ error_description;
490
+ constructor(opts) {
491
+ super({
492
+ name: "InvalidRequestException",
493
+ $fault: "client",
494
+ ...opts
495
+ });
496
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
497
+ this.error = opts.error;
498
+ this.reason = opts.reason;
499
+ this.error_description = opts.error_description;
500
+ }
501
+ }
502
+
503
+ class InvalidScopeException extends SSOOIDCServiceException {
504
+ name = "InvalidScopeException";
505
+ $fault = "client";
506
+ error;
507
+ error_description;
508
+ constructor(opts) {
509
+ super({
510
+ name: "InvalidScopeException",
511
+ $fault: "client",
512
+ ...opts
513
+ });
514
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
515
+ this.error = opts.error;
516
+ this.error_description = opts.error_description;
517
+ }
518
+ }
519
+
520
+ class SlowDownException extends SSOOIDCServiceException {
521
+ name = "SlowDownException";
522
+ $fault = "client";
523
+ error;
524
+ error_description;
525
+ constructor(opts) {
526
+ super({
527
+ name: "SlowDownException",
528
+ $fault: "client",
529
+ ...opts
530
+ });
531
+ Object.setPrototypeOf(this, SlowDownException.prototype);
532
+ this.error = opts.error;
533
+ this.error_description = opts.error_description;
534
+ }
535
+ }
536
+
537
+ class UnauthorizedClientException extends SSOOIDCServiceException {
538
+ name = "UnauthorizedClientException";
539
+ $fault = "client";
540
+ error;
541
+ error_description;
542
+ constructor(opts) {
543
+ super({
544
+ name: "UnauthorizedClientException",
545
+ $fault: "client",
546
+ ...opts
547
+ });
548
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
549
+ this.error = opts.error;
550
+ this.error_description = opts.error_description;
551
+ }
552
+ }
553
+
554
+ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
555
+ name = "UnsupportedGrantTypeException";
556
+ $fault = "client";
557
+ error;
558
+ error_description;
559
+ constructor(opts) {
560
+ super({
561
+ name: "UnsupportedGrantTypeException",
562
+ $fault: "client",
563
+ ...opts
564
+ });
565
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
566
+ this.error = opts.error;
567
+ this.error_description = opts.error_description;
568
+ }
569
+ }
570
+ var _ADE = "AccessDeniedException";
571
+ var _APE = "AuthorizationPendingException";
572
+ var _AT = "AccessToken";
573
+ var _CS = "ClientSecret";
574
+ var _CT = "CreateToken";
575
+ var _CTR = "CreateTokenRequest";
576
+ var _CTRr = "CreateTokenResponse";
577
+ var _CV = "CodeVerifier";
578
+ var _ETE = "ExpiredTokenException";
579
+ var _ICE = "InvalidClientException";
580
+ var _IGE = "InvalidGrantException";
581
+ var _IRE = "InvalidRequestException";
582
+ var _ISE = "InternalServerException";
583
+ var _ISEn = "InvalidScopeException";
584
+ var _IT = "IdToken";
585
+ var _RT = "RefreshToken";
586
+ var _SDE = "SlowDownException";
587
+ var _UCE = "UnauthorizedClientException";
588
+ var _UGTE = "UnsupportedGrantTypeException";
589
+ var _aT = "accessToken";
590
+ var _c = "client";
591
+ var _cI = "clientId";
592
+ var _cS = "clientSecret";
593
+ var _cV = "codeVerifier";
594
+ var _co = "code";
595
+ var _dC = "deviceCode";
596
+ var _e = "error";
597
+ var _eI = "expiresIn";
598
+ var _ed = "error_description";
599
+ var _gT = "grantType";
600
+ var _h = "http";
601
+ var _hE = "httpError";
602
+ var _iT = "idToken";
603
+ var _r = "reason";
604
+ var _rT = "refreshToken";
605
+ var _rU = "redirectUri";
606
+ var _s = "scope";
607
+ var _se = "server";
608
+ var _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
609
+ var _tT = "tokenType";
610
+ var n0 = "com.amazonaws.ssooidc";
611
+ var AccessToken = [0, n0, _AT, 8, 0];
612
+ var ClientSecret = [0, n0, _CS, 8, 0];
613
+ var CodeVerifier = [0, n0, _CV, 8, 0];
614
+ var IdToken = [0, n0, _IT, 8, 0];
615
+ var RefreshToken = [0, n0, _RT, 8, 0];
616
+ var AccessDeniedException$ = [
617
+ -3,
618
+ n0,
619
+ _ADE,
620
+ { [_e]: _c, [_hE]: 400 },
621
+ [_e, _r, _ed],
622
+ [0, 0, 0]
623
+ ];
624
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
625
+ var AuthorizationPendingException$ = [
626
+ -3,
627
+ n0,
628
+ _APE,
629
+ { [_e]: _c, [_hE]: 400 },
630
+ [_e, _ed],
631
+ [0, 0]
632
+ ];
633
+ schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);
634
+ var CreateTokenRequest$ = [
635
+ 3,
636
+ n0,
637
+ _CTR,
638
+ 0,
639
+ [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
640
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]]
641
+ ];
642
+ var CreateTokenResponse$ = [
643
+ 3,
644
+ n0,
645
+ _CTRr,
646
+ 0,
647
+ [_aT, _tT, _eI, _rT, _iT],
648
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
649
+ ];
650
+ var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
651
+ schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
652
+ var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
653
+ schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
654
+ var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
655
+ schema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);
656
+ var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
657
+ schema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);
658
+ var InvalidRequestException$ = [
659
+ -3,
660
+ n0,
661
+ _IRE,
662
+ { [_e]: _c, [_hE]: 400 },
663
+ [_e, _r, _ed],
664
+ [0, 0, 0]
665
+ ];
666
+ schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
667
+ var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
668
+ schema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);
669
+ var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
670
+ schema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);
671
+ var UnauthorizedClientException$ = [
672
+ -3,
673
+ n0,
674
+ _UCE,
675
+ { [_e]: _c, [_hE]: 400 },
676
+ [_e, _ed],
677
+ [0, 0]
678
+ ];
679
+ schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);
680
+ var UnsupportedGrantTypeException$ = [
681
+ -3,
682
+ n0,
683
+ _UGTE,
684
+ { [_e]: _c, [_hE]: 400 },
685
+ [_e, _ed],
686
+ [0, 0]
687
+ ];
688
+ schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
689
+ var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
690
+ schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
691
+ var CreateToken$ = [
692
+ 9,
693
+ n0,
694
+ _CT,
695
+ { [_h]: ["POST", "/token", 200] },
696
+ () => CreateTokenRequest$,
697
+ () => CreateTokenResponse$
698
+ ];
699
+
700
+ class CreateTokenCommand extends smithyClient.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
701
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
702
+ }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken$).build() {
703
+ }
704
+ var commands = {
705
+ CreateTokenCommand
706
+ };
707
+
708
+ class SSOOIDC extends SSOOIDCClient {
709
+ }
710
+ smithyClient.createAggregatedClient(commands, SSOOIDC);
711
+ var AccessDeniedExceptionReason = {
712
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
713
+ };
714
+ var InvalidRequestExceptionReason = {
715
+ KMS_DISABLED_KEY: "KMS_DisabledException",
716
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
717
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
718
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
719
+ };
720
+ Object.defineProperty(exports, "$Command", {
721
+ enumerable: true,
722
+ get: function() {
723
+ return smithyClient.Command;
724
+ }
725
+ });
726
+ Object.defineProperty(exports, "__Client", {
727
+ enumerable: true,
728
+ get: function() {
729
+ return smithyClient.Client;
730
+ }
731
+ });
732
+ exports.AccessDeniedException = AccessDeniedException;
733
+ exports.AccessDeniedException$ = AccessDeniedException$;
734
+ exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
735
+ exports.AuthorizationPendingException = AuthorizationPendingException;
736
+ exports.AuthorizationPendingException$ = AuthorizationPendingException$;
737
+ exports.CreateToken$ = CreateToken$;
738
+ exports.CreateTokenCommand = CreateTokenCommand;
739
+ exports.CreateTokenRequest$ = CreateTokenRequest$;
740
+ exports.CreateTokenResponse$ = CreateTokenResponse$;
741
+ exports.ExpiredTokenException = ExpiredTokenException;
742
+ exports.ExpiredTokenException$ = ExpiredTokenException$;
743
+ exports.InternalServerException = InternalServerException;
744
+ exports.InternalServerException$ = InternalServerException$;
745
+ exports.InvalidClientException = InvalidClientException;
746
+ exports.InvalidClientException$ = InvalidClientException$;
747
+ exports.InvalidGrantException = InvalidGrantException;
748
+ exports.InvalidGrantException$ = InvalidGrantException$;
749
+ exports.InvalidRequestException = InvalidRequestException;
750
+ exports.InvalidRequestException$ = InvalidRequestException$;
751
+ exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
752
+ exports.InvalidScopeException = InvalidScopeException;
753
+ exports.InvalidScopeException$ = InvalidScopeException$;
754
+ exports.SSOOIDC = SSOOIDC;
755
+ exports.SSOOIDCClient = SSOOIDCClient;
756
+ exports.SSOOIDCServiceException = SSOOIDCServiceException;
757
+ exports.SSOOIDCServiceException$ = SSOOIDCServiceException$;
758
+ exports.SlowDownException = SlowDownException;
759
+ exports.SlowDownException$ = SlowDownException$;
760
+ exports.UnauthorizedClientException = UnauthorizedClientException;
761
+ exports.UnauthorizedClientException$ = UnauthorizedClientException$;
762
+ exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
763
+ exports.UnsupportedGrantTypeException$ = UnsupportedGrantTypeException$;
764
+ });
765
+ export default require_sso_oidc();