@dynamic-labs/sdk-api-core 0.0.475 → 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/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
|
|
|
@@ -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);
|