@dynamic-labs/sdk-api-core 0.0.445 → 0.0.446
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/SDKApi.cjs +1 -0
- package/src/apis/SDKApi.js +1 -0
- package/src/index.cjs +12 -0
- package/src/index.js +2 -0
- package/src/models/AuthSettings.cjs +33 -0
- package/src/models/AuthSettings.d.ts +28 -0
- package/src/models/AuthSettings.js +27 -0
- package/src/models/AuthStorageEnum.cjs +40 -0
- package/src/models/AuthStorageEnum.d.ts +23 -0
- package/src/models/AuthStorageEnum.js +34 -0
- package/src/models/EmbeddedWalletSecretWithUpdatedJwt.cjs +2 -2
- package/src/models/EmbeddedWalletSecretWithUpdatedJwt.d.ts +4 -4
- package/src/models/EmbeddedWalletSecretWithUpdatedJwt.js +2 -2
- package/src/models/ProjectSettingsSecurity.cjs +3 -0
- package/src/models/ProjectSettingsSecurity.d.ts +7 -0
- package/src/models/ProjectSettingsSecurity.js +3 -0
- package/src/models/UpdateSelfResponse.cjs +2 -2
- package/src/models/UpdateSelfResponse.d.ts +4 -4
- package/src/models/UpdateSelfResponse.js +2 -2
- package/src/models/VerifyResponse.cjs +3 -2
- package/src/models/VerifyResponse.d.ts +4 -4
- package/src/models/VerifyResponse.js +3 -2
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
6
6
|
var runtime = require('../runtime.cjs');
|
|
7
7
|
require('../models/AuthModeEnum.cjs');
|
|
8
|
+
require('../models/AuthStorageEnum.cjs');
|
|
8
9
|
require('../models/AuthenticatorTransportProtocol.cjs');
|
|
9
10
|
require('../models/JwtVerifiedCredentialFormatEnum.cjs');
|
|
10
11
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
2
2
|
import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse, TextApiResponse, canConsumeForm } from '../runtime.js';
|
|
3
3
|
import '../models/AuthModeEnum.js';
|
|
4
|
+
import '../models/AuthStorageEnum.js';
|
|
4
5
|
import '../models/AuthenticatorTransportProtocol.js';
|
|
5
6
|
import '../models/JwtVerifiedCredentialFormatEnum.js';
|
|
6
7
|
import '../models/ProviderEnum.js';
|
package/src/index.cjs
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('./runtime.cjs');
|
|
6
6
|
var SDKApi = require('./apis/SDKApi.cjs');
|
|
7
7
|
var AuthModeEnum = require('./models/AuthModeEnum.cjs');
|
|
8
|
+
var AuthSettings = require('./models/AuthSettings.cjs');
|
|
9
|
+
var AuthStorageEnum = require('./models/AuthStorageEnum.cjs');
|
|
8
10
|
var AuthenticatorTransportProtocol = require('./models/AuthenticatorTransportProtocol.cjs');
|
|
9
11
|
var BadRequest = require('./models/BadRequest.cjs');
|
|
10
12
|
var BaseUser = require('./models/BaseUser.cjs');
|
|
@@ -210,6 +212,16 @@ Object.defineProperty(exports, 'AuthModeEnum', {
|
|
|
210
212
|
exports.AuthModeEnumFromJSON = AuthModeEnum.AuthModeEnumFromJSON;
|
|
211
213
|
exports.AuthModeEnumFromJSONTyped = AuthModeEnum.AuthModeEnumFromJSONTyped;
|
|
212
214
|
exports.AuthModeEnumToJSON = AuthModeEnum.AuthModeEnumToJSON;
|
|
215
|
+
exports.AuthSettingsFromJSON = AuthSettings.AuthSettingsFromJSON;
|
|
216
|
+
exports.AuthSettingsFromJSONTyped = AuthSettings.AuthSettingsFromJSONTyped;
|
|
217
|
+
exports.AuthSettingsToJSON = AuthSettings.AuthSettingsToJSON;
|
|
218
|
+
Object.defineProperty(exports, 'AuthStorageEnum', {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function () { return AuthStorageEnum.AuthStorageEnum; }
|
|
221
|
+
});
|
|
222
|
+
exports.AuthStorageEnumFromJSON = AuthStorageEnum.AuthStorageEnumFromJSON;
|
|
223
|
+
exports.AuthStorageEnumFromJSONTyped = AuthStorageEnum.AuthStorageEnumFromJSONTyped;
|
|
224
|
+
exports.AuthStorageEnumToJSON = AuthStorageEnum.AuthStorageEnumToJSON;
|
|
213
225
|
Object.defineProperty(exports, 'AuthenticatorTransportProtocol', {
|
|
214
226
|
enumerable: true,
|
|
215
227
|
get: function () { return AuthenticatorTransportProtocol.AuthenticatorTransportProtocol; }
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, JSONApiResponse, RequiredError, TextApiResponse, VoidApiResponse, canConsumeForm, exists, mapValues, querystring } from './runtime.js';
|
|
2
2
|
export { GetAccountBalancesChainNameEnum, GetAccountBalancesNetworkIdEnum, GetAccountBalancesOptionsChainNameEnum, SDKApi } from './apis/SDKApi.js';
|
|
3
3
|
export { AuthModeEnum, AuthModeEnumFromJSON, AuthModeEnumFromJSONTyped, AuthModeEnumToJSON } from './models/AuthModeEnum.js';
|
|
4
|
+
export { AuthSettingsFromJSON, AuthSettingsFromJSONTyped, AuthSettingsToJSON } from './models/AuthSettings.js';
|
|
5
|
+
export { AuthStorageEnum, AuthStorageEnumFromJSON, AuthStorageEnumFromJSONTyped, AuthStorageEnumToJSON } from './models/AuthStorageEnum.js';
|
|
4
6
|
export { AuthenticatorTransportProtocol, AuthenticatorTransportProtocolFromJSON, AuthenticatorTransportProtocolFromJSONTyped, AuthenticatorTransportProtocolToJSON } from './models/AuthenticatorTransportProtocol.js';
|
|
5
7
|
export { BadRequestFromJSON, BadRequestFromJSONTyped, BadRequestToJSON } from './models/BadRequest.js';
|
|
6
8
|
export { BaseUserFromJSON, BaseUserFromJSONTyped, BaseUserToJSON } from './models/BaseUser.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var AuthStorageEnum = require('./AuthStorageEnum.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function AuthSettingsFromJSON(json) {
|
|
9
|
+
return AuthSettingsFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function AuthSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'storage': (json['storage'].map(AuthStorageEnum.AuthStorageEnumFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function AuthSettingsToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'storage': (value.storage.map(AuthStorageEnum.AuthStorageEnumToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.AuthSettingsFromJSON = AuthSettingsFromJSON;
|
|
32
|
+
exports.AuthSettingsFromJSONTyped = AuthSettingsFromJSONTyped;
|
|
33
|
+
exports.AuthSettingsToJSON = AuthSettingsToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AuthStorageEnum } from './AuthStorageEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AuthSettings
|
|
17
|
+
*/
|
|
18
|
+
export interface AuthSettings {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AuthStorageEnum>}
|
|
22
|
+
* @memberof AuthSettings
|
|
23
|
+
*/
|
|
24
|
+
storage: Array<AuthStorageEnum>;
|
|
25
|
+
}
|
|
26
|
+
export declare function AuthSettingsFromJSON(json: any): AuthSettings;
|
|
27
|
+
export declare function AuthSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthSettings;
|
|
28
|
+
export declare function AuthSettingsToJSON(value?: AuthSettings | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AuthStorageEnumFromJSON, AuthStorageEnumToJSON } from './AuthStorageEnum.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function AuthSettingsFromJSON(json) {
|
|
5
|
+
return AuthSettingsFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function AuthSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'storage': (json['storage'].map(AuthStorageEnumFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function AuthSettingsToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'storage': (value.storage.map(AuthStorageEnumToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { AuthSettingsFromJSON, AuthSettingsFromJSONTyped, AuthSettingsToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Location in the browser where Dynamic will attempt to store the JWT token.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.AuthStorageEnum = void 0;
|
|
24
|
+
(function (AuthStorageEnum) {
|
|
25
|
+
AuthStorageEnum["Localstorage"] = "localstorage";
|
|
26
|
+
AuthStorageEnum["Cookie"] = "cookie";
|
|
27
|
+
})(exports.AuthStorageEnum || (exports.AuthStorageEnum = {}));
|
|
28
|
+
function AuthStorageEnumFromJSON(json) {
|
|
29
|
+
return AuthStorageEnumFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function AuthStorageEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
function AuthStorageEnumToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.AuthStorageEnumFromJSON = AuthStorageEnumFromJSON;
|
|
39
|
+
exports.AuthStorageEnumFromJSONTyped = AuthStorageEnumFromJSONTyped;
|
|
40
|
+
exports.AuthStorageEnumToJSON = AuthStorageEnumToJSON;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Location in the browser where Dynamic will attempt to store the JWT token.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum AuthStorageEnum {
|
|
18
|
+
Localstorage = "localstorage",
|
|
19
|
+
Cookie = "cookie"
|
|
20
|
+
}
|
|
21
|
+
export declare function AuthStorageEnumFromJSON(json: any): AuthStorageEnum;
|
|
22
|
+
export declare function AuthStorageEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthStorageEnum;
|
|
23
|
+
export declare function AuthStorageEnumToJSON(value?: AuthStorageEnum | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Location in the browser where Dynamic will attempt to store the JWT token.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var AuthStorageEnum;
|
|
20
|
+
(function (AuthStorageEnum) {
|
|
21
|
+
AuthStorageEnum["Localstorage"] = "localstorage";
|
|
22
|
+
AuthStorageEnum["Cookie"] = "cookie";
|
|
23
|
+
})(AuthStorageEnum || (AuthStorageEnum = {}));
|
|
24
|
+
function AuthStorageEnumFromJSON(json) {
|
|
25
|
+
return AuthStorageEnumFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function AuthStorageEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
function AuthStorageEnumToJSON(value) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { AuthStorageEnum, AuthStorageEnumFromJSON, AuthStorageEnumFromJSONTyped, AuthStorageEnumToJSON };
|
|
@@ -15,9 +15,9 @@ function EmbeddedWalletSecretWithUpdatedJwtFromJSONTyped(json, ignoreDiscriminat
|
|
|
15
15
|
return json;
|
|
16
16
|
}
|
|
17
17
|
return {
|
|
18
|
-
'jwt': json['jwt'],
|
|
18
|
+
'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
|
|
19
19
|
'user': SdkUser.SdkUserFromJSON(json['user']),
|
|
20
|
-
'minifiedJwt': json['minifiedJwt'],
|
|
20
|
+
'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
21
21
|
'expiresAt': json['expiresAt'],
|
|
22
22
|
'walletId': json['walletId'],
|
|
23
23
|
'secret': !runtime.exists(json, 'secret') ? undefined : json['secret'],
|
|
@@ -18,11 +18,11 @@ import { SdkUser } from './SdkUser';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface EmbeddedWalletSecretWithUpdatedJwt {
|
|
20
20
|
/**
|
|
21
|
-
* Encoded JWT token
|
|
21
|
+
* Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof EmbeddedWalletSecretWithUpdatedJwt
|
|
24
24
|
*/
|
|
25
|
-
jwt
|
|
25
|
+
jwt?: string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {SdkUser}
|
|
@@ -30,11 +30,11 @@ export interface EmbeddedWalletSecretWithUpdatedJwt {
|
|
|
30
30
|
*/
|
|
31
31
|
user: SdkUser;
|
|
32
32
|
/**
|
|
33
|
-
* Encoded JWT token
|
|
33
|
+
* Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof EmbeddedWalletSecretWithUpdatedJwt
|
|
36
36
|
*/
|
|
37
|
-
minifiedJwt
|
|
37
|
+
minifiedJwt?: string;
|
|
38
38
|
/**
|
|
39
39
|
* Format is a unix-based timestamp. When set, this will be the expiration timestamp on the JWT sent using either the `jwt` field or a response httpOnly cookie set by the server.
|
|
40
40
|
* @type {number}
|
|
@@ -11,9 +11,9 @@ function EmbeddedWalletSecretWithUpdatedJwtFromJSONTyped(json, ignoreDiscriminat
|
|
|
11
11
|
return json;
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
14
|
-
'jwt': json['jwt'],
|
|
14
|
+
'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
|
|
15
15
|
'user': SdkUserFromJSON(json['user']),
|
|
16
|
-
'minifiedJwt': json['minifiedJwt'],
|
|
16
|
+
'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
17
17
|
'expiresAt': json['expiresAt'],
|
|
18
18
|
'walletId': json['walletId'],
|
|
19
19
|
'secret': !exists(json, 'secret') ? undefined : json['secret'],
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var AuthSettings = require('./AuthSettings.cjs');
|
|
6
7
|
var Duration = require('./Duration.cjs');
|
|
7
8
|
var HCaptchaSettings = require('./HCaptchaSettings.cjs');
|
|
8
9
|
var MFASettings = require('./MFASettings.cjs');
|
|
@@ -19,6 +20,7 @@ function ProjectSettingsSecurityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
20
|
'jwtDuration': !runtime.exists(json, 'jwtDuration') ? undefined : Duration.DurationFromJSON(json['jwtDuration']),
|
|
20
21
|
'hCaptcha': !runtime.exists(json, 'hCaptcha') ? undefined : HCaptchaSettings.HCaptchaSettingsFromJSON(json['hCaptcha']),
|
|
21
22
|
'mfa': !runtime.exists(json, 'mfa') ? undefined : MFASettings.MFASettingsFromJSON(json['mfa']),
|
|
23
|
+
'auth': !runtime.exists(json, 'auth') ? undefined : AuthSettings.AuthSettingsFromJSON(json['auth']),
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
function ProjectSettingsSecurityToJSON(value) {
|
|
@@ -32,6 +34,7 @@ function ProjectSettingsSecurityToJSON(value) {
|
|
|
32
34
|
'jwtDuration': Duration.DurationToJSON(value.jwtDuration),
|
|
33
35
|
'hCaptcha': HCaptchaSettings.HCaptchaSettingsToJSON(value.hCaptcha),
|
|
34
36
|
'mfa': MFASettings.MFASettingsToJSON(value.mfa),
|
|
37
|
+
'auth': AuthSettings.AuthSettingsToJSON(value.auth),
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AuthSettings } from './AuthSettings';
|
|
12
13
|
import { Duration } from './Duration';
|
|
13
14
|
import { HCaptchaSettings } from './HCaptchaSettings';
|
|
14
15
|
import { MFASettings } from './MFASettings';
|
|
@@ -36,6 +37,12 @@ export interface ProjectSettingsSecurity {
|
|
|
36
37
|
* @memberof ProjectSettingsSecurity
|
|
37
38
|
*/
|
|
38
39
|
mfa?: MFASettings;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {AuthSettings}
|
|
43
|
+
* @memberof ProjectSettingsSecurity
|
|
44
|
+
*/
|
|
45
|
+
auth?: AuthSettings;
|
|
39
46
|
}
|
|
40
47
|
export declare function ProjectSettingsSecurityFromJSON(json: any): ProjectSettingsSecurity;
|
|
41
48
|
export declare function ProjectSettingsSecurityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettingsSecurity;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { AuthSettingsFromJSON, AuthSettingsToJSON } from './AuthSettings.js';
|
|
2
3
|
import { DurationFromJSON, DurationToJSON } from './Duration.js';
|
|
3
4
|
import { HCaptchaSettingsFromJSON, HCaptchaSettingsToJSON } from './HCaptchaSettings.js';
|
|
4
5
|
import { MFASettingsFromJSON, MFASettingsToJSON } from './MFASettings.js';
|
|
@@ -15,6 +16,7 @@ function ProjectSettingsSecurityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
16
|
'jwtDuration': !exists(json, 'jwtDuration') ? undefined : DurationFromJSON(json['jwtDuration']),
|
|
16
17
|
'hCaptcha': !exists(json, 'hCaptcha') ? undefined : HCaptchaSettingsFromJSON(json['hCaptcha']),
|
|
17
18
|
'mfa': !exists(json, 'mfa') ? undefined : MFASettingsFromJSON(json['mfa']),
|
|
19
|
+
'auth': !exists(json, 'auth') ? undefined : AuthSettingsFromJSON(json['auth']),
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
function ProjectSettingsSecurityToJSON(value) {
|
|
@@ -28,6 +30,7 @@ function ProjectSettingsSecurityToJSON(value) {
|
|
|
28
30
|
'jwtDuration': DurationToJSON(value.jwtDuration),
|
|
29
31
|
'hCaptcha': HCaptchaSettingsToJSON(value.hCaptcha),
|
|
30
32
|
'mfa': MFASettingsToJSON(value.mfa),
|
|
33
|
+
'auth': AuthSettingsToJSON(value.auth),
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
|
|
@@ -17,9 +17,9 @@ function UpdateSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
17
|
return json;
|
|
18
18
|
}
|
|
19
19
|
return {
|
|
20
|
-
'jwt': json['jwt'],
|
|
20
|
+
'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
|
|
21
21
|
'user': SdkUser.SdkUserFromJSON(json['user']),
|
|
22
|
-
'minifiedJwt': json['minifiedJwt'],
|
|
22
|
+
'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
23
23
|
'expiresAt': json['expiresAt'],
|
|
24
24
|
'nextView': NextViewEnum.NextViewEnumFromJSON(json['nextView']),
|
|
25
25
|
'emailVerification': !runtime.exists(json, 'emailVerification') ? undefined : EmailVerificationCreateResponse.EmailVerificationCreateResponseFromJSON(json['emailVerification']),
|
|
@@ -20,11 +20,11 @@ import { SmsVerificationCreateResponse } from './SmsVerificationCreateResponse';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface UpdateSelfResponse {
|
|
22
22
|
/**
|
|
23
|
-
* Encoded JWT token
|
|
23
|
+
* Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateSelfResponse
|
|
26
26
|
*/
|
|
27
|
-
jwt
|
|
27
|
+
jwt?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {SdkUser}
|
|
@@ -32,11 +32,11 @@ export interface UpdateSelfResponse {
|
|
|
32
32
|
*/
|
|
33
33
|
user: SdkUser;
|
|
34
34
|
/**
|
|
35
|
-
* Encoded JWT token
|
|
35
|
+
* Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof UpdateSelfResponse
|
|
38
38
|
*/
|
|
39
|
-
minifiedJwt
|
|
39
|
+
minifiedJwt?: string;
|
|
40
40
|
/**
|
|
41
41
|
* Format is a unix-based timestamp. When set, this will be the expiration timestamp on the JWT sent using either the `jwt` field or a response httpOnly cookie set by the server.
|
|
42
42
|
* @type {number}
|
|
@@ -13,9 +13,9 @@ function UpdateSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
'jwt': json['jwt'],
|
|
16
|
+
'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
|
|
17
17
|
'user': SdkUserFromJSON(json['user']),
|
|
18
|
-
'minifiedJwt': json['minifiedJwt'],
|
|
18
|
+
'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
19
19
|
'expiresAt': json['expiresAt'],
|
|
20
20
|
'nextView': NextViewEnumFromJSON(json['nextView']),
|
|
21
21
|
'emailVerification': !exists(json, 'emailVerification') ? undefined : EmailVerificationCreateResponseFromJSON(json['emailVerification']),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
5
6
|
var SdkUser = require('./SdkUser.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
@@ -13,9 +14,9 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
14
|
return json;
|
|
14
15
|
}
|
|
15
16
|
return {
|
|
16
|
-
'jwt': json['jwt'],
|
|
17
|
+
'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
|
|
17
18
|
'user': SdkUser.SdkUserFromJSON(json['user']),
|
|
18
|
-
'minifiedJwt': json['minifiedJwt'],
|
|
19
|
+
'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
19
20
|
'expiresAt': json['expiresAt'],
|
|
20
21
|
};
|
|
21
22
|
}
|
|
@@ -17,11 +17,11 @@ import { SdkUser } from './SdkUser';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface VerifyResponse {
|
|
19
19
|
/**
|
|
20
|
-
* Encoded JWT token
|
|
20
|
+
* Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof VerifyResponse
|
|
23
23
|
*/
|
|
24
|
-
jwt
|
|
24
|
+
jwt?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {SdkUser}
|
|
@@ -29,11 +29,11 @@ export interface VerifyResponse {
|
|
|
29
29
|
*/
|
|
30
30
|
user: SdkUser;
|
|
31
31
|
/**
|
|
32
|
-
* Encoded JWT token
|
|
32
|
+
* Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof VerifyResponse
|
|
35
35
|
*/
|
|
36
|
-
minifiedJwt
|
|
36
|
+
minifiedJwt?: string;
|
|
37
37
|
/**
|
|
38
38
|
* Format is a unix-based timestamp. When set, this will be the expiration timestamp on the JWT sent using either the `jwt` field or a response httpOnly cookie set by the server.
|
|
39
39
|
* @type {number}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
1
2
|
import { SdkUserFromJSON, SdkUserToJSON } from './SdkUser.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
@@ -9,9 +10,9 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
10
|
return json;
|
|
10
11
|
}
|
|
11
12
|
return {
|
|
12
|
-
'jwt': json['jwt'],
|
|
13
|
+
'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
|
|
13
14
|
'user': SdkUserFromJSON(json['user']),
|
|
14
|
-
'minifiedJwt': json['minifiedJwt'],
|
|
15
|
+
'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
15
16
|
'expiresAt': json['expiresAt'],
|
|
16
17
|
};
|
|
17
18
|
}
|