@dynamic-labs/sdk-api 0.0.340 → 0.0.342
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/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/MinifiedDynamicJwt.cjs +51 -0
- package/src/models/MinifiedDynamicJwt.d.ts +81 -0
- package/src/models/MinifiedDynamicJwt.js +45 -0
- package/src/models/SdkUser.cjs +4 -0
- package/src/models/SdkUser.d.ts +12 -0
- package/src/models/SdkUser.js +4 -0
- package/src/models/SubscriptionAdvancedScopeEnum.cjs +1 -0
- package/src/models/SubscriptionAdvancedScopeEnum.d.ts +2 -1
- package/src/models/SubscriptionAdvancedScopeEnum.js +1 -0
- package/src/models/UpdateSelfResponse.cjs +2 -0
- package/src/models/UpdateSelfResponse.d.ts +6 -0
- package/src/models/UpdateSelfResponse.js +2 -0
- package/src/models/User.cjs +4 -0
- package/src/models/User.d.ts +12 -0
- package/src/models/User.js +4 -0
- package/src/models/VerifyResponse.cjs +2 -0
- package/src/models/VerifyResponse.d.ts +6 -0
- package/src/models/VerifyResponse.js +2 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -118,6 +118,7 @@ var JwtVerifiedCredentialFormatEnum = require('./models/JwtVerifiedCredentialFor
|
|
|
118
118
|
var Key = require('./models/Key.cjs');
|
|
119
119
|
var KeyResponse = require('./models/KeyResponse.cjs');
|
|
120
120
|
var MethodNotAllowed = require('./models/MethodNotAllowed.cjs');
|
|
121
|
+
var MinifiedDynamicJwt = require('./models/MinifiedDynamicJwt.cjs');
|
|
121
122
|
var NameService = require('./models/NameService.cjs');
|
|
122
123
|
var NameServiceData = require('./models/NameServiceData.cjs');
|
|
123
124
|
var NativeCurrency = require('./models/NativeCurrency.cjs');
|
|
@@ -623,6 +624,9 @@ exports.KeyResponseToJSON = KeyResponse.KeyResponseToJSON;
|
|
|
623
624
|
exports.MethodNotAllowedFromJSON = MethodNotAllowed.MethodNotAllowedFromJSON;
|
|
624
625
|
exports.MethodNotAllowedFromJSONTyped = MethodNotAllowed.MethodNotAllowedFromJSONTyped;
|
|
625
626
|
exports.MethodNotAllowedToJSON = MethodNotAllowed.MethodNotAllowedToJSON;
|
|
627
|
+
exports.MinifiedDynamicJwtFromJSON = MinifiedDynamicJwt.MinifiedDynamicJwtFromJSON;
|
|
628
|
+
exports.MinifiedDynamicJwtFromJSONTyped = MinifiedDynamicJwt.MinifiedDynamicJwtFromJSONTyped;
|
|
629
|
+
exports.MinifiedDynamicJwtToJSON = MinifiedDynamicJwt.MinifiedDynamicJwtToJSON;
|
|
626
630
|
exports.NameServiceFromJSON = NameService.NameServiceFromJSON;
|
|
627
631
|
exports.NameServiceFromJSONTyped = NameService.NameServiceFromJSONTyped;
|
|
628
632
|
exports.NameServiceToJSON = NameService.NameServiceToJSON;
|
package/src/index.js
CHANGED
|
@@ -114,6 +114,7 @@ export { JwtVerifiedCredentialFormatEnum, JwtVerifiedCredentialFormatEnumFromJSO
|
|
|
114
114
|
export { KeyFromJSON, KeyFromJSONTyped, KeyToJSON } from './models/Key.js';
|
|
115
115
|
export { KeyResponseFromJSON, KeyResponseFromJSONTyped, KeyResponseToJSON } from './models/KeyResponse.js';
|
|
116
116
|
export { MethodNotAllowedFromJSON, MethodNotAllowedFromJSONTyped, MethodNotAllowedToJSON } from './models/MethodNotAllowed.js';
|
|
117
|
+
export { MinifiedDynamicJwtFromJSON, MinifiedDynamicJwtFromJSONTyped, MinifiedDynamicJwtToJSON } from './models/MinifiedDynamicJwt.js';
|
|
117
118
|
export { NameServiceFromJSON, NameServiceFromJSONTyped, NameServiceToJSON } from './models/NameService.js';
|
|
118
119
|
export { NameServiceDataFromJSON, NameServiceDataFromJSONTyped, NameServiceDataToJSON } from './models/NameServiceData.js';
|
|
119
120
|
export { NativeCurrencyFromJSON, NativeCurrencyFromJSONTyped, NativeCurrencyToJSON } from './models/NativeCurrency.js';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function MinifiedDynamicJwtFromJSON(json) {
|
|
9
|
+
return MinifiedDynamicJwtFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'kid': json['kid'],
|
|
17
|
+
'aud': json['aud'],
|
|
18
|
+
'iss': json['iss'],
|
|
19
|
+
'sub': json['sub'],
|
|
20
|
+
'sid': json['sid'],
|
|
21
|
+
'exp': !runtime.exists(json, 'exp') ? undefined : json['exp'],
|
|
22
|
+
'iat': !runtime.exists(json, 'iat') ? undefined : json['iat'],
|
|
23
|
+
'environmentId': json['environment_id'],
|
|
24
|
+
'lastVerifiedCredentialId': !runtime.exists(json, 'last_verified_credential_id') ? undefined : json['last_verified_credential_id'],
|
|
25
|
+
'memberEnvironmentIds': !runtime.exists(json, 'member_environment_ids') ? undefined : json['member_environment_ids'],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function MinifiedDynamicJwtToJSON(value) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'kid': value.kid,
|
|
37
|
+
'aud': value.aud,
|
|
38
|
+
'iss': value.iss,
|
|
39
|
+
'sub': value.sub,
|
|
40
|
+
'sid': value.sid,
|
|
41
|
+
'exp': value.exp,
|
|
42
|
+
'iat': value.iat,
|
|
43
|
+
'environment_id': value.environmentId,
|
|
44
|
+
'last_verified_credential_id': value.lastVerifiedCredentialId,
|
|
45
|
+
'member_environment_ids': value.memberEnvironmentIds,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
exports.MinifiedDynamicJwtFromJSON = MinifiedDynamicJwtFromJSON;
|
|
50
|
+
exports.MinifiedDynamicJwtFromJSONTyped = MinifiedDynamicJwtFromJSONTyped;
|
|
51
|
+
exports.MinifiedDynamicJwtToJSON = MinifiedDynamicJwtToJSON;
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
* This contains standard JWT claims to identify a session for the Dynamic user. For more details, see: https://www.iana.org/assignments/jwt/jwt.xhtml#claims
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MinifiedDynamicJwt
|
|
16
|
+
*/
|
|
17
|
+
export interface MinifiedDynamicJwt {
|
|
18
|
+
/**
|
|
19
|
+
* Project environment jwt public key id, used to verify the jwt using the the jwks endpoint
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MinifiedDynamicJwt
|
|
22
|
+
*/
|
|
23
|
+
kid: string;
|
|
24
|
+
/**
|
|
25
|
+
* Audience: this will be the origin header, pertaining to the client site
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MinifiedDynamicJwt
|
|
28
|
+
*/
|
|
29
|
+
aud: string;
|
|
30
|
+
/**
|
|
31
|
+
* Issuer: current backend api host + environment id
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MinifiedDynamicJwt
|
|
34
|
+
*/
|
|
35
|
+
iss: string;
|
|
36
|
+
/**
|
|
37
|
+
* Dynamic user ID
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MinifiedDynamicJwt
|
|
40
|
+
*/
|
|
41
|
+
sub: string;
|
|
42
|
+
/**
|
|
43
|
+
* Dynamic session ID
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof MinifiedDynamicJwt
|
|
46
|
+
*/
|
|
47
|
+
sid: string;
|
|
48
|
+
/**
|
|
49
|
+
* Expiration timestamp
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof MinifiedDynamicJwt
|
|
52
|
+
*/
|
|
53
|
+
exp?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Timestamp for when the JWT was issued at
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof MinifiedDynamicJwt
|
|
58
|
+
*/
|
|
59
|
+
iat?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Dynamic environment ID
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof MinifiedDynamicJwt
|
|
64
|
+
*/
|
|
65
|
+
environmentId: string;
|
|
66
|
+
/**
|
|
67
|
+
* ID of the most recently used verified credential. This would refer to a value in the verified credentials list in the corresponding SdkUser
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof MinifiedDynamicJwt
|
|
70
|
+
*/
|
|
71
|
+
lastVerifiedCredentialId?: string;
|
|
72
|
+
/**
|
|
73
|
+
* This will be populated when `environment_id` is the Dynamic production environment ID. This is a list of environment IDs that the subject user ID can make configuration and set up changes as as organization admin.
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof MinifiedDynamicJwt
|
|
76
|
+
*/
|
|
77
|
+
memberEnvironmentIds?: Array<string>;
|
|
78
|
+
}
|
|
79
|
+
export declare function MinifiedDynamicJwtFromJSON(json: any): MinifiedDynamicJwt;
|
|
80
|
+
export declare function MinifiedDynamicJwtFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinifiedDynamicJwt;
|
|
81
|
+
export declare function MinifiedDynamicJwtToJSON(value?: MinifiedDynamicJwt | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function MinifiedDynamicJwtFromJSON(json) {
|
|
5
|
+
return MinifiedDynamicJwtFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'kid': json['kid'],
|
|
13
|
+
'aud': json['aud'],
|
|
14
|
+
'iss': json['iss'],
|
|
15
|
+
'sub': json['sub'],
|
|
16
|
+
'sid': json['sid'],
|
|
17
|
+
'exp': !exists(json, 'exp') ? undefined : json['exp'],
|
|
18
|
+
'iat': !exists(json, 'iat') ? undefined : json['iat'],
|
|
19
|
+
'environmentId': json['environment_id'],
|
|
20
|
+
'lastVerifiedCredentialId': !exists(json, 'last_verified_credential_id') ? undefined : json['last_verified_credential_id'],
|
|
21
|
+
'memberEnvironmentIds': !exists(json, 'member_environment_ids') ? undefined : json['member_environment_ids'],
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function MinifiedDynamicJwtToJSON(value) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'kid': value.kid,
|
|
33
|
+
'aud': value.aud,
|
|
34
|
+
'iss': value.iss,
|
|
35
|
+
'sub': value.sub,
|
|
36
|
+
'sid': value.sid,
|
|
37
|
+
'exp': value.exp,
|
|
38
|
+
'iat': value.iat,
|
|
39
|
+
'environment_id': value.environmentId,
|
|
40
|
+
'last_verified_credential_id': value.lastVerifiedCredentialId,
|
|
41
|
+
'member_environment_ids': value.memberEnvironmentIds,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { MinifiedDynamicJwtFromJSON, MinifiedDynamicJwtFromJSONTyped, MinifiedDynamicJwtToJSON };
|
package/src/models/SdkUser.cjs
CHANGED
|
@@ -41,6 +41,8 @@ function SdkUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'emailNotification': !runtime.exists(json, 'emailNotification') ? undefined : json['emailNotification'],
|
|
42
42
|
'discordNotification': !runtime.exists(json, 'discordNotification') ? undefined : json['discordNotification'],
|
|
43
43
|
'newsletterNotification': !runtime.exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
|
|
44
|
+
'lists': !runtime.exists(json, 'lists') ? undefined : json['lists'],
|
|
45
|
+
'scope': !runtime.exists(json, 'scope') ? undefined : json['scope'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
function SdkUserToJSON(value) {
|
|
@@ -78,6 +80,8 @@ function SdkUserToJSON(value) {
|
|
|
78
80
|
'emailNotification': value.emailNotification,
|
|
79
81
|
'discordNotification': value.discordNotification,
|
|
80
82
|
'newsletterNotification': value.newsletterNotification,
|
|
83
|
+
'lists': value.lists,
|
|
84
|
+
'scope': value.scope,
|
|
81
85
|
};
|
|
82
86
|
}
|
|
83
87
|
|
package/src/models/SdkUser.d.ts
CHANGED
|
@@ -178,6 +178,18 @@ export interface SdkUser {
|
|
|
178
178
|
* @memberof SdkUser
|
|
179
179
|
*/
|
|
180
180
|
newsletterNotification?: boolean | null;
|
|
181
|
+
/**
|
|
182
|
+
* Access lists evaluated by Dynamic when considering access for the user.
|
|
183
|
+
* @type {Array<string>}
|
|
184
|
+
* @memberof SdkUser
|
|
185
|
+
*/
|
|
186
|
+
lists?: Array<string>;
|
|
187
|
+
/**
|
|
188
|
+
* A whitespace-separate list of permissions associated with the JWT token issued. This conforms to the JWT standard for scope claims: https://datatracker.ietf.org/doc/html/rfc8693#section-4.2
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof SdkUser
|
|
191
|
+
*/
|
|
192
|
+
scope?: string;
|
|
181
193
|
}
|
|
182
194
|
export declare function SdkUserFromJSON(json: any): SdkUser;
|
|
183
195
|
export declare function SdkUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): SdkUser;
|
package/src/models/SdkUser.js
CHANGED
|
@@ -37,6 +37,8 @@ function SdkUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'emailNotification': !exists(json, 'emailNotification') ? undefined : json['emailNotification'],
|
|
38
38
|
'discordNotification': !exists(json, 'discordNotification') ? undefined : json['discordNotification'],
|
|
39
39
|
'newsletterNotification': !exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
|
|
40
|
+
'lists': !exists(json, 'lists') ? undefined : json['lists'],
|
|
41
|
+
'scope': !exists(json, 'scope') ? undefined : json['scope'],
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
function SdkUserToJSON(value) {
|
|
@@ -74,6 +76,8 @@ function SdkUserToJSON(value) {
|
|
|
74
76
|
'emailNotification': value.emailNotification,
|
|
75
77
|
'discordNotification': value.discordNotification,
|
|
76
78
|
'newsletterNotification': value.newsletterNotification,
|
|
79
|
+
'lists': value.lists,
|
|
80
|
+
'scope': value.scope,
|
|
77
81
|
};
|
|
78
82
|
}
|
|
79
83
|
|
|
@@ -34,6 +34,7 @@ exports.SubscriptionAdvancedScopeEnum = void 0;
|
|
|
34
34
|
SubscriptionAdvancedScopeEnum["SigninWithEmail"] = "signin_with_email";
|
|
35
35
|
SubscriptionAdvancedScopeEnum["Gating"] = "gating";
|
|
36
36
|
SubscriptionAdvancedScopeEnum["AccountAbstraction"] = "account_abstraction";
|
|
37
|
+
SubscriptionAdvancedScopeEnum["Webhooks"] = "webhooks";
|
|
37
38
|
})(exports.SubscriptionAdvancedScopeEnum || (exports.SubscriptionAdvancedScopeEnum = {}));
|
|
38
39
|
function SubscriptionAdvancedScopeEnumFromJSON(json) {
|
|
39
40
|
return SubscriptionAdvancedScopeEnumFromJSONTyped(json);
|
|
@@ -26,7 +26,8 @@ export declare enum SubscriptionAdvancedScopeEnum {
|
|
|
26
26
|
Captcha = "captcha",
|
|
27
27
|
SigninWithEmail = "signin_with_email",
|
|
28
28
|
Gating = "gating",
|
|
29
|
-
AccountAbstraction = "account_abstraction"
|
|
29
|
+
AccountAbstraction = "account_abstraction",
|
|
30
|
+
Webhooks = "webhooks"
|
|
30
31
|
}
|
|
31
32
|
export declare function SubscriptionAdvancedScopeEnumFromJSON(json: any): SubscriptionAdvancedScopeEnum;
|
|
32
33
|
export declare function SubscriptionAdvancedScopeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionAdvancedScopeEnum;
|
|
@@ -30,6 +30,7 @@ var SubscriptionAdvancedScopeEnum;
|
|
|
30
30
|
SubscriptionAdvancedScopeEnum["SigninWithEmail"] = "signin_with_email";
|
|
31
31
|
SubscriptionAdvancedScopeEnum["Gating"] = "gating";
|
|
32
32
|
SubscriptionAdvancedScopeEnum["AccountAbstraction"] = "account_abstraction";
|
|
33
|
+
SubscriptionAdvancedScopeEnum["Webhooks"] = "webhooks";
|
|
33
34
|
})(SubscriptionAdvancedScopeEnum || (SubscriptionAdvancedScopeEnum = {}));
|
|
34
35
|
function SubscriptionAdvancedScopeEnumFromJSON(json) {
|
|
35
36
|
return SubscriptionAdvancedScopeEnumFromJSONTyped(json);
|
|
@@ -20,6 +20,7 @@ function UpdateSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
20
|
'nextView': NextViewEnum.NextViewEnumFromJSON(json['nextView']),
|
|
21
21
|
'emailVerification': !runtime.exists(json, 'emailVerification') ? undefined : EmailVerificationCreateResponse.EmailVerificationCreateResponseFromJSON(json['emailVerification']),
|
|
22
22
|
'jwt': json['jwt'],
|
|
23
|
+
'minifiedJwt': json['minifiedJwt'],
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
function UpdateSelfResponseToJSON(value) {
|
|
@@ -34,6 +35,7 @@ function UpdateSelfResponseToJSON(value) {
|
|
|
34
35
|
'nextView': NextViewEnum.NextViewEnumToJSON(value.nextView),
|
|
35
36
|
'emailVerification': EmailVerificationCreateResponse.EmailVerificationCreateResponseToJSON(value.emailVerification),
|
|
36
37
|
'jwt': value.jwt,
|
|
38
|
+
'minifiedJwt': value.minifiedJwt,
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -42,6 +42,12 @@ export interface UpdateSelfResponse {
|
|
|
42
42
|
* @memberof UpdateSelfResponse
|
|
43
43
|
*/
|
|
44
44
|
jwt: string;
|
|
45
|
+
/**
|
|
46
|
+
* Encoded JWT token
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof UpdateSelfResponse
|
|
49
|
+
*/
|
|
50
|
+
minifiedJwt: string;
|
|
45
51
|
}
|
|
46
52
|
export declare function UpdateSelfResponseFromJSON(json: any): UpdateSelfResponse;
|
|
47
53
|
export declare function UpdateSelfResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSelfResponse;
|
|
@@ -16,6 +16,7 @@ function UpdateSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
16
|
'nextView': NextViewEnumFromJSON(json['nextView']),
|
|
17
17
|
'emailVerification': !exists(json, 'emailVerification') ? undefined : EmailVerificationCreateResponseFromJSON(json['emailVerification']),
|
|
18
18
|
'jwt': json['jwt'],
|
|
19
|
+
'minifiedJwt': json['minifiedJwt'],
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
function UpdateSelfResponseToJSON(value) {
|
|
@@ -30,6 +31,7 @@ function UpdateSelfResponseToJSON(value) {
|
|
|
30
31
|
'nextView': NextViewEnumToJSON(value.nextView),
|
|
31
32
|
'emailVerification': EmailVerificationCreateResponseToJSON(value.emailVerification),
|
|
32
33
|
'jwt': value.jwt,
|
|
34
|
+
'minifiedJwt': value.minifiedJwt,
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
|
package/src/models/User.cjs
CHANGED
|
@@ -46,6 +46,8 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'emailNotification': !runtime.exists(json, 'emailNotification') ? undefined : json['emailNotification'],
|
|
47
47
|
'discordNotification': !runtime.exists(json, 'discordNotification') ? undefined : json['discordNotification'],
|
|
48
48
|
'newsletterNotification': !runtime.exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
|
|
49
|
+
'lists': !runtime.exists(json, 'lists') ? undefined : json['lists'],
|
|
50
|
+
'scope': !runtime.exists(json, 'scope') ? undefined : json['scope'],
|
|
49
51
|
'walletPublicKey': !runtime.exists(json, 'walletPublicKey') ? undefined : json['walletPublicKey'],
|
|
50
52
|
'wallet': !runtime.exists(json, 'wallet') ? undefined : json['wallet'],
|
|
51
53
|
'chain': !runtime.exists(json, 'chain') ? undefined : ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
@@ -92,6 +94,8 @@ function UserToJSON(value) {
|
|
|
92
94
|
'emailNotification': value.emailNotification,
|
|
93
95
|
'discordNotification': value.discordNotification,
|
|
94
96
|
'newsletterNotification': value.newsletterNotification,
|
|
97
|
+
'lists': value.lists,
|
|
98
|
+
'scope': value.scope,
|
|
95
99
|
'walletPublicKey': value.walletPublicKey,
|
|
96
100
|
'wallet': value.wallet,
|
|
97
101
|
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
package/src/models/User.d.ts
CHANGED
|
@@ -183,6 +183,18 @@ export interface User {
|
|
|
183
183
|
* @memberof User
|
|
184
184
|
*/
|
|
185
185
|
newsletterNotification?: boolean | null;
|
|
186
|
+
/**
|
|
187
|
+
* Access lists evaluated by Dynamic when considering access for the user.
|
|
188
|
+
* @type {Array<string>}
|
|
189
|
+
* @memberof User
|
|
190
|
+
*/
|
|
191
|
+
lists?: Array<string>;
|
|
192
|
+
/**
|
|
193
|
+
* A whitespace-separate list of permissions associated with the JWT token issued. This conforms to the JWT standard for scope claims: https://datatracker.ietf.org/doc/html/rfc8693#section-4.2
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof User
|
|
196
|
+
*/
|
|
197
|
+
scope?: string;
|
|
186
198
|
/**
|
|
187
199
|
*
|
|
188
200
|
* @type {string}
|
package/src/models/User.js
CHANGED
|
@@ -42,6 +42,8 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'emailNotification': !exists(json, 'emailNotification') ? undefined : json['emailNotification'],
|
|
43
43
|
'discordNotification': !exists(json, 'discordNotification') ? undefined : json['discordNotification'],
|
|
44
44
|
'newsletterNotification': !exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
|
|
45
|
+
'lists': !exists(json, 'lists') ? undefined : json['lists'],
|
|
46
|
+
'scope': !exists(json, 'scope') ? undefined : json['scope'],
|
|
45
47
|
'walletPublicKey': !exists(json, 'walletPublicKey') ? undefined : json['walletPublicKey'],
|
|
46
48
|
'wallet': !exists(json, 'wallet') ? undefined : json['wallet'],
|
|
47
49
|
'chain': !exists(json, 'chain') ? undefined : ChainEnumFromJSON(json['chain']),
|
|
@@ -88,6 +90,8 @@ function UserToJSON(value) {
|
|
|
88
90
|
'emailNotification': value.emailNotification,
|
|
89
91
|
'discordNotification': value.discordNotification,
|
|
90
92
|
'newsletterNotification': value.newsletterNotification,
|
|
93
|
+
'lists': value.lists,
|
|
94
|
+
'scope': value.scope,
|
|
91
95
|
'walletPublicKey': value.walletPublicKey,
|
|
92
96
|
'wallet': value.wallet,
|
|
93
97
|
'chain': ChainEnumToJSON(value.chain),
|
|
@@ -15,6 +15,7 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
return {
|
|
16
16
|
'jwt': json['jwt'],
|
|
17
17
|
'user': SdkUser.SdkUserFromJSON(json['user']),
|
|
18
|
+
'minifiedJwt': json['minifiedJwt'],
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
function VerifyResponseToJSON(value) {
|
|
@@ -27,6 +28,7 @@ function VerifyResponseToJSON(value) {
|
|
|
27
28
|
return {
|
|
28
29
|
'jwt': value.jwt,
|
|
29
30
|
'user': SdkUser.SdkUserToJSON(value.user),
|
|
31
|
+
'minifiedJwt': value.minifiedJwt,
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -28,6 +28,12 @@ export interface VerifyResponse {
|
|
|
28
28
|
* @memberof VerifyResponse
|
|
29
29
|
*/
|
|
30
30
|
user: SdkUser;
|
|
31
|
+
/**
|
|
32
|
+
* Encoded JWT token
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof VerifyResponse
|
|
35
|
+
*/
|
|
36
|
+
minifiedJwt: string;
|
|
31
37
|
}
|
|
32
38
|
export declare function VerifyResponseFromJSON(json: any): VerifyResponse;
|
|
33
39
|
export declare function VerifyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyResponse;
|
|
@@ -11,6 +11,7 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11
11
|
return {
|
|
12
12
|
'jwt': json['jwt'],
|
|
13
13
|
'user': SdkUserFromJSON(json['user']),
|
|
14
|
+
'minifiedJwt': json['minifiedJwt'],
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
17
|
function VerifyResponseToJSON(value) {
|
|
@@ -23,6 +24,7 @@ function VerifyResponseToJSON(value) {
|
|
|
23
24
|
return {
|
|
24
25
|
'jwt': value.jwt,
|
|
25
26
|
'user': SdkUserToJSON(value.user),
|
|
27
|
+
'minifiedJwt': value.minifiedJwt,
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export * from './JwtVerifiedCredentialFormatEnum';
|
|
|
91
91
|
export * from './Key';
|
|
92
92
|
export * from './KeyResponse';
|
|
93
93
|
export * from './MethodNotAllowed';
|
|
94
|
+
export * from './MinifiedDynamicJwt';
|
|
94
95
|
export * from './NameService';
|
|
95
96
|
export * from './NameServiceData';
|
|
96
97
|
export * from './NativeCurrency';
|