@dynamic-labs/sdk-api-core 0.0.474 → 0.0.476
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/models/CreateUserEmbeddedWalletsRequest.cjs +3 -0
- package/src/models/CreateUserEmbeddedWalletsRequest.d.ts +7 -0
- package/src/models/CreateUserEmbeddedWalletsRequest.js +3 -0
- package/src/models/DynamicJwt.cjs +0 -2
- package/src/models/DynamicJwt.d.ts +0 -6
- package/src/models/DynamicJwt.js +0 -2
- package/src/models/MinifiedDynamicJwt.cjs +0 -2
- package/src/models/MinifiedDynamicJwt.d.ts +0 -6
- package/src/models/MinifiedDynamicJwt.js +0 -2
- package/src/models/UserIdentifierTypeEnum.cjs +1 -0
- package/src/models/UserIdentifierTypeEnum.d.ts +2 -1
- package/src/models/UserIdentifierTypeEnum.js +1 -0
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
|
+
var ProviderEnum = require('./ProviderEnum.cjs');
|
|
7
8
|
var SmsCountryCode = require('./SmsCountryCode.cjs');
|
|
8
9
|
var UserIdentifierTypeEnum = require('./UserIdentifierTypeEnum.cjs');
|
|
9
10
|
|
|
@@ -20,6 +21,7 @@ function CreateUserEmbeddedWalletsRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
20
21
|
'type': UserIdentifierTypeEnum.UserIdentifierTypeEnumFromJSON(json['type']),
|
|
21
22
|
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
22
23
|
'smsCountryCode': !runtime.exists(json, 'smsCountryCode') ? undefined : SmsCountryCode.SmsCountryCodeFromJSON(json['smsCountryCode']),
|
|
24
|
+
'socialProvider': !runtime.exists(json, 'socialProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['socialProvider']),
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
function CreateUserEmbeddedWalletsRequestToJSON(value) {
|
|
@@ -34,6 +36,7 @@ function CreateUserEmbeddedWalletsRequestToJSON(value) {
|
|
|
34
36
|
'type': UserIdentifierTypeEnum.UserIdentifierTypeEnumToJSON(value.type),
|
|
35
37
|
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
36
38
|
'smsCountryCode': SmsCountryCode.SmsCountryCodeToJSON(value.smsCountryCode),
|
|
39
|
+
'socialProvider': ProviderEnum.ProviderEnumToJSON(value.socialProvider),
|
|
37
40
|
};
|
|
38
41
|
}
|
|
39
42
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
import { ProviderEnum } from './ProviderEnum';
|
|
13
14
|
import { SmsCountryCode } from './SmsCountryCode';
|
|
14
15
|
import { UserIdentifierTypeEnum } from './UserIdentifierTypeEnum';
|
|
15
16
|
/**
|
|
@@ -42,6 +43,12 @@ export interface CreateUserEmbeddedWalletsRequest {
|
|
|
42
43
|
* @memberof CreateUserEmbeddedWalletsRequest
|
|
43
44
|
*/
|
|
44
45
|
smsCountryCode?: SmsCountryCode;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {ProviderEnum}
|
|
49
|
+
* @memberof CreateUserEmbeddedWalletsRequest
|
|
50
|
+
*/
|
|
51
|
+
socialProvider?: ProviderEnum;
|
|
45
52
|
}
|
|
46
53
|
export declare function CreateUserEmbeddedWalletsRequestFromJSON(json: any): CreateUserEmbeddedWalletsRequest;
|
|
47
54
|
export declare function CreateUserEmbeddedWalletsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserEmbeddedWalletsRequest;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
+
import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
|
|
3
4
|
import { SmsCountryCodeFromJSON, SmsCountryCodeToJSON } from './SmsCountryCode.js';
|
|
4
5
|
import { UserIdentifierTypeEnumFromJSON, UserIdentifierTypeEnumToJSON } from './UserIdentifierTypeEnum.js';
|
|
5
6
|
|
|
@@ -16,6 +17,7 @@ function CreateUserEmbeddedWalletsRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
16
17
|
'type': UserIdentifierTypeEnumFromJSON(json['type']),
|
|
17
18
|
'chain': ChainEnumFromJSON(json['chain']),
|
|
18
19
|
'smsCountryCode': !exists(json, 'smsCountryCode') ? undefined : SmsCountryCodeFromJSON(json['smsCountryCode']),
|
|
20
|
+
'socialProvider': !exists(json, 'socialProvider') ? undefined : ProviderEnumFromJSON(json['socialProvider']),
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
function CreateUserEmbeddedWalletsRequestToJSON(value) {
|
|
@@ -30,6 +32,7 @@ function CreateUserEmbeddedWalletsRequestToJSON(value) {
|
|
|
30
32
|
'type': UserIdentifierTypeEnumToJSON(value.type),
|
|
31
33
|
'chain': ChainEnumToJSON(value.chain),
|
|
32
34
|
'smsCountryCode': SmsCountryCodeToJSON(value.smsCountryCode),
|
|
35
|
+
'socialProvider': ProviderEnumToJSON(value.socialProvider),
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -57,7 +57,6 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'discordNotification': !runtime.exists(json, 'discord_notification') ? undefined : json['discord_notification'],
|
|
58
58
|
'newsletterNotification': !runtime.exists(json, 'newsletter_notification') ? undefined : json['newsletter_notification'],
|
|
59
59
|
'metadata': !runtime.exists(json, 'metadata') ? undefined : json['metadata'],
|
|
60
|
-
'memberEnvironmentIds': !runtime.exists(json, 'member_environment_ids') ? undefined : json['member_environment_ids'],
|
|
61
60
|
'info': !runtime.exists(json, 'info') ? undefined : JwtPayloadDeprecatedInfo.JwtPayloadDeprecatedInfoFromJSON(json['info']),
|
|
62
61
|
};
|
|
63
62
|
}
|
|
@@ -109,7 +108,6 @@ function DynamicJwtToJSON(value) {
|
|
|
109
108
|
'discord_notification': value.discordNotification,
|
|
110
109
|
'newsletter_notification': value.newsletterNotification,
|
|
111
110
|
'metadata': value.metadata,
|
|
112
|
-
'member_environment_ids': value.memberEnvironmentIds,
|
|
113
111
|
'info': JwtPayloadDeprecatedInfo.JwtPayloadDeprecatedInfoToJSON(value.info),
|
|
114
112
|
};
|
|
115
113
|
}
|
|
@@ -259,12 +259,6 @@ export interface DynamicJwt {
|
|
|
259
259
|
* @memberof DynamicJwt
|
|
260
260
|
*/
|
|
261
261
|
metadata?: object;
|
|
262
|
-
/**
|
|
263
|
-
* 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.
|
|
264
|
-
* @type {Array<string>}
|
|
265
|
-
* @memberof DynamicJwt
|
|
266
|
-
*/
|
|
267
|
-
memberEnvironmentIds?: Array<string>;
|
|
268
262
|
/**
|
|
269
263
|
*
|
|
270
264
|
* @type {JwtPayloadDeprecatedInfo}
|
package/src/models/DynamicJwt.js
CHANGED
|
@@ -53,7 +53,6 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'discordNotification': !exists(json, 'discord_notification') ? undefined : json['discord_notification'],
|
|
54
54
|
'newsletterNotification': !exists(json, 'newsletter_notification') ? undefined : json['newsletter_notification'],
|
|
55
55
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
56
|
-
'memberEnvironmentIds': !exists(json, 'member_environment_ids') ? undefined : json['member_environment_ids'],
|
|
57
56
|
'info': !exists(json, 'info') ? undefined : JwtPayloadDeprecatedInfoFromJSON(json['info']),
|
|
58
57
|
};
|
|
59
58
|
}
|
|
@@ -105,7 +104,6 @@ function DynamicJwtToJSON(value) {
|
|
|
105
104
|
'discord_notification': value.discordNotification,
|
|
106
105
|
'newsletter_notification': value.newsletterNotification,
|
|
107
106
|
'metadata': value.metadata,
|
|
108
|
-
'member_environment_ids': value.memberEnvironmentIds,
|
|
109
107
|
'info': JwtPayloadDeprecatedInfoToJSON(value.info),
|
|
110
108
|
};
|
|
111
109
|
}
|
|
@@ -22,7 +22,6 @@ function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
22
|
'iat': !runtime.exists(json, 'iat') ? undefined : json['iat'],
|
|
23
23
|
'environmentId': json['environment_id'],
|
|
24
24
|
'lastVerifiedCredentialId': json['last_verified_credential_id'],
|
|
25
|
-
'memberEnvironmentIds': !runtime.exists(json, 'member_environment_ids') ? undefined : json['member_environment_ids'],
|
|
26
25
|
'scope': !runtime.exists(json, 'scope') ? undefined : json['scope'],
|
|
27
26
|
};
|
|
28
27
|
}
|
|
@@ -43,7 +42,6 @@ function MinifiedDynamicJwtToJSON(value) {
|
|
|
43
42
|
'iat': value.iat,
|
|
44
43
|
'environment_id': value.environmentId,
|
|
45
44
|
'last_verified_credential_id': value.lastVerifiedCredentialId,
|
|
46
|
-
'member_environment_ids': value.memberEnvironmentIds,
|
|
47
45
|
'scope': value.scope,
|
|
48
46
|
};
|
|
49
47
|
}
|
|
@@ -69,12 +69,6 @@ export interface MinifiedDynamicJwt {
|
|
|
69
69
|
* @memberof MinifiedDynamicJwt
|
|
70
70
|
*/
|
|
71
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
72
|
/**
|
|
79
73
|
* 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
|
|
80
74
|
* @type {string}
|
|
@@ -18,7 +18,6 @@ function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
'iat': !exists(json, 'iat') ? undefined : json['iat'],
|
|
19
19
|
'environmentId': json['environment_id'],
|
|
20
20
|
'lastVerifiedCredentialId': json['last_verified_credential_id'],
|
|
21
|
-
'memberEnvironmentIds': !exists(json, 'member_environment_ids') ? undefined : json['member_environment_ids'],
|
|
22
21
|
'scope': !exists(json, 'scope') ? undefined : json['scope'],
|
|
23
22
|
};
|
|
24
23
|
}
|
|
@@ -39,7 +38,6 @@ function MinifiedDynamicJwtToJSON(value) {
|
|
|
39
38
|
'iat': value.iat,
|
|
40
39
|
'environment_id': value.environmentId,
|
|
41
40
|
'last_verified_credential_id': value.lastVerifiedCredentialId,
|
|
42
|
-
'member_environment_ids': value.memberEnvironmentIds,
|
|
43
41
|
'scope': value.scope,
|
|
44
42
|
};
|
|
45
43
|
}
|
|
@@ -26,6 +26,7 @@ exports.UserIdentifierTypeEnum = void 0;
|
|
|
26
26
|
UserIdentifierTypeEnum["Id"] = "id";
|
|
27
27
|
UserIdentifierTypeEnum["ExternalUserId"] = "externalUserId";
|
|
28
28
|
UserIdentifierTypeEnum["PhoneNumber"] = "phoneNumber";
|
|
29
|
+
UserIdentifierTypeEnum["SocialUsername"] = "socialUsername";
|
|
29
30
|
})(exports.UserIdentifierTypeEnum || (exports.UserIdentifierTypeEnum = {}));
|
|
30
31
|
function UserIdentifierTypeEnumFromJSON(json) {
|
|
31
32
|
return UserIdentifierTypeEnumFromJSONTyped(json);
|
|
@@ -18,7 +18,8 @@ export declare enum UserIdentifierTypeEnum {
|
|
|
18
18
|
Email = "email",
|
|
19
19
|
Id = "id",
|
|
20
20
|
ExternalUserId = "externalUserId",
|
|
21
|
-
PhoneNumber = "phoneNumber"
|
|
21
|
+
PhoneNumber = "phoneNumber",
|
|
22
|
+
SocialUsername = "socialUsername"
|
|
22
23
|
}
|
|
23
24
|
export declare function UserIdentifierTypeEnumFromJSON(json: any): UserIdentifierTypeEnum;
|
|
24
25
|
export declare function UserIdentifierTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserIdentifierTypeEnum;
|
|
@@ -22,6 +22,7 @@ var UserIdentifierTypeEnum;
|
|
|
22
22
|
UserIdentifierTypeEnum["Id"] = "id";
|
|
23
23
|
UserIdentifierTypeEnum["ExternalUserId"] = "externalUserId";
|
|
24
24
|
UserIdentifierTypeEnum["PhoneNumber"] = "phoneNumber";
|
|
25
|
+
UserIdentifierTypeEnum["SocialUsername"] = "socialUsername";
|
|
25
26
|
})(UserIdentifierTypeEnum || (UserIdentifierTypeEnum = {}));
|
|
26
27
|
function UserIdentifierTypeEnumFromJSON(json) {
|
|
27
28
|
return UserIdentifierTypeEnumFromJSONTyped(json);
|