@dynamic-labs/sdk-api 0.0.879 → 0.0.881
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/package.json +1 -1
- package/src/apis/OrganizationsApi.cjs +37 -0
- package/src/apis/OrganizationsApi.d.ts +13 -0
- package/src/apis/OrganizationsApi.js +37 -0
- package/src/models/BillingSubscription.cjs +2 -0
- package/src/models/BillingSubscription.d.ts +6 -0
- package/src/models/BillingSubscription.js +2 -0
- package/src/models/EmailVerificationMfaRequest.cjs +3 -0
- package/src/models/EmailVerificationMfaRequest.d.ts +7 -0
- package/src/models/EmailVerificationMfaRequest.js +3 -0
- package/src/models/MFAAuthRecoveryDevicePostRequest.cjs +3 -0
- package/src/models/MFAAuthRecoveryDevicePostRequest.d.ts +7 -0
- package/src/models/MFAAuthRecoveryDevicePostRequest.js +3 -0
- package/src/models/MFAAuthTotpDevicePostRequest.cjs +3 -0
- package/src/models/MFAAuthTotpDevicePostRequest.d.ts +7 -0
- package/src/models/MFAAuthTotpDevicePostRequest.js +3 -0
- package/src/models/PasskeyAuthRequest.cjs +3 -0
- package/src/models/PasskeyAuthRequest.d.ts +7 -0
- package/src/models/PasskeyAuthRequest.js +3 -0
package/package.json
CHANGED
|
@@ -163,6 +163,43 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
163
163
|
return yield response.value();
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
168
|
+
* Cancel subscription at period end
|
|
169
|
+
*/
|
|
170
|
+
cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
171
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
173
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling cancelSubscriptionForOrganization.');
|
|
174
|
+
}
|
|
175
|
+
const queryParameters = {};
|
|
176
|
+
const headerParameters = {};
|
|
177
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
178
|
+
const token = this.configuration.accessToken;
|
|
179
|
+
const tokenString = yield token("bearerAuth", []);
|
|
180
|
+
if (tokenString) {
|
|
181
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const response = yield this.request({
|
|
185
|
+
path: `/organizations/{organizationId}/billing/subscription/cancel`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
186
|
+
method: 'POST',
|
|
187
|
+
headers: headerParameters,
|
|
188
|
+
query: queryParameters,
|
|
189
|
+
}, initOverrides);
|
|
190
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BillingSubscription.BillingSubscriptionFromJSON(jsonValue));
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
195
|
+
* Cancel subscription at period end
|
|
196
|
+
*/
|
|
197
|
+
cancelSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
198
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
const response = yield this.cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides);
|
|
200
|
+
return yield response.value();
|
|
201
|
+
});
|
|
202
|
+
}
|
|
166
203
|
/**
|
|
167
204
|
* Creates a new organization.
|
|
168
205
|
* Create an organization
|
|
@@ -15,6 +15,9 @@ export interface ApplyCouponForSubscriptionRequest {
|
|
|
15
15
|
organizationId: string;
|
|
16
16
|
billingSubscriptionCoupon: BillingSubscriptionCoupon;
|
|
17
17
|
}
|
|
18
|
+
export interface CancelSubscriptionForOrganizationRequest {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
}
|
|
18
21
|
export interface CreateOrganizationRequest {
|
|
19
22
|
organizationRequest: OrganizationRequest;
|
|
20
23
|
}
|
|
@@ -65,6 +68,16 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
65
68
|
* Add coupon to subscription
|
|
66
69
|
*/
|
|
67
70
|
applyCouponForSubscription(requestParameters: ApplyCouponForSubscriptionRequest, initOverrides?: RequestInit): Promise<BillingSubscription>;
|
|
71
|
+
/**
|
|
72
|
+
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
73
|
+
* Cancel subscription at period end
|
|
74
|
+
*/
|
|
75
|
+
cancelSubscriptionForOrganizationRaw(requestParameters: CancelSubscriptionForOrganizationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BillingSubscription>>;
|
|
76
|
+
/**
|
|
77
|
+
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
78
|
+
* Cancel subscription at period end
|
|
79
|
+
*/
|
|
80
|
+
cancelSubscriptionForOrganization(requestParameters: CancelSubscriptionForOrganizationRequest, initOverrides?: RequestInit): Promise<BillingSubscription>;
|
|
68
81
|
/**
|
|
69
82
|
* Creates a new organization.
|
|
70
83
|
* Create an organization
|
|
@@ -159,6 +159,43 @@ class OrganizationsApi extends BaseAPI {
|
|
|
159
159
|
return yield response.value();
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
164
|
+
* Cancel subscription at period end
|
|
165
|
+
*/
|
|
166
|
+
cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
169
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling cancelSubscriptionForOrganization.');
|
|
170
|
+
}
|
|
171
|
+
const queryParameters = {};
|
|
172
|
+
const headerParameters = {};
|
|
173
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
174
|
+
const token = this.configuration.accessToken;
|
|
175
|
+
const tokenString = yield token("bearerAuth", []);
|
|
176
|
+
if (tokenString) {
|
|
177
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const response = yield this.request({
|
|
181
|
+
path: `/organizations/{organizationId}/billing/subscription/cancel`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
182
|
+
method: 'POST',
|
|
183
|
+
headers: headerParameters,
|
|
184
|
+
query: queryParameters,
|
|
185
|
+
}, initOverrides);
|
|
186
|
+
return new JSONApiResponse(response, (jsonValue) => BillingSubscriptionFromJSON(jsonValue));
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
191
|
+
* Cancel subscription at period end
|
|
192
|
+
*/
|
|
193
|
+
cancelSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
const response = yield this.cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides);
|
|
196
|
+
return yield response.value();
|
|
197
|
+
});
|
|
198
|
+
}
|
|
162
199
|
/**
|
|
163
200
|
* Creates a new organization.
|
|
164
201
|
* Create an organization
|
|
@@ -18,6 +18,7 @@ function BillingSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
return {
|
|
19
19
|
'billingPortalUrl': !runtime.exists(json, 'billingPortalUrl') ? undefined : json['billingPortalUrl'],
|
|
20
20
|
'billingPortalAddPaymentMethodUrl': !runtime.exists(json, 'billingPortalAddPaymentMethodUrl') ? undefined : json['billingPortalAddPaymentMethodUrl'],
|
|
21
|
+
'cancelAtPeriodEnd': !runtime.exists(json, 'cancelAtPeriodEnd') ? undefined : json['cancelAtPeriodEnd'],
|
|
21
22
|
'hasPaymentMethod': json['hasPaymentMethod'],
|
|
22
23
|
'planType': BillingSubscriptionPlanTypeEnum.BillingSubscriptionPlanTypeEnumFromJSON(json['planType']),
|
|
23
24
|
'inTrial': json['inTrial'],
|
|
@@ -41,6 +42,7 @@ function BillingSubscriptionToJSON(value) {
|
|
|
41
42
|
return {
|
|
42
43
|
'billingPortalUrl': value.billingPortalUrl,
|
|
43
44
|
'billingPortalAddPaymentMethodUrl': value.billingPortalAddPaymentMethodUrl,
|
|
45
|
+
'cancelAtPeriodEnd': value.cancelAtPeriodEnd,
|
|
44
46
|
'hasPaymentMethod': value.hasPaymentMethod,
|
|
45
47
|
'planType': BillingSubscriptionPlanTypeEnum.BillingSubscriptionPlanTypeEnumToJSON(value.planType),
|
|
46
48
|
'inTrial': value.inTrial,
|
|
@@ -30,6 +30,12 @@ export interface BillingSubscription {
|
|
|
30
30
|
* @memberof BillingSubscription
|
|
31
31
|
*/
|
|
32
32
|
billingPortalAddPaymentMethodUrl?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof BillingSubscription
|
|
37
|
+
*/
|
|
38
|
+
cancelAtPeriodEnd?: boolean;
|
|
33
39
|
/**
|
|
34
40
|
*
|
|
35
41
|
* @type {boolean}
|
|
@@ -14,6 +14,7 @@ function BillingSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
return {
|
|
15
15
|
'billingPortalUrl': !exists(json, 'billingPortalUrl') ? undefined : json['billingPortalUrl'],
|
|
16
16
|
'billingPortalAddPaymentMethodUrl': !exists(json, 'billingPortalAddPaymentMethodUrl') ? undefined : json['billingPortalAddPaymentMethodUrl'],
|
|
17
|
+
'cancelAtPeriodEnd': !exists(json, 'cancelAtPeriodEnd') ? undefined : json['cancelAtPeriodEnd'],
|
|
17
18
|
'hasPaymentMethod': json['hasPaymentMethod'],
|
|
18
19
|
'planType': BillingSubscriptionPlanTypeEnumFromJSON(json['planType']),
|
|
19
20
|
'inTrial': json['inTrial'],
|
|
@@ -37,6 +38,7 @@ function BillingSubscriptionToJSON(value) {
|
|
|
37
38
|
return {
|
|
38
39
|
'billingPortalUrl': value.billingPortalUrl,
|
|
39
40
|
'billingPortalAddPaymentMethodUrl': value.billingPortalAddPaymentMethodUrl,
|
|
41
|
+
'cancelAtPeriodEnd': value.cancelAtPeriodEnd,
|
|
40
42
|
'hasPaymentMethod': value.hasPaymentMethod,
|
|
41
43
|
'planType': BillingSubscriptionPlanTypeEnumToJSON(value.planType),
|
|
42
44
|
'inTrial': value.inTrial,
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var CreateMfaToken = require('./CreateMfaToken.cjs');
|
|
7
|
+
var TokenScope = require('./TokenScope.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
9
10
|
function EmailVerificationMfaRequestFromJSON(json) {
|
|
@@ -17,6 +18,7 @@ function EmailVerificationMfaRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
'verificationUUID': json['verificationUUID'],
|
|
18
19
|
'verificationToken': json['verificationToken'],
|
|
19
20
|
'createMfaToken': !runtime.exists(json, 'createMfaToken') ? undefined : CreateMfaToken.CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
21
|
+
'requestedScopes': !runtime.exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScope.TokenScopeFromJSON)),
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
function EmailVerificationMfaRequestToJSON(value) {
|
|
@@ -30,6 +32,7 @@ function EmailVerificationMfaRequestToJSON(value) {
|
|
|
30
32
|
'verificationUUID': value.verificationUUID,
|
|
31
33
|
'verificationToken': value.verificationToken,
|
|
32
34
|
'createMfaToken': CreateMfaToken.CreateMfaTokenToJSON(value.createMfaToken),
|
|
35
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScope.TokenScopeToJSON)),
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { CreateMfaToken } from './CreateMfaToken';
|
|
13
|
+
import { TokenScope } from './TokenScope';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface EmailVerificationMfaRequest {
|
|
|
34
35
|
* @memberof EmailVerificationMfaRequest
|
|
35
36
|
*/
|
|
36
37
|
createMfaToken?: CreateMfaToken;
|
|
38
|
+
/**
|
|
39
|
+
* Optional list of scopes to include in the elevated access token.
|
|
40
|
+
* @type {Array<TokenScope>}
|
|
41
|
+
* @memberof EmailVerificationMfaRequest
|
|
42
|
+
*/
|
|
43
|
+
requestedScopes?: Array<TokenScope>;
|
|
37
44
|
}
|
|
38
45
|
export declare function EmailVerificationMfaRequestFromJSON(json: any): EmailVerificationMfaRequest;
|
|
39
46
|
export declare function EmailVerificationMfaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailVerificationMfaRequest;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { CreateMfaTokenFromJSON, CreateMfaTokenToJSON } from './CreateMfaToken.js';
|
|
3
|
+
import { TokenScopeFromJSON, TokenScopeToJSON } from './TokenScope.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
5
6
|
function EmailVerificationMfaRequestFromJSON(json) {
|
|
@@ -13,6 +14,7 @@ function EmailVerificationMfaRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
14
|
'verificationUUID': json['verificationUUID'],
|
|
14
15
|
'verificationToken': json['verificationToken'],
|
|
15
16
|
'createMfaToken': !exists(json, 'createMfaToken') ? undefined : CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
17
|
+
'requestedScopes': !exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScopeFromJSON)),
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
function EmailVerificationMfaRequestToJSON(value) {
|
|
@@ -26,6 +28,7 @@ function EmailVerificationMfaRequestToJSON(value) {
|
|
|
26
28
|
'verificationUUID': value.verificationUUID,
|
|
27
29
|
'verificationToken': value.verificationToken,
|
|
28
30
|
'createMfaToken': CreateMfaTokenToJSON(value.createMfaToken),
|
|
31
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScopeToJSON)),
|
|
29
32
|
};
|
|
30
33
|
}
|
|
31
34
|
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var CreateMfaToken = require('./CreateMfaToken.cjs');
|
|
7
|
+
var TokenScope = require('./TokenScope.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
9
10
|
function MFAAuthRecoveryDevicePostRequestFromJSON(json) {
|
|
@@ -16,6 +17,7 @@ function MFAAuthRecoveryDevicePostRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
16
17
|
return {
|
|
17
18
|
'createMfaToken': !runtime.exists(json, 'createMfaToken') ? undefined : CreateMfaToken.CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
18
19
|
'code': json['code'],
|
|
20
|
+
'requestedScopes': !runtime.exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScope.TokenScopeFromJSON)),
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
function MFAAuthRecoveryDevicePostRequestToJSON(value) {
|
|
@@ -28,6 +30,7 @@ function MFAAuthRecoveryDevicePostRequestToJSON(value) {
|
|
|
28
30
|
return {
|
|
29
31
|
'createMfaToken': CreateMfaToken.CreateMfaTokenToJSON(value.createMfaToken),
|
|
30
32
|
'code': value.code,
|
|
33
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScope.TokenScopeToJSON)),
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { CreateMfaToken } from './CreateMfaToken';
|
|
13
|
+
import { TokenScope } from './TokenScope';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -28,6 +29,12 @@ export interface MFAAuthRecoveryDevicePostRequest {
|
|
|
28
29
|
* @memberof MFAAuthRecoveryDevicePostRequest
|
|
29
30
|
*/
|
|
30
31
|
code: string;
|
|
32
|
+
/**
|
|
33
|
+
* Optional list of scopes to include in the elevated access token.
|
|
34
|
+
* @type {Array<TokenScope>}
|
|
35
|
+
* @memberof MFAAuthRecoveryDevicePostRequest
|
|
36
|
+
*/
|
|
37
|
+
requestedScopes?: Array<TokenScope>;
|
|
31
38
|
}
|
|
32
39
|
export declare function MFAAuthRecoveryDevicePostRequestFromJSON(json: any): MFAAuthRecoveryDevicePostRequest;
|
|
33
40
|
export declare function MFAAuthRecoveryDevicePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFAAuthRecoveryDevicePostRequest;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { CreateMfaTokenFromJSON, CreateMfaTokenToJSON } from './CreateMfaToken.js';
|
|
3
|
+
import { TokenScopeFromJSON, TokenScopeToJSON } from './TokenScope.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
5
6
|
function MFAAuthRecoveryDevicePostRequestFromJSON(json) {
|
|
@@ -12,6 +13,7 @@ function MFAAuthRecoveryDevicePostRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
12
13
|
return {
|
|
13
14
|
'createMfaToken': !exists(json, 'createMfaToken') ? undefined : CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
14
15
|
'code': json['code'],
|
|
16
|
+
'requestedScopes': !exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScopeFromJSON)),
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
function MFAAuthRecoveryDevicePostRequestToJSON(value) {
|
|
@@ -24,6 +26,7 @@ function MFAAuthRecoveryDevicePostRequestToJSON(value) {
|
|
|
24
26
|
return {
|
|
25
27
|
'createMfaToken': CreateMfaTokenToJSON(value.createMfaToken),
|
|
26
28
|
'code': value.code,
|
|
29
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScopeToJSON)),
|
|
27
30
|
};
|
|
28
31
|
}
|
|
29
32
|
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var CreateMfaToken = require('./CreateMfaToken.cjs');
|
|
7
|
+
var TokenScope = require('./TokenScope.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
9
10
|
function MFAAuthTotpDevicePostRequestFromJSON(json) {
|
|
@@ -17,6 +18,7 @@ function MFAAuthTotpDevicePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
'id': !runtime.exists(json, 'id') ? undefined : json['id'],
|
|
18
19
|
'createMfaToken': !runtime.exists(json, 'createMfaToken') ? undefined : CreateMfaToken.CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
19
20
|
'code': json['code'],
|
|
21
|
+
'requestedScopes': !runtime.exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScope.TokenScopeFromJSON)),
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
function MFAAuthTotpDevicePostRequestToJSON(value) {
|
|
@@ -30,6 +32,7 @@ function MFAAuthTotpDevicePostRequestToJSON(value) {
|
|
|
30
32
|
'id': value.id,
|
|
31
33
|
'createMfaToken': CreateMfaToken.CreateMfaTokenToJSON(value.createMfaToken),
|
|
32
34
|
'code': value.code,
|
|
35
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScope.TokenScopeToJSON)),
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { CreateMfaToken } from './CreateMfaToken';
|
|
13
|
+
import { TokenScope } from './TokenScope';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface MFAAuthTotpDevicePostRequest {
|
|
|
34
35
|
* @memberof MFAAuthTotpDevicePostRequest
|
|
35
36
|
*/
|
|
36
37
|
code: string;
|
|
38
|
+
/**
|
|
39
|
+
* Optional list of scopes to include in the elevated access token.
|
|
40
|
+
* @type {Array<TokenScope>}
|
|
41
|
+
* @memberof MFAAuthTotpDevicePostRequest
|
|
42
|
+
*/
|
|
43
|
+
requestedScopes?: Array<TokenScope>;
|
|
37
44
|
}
|
|
38
45
|
export declare function MFAAuthTotpDevicePostRequestFromJSON(json: any): MFAAuthTotpDevicePostRequest;
|
|
39
46
|
export declare function MFAAuthTotpDevicePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFAAuthTotpDevicePostRequest;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { CreateMfaTokenFromJSON, CreateMfaTokenToJSON } from './CreateMfaToken.js';
|
|
3
|
+
import { TokenScopeFromJSON, TokenScopeToJSON } from './TokenScope.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
5
6
|
function MFAAuthTotpDevicePostRequestFromJSON(json) {
|
|
@@ -13,6 +14,7 @@ function MFAAuthTotpDevicePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
14
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
14
15
|
'createMfaToken': !exists(json, 'createMfaToken') ? undefined : CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
15
16
|
'code': json['code'],
|
|
17
|
+
'requestedScopes': !exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScopeFromJSON)),
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
function MFAAuthTotpDevicePostRequestToJSON(value) {
|
|
@@ -26,6 +28,7 @@ function MFAAuthTotpDevicePostRequestToJSON(value) {
|
|
|
26
28
|
'id': value.id,
|
|
27
29
|
'createMfaToken': CreateMfaTokenToJSON(value.createMfaToken),
|
|
28
30
|
'code': value.code,
|
|
31
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScopeToJSON)),
|
|
29
32
|
};
|
|
30
33
|
}
|
|
31
34
|
|
|
@@ -8,6 +8,7 @@ var AuthenticatorAssertionResponse = require('./AuthenticatorAssertionResponse.c
|
|
|
8
8
|
var AuthenticatorAttachment = require('./AuthenticatorAttachment.cjs');
|
|
9
9
|
var CreateMfaToken = require('./CreateMfaToken.cjs');
|
|
10
10
|
var PublicKeyCredentialType = require('./PublicKeyCredentialType.cjs');
|
|
11
|
+
var TokenScope = require('./TokenScope.cjs');
|
|
11
12
|
|
|
12
13
|
/* tslint:disable */
|
|
13
14
|
function PasskeyAuthRequestFromJSON(json) {
|
|
@@ -25,6 +26,7 @@ function PasskeyAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
26
|
'clientExtensionResults': AuthenticationExtensionsClientOutputs.AuthenticationExtensionsClientOutputsFromJSON(json['clientExtensionResults']),
|
|
26
27
|
'type': PublicKeyCredentialType.PublicKeyCredentialTypeFromJSON(json['type']),
|
|
27
28
|
'createMfaToken': !runtime.exists(json, 'createMfaToken') ? undefined : CreateMfaToken.CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
29
|
+
'requestedScopes': !runtime.exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScope.TokenScopeFromJSON)),
|
|
28
30
|
};
|
|
29
31
|
}
|
|
30
32
|
function PasskeyAuthRequestToJSON(value) {
|
|
@@ -42,6 +44,7 @@ function PasskeyAuthRequestToJSON(value) {
|
|
|
42
44
|
'clientExtensionResults': AuthenticationExtensionsClientOutputs.AuthenticationExtensionsClientOutputsToJSON(value.clientExtensionResults),
|
|
43
45
|
'type': PublicKeyCredentialType.PublicKeyCredentialTypeToJSON(value.type),
|
|
44
46
|
'createMfaToken': CreateMfaToken.CreateMfaTokenToJSON(value.createMfaToken),
|
|
47
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScope.TokenScopeToJSON)),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
|
|
@@ -14,6 +14,7 @@ import { AuthenticatorAssertionResponse } from './AuthenticatorAssertionResponse
|
|
|
14
14
|
import { AuthenticatorAttachment } from './AuthenticatorAttachment';
|
|
15
15
|
import { CreateMfaToken } from './CreateMfaToken';
|
|
16
16
|
import { PublicKeyCredentialType } from './PublicKeyCredentialType';
|
|
17
|
+
import { TokenScope } from './TokenScope';
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
19
20
|
* @export
|
|
@@ -62,6 +63,12 @@ export interface PasskeyAuthRequest {
|
|
|
62
63
|
* @memberof PasskeyAuthRequest
|
|
63
64
|
*/
|
|
64
65
|
createMfaToken?: CreateMfaToken;
|
|
66
|
+
/**
|
|
67
|
+
* Optional list of scopes to include in the elevated access token.
|
|
68
|
+
* @type {Array<TokenScope>}
|
|
69
|
+
* @memberof PasskeyAuthRequest
|
|
70
|
+
*/
|
|
71
|
+
requestedScopes?: Array<TokenScope>;
|
|
65
72
|
}
|
|
66
73
|
export declare function PasskeyAuthRequestFromJSON(json: any): PasskeyAuthRequest;
|
|
67
74
|
export declare function PasskeyAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasskeyAuthRequest;
|
|
@@ -4,6 +4,7 @@ import { AuthenticatorAssertionResponseFromJSON, AuthenticatorAssertionResponseT
|
|
|
4
4
|
import { AuthenticatorAttachmentFromJSON, AuthenticatorAttachmentToJSON } from './AuthenticatorAttachment.js';
|
|
5
5
|
import { CreateMfaTokenFromJSON, CreateMfaTokenToJSON } from './CreateMfaToken.js';
|
|
6
6
|
import { PublicKeyCredentialTypeFromJSON, PublicKeyCredentialTypeToJSON } from './PublicKeyCredentialType.js';
|
|
7
|
+
import { TokenScopeFromJSON, TokenScopeToJSON } from './TokenScope.js';
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
9
10
|
function PasskeyAuthRequestFromJSON(json) {
|
|
@@ -21,6 +22,7 @@ function PasskeyAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
22
|
'clientExtensionResults': AuthenticationExtensionsClientOutputsFromJSON(json['clientExtensionResults']),
|
|
22
23
|
'type': PublicKeyCredentialTypeFromJSON(json['type']),
|
|
23
24
|
'createMfaToken': !exists(json, 'createMfaToken') ? undefined : CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
25
|
+
'requestedScopes': !exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScopeFromJSON)),
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
28
|
function PasskeyAuthRequestToJSON(value) {
|
|
@@ -38,6 +40,7 @@ function PasskeyAuthRequestToJSON(value) {
|
|
|
38
40
|
'clientExtensionResults': AuthenticationExtensionsClientOutputsToJSON(value.clientExtensionResults),
|
|
39
41
|
'type': PublicKeyCredentialTypeToJSON(value.type),
|
|
40
42
|
'createMfaToken': CreateMfaTokenToJSON(value.createMfaToken),
|
|
43
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScopeToJSON)),
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
|