edge-impulse-api 1.71.60 → 1.71.61
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/build/library/sdk/api/adminApi.d.ts +81 -1
- package/build/library/sdk/api/adminApi.js +562 -0
- package/build/library/sdk/api/adminApi.js.map +1 -1
- package/build/library/sdk/api/authApi.d.ts +3 -1
- package/build/library/sdk/api/authApi.js +6 -0
- package/build/library/sdk/api/authApi.js.map +1 -1
- package/build/library/sdk/api/classifyApi.d.ts +3 -1
- package/build/library/sdk/api/classifyApi.js +14 -0
- package/build/library/sdk/api/classifyApi.js.map +1 -1
- package/build/library/sdk/api/dSPApi.d.ts +3 -1
- package/build/library/sdk/api/dSPApi.js +23 -0
- package/build/library/sdk/api/dSPApi.js.map +1 -1
- package/build/library/sdk/api/deploymentApi.d.ts +3 -1
- package/build/library/sdk/api/deploymentApi.js +15 -0
- package/build/library/sdk/api/deploymentApi.js.map +1 -1
- package/build/library/sdk/api/devicesApi.d.ts +3 -1
- package/build/library/sdk/api/devicesApi.js +17 -0
- package/build/library/sdk/api/devicesApi.js.map +1 -1
- package/build/library/sdk/api/exportApi.d.ts +3 -1
- package/build/library/sdk/api/exportApi.js +5 -0
- package/build/library/sdk/api/exportApi.js.map +1 -1
- package/build/library/sdk/api/impulseApi.d.ts +3 -1
- package/build/library/sdk/api/impulseApi.js +22 -0
- package/build/library/sdk/api/impulseApi.js.map +1 -1
- package/build/library/sdk/api/integrationsApi.d.ts +3 -1
- package/build/library/sdk/api/integrationsApi.js +6 -0
- package/build/library/sdk/api/integrationsApi.js.map +1 -1
- package/build/library/sdk/api/jobsApi.d.ts +3 -1
- package/build/library/sdk/api/jobsApi.js +48 -0
- package/build/library/sdk/api/jobsApi.js.map +1 -1
- package/build/library/sdk/api/learnApi.d.ts +3 -1
- package/build/library/sdk/api/learnApi.js +30 -0
- package/build/library/sdk/api/learnApi.js.map +1 -1
- package/build/library/sdk/api/optimizationApi.d.ts +3 -1
- package/build/library/sdk/api/optimizationApi.js +20 -0
- package/build/library/sdk/api/optimizationApi.js.map +1 -1
- package/build/library/sdk/api/organizationBlocksApi.d.ts +3 -1
- package/build/library/sdk/api/organizationBlocksApi.js +34 -0
- package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/library/sdk/api/organizationCreateProjectApi.d.ts +3 -1
- package/build/library/sdk/api/organizationCreateProjectApi.js +17 -0
- package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataApi.d.ts +3 -1
- package/build/library/sdk/api/organizationDataApi.js +43 -0
- package/build/library/sdk/api/organizationDataApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataCampaignsApi.d.ts +3 -1
- package/build/library/sdk/api/organizationDataCampaignsApi.js +16 -0
- package/build/library/sdk/api/organizationDataCampaignsApi.js.map +1 -1
- package/build/library/sdk/api/organizationJobsApi.d.ts +3 -1
- package/build/library/sdk/api/organizationJobsApi.js +12 -0
- package/build/library/sdk/api/organizationJobsApi.js.map +1 -1
- package/build/library/sdk/api/organizationPipelinesApi.d.ts +3 -1
- package/build/library/sdk/api/organizationPipelinesApi.js +12 -0
- package/build/library/sdk/api/organizationPipelinesApi.js.map +1 -1
- package/build/library/sdk/api/organizationPortalsApi.d.ts +3 -1
- package/build/library/sdk/api/organizationPortalsApi.js +11 -0
- package/build/library/sdk/api/organizationPortalsApi.js.map +1 -1
- package/build/library/sdk/api/organizationsApi.d.ts +3 -1
- package/build/library/sdk/api/organizationsApi.js +82 -0
- package/build/library/sdk/api/organizationsApi.js.map +1 -1
- package/build/library/sdk/api/performanceCalibrationApi.d.ts +3 -1
- package/build/library/sdk/api/performanceCalibrationApi.js +15 -0
- package/build/library/sdk/api/performanceCalibrationApi.js.map +1 -1
- package/build/library/sdk/api/projectsApi.d.ts +3 -1
- package/build/library/sdk/api/projectsApi.js +57 -0
- package/build/library/sdk/api/projectsApi.js.map +1 -1
- package/build/library/sdk/api/rawDataApi.d.ts +3 -1
- package/build/library/sdk/api/rawDataApi.js +61 -0
- package/build/library/sdk/api/rawDataApi.js.map +1 -1
- package/build/library/sdk/api/testApi.d.ts +3 -1
- package/build/library/sdk/api/testApi.js +5 -0
- package/build/library/sdk/api/testApi.js.map +1 -1
- package/build/library/sdk/api/themesApi.d.ts +3 -1
- package/build/library/sdk/api/themesApi.js +10 -0
- package/build/library/sdk/api/themesApi.js.map +1 -1
- package/build/library/sdk/api/thirdPartyAuthApi.d.ts +3 -1
- package/build/library/sdk/api/thirdPartyAuthApi.js +11 -0
- package/build/library/sdk/api/thirdPartyAuthApi.js.map +1 -1
- package/build/library/sdk/api/uploadPortalApi.d.ts +3 -1
- package/build/library/sdk/api/uploadPortalApi.js +11 -0
- package/build/library/sdk/api/uploadPortalApi.js.map +1 -1
- package/build/library/sdk/api/userApi.d.ts +3 -1
- package/build/library/sdk/api/userApi.js +44 -0
- package/build/library/sdk/api/userApi.js.map +1 -1
- package/build/library/sdk/api/whitelabelsApi.d.ts +3 -1
- package/build/library/sdk/api/whitelabelsApi.js +11 -0
- package/build/library/sdk/api/whitelabelsApi.js.map +1 -1
- package/build/library/sdk/model/adminCreateOauthClientRequest.d.ts +25 -0
- package/build/library/sdk/model/adminCreateOauthClientRequest.js +24 -0
- package/build/library/sdk/model/adminCreateOauthClientRequest.js.map +1 -0
- package/build/library/sdk/model/adminCreateOauthClientResponse.d.ts +44 -0
- package/build/library/sdk/model/adminCreateOauthClientResponse.js +49 -0
- package/build/library/sdk/model/adminCreateOauthClientResponse.js.map +1 -0
- package/build/library/sdk/model/adminCreateOauthClientResponseAllOf.d.ts +32 -0
- package/build/library/sdk/model/adminCreateOauthClientResponseAllOf.js +34 -0
- package/build/library/sdk/model/adminCreateOauthClientResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/adminGetOauthClientResponse.d.ts +34 -0
- package/build/library/sdk/model/adminGetOauthClientResponse.js +39 -0
- package/build/library/sdk/model/adminGetOauthClientResponse.js.map +1 -0
- package/build/library/sdk/model/adminGetOauthClientResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/adminGetOauthClientResponseAllOf.js +29 -0
- package/build/library/sdk/model/adminGetOauthClientResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/adminGetOauthClientsResponse.d.ts +38 -0
- package/build/library/sdk/model/adminGetOauthClientsResponse.js +44 -0
- package/build/library/sdk/model/adminGetOauthClientsResponse.js.map +1 -0
- package/build/library/sdk/model/adminGetOauthClientsResponseAllOf.d.ts +30 -0
- package/build/library/sdk/model/adminGetOauthClientsResponseAllOf.js +34 -0
- package/build/library/sdk/model/adminGetOauthClientsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/adminRotateOauthClientSecretResponse.d.ts +36 -0
- package/build/library/sdk/model/adminRotateOauthClientSecretResponse.js +39 -0
- package/build/library/sdk/model/adminRotateOauthClientSecretResponse.js.map +1 -0
- package/build/library/sdk/model/adminRotateOauthClientSecretResponseAllOf.d.ts +28 -0
- package/build/library/sdk/model/adminRotateOauthClientSecretResponseAllOf.js +29 -0
- package/build/library/sdk/model/adminRotateOauthClientSecretResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/adminUpdateOauthClientRequest.d.ts +25 -0
- package/build/library/sdk/model/adminUpdateOauthClientRequest.js +24 -0
- package/build/library/sdk/model/adminUpdateOauthClientRequest.js.map +1 -0
- package/build/library/sdk/model/feature.d.ts +1 -1
- package/build/library/sdk/model/feature.js +1 -1
- package/build/library/sdk/model/feature.js.map +1 -1
- package/build/library/sdk/model/models.d.ts +13 -0
- package/build/library/sdk/model/models.js +38 -0
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/oauthClient.d.ts +68 -0
- package/build/library/sdk/model/oauthClient.js +77 -0
- package/build/library/sdk/model/oauthClient.js.map +1 -0
- package/build/library/sdk/model/oauthClientProperties.d.ts +45 -0
- package/build/library/sdk/model/oauthClientProperties.js +49 -0
- package/build/library/sdk/model/oauthClientProperties.js.map +1 -0
- package/build/library/sdk/model/oauthGrantType.d.ts +16 -0
- package/build/library/sdk/model/oauthGrantType.js +16 -0
- package/build/library/sdk/model/oauthGrantType.js.map +1 -0
- package/build/library/sdk/model/permission.d.ts +1 -1
- package/build/library/sdk/model/permission.js +1 -1
- package/build/library/sdk/model/permission.js.map +1 -1
- package/package.json +1 -1
|
@@ -38,6 +38,7 @@ class AdminApi {
|
|
|
38
38
|
this.authentications = {
|
|
39
39
|
'default': new models_1.VoidAuth(),
|
|
40
40
|
'ApiKeyAuthentication': new models_2.ApiKeyAuth('header', 'x-api-key'),
|
|
41
|
+
'OAuth2': new models_2.OAuth(),
|
|
41
42
|
'JWTAuthentication': new models_2.ApiKeyAuth('cookie', 'jwt'),
|
|
42
43
|
'JWTHttpHeaderAuthentication': new models_2.ApiKeyAuth('header', 'x-jwt-token'),
|
|
43
44
|
};
|
|
@@ -74,6 +75,9 @@ class AdminApi {
|
|
|
74
75
|
setApiKey(key, value) {
|
|
75
76
|
this.authentications[AdminApiApiKeys[key]].apiKey = value;
|
|
76
77
|
}
|
|
78
|
+
set accessToken(token) {
|
|
79
|
+
this.authentications.OAuth2.accessToken = token;
|
|
80
|
+
}
|
|
77
81
|
/**
|
|
78
82
|
* Admin-only API to add an email domain to the list of disallowed email domains.
|
|
79
83
|
* @summary Add a disallowed email domain
|
|
@@ -115,6 +119,7 @@ class AdminApi {
|
|
|
115
119
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
116
120
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
117
121
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
122
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
118
123
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
119
124
|
return authenticationPromise.then(() => {
|
|
120
125
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -195,6 +200,7 @@ class AdminApi {
|
|
|
195
200
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
196
201
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
197
202
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
203
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
198
204
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
199
205
|
return authenticationPromise.then(() => {
|
|
200
206
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -275,6 +281,7 @@ class AdminApi {
|
|
|
275
281
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
276
282
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
277
283
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
284
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
278
285
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
279
286
|
return authenticationPromise.then(() => {
|
|
280
287
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -355,6 +362,7 @@ class AdminApi {
|
|
|
355
362
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
356
363
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
357
364
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
365
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
358
366
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
359
367
|
return authenticationPromise.then(() => {
|
|
360
368
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -429,6 +437,7 @@ class AdminApi {
|
|
|
429
437
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
430
438
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
431
439
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
440
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
432
441
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
433
442
|
return authenticationPromise.then(() => {
|
|
434
443
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -513,6 +522,7 @@ class AdminApi {
|
|
|
513
522
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
514
523
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
515
524
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
525
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
516
526
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
517
527
|
return authenticationPromise.then(() => {
|
|
518
528
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -546,6 +556,81 @@ class AdminApi {
|
|
|
546
556
|
});
|
|
547
557
|
});
|
|
548
558
|
}
|
|
559
|
+
/**
|
|
560
|
+
* Create a new OAuth client in the system. This endpoint generates a unique client ID and secret that will be used for OAuth authentication. The client can be configured with specific redirect URIs, allowed grant types, and scopes. By default, the authorization_code grant type is enabled. Requires admin:oauth:write permission.
|
|
561
|
+
* @summary Register a new OAuth client
|
|
562
|
+
* @param adminCreateOauthClientRequest
|
|
563
|
+
*/
|
|
564
|
+
async adminCreateOauthClient(adminCreateOauthClientRequest, options = { headers: {} }) {
|
|
565
|
+
const localVarPath = this.basePath + '/api/admin/oauth/clients';
|
|
566
|
+
let localVarQueryParameters = {};
|
|
567
|
+
let localVarHeaderParams = Object.assign({
|
|
568
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
569
|
+
}, this.defaultHeaders);
|
|
570
|
+
const produces = ['application/json'];
|
|
571
|
+
// give precedence to 'application/json'
|
|
572
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
573
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
574
|
+
}
|
|
575
|
+
else {
|
|
576
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
577
|
+
}
|
|
578
|
+
let localVarFormParams = {};
|
|
579
|
+
// verify required parameter 'adminCreateOauthClientRequest' is not null or undefined
|
|
580
|
+
if (adminCreateOauthClientRequest === null || adminCreateOauthClientRequest === undefined) {
|
|
581
|
+
throw new Error('Required parameter adminCreateOauthClientRequest was null or undefined when calling adminCreateOauthClient.');
|
|
582
|
+
}
|
|
583
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
584
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
585
|
+
let localVarUseFormData = false;
|
|
586
|
+
let localVarRequestOptions = {
|
|
587
|
+
method: 'POST',
|
|
588
|
+
qs: localVarQueryParameters,
|
|
589
|
+
headers: localVarHeaderParams,
|
|
590
|
+
uri: localVarPath,
|
|
591
|
+
useQuerystring: this._useQuerystring,
|
|
592
|
+
agentOptions: { keepAlive: false },
|
|
593
|
+
json: true,
|
|
594
|
+
body: models_1.ObjectSerializer.serialize(adminCreateOauthClientRequest, "AdminCreateOauthClientRequest")
|
|
595
|
+
};
|
|
596
|
+
let authenticationPromise = Promise.resolve();
|
|
597
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
598
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
599
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
600
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
601
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
602
|
+
return authenticationPromise.then(() => {
|
|
603
|
+
if (Object.keys(localVarFormParams).length) {
|
|
604
|
+
if (localVarUseFormData) {
|
|
605
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
608
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
return new Promise((resolve, reject) => {
|
|
612
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
613
|
+
if (error) {
|
|
614
|
+
reject(error);
|
|
615
|
+
}
|
|
616
|
+
else {
|
|
617
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminCreateOauthClientResponse");
|
|
618
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
619
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
620
|
+
reject(new Error(body.error || errString));
|
|
621
|
+
}
|
|
622
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
623
|
+
resolve(body);
|
|
624
|
+
}
|
|
625
|
+
else {
|
|
626
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
627
|
+
reject(errString);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
});
|
|
632
|
+
});
|
|
633
|
+
}
|
|
549
634
|
/**
|
|
550
635
|
* Admin-only API to create a new organization.
|
|
551
636
|
* @summary Create a new organization
|
|
@@ -587,6 +672,7 @@ class AdminApi {
|
|
|
587
672
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
588
673
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
589
674
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
675
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
590
676
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
591
677
|
return authenticationPromise.then(() => {
|
|
592
678
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -667,6 +753,7 @@ class AdminApi {
|
|
|
667
753
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
668
754
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
669
755
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
756
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
670
757
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
671
758
|
return authenticationPromise.then(() => {
|
|
672
759
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -747,6 +834,7 @@ class AdminApi {
|
|
|
747
834
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
748
835
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
749
836
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
837
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
750
838
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
751
839
|
return authenticationPromise.then(() => {
|
|
752
840
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -837,6 +925,7 @@ class AdminApi {
|
|
|
837
925
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
838
926
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
839
927
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
928
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
840
929
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
841
930
|
return authenticationPromise.then(() => {
|
|
842
931
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -911,6 +1000,7 @@ class AdminApi {
|
|
|
911
1000
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
912
1001
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
913
1002
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1003
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
914
1004
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
915
1005
|
return authenticationPromise.then(() => {
|
|
916
1006
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -985,6 +1075,7 @@ class AdminApi {
|
|
|
985
1075
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
986
1076
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
987
1077
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1078
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
988
1079
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
989
1080
|
return authenticationPromise.then(() => {
|
|
990
1081
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1059,6 +1150,7 @@ class AdminApi {
|
|
|
1059
1150
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1060
1151
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1061
1152
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1153
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1062
1154
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1063
1155
|
return authenticationPromise.then(() => {
|
|
1064
1156
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1133,6 +1225,82 @@ class AdminApi {
|
|
|
1133
1225
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1134
1226
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1135
1227
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1228
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1229
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1230
|
+
return authenticationPromise.then(() => {
|
|
1231
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1232
|
+
if (localVarUseFormData) {
|
|
1233
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1234
|
+
}
|
|
1235
|
+
else {
|
|
1236
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
return new Promise((resolve, reject) => {
|
|
1240
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1241
|
+
if (error) {
|
|
1242
|
+
reject(error);
|
|
1243
|
+
}
|
|
1244
|
+
else {
|
|
1245
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1246
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
1247
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1248
|
+
reject(new Error(body.error || errString));
|
|
1249
|
+
}
|
|
1250
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1251
|
+
resolve(body);
|
|
1252
|
+
}
|
|
1253
|
+
else {
|
|
1254
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1255
|
+
reject(errString);
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
});
|
|
1259
|
+
});
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* Deactivate an existing OAuth client. This operation performs a soft delete, marking the client as inactive while preserving its historical data. The client\'s credentials will no longer be valid for new OAuth flows. Requires admin:oauth:write permission.
|
|
1264
|
+
* @summary Deactivate OAuth client
|
|
1265
|
+
* @param clientId Client ID
|
|
1266
|
+
*/
|
|
1267
|
+
async adminDeleteOauthClient(clientId, options = { headers: {} }) {
|
|
1268
|
+
const localVarPath = this.basePath + '/api/admin/oauth/clients/{clientId}'
|
|
1269
|
+
.replace('{' + 'clientId' + '}', encodeURIComponent(String(clientId)));
|
|
1270
|
+
let localVarQueryParameters = {};
|
|
1271
|
+
let localVarHeaderParams = Object.assign({
|
|
1272
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1273
|
+
}, this.defaultHeaders);
|
|
1274
|
+
const produces = ['application/json'];
|
|
1275
|
+
// give precedence to 'application/json'
|
|
1276
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1277
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1278
|
+
}
|
|
1279
|
+
else {
|
|
1280
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1281
|
+
}
|
|
1282
|
+
let localVarFormParams = {};
|
|
1283
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
1284
|
+
if (clientId === null || clientId === undefined) {
|
|
1285
|
+
throw new Error('Required parameter clientId was null or undefined when calling adminDeleteOauthClient.');
|
|
1286
|
+
}
|
|
1287
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1288
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1289
|
+
let localVarUseFormData = false;
|
|
1290
|
+
let localVarRequestOptions = {
|
|
1291
|
+
method: 'DELETE',
|
|
1292
|
+
qs: localVarQueryParameters,
|
|
1293
|
+
headers: localVarHeaderParams,
|
|
1294
|
+
uri: localVarPath,
|
|
1295
|
+
useQuerystring: this._useQuerystring,
|
|
1296
|
+
agentOptions: { keepAlive: false },
|
|
1297
|
+
json: true,
|
|
1298
|
+
};
|
|
1299
|
+
let authenticationPromise = Promise.resolve();
|
|
1300
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1301
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1302
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1303
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1136
1304
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1137
1305
|
return authenticationPromise.then(() => {
|
|
1138
1306
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1211,6 +1379,7 @@ class AdminApi {
|
|
|
1211
1379
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1212
1380
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1213
1381
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1382
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1214
1383
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1215
1384
|
return authenticationPromise.then(() => {
|
|
1216
1385
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1291,6 +1460,7 @@ class AdminApi {
|
|
|
1291
1460
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1292
1461
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1293
1462
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1463
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1294
1464
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1295
1465
|
return authenticationPromise.then(() => {
|
|
1296
1466
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1371,6 +1541,7 @@ class AdminApi {
|
|
|
1371
1541
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1372
1542
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1373
1543
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1544
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1374
1545
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1375
1546
|
return authenticationPromise.then(() => {
|
|
1376
1547
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1449,6 +1620,7 @@ class AdminApi {
|
|
|
1449
1620
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1450
1621
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1451
1622
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1623
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1452
1624
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1453
1625
|
return authenticationPromise.then(() => {
|
|
1454
1626
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1523,6 +1695,7 @@ class AdminApi {
|
|
|
1523
1695
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1524
1696
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1525
1697
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1698
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1526
1699
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1527
1700
|
return authenticationPromise.then(() => {
|
|
1528
1701
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1597,6 +1770,7 @@ class AdminApi {
|
|
|
1597
1770
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1598
1771
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1599
1772
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1773
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1600
1774
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1601
1775
|
return authenticationPromise.then(() => {
|
|
1602
1776
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1671,6 +1845,7 @@ class AdminApi {
|
|
|
1671
1845
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1672
1846
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1673
1847
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1848
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1674
1849
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1675
1850
|
return authenticationPromise.then(() => {
|
|
1676
1851
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1753,6 +1928,7 @@ class AdminApi {
|
|
|
1753
1928
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1754
1929
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1755
1930
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1931
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1756
1932
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1757
1933
|
return authenticationPromise.then(() => {
|
|
1758
1934
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1827,6 +2003,7 @@ class AdminApi {
|
|
|
1827
2003
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1828
2004
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1829
2005
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2006
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1830
2007
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1831
2008
|
return authenticationPromise.then(() => {
|
|
1832
2009
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1893,6 +2070,7 @@ class AdminApi {
|
|
|
1893
2070
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1894
2071
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1895
2072
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2073
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1896
2074
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1897
2075
|
return authenticationPromise.then(() => {
|
|
1898
2076
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1964,6 +2142,7 @@ class AdminApi {
|
|
|
1964
2142
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1965
2143
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1966
2144
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2145
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
1967
2146
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1968
2147
|
return authenticationPromise.then(() => {
|
|
1969
2148
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2031,6 +2210,7 @@ class AdminApi {
|
|
|
2031
2210
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2032
2211
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2033
2212
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2213
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2034
2214
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2035
2215
|
return authenticationPromise.then(() => {
|
|
2036
2216
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2105,6 +2285,7 @@ class AdminApi {
|
|
|
2105
2285
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2106
2286
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2107
2287
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2288
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2108
2289
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2109
2290
|
return authenticationPromise.then(() => {
|
|
2110
2291
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2181,6 +2362,7 @@ class AdminApi {
|
|
|
2181
2362
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2182
2363
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2183
2364
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2365
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2184
2366
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2185
2367
|
return authenticationPromise.then(() => {
|
|
2186
2368
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2249,6 +2431,7 @@ class AdminApi {
|
|
|
2249
2431
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2250
2432
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2251
2433
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2434
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2252
2435
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2253
2436
|
return authenticationPromise.then(() => {
|
|
2254
2437
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2317,6 +2500,7 @@ class AdminApi {
|
|
|
2317
2500
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2318
2501
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2319
2502
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2503
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2320
2504
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2321
2505
|
return authenticationPromise.then(() => {
|
|
2322
2506
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2391,6 +2575,7 @@ class AdminApi {
|
|
|
2391
2575
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2392
2576
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2393
2577
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2578
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2394
2579
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2395
2580
|
return authenticationPromise.then(() => {
|
|
2396
2581
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2459,6 +2644,7 @@ class AdminApi {
|
|
|
2459
2644
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2460
2645
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2461
2646
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2647
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2462
2648
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2463
2649
|
return authenticationPromise.then(() => {
|
|
2464
2650
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2527,6 +2713,7 @@ class AdminApi {
|
|
|
2527
2713
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2528
2714
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2529
2715
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2716
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2530
2717
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2531
2718
|
return authenticationPromise.then(() => {
|
|
2532
2719
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2601,6 +2788,7 @@ class AdminApi {
|
|
|
2601
2788
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2602
2789
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2603
2790
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2791
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2604
2792
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2605
2793
|
return authenticationPromise.then(() => {
|
|
2606
2794
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2669,6 +2857,7 @@ class AdminApi {
|
|
|
2669
2857
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2670
2858
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2671
2859
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2860
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2672
2861
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2673
2862
|
return authenticationPromise.then(() => {
|
|
2674
2863
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2755,6 +2944,7 @@ class AdminApi {
|
|
|
2755
2944
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2756
2945
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2757
2946
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2947
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2758
2948
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2759
2949
|
return authenticationPromise.then(() => {
|
|
2760
2950
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2853,6 +3043,7 @@ class AdminApi {
|
|
|
2853
3043
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2854
3044
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2855
3045
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3046
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2856
3047
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2857
3048
|
return authenticationPromise.then(() => {
|
|
2858
3049
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -2935,6 +3126,7 @@ class AdminApi {
|
|
|
2935
3126
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2936
3127
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2937
3128
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3129
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
2938
3130
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2939
3131
|
return authenticationPromise.then(() => {
|
|
2940
3132
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3003,6 +3195,7 @@ class AdminApi {
|
|
|
3003
3195
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3004
3196
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3005
3197
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3198
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3006
3199
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3007
3200
|
return authenticationPromise.then(() => {
|
|
3008
3201
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3077,6 +3270,7 @@ class AdminApi {
|
|
|
3077
3270
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3078
3271
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3079
3272
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3273
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3080
3274
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3081
3275
|
return authenticationPromise.then(() => {
|
|
3082
3276
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3153,6 +3347,7 @@ class AdminApi {
|
|
|
3153
3347
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3154
3348
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3155
3349
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3350
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3156
3351
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3157
3352
|
return authenticationPromise.then(() => {
|
|
3158
3353
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3186,6 +3381,170 @@ class AdminApi {
|
|
|
3186
3381
|
});
|
|
3187
3382
|
});
|
|
3188
3383
|
}
|
|
3384
|
+
/**
|
|
3385
|
+
* Retrieve detailed information about a specific OAuth client, including its configuration, allowed grant types, redirect URIs, and creation metadata. The response includes the creator\'s information (name and email) who registered the client. Requires admin:oauth:read permission.
|
|
3386
|
+
* @summary Get OAuth client details
|
|
3387
|
+
* @param clientId Client ID
|
|
3388
|
+
*/
|
|
3389
|
+
async adminGetOauthClient(clientId, options = { headers: {} }) {
|
|
3390
|
+
const localVarPath = this.basePath + '/api/admin/oauth/clients/{clientId}'
|
|
3391
|
+
.replace('{' + 'clientId' + '}', encodeURIComponent(String(clientId)));
|
|
3392
|
+
let localVarQueryParameters = {};
|
|
3393
|
+
let localVarHeaderParams = Object.assign({
|
|
3394
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3395
|
+
}, this.defaultHeaders);
|
|
3396
|
+
const produces = ['application/json'];
|
|
3397
|
+
// give precedence to 'application/json'
|
|
3398
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3399
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3400
|
+
}
|
|
3401
|
+
else {
|
|
3402
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3403
|
+
}
|
|
3404
|
+
let localVarFormParams = {};
|
|
3405
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
3406
|
+
if (clientId === null || clientId === undefined) {
|
|
3407
|
+
throw new Error('Required parameter clientId was null or undefined when calling adminGetOauthClient.');
|
|
3408
|
+
}
|
|
3409
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3410
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3411
|
+
let localVarUseFormData = false;
|
|
3412
|
+
let localVarRequestOptions = {
|
|
3413
|
+
method: 'GET',
|
|
3414
|
+
qs: localVarQueryParameters,
|
|
3415
|
+
headers: localVarHeaderParams,
|
|
3416
|
+
uri: localVarPath,
|
|
3417
|
+
useQuerystring: this._useQuerystring,
|
|
3418
|
+
agentOptions: { keepAlive: false },
|
|
3419
|
+
json: true,
|
|
3420
|
+
};
|
|
3421
|
+
let authenticationPromise = Promise.resolve();
|
|
3422
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3423
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3424
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3425
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3426
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3427
|
+
return authenticationPromise.then(() => {
|
|
3428
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3429
|
+
if (localVarUseFormData) {
|
|
3430
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3431
|
+
}
|
|
3432
|
+
else {
|
|
3433
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
3436
|
+
return new Promise((resolve, reject) => {
|
|
3437
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3438
|
+
if (error) {
|
|
3439
|
+
reject(error);
|
|
3440
|
+
}
|
|
3441
|
+
else {
|
|
3442
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOauthClientResponse");
|
|
3443
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3444
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3445
|
+
reject(new Error(body.error || errString));
|
|
3446
|
+
}
|
|
3447
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3448
|
+
resolve(body);
|
|
3449
|
+
}
|
|
3450
|
+
else {
|
|
3451
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3452
|
+
reject(errString);
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
});
|
|
3456
|
+
});
|
|
3457
|
+
});
|
|
3458
|
+
}
|
|
3459
|
+
/**
|
|
3460
|
+
* Retrieve a paginated list of all registered OAuth clients in the system. The response includes client metadata such as name, redirect URIs, allowed grant types, and creation information. Results can be filtered, sorted, and searched using query parameters. Requires admin:oauth:read permission.
|
|
3461
|
+
* @summary List OAuth clients
|
|
3462
|
+
* @param sort Fields and order to sort query by
|
|
3463
|
+
* @param filters
|
|
3464
|
+
* @param limit Maximum number of results
|
|
3465
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
3466
|
+
* @param search Search query
|
|
3467
|
+
*/
|
|
3468
|
+
async adminGetOauthClients(queryParams, options = { headers: {} }) {
|
|
3469
|
+
const localVarPath = this.basePath + '/api/admin/oauth/clients';
|
|
3470
|
+
let localVarQueryParameters = {};
|
|
3471
|
+
let localVarHeaderParams = Object.assign({
|
|
3472
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3473
|
+
}, this.defaultHeaders);
|
|
3474
|
+
const produces = ['application/json'];
|
|
3475
|
+
// give precedence to 'application/json'
|
|
3476
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3477
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3478
|
+
}
|
|
3479
|
+
else {
|
|
3480
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3481
|
+
}
|
|
3482
|
+
let localVarFormParams = {};
|
|
3483
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.sort) !== undefined) {
|
|
3484
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
3485
|
+
}
|
|
3486
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.filters) !== undefined) {
|
|
3487
|
+
localVarQueryParameters['filters'] = models_1.ObjectSerializer.serialize(queryParams.filters, "string");
|
|
3488
|
+
}
|
|
3489
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== undefined) {
|
|
3490
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
3491
|
+
}
|
|
3492
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.offset) !== undefined) {
|
|
3493
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
3494
|
+
}
|
|
3495
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
3496
|
+
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
3497
|
+
}
|
|
3498
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3499
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3500
|
+
let localVarUseFormData = false;
|
|
3501
|
+
let localVarRequestOptions = {
|
|
3502
|
+
method: 'GET',
|
|
3503
|
+
qs: localVarQueryParameters,
|
|
3504
|
+
headers: localVarHeaderParams,
|
|
3505
|
+
uri: localVarPath,
|
|
3506
|
+
useQuerystring: this._useQuerystring,
|
|
3507
|
+
agentOptions: { keepAlive: false },
|
|
3508
|
+
json: true,
|
|
3509
|
+
};
|
|
3510
|
+
let authenticationPromise = Promise.resolve();
|
|
3511
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3512
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3513
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3514
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3515
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3516
|
+
return authenticationPromise.then(() => {
|
|
3517
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3518
|
+
if (localVarUseFormData) {
|
|
3519
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3520
|
+
}
|
|
3521
|
+
else {
|
|
3522
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3523
|
+
}
|
|
3524
|
+
}
|
|
3525
|
+
return new Promise((resolve, reject) => {
|
|
3526
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3527
|
+
if (error) {
|
|
3528
|
+
reject(error);
|
|
3529
|
+
}
|
|
3530
|
+
else {
|
|
3531
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOauthClientsResponse");
|
|
3532
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3533
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3534
|
+
reject(new Error(body.error || errString));
|
|
3535
|
+
}
|
|
3536
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3537
|
+
resolve(body);
|
|
3538
|
+
}
|
|
3539
|
+
else {
|
|
3540
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3541
|
+
reject(errString);
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
});
|
|
3545
|
+
});
|
|
3546
|
+
});
|
|
3547
|
+
}
|
|
3189
3548
|
/**
|
|
3190
3549
|
* Admin-only API to get compute time usage for an organization over a period of time.
|
|
3191
3550
|
* @summary Get organization compute time usage
|
|
@@ -3243,6 +3602,7 @@ class AdminApi {
|
|
|
3243
3602
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3244
3603
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3245
3604
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3605
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3246
3606
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3247
3607
|
return authenticationPromise.then(() => {
|
|
3248
3608
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3323,6 +3683,7 @@ class AdminApi {
|
|
|
3323
3683
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3324
3684
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3325
3685
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3686
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3326
3687
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3327
3688
|
return authenticationPromise.then(() => {
|
|
3328
3689
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3405,6 +3766,7 @@ class AdminApi {
|
|
|
3405
3766
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3406
3767
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3407
3768
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3769
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3408
3770
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3409
3771
|
return authenticationPromise.then(() => {
|
|
3410
3772
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3483,6 +3845,7 @@ class AdminApi {
|
|
|
3483
3845
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3484
3846
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3485
3847
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3848
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3486
3849
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3487
3850
|
return authenticationPromise.then(() => {
|
|
3488
3851
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3565,6 +3928,7 @@ class AdminApi {
|
|
|
3565
3928
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3566
3929
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3567
3930
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3931
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3568
3932
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3569
3933
|
return authenticationPromise.then(() => {
|
|
3570
3934
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3645,6 +4009,7 @@ class AdminApi {
|
|
|
3645
4009
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3646
4010
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3647
4011
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4012
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3648
4013
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3649
4014
|
return authenticationPromise.then(() => {
|
|
3650
4015
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3727,6 +4092,7 @@ class AdminApi {
|
|
|
3727
4092
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3728
4093
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3729
4094
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4095
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3730
4096
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3731
4097
|
return authenticationPromise.then(() => {
|
|
3732
4098
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3823,6 +4189,7 @@ class AdminApi {
|
|
|
3823
4189
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3824
4190
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3825
4191
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4192
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3826
4193
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3827
4194
|
return authenticationPromise.then(() => {
|
|
3828
4195
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3897,6 +4264,7 @@ class AdminApi {
|
|
|
3897
4264
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3898
4265
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3899
4266
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4267
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3900
4268
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3901
4269
|
return authenticationPromise.then(() => {
|
|
3902
4270
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -3979,6 +4347,7 @@ class AdminApi {
|
|
|
3979
4347
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3980
4348
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3981
4349
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4350
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
3982
4351
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3983
4352
|
return authenticationPromise.then(() => {
|
|
3984
4353
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4061,6 +4430,7 @@ class AdminApi {
|
|
|
4061
4430
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4062
4431
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4063
4432
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4433
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4064
4434
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4065
4435
|
return authenticationPromise.then(() => {
|
|
4066
4436
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4153,6 +4523,7 @@ class AdminApi {
|
|
|
4153
4523
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4154
4524
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4155
4525
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4526
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4156
4527
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4157
4528
|
return authenticationPromise.then(() => {
|
|
4158
4529
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4221,6 +4592,7 @@ class AdminApi {
|
|
|
4221
4592
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4222
4593
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4223
4594
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4595
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4224
4596
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4225
4597
|
return authenticationPromise.then(() => {
|
|
4226
4598
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4289,6 +4661,7 @@ class AdminApi {
|
|
|
4289
4661
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4290
4662
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4291
4663
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4664
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4292
4665
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4293
4666
|
return authenticationPromise.then(() => {
|
|
4294
4667
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4363,6 +4736,7 @@ class AdminApi {
|
|
|
4363
4736
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4364
4737
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4365
4738
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4739
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4366
4740
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4367
4741
|
return authenticationPromise.then(() => {
|
|
4368
4742
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4451,6 +4825,7 @@ class AdminApi {
|
|
|
4451
4825
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4452
4826
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4453
4827
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4828
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4454
4829
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4455
4830
|
return authenticationPromise.then(() => {
|
|
4456
4831
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4543,6 +4918,7 @@ class AdminApi {
|
|
|
4543
4918
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4544
4919
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4545
4920
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4921
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4546
4922
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4547
4923
|
return authenticationPromise.then(() => {
|
|
4548
4924
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4617,6 +4993,7 @@ class AdminApi {
|
|
|
4617
4993
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4618
4994
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4619
4995
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4996
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4620
4997
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4621
4998
|
return authenticationPromise.then(() => {
|
|
4622
4999
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4691,6 +5068,7 @@ class AdminApi {
|
|
|
4691
5068
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4692
5069
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4693
5070
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5071
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4694
5072
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4695
5073
|
return authenticationPromise.then(() => {
|
|
4696
5074
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4773,6 +5151,7 @@ class AdminApi {
|
|
|
4773
5151
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4774
5152
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4775
5153
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5154
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4776
5155
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4777
5156
|
return authenticationPromise.then(() => {
|
|
4778
5157
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4847,6 +5226,7 @@ class AdminApi {
|
|
|
4847
5226
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4848
5227
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4849
5228
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5229
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4850
5230
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4851
5231
|
return authenticationPromise.then(() => {
|
|
4852
5232
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -4947,6 +5327,7 @@ class AdminApi {
|
|
|
4947
5327
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4948
5328
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4949
5329
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5330
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4950
5331
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4951
5332
|
return authenticationPromise.then(() => {
|
|
4952
5333
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5033,6 +5414,7 @@ class AdminApi {
|
|
|
5033
5414
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5034
5415
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5035
5416
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5417
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5036
5418
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5037
5419
|
return authenticationPromise.then(() => {
|
|
5038
5420
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5107,6 +5489,7 @@ class AdminApi {
|
|
|
5107
5489
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5108
5490
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5109
5491
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5492
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5110
5493
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5111
5494
|
return authenticationPromise.then(() => {
|
|
5112
5495
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5197,6 +5580,7 @@ class AdminApi {
|
|
|
5197
5580
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5198
5581
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5199
5582
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5583
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5200
5584
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5201
5585
|
return authenticationPromise.then(() => {
|
|
5202
5586
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5271,6 +5655,7 @@ class AdminApi {
|
|
|
5271
5655
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5272
5656
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5273
5657
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5658
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5274
5659
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5275
5660
|
return authenticationPromise.then(() => {
|
|
5276
5661
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5361,6 +5746,7 @@ class AdminApi {
|
|
|
5361
5746
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5362
5747
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5363
5748
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5749
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5364
5750
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5365
5751
|
return authenticationPromise.then(() => {
|
|
5366
5752
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5435,6 +5821,7 @@ class AdminApi {
|
|
|
5435
5821
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5436
5822
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5437
5823
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5824
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5438
5825
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5439
5826
|
return authenticationPromise.then(() => {
|
|
5440
5827
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5525,6 +5912,7 @@ class AdminApi {
|
|
|
5525
5912
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5526
5913
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5527
5914
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5915
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5528
5916
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5529
5917
|
return authenticationPromise.then(() => {
|
|
5530
5918
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5599,6 +5987,7 @@ class AdminApi {
|
|
|
5599
5987
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5600
5988
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5601
5989
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5990
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5602
5991
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5603
5992
|
return authenticationPromise.then(() => {
|
|
5604
5993
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5673,6 +6062,7 @@ class AdminApi {
|
|
|
5673
6062
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5674
6063
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5675
6064
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6065
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5676
6066
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5677
6067
|
return authenticationPromise.then(() => {
|
|
5678
6068
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5747,6 +6137,7 @@ class AdminApi {
|
|
|
5747
6137
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5748
6138
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5749
6139
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6140
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5750
6141
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5751
6142
|
return authenticationPromise.then(() => {
|
|
5752
6143
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5827,6 +6218,7 @@ class AdminApi {
|
|
|
5827
6218
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5828
6219
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5829
6220
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6221
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5830
6222
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5831
6223
|
return authenticationPromise.then(() => {
|
|
5832
6224
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5907,6 +6299,7 @@ class AdminApi {
|
|
|
5907
6299
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5908
6300
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5909
6301
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6302
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5910
6303
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5911
6304
|
return authenticationPromise.then(() => {
|
|
5912
6305
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -5981,6 +6374,7 @@ class AdminApi {
|
|
|
5981
6374
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5982
6375
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5983
6376
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6377
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5984
6378
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5985
6379
|
return authenticationPromise.then(() => {
|
|
5986
6380
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6055,6 +6449,7 @@ class AdminApi {
|
|
|
6055
6449
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6056
6450
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6057
6451
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6452
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6058
6453
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6059
6454
|
return authenticationPromise.then(() => {
|
|
6060
6455
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6129,6 +6524,7 @@ class AdminApi {
|
|
|
6129
6524
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6130
6525
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6131
6526
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6527
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6132
6528
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6133
6529
|
return authenticationPromise.then(() => {
|
|
6134
6530
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6203,6 +6599,7 @@ class AdminApi {
|
|
|
6203
6599
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6204
6600
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6205
6601
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6602
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6206
6603
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6207
6604
|
return authenticationPromise.then(() => {
|
|
6208
6605
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6236,6 +6633,81 @@ class AdminApi {
|
|
|
6236
6633
|
});
|
|
6237
6634
|
});
|
|
6238
6635
|
}
|
|
6636
|
+
/**
|
|
6637
|
+
* Rotate the client secret for an existing OAuth client. This operation invalidates the previous secret and generates a new one, which must be used for future OAuth authentication flows. Requires admin:oauth:write permission.
|
|
6638
|
+
* @summary Rotate OAuth client secret
|
|
6639
|
+
* @param clientId Client ID
|
|
6640
|
+
*/
|
|
6641
|
+
async adminRotateOauthClientSecret(clientId, options = { headers: {} }) {
|
|
6642
|
+
const localVarPath = this.basePath + '/api/admin/oauth/clients/{clientId}/secret'
|
|
6643
|
+
.replace('{' + 'clientId' + '}', encodeURIComponent(String(clientId)));
|
|
6644
|
+
let localVarQueryParameters = {};
|
|
6645
|
+
let localVarHeaderParams = Object.assign({
|
|
6646
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
6647
|
+
}, this.defaultHeaders);
|
|
6648
|
+
const produces = ['application/json'];
|
|
6649
|
+
// give precedence to 'application/json'
|
|
6650
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
6651
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
6652
|
+
}
|
|
6653
|
+
else {
|
|
6654
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
6655
|
+
}
|
|
6656
|
+
let localVarFormParams = {};
|
|
6657
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
6658
|
+
if (clientId === null || clientId === undefined) {
|
|
6659
|
+
throw new Error('Required parameter clientId was null or undefined when calling adminRotateOauthClientSecret.');
|
|
6660
|
+
}
|
|
6661
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
6662
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
6663
|
+
let localVarUseFormData = false;
|
|
6664
|
+
let localVarRequestOptions = {
|
|
6665
|
+
method: 'POST',
|
|
6666
|
+
qs: localVarQueryParameters,
|
|
6667
|
+
headers: localVarHeaderParams,
|
|
6668
|
+
uri: localVarPath,
|
|
6669
|
+
useQuerystring: this._useQuerystring,
|
|
6670
|
+
agentOptions: { keepAlive: false },
|
|
6671
|
+
json: true,
|
|
6672
|
+
};
|
|
6673
|
+
let authenticationPromise = Promise.resolve();
|
|
6674
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6675
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6676
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6677
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6678
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6679
|
+
return authenticationPromise.then(() => {
|
|
6680
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6681
|
+
if (localVarUseFormData) {
|
|
6682
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
6683
|
+
}
|
|
6684
|
+
else {
|
|
6685
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6686
|
+
}
|
|
6687
|
+
}
|
|
6688
|
+
return new Promise((resolve, reject) => {
|
|
6689
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6690
|
+
if (error) {
|
|
6691
|
+
reject(error);
|
|
6692
|
+
}
|
|
6693
|
+
else {
|
|
6694
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminRotateOauthClientSecretResponse");
|
|
6695
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
6696
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
6697
|
+
reject(new Error(body.error || errString));
|
|
6698
|
+
}
|
|
6699
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6700
|
+
resolve(body);
|
|
6701
|
+
}
|
|
6702
|
+
else {
|
|
6703
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
6704
|
+
reject(errString);
|
|
6705
|
+
}
|
|
6706
|
+
}
|
|
6707
|
+
});
|
|
6708
|
+
});
|
|
6709
|
+
});
|
|
6710
|
+
}
|
|
6239
6711
|
/**
|
|
6240
6712
|
* Admin-only API to update a studio config item.
|
|
6241
6713
|
* @summary Update studio config
|
|
@@ -6283,6 +6755,7 @@ class AdminApi {
|
|
|
6283
6755
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6284
6756
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6285
6757
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6758
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6286
6759
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6287
6760
|
return authenticationPromise.then(() => {
|
|
6288
6761
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6363,6 +6836,88 @@ class AdminApi {
|
|
|
6363
6836
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6364
6837
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6365
6838
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6839
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6840
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6841
|
+
return authenticationPromise.then(() => {
|
|
6842
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6843
|
+
if (localVarUseFormData) {
|
|
6844
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
6845
|
+
}
|
|
6846
|
+
else {
|
|
6847
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6848
|
+
}
|
|
6849
|
+
}
|
|
6850
|
+
return new Promise((resolve, reject) => {
|
|
6851
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6852
|
+
if (error) {
|
|
6853
|
+
reject(error);
|
|
6854
|
+
}
|
|
6855
|
+
else {
|
|
6856
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
6857
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
6858
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
6859
|
+
reject(new Error(body.error || errString));
|
|
6860
|
+
}
|
|
6861
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6862
|
+
resolve(body);
|
|
6863
|
+
}
|
|
6864
|
+
else {
|
|
6865
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
6866
|
+
reject(errString);
|
|
6867
|
+
}
|
|
6868
|
+
}
|
|
6869
|
+
});
|
|
6870
|
+
});
|
|
6871
|
+
});
|
|
6872
|
+
}
|
|
6873
|
+
/**
|
|
6874
|
+
* Update an existing OAuth client\'s configuration. This endpoint allows updating the client\'s properties such as name, description, redirect URIs, allowed grant types, and scopes. The client ID and secret cannot be modified. Requires admin:oauth:write permission.
|
|
6875
|
+
* @summary Update OAuth client
|
|
6876
|
+
* @param clientId Client ID
|
|
6877
|
+
* @param adminUpdateOauthClientRequest
|
|
6878
|
+
*/
|
|
6879
|
+
async adminUpdateOauthClient(clientId, adminUpdateOauthClientRequest, options = { headers: {} }) {
|
|
6880
|
+
const localVarPath = this.basePath + '/api/admin/oauth/clients/{clientId}'
|
|
6881
|
+
.replace('{' + 'clientId' + '}', encodeURIComponent(String(clientId)));
|
|
6882
|
+
let localVarQueryParameters = {};
|
|
6883
|
+
let localVarHeaderParams = Object.assign({
|
|
6884
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
6885
|
+
}, this.defaultHeaders);
|
|
6886
|
+
const produces = ['application/json'];
|
|
6887
|
+
// give precedence to 'application/json'
|
|
6888
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
6889
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
6890
|
+
}
|
|
6891
|
+
else {
|
|
6892
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
6893
|
+
}
|
|
6894
|
+
let localVarFormParams = {};
|
|
6895
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
6896
|
+
if (clientId === null || clientId === undefined) {
|
|
6897
|
+
throw new Error('Required parameter clientId was null or undefined when calling adminUpdateOauthClient.');
|
|
6898
|
+
}
|
|
6899
|
+
// verify required parameter 'adminUpdateOauthClientRequest' is not null or undefined
|
|
6900
|
+
if (adminUpdateOauthClientRequest === null || adminUpdateOauthClientRequest === undefined) {
|
|
6901
|
+
throw new Error('Required parameter adminUpdateOauthClientRequest was null or undefined when calling adminUpdateOauthClient.');
|
|
6902
|
+
}
|
|
6903
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
6904
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
6905
|
+
let localVarUseFormData = false;
|
|
6906
|
+
let localVarRequestOptions = {
|
|
6907
|
+
method: 'PUT',
|
|
6908
|
+
qs: localVarQueryParameters,
|
|
6909
|
+
headers: localVarHeaderParams,
|
|
6910
|
+
uri: localVarPath,
|
|
6911
|
+
useQuerystring: this._useQuerystring,
|
|
6912
|
+
agentOptions: { keepAlive: false },
|
|
6913
|
+
json: true,
|
|
6914
|
+
body: models_1.ObjectSerializer.serialize(adminUpdateOauthClientRequest, "AdminUpdateOauthClientRequest")
|
|
6915
|
+
};
|
|
6916
|
+
let authenticationPromise = Promise.resolve();
|
|
6917
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6918
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6919
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6920
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6366
6921
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6367
6922
|
return authenticationPromise.then(() => {
|
|
6368
6923
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6443,6 +6998,7 @@ class AdminApi {
|
|
|
6443
6998
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6444
6999
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6445
7000
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
7001
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6446
7002
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6447
7003
|
return authenticationPromise.then(() => {
|
|
6448
7004
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6529,6 +7085,7 @@ class AdminApi {
|
|
|
6529
7085
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6530
7086
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6531
7087
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
7088
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6532
7089
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6533
7090
|
return authenticationPromise.then(() => {
|
|
6534
7091
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6609,6 +7166,7 @@ class AdminApi {
|
|
|
6609
7166
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6610
7167
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6611
7168
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
7169
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6612
7170
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6613
7171
|
return authenticationPromise.then(() => {
|
|
6614
7172
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6689,6 +7247,7 @@ class AdminApi {
|
|
|
6689
7247
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6690
7248
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6691
7249
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
7250
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6692
7251
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6693
7252
|
return authenticationPromise.then(() => {
|
|
6694
7253
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6769,6 +7328,7 @@ class AdminApi {
|
|
|
6769
7328
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6770
7329
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6771
7330
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
7331
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6772
7332
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6773
7333
|
return authenticationPromise.then(() => {
|
|
6774
7334
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6849,6 +7409,7 @@ class AdminApi {
|
|
|
6849
7409
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6850
7410
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6851
7411
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
7412
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6852
7413
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6853
7414
|
return authenticationPromise.then(() => {
|
|
6854
7415
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -6923,6 +7484,7 @@ class AdminApi {
|
|
|
6923
7484
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6924
7485
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6925
7486
|
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
7487
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
6926
7488
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6927
7489
|
return authenticationPromise.then(() => {
|
|
6928
7490
|
if (Object.keys(localVarFormParams).length) {
|