@dynamic-labs/sdk-api 0.0.415 → 0.0.417
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/CreateUserOauthRequest.cjs +46 -0
- package/src/models/CreateUserOauthRequest.d.ts +64 -0
- package/src/models/CreateUserOauthRequest.js +40 -0
- package/src/models/InternalUserFields.cjs +5 -0
- package/src/models/InternalUserFields.d.ts +13 -0
- package/src/models/InternalUserFields.js +5 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -61,6 +61,7 @@ var CreateTokenResponse = require('./models/CreateTokenResponse.cjs');
|
|
|
61
61
|
var CreateTurnkeyEmbeddedWalletSpecificOpts = require('./models/CreateTurnkeyEmbeddedWalletSpecificOpts.cjs');
|
|
62
62
|
var CreateUserEmbeddedWalletsFromFarcasterRequest = require('./models/CreateUserEmbeddedWalletsFromFarcasterRequest.cjs');
|
|
63
63
|
var CreateUserEmbeddedWalletsRequest = require('./models/CreateUserEmbeddedWalletsRequest.cjs');
|
|
64
|
+
var CreateUserOauthRequest = require('./models/CreateUserOauthRequest.cjs');
|
|
64
65
|
var CreateWalletRequest = require('./models/CreateWalletRequest.cjs');
|
|
65
66
|
var Currency = require('./models/Currency.cjs');
|
|
66
67
|
var CurrencyType = require('./models/CurrencyType.cjs');
|
|
@@ -465,6 +466,9 @@ exports.CreateUserEmbeddedWalletsFromFarcasterRequestToJSON = CreateUserEmbedded
|
|
|
465
466
|
exports.CreateUserEmbeddedWalletsRequestFromJSON = CreateUserEmbeddedWalletsRequest.CreateUserEmbeddedWalletsRequestFromJSON;
|
|
466
467
|
exports.CreateUserEmbeddedWalletsRequestFromJSONTyped = CreateUserEmbeddedWalletsRequest.CreateUserEmbeddedWalletsRequestFromJSONTyped;
|
|
467
468
|
exports.CreateUserEmbeddedWalletsRequestToJSON = CreateUserEmbeddedWalletsRequest.CreateUserEmbeddedWalletsRequestToJSON;
|
|
469
|
+
exports.CreateUserOauthRequestFromJSON = CreateUserOauthRequest.CreateUserOauthRequestFromJSON;
|
|
470
|
+
exports.CreateUserOauthRequestFromJSONTyped = CreateUserOauthRequest.CreateUserOauthRequestFromJSONTyped;
|
|
471
|
+
exports.CreateUserOauthRequestToJSON = CreateUserOauthRequest.CreateUserOauthRequestToJSON;
|
|
468
472
|
exports.CreateWalletRequestFromJSON = CreateWalletRequest.CreateWalletRequestFromJSON;
|
|
469
473
|
exports.CreateWalletRequestFromJSONTyped = CreateWalletRequest.CreateWalletRequestFromJSONTyped;
|
|
470
474
|
exports.CreateWalletRequestToJSON = CreateWalletRequest.CreateWalletRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -57,6 +57,7 @@ export { CreateTokenResponseFromJSON, CreateTokenResponseFromJSONTyped, CreateTo
|
|
|
57
57
|
export { CreateTurnkeyEmbeddedWalletSpecificOptsFromJSON, CreateTurnkeyEmbeddedWalletSpecificOptsFromJSONTyped, CreateTurnkeyEmbeddedWalletSpecificOptsToJSON } from './models/CreateTurnkeyEmbeddedWalletSpecificOpts.js';
|
|
58
58
|
export { CreateUserEmbeddedWalletsFromFarcasterRequestFromJSON, CreateUserEmbeddedWalletsFromFarcasterRequestFromJSONTyped, CreateUserEmbeddedWalletsFromFarcasterRequestToJSON } from './models/CreateUserEmbeddedWalletsFromFarcasterRequest.js';
|
|
59
59
|
export { CreateUserEmbeddedWalletsRequestFromJSON, CreateUserEmbeddedWalletsRequestFromJSONTyped, CreateUserEmbeddedWalletsRequestToJSON } from './models/CreateUserEmbeddedWalletsRequest.js';
|
|
60
|
+
export { CreateUserOauthRequestFromJSON, CreateUserOauthRequestFromJSONTyped, CreateUserOauthRequestToJSON } from './models/CreateUserOauthRequest.js';
|
|
60
61
|
export { CreateWalletRequestFromJSON, CreateWalletRequestFromJSONTyped, CreateWalletRequestToJSON } from './models/CreateWalletRequest.js';
|
|
61
62
|
export { CurrencyFromJSON, CurrencyFromJSONTyped, CurrencyToJSON } from './models/Currency.js';
|
|
62
63
|
export { CurrencyType, CurrencyTypeFromJSON, CurrencyTypeFromJSONTyped, CurrencyTypeToJSON } from './models/CurrencyType.js';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ProviderEnum = require('./ProviderEnum.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function CreateUserOauthRequestFromJSON(json) {
|
|
10
|
+
return CreateUserOauthRequestFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function CreateUserOauthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'provider': ProviderEnum.ProviderEnumFromJSON(json['provider']),
|
|
18
|
+
'accountId': json['accountId'],
|
|
19
|
+
'emails': !runtime.exists(json, 'emails') ? undefined : json['emails'],
|
|
20
|
+
'displayName': !runtime.exists(json, 'displayName') ? undefined : json['displayName'],
|
|
21
|
+
'username': !runtime.exists(json, 'username') ? undefined : json['username'],
|
|
22
|
+
'photos': !runtime.exists(json, 'photos') ? undefined : json['photos'],
|
|
23
|
+
'profile': !runtime.exists(json, 'profile') ? undefined : json['profile'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function CreateUserOauthRequestToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'provider': ProviderEnum.ProviderEnumToJSON(value.provider),
|
|
35
|
+
'accountId': value.accountId,
|
|
36
|
+
'emails': value.emails,
|
|
37
|
+
'displayName': value.displayName,
|
|
38
|
+
'username': value.username,
|
|
39
|
+
'photos': value.photos,
|
|
40
|
+
'profile': value.profile,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.CreateUserOauthRequestFromJSON = CreateUserOauthRequestFromJSON;
|
|
45
|
+
exports.CreateUserOauthRequestFromJSONTyped = CreateUserOauthRequestFromJSONTyped;
|
|
46
|
+
exports.CreateUserOauthRequestToJSON = CreateUserOauthRequestToJSON;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { ProviderEnum } from './ProviderEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateUserOauthRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateUserOauthRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ProviderEnum}
|
|
22
|
+
* @memberof CreateUserOauthRequest
|
|
23
|
+
*/
|
|
24
|
+
provider: ProviderEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateUserOauthRequest
|
|
29
|
+
*/
|
|
30
|
+
accountId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof CreateUserOauthRequest
|
|
35
|
+
*/
|
|
36
|
+
emails?: Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateUserOauthRequest
|
|
41
|
+
*/
|
|
42
|
+
displayName?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateUserOauthRequest
|
|
47
|
+
*/
|
|
48
|
+
username?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof CreateUserOauthRequest
|
|
53
|
+
*/
|
|
54
|
+
photos?: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {object}
|
|
58
|
+
* @memberof CreateUserOauthRequest
|
|
59
|
+
*/
|
|
60
|
+
profile?: object;
|
|
61
|
+
}
|
|
62
|
+
export declare function CreateUserOauthRequestFromJSON(json: any): CreateUserOauthRequest;
|
|
63
|
+
export declare function CreateUserOauthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserOauthRequest;
|
|
64
|
+
export declare function CreateUserOauthRequestToJSON(value?: CreateUserOauthRequest | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function CreateUserOauthRequestFromJSON(json) {
|
|
6
|
+
return CreateUserOauthRequestFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function CreateUserOauthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'provider': ProviderEnumFromJSON(json['provider']),
|
|
14
|
+
'accountId': json['accountId'],
|
|
15
|
+
'emails': !exists(json, 'emails') ? undefined : json['emails'],
|
|
16
|
+
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
|
|
17
|
+
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
18
|
+
'photos': !exists(json, 'photos') ? undefined : json['photos'],
|
|
19
|
+
'profile': !exists(json, 'profile') ? undefined : json['profile'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function CreateUserOauthRequestToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'provider': ProviderEnumToJSON(value.provider),
|
|
31
|
+
'accountId': value.accountId,
|
|
32
|
+
'emails': value.emails,
|
|
33
|
+
'displayName': value.displayName,
|
|
34
|
+
'username': value.username,
|
|
35
|
+
'photos': value.photos,
|
|
36
|
+
'profile': value.profile,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { CreateUserOauthRequestFromJSON, CreateUserOauthRequestFromJSONTyped, CreateUserOauthRequestToJSON };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CreateUserOauthRequest = require('./CreateUserOauthRequest.cjs');
|
|
6
7
|
var CreateWalletRequest = require('./CreateWalletRequest.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
@@ -34,8 +35,10 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
35
|
'emailNotification': !runtime.exists(json, 'emailNotification') ? undefined : json['emailNotification'],
|
|
35
36
|
'discordNotification': !runtime.exists(json, 'discordNotification') ? undefined : json['discordNotification'],
|
|
36
37
|
'newsletterNotification': !runtime.exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
|
|
38
|
+
'emailVerifiedAt': !runtime.exists(json, 'emailVerifiedAt') ? undefined : (new Date(json['emailVerifiedAt'])),
|
|
37
39
|
'email': !runtime.exists(json, 'email') ? undefined : json['email'],
|
|
38
40
|
'wallets': !runtime.exists(json, 'wallets') ? undefined : (json['wallets'].map(CreateWalletRequest.CreateWalletRequestFromJSON)),
|
|
41
|
+
'oauthAccounts': !runtime.exists(json, 'oauthAccounts') ? undefined : (json['oauthAccounts'].map(CreateUserOauthRequest.CreateUserOauthRequestFromJSON)),
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
44
|
function InternalUserFieldsToJSON(value) {
|
|
@@ -66,8 +69,10 @@ function InternalUserFieldsToJSON(value) {
|
|
|
66
69
|
'emailNotification': value.emailNotification,
|
|
67
70
|
'discordNotification': value.discordNotification,
|
|
68
71
|
'newsletterNotification': value.newsletterNotification,
|
|
72
|
+
'emailVerifiedAt': value.emailVerifiedAt === undefined ? undefined : (value.emailVerifiedAt.toISOString()),
|
|
69
73
|
'email': value.email,
|
|
70
74
|
'wallets': value.wallets === undefined ? undefined : (value.wallets.map(CreateWalletRequest.CreateWalletRequestToJSON)),
|
|
75
|
+
'oauthAccounts': value.oauthAccounts === undefined ? undefined : (value.oauthAccounts.map(CreateUserOauthRequest.CreateUserOauthRequestToJSON)),
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CreateUserOauthRequest } from './CreateUserOauthRequest';
|
|
12
13
|
import { CreateWalletRequest } from './CreateWalletRequest';
|
|
13
14
|
/**
|
|
14
15
|
* User fields that can be updated on dashboard or through the rest API which do not involve any uniqueness checks or further verification
|
|
@@ -136,6 +137,12 @@ export interface InternalUserFields {
|
|
|
136
137
|
* @memberof InternalUserFields
|
|
137
138
|
*/
|
|
138
139
|
newsletterNotification?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {Date}
|
|
143
|
+
* @memberof InternalUserFields
|
|
144
|
+
*/
|
|
145
|
+
emailVerifiedAt?: Date;
|
|
139
146
|
/**
|
|
140
147
|
*
|
|
141
148
|
* @type {string}
|
|
@@ -148,6 +155,12 @@ export interface InternalUserFields {
|
|
|
148
155
|
* @memberof InternalUserFields
|
|
149
156
|
*/
|
|
150
157
|
wallets?: Array<CreateWalletRequest>;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {Array<CreateUserOauthRequest>}
|
|
161
|
+
* @memberof InternalUserFields
|
|
162
|
+
*/
|
|
163
|
+
oauthAccounts?: Array<CreateUserOauthRequest>;
|
|
151
164
|
}
|
|
152
165
|
export declare function InternalUserFieldsFromJSON(json: any): InternalUserFields;
|
|
153
166
|
export declare function InternalUserFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternalUserFields;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { CreateUserOauthRequestFromJSON, CreateUserOauthRequestToJSON } from './CreateUserOauthRequest.js';
|
|
2
3
|
import { CreateWalletRequestFromJSON, CreateWalletRequestToJSON } from './CreateWalletRequest.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
@@ -30,8 +31,10 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
31
|
'emailNotification': !exists(json, 'emailNotification') ? undefined : json['emailNotification'],
|
|
31
32
|
'discordNotification': !exists(json, 'discordNotification') ? undefined : json['discordNotification'],
|
|
32
33
|
'newsletterNotification': !exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
|
|
34
|
+
'emailVerifiedAt': !exists(json, 'emailVerifiedAt') ? undefined : (new Date(json['emailVerifiedAt'])),
|
|
33
35
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
34
36
|
'wallets': !exists(json, 'wallets') ? undefined : (json['wallets'].map(CreateWalletRequestFromJSON)),
|
|
37
|
+
'oauthAccounts': !exists(json, 'oauthAccounts') ? undefined : (json['oauthAccounts'].map(CreateUserOauthRequestFromJSON)),
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
40
|
function InternalUserFieldsToJSON(value) {
|
|
@@ -62,8 +65,10 @@ function InternalUserFieldsToJSON(value) {
|
|
|
62
65
|
'emailNotification': value.emailNotification,
|
|
63
66
|
'discordNotification': value.discordNotification,
|
|
64
67
|
'newsletterNotification': value.newsletterNotification,
|
|
68
|
+
'emailVerifiedAt': value.emailVerifiedAt === undefined ? undefined : (value.emailVerifiedAt.toISOString()),
|
|
65
69
|
'email': value.email,
|
|
66
70
|
'wallets': value.wallets === undefined ? undefined : (value.wallets.map(CreateWalletRequestToJSON)),
|
|
71
|
+
'oauthAccounts': value.oauthAccounts === undefined ? undefined : (value.oauthAccounts.map(CreateUserOauthRequestToJSON)),
|
|
67
72
|
};
|
|
68
73
|
}
|
|
69
74
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export * from './CreateTokenResponse';
|
|
|
33
33
|
export * from './CreateTurnkeyEmbeddedWalletSpecificOpts';
|
|
34
34
|
export * from './CreateUserEmbeddedWalletsFromFarcasterRequest';
|
|
35
35
|
export * from './CreateUserEmbeddedWalletsRequest';
|
|
36
|
+
export * from './CreateUserOauthRequest';
|
|
36
37
|
export * from './CreateWalletRequest';
|
|
37
38
|
export * from './Currency';
|
|
38
39
|
export * from './CurrencyType';
|