@dynamic-labs/sdk-api 0.0.664 → 0.0.665

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.664",
3
+ "version": "0.0.665",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -62,6 +62,7 @@ require('../models/ExternalWalletFundingDefaultChain.cjs');
62
62
  require('../models/GateRuleType.cjs');
63
63
  require('../models/GlobalWalletAccessControlTypeEnum.cjs');
64
64
  require('../models/HealthcheckStatus.cjs');
65
+ var InternalBulkUpdateUserFields = require('../models/InternalBulkUpdateUserFields.cjs');
65
66
  var InternalUpdatableUserFields = require('../models/InternalUpdatableUserFields.cjs');
66
67
  var InternalUserFields = require('../models/InternalUserFields.cjs');
67
68
  require('../models/InviteStatusEnum.cjs');
@@ -135,8 +136,8 @@ class UsersApi extends runtime.BaseAPI {
135
136
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
136
137
  throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createUser.');
137
138
  }
138
- if (requestParameters.internalUserFields === null || requestParameters.internalUserFields === undefined) {
139
- throw new runtime.RequiredError('internalUserFields', 'Required parameter requestParameters.internalUserFields was null or undefined when calling createUser.');
139
+ if (requestParameters.internalBulkUpdateUserFields === null || requestParameters.internalBulkUpdateUserFields === undefined) {
140
+ throw new runtime.RequiredError('internalBulkUpdateUserFields', 'Required parameter requestParameters.internalBulkUpdateUserFields was null or undefined when calling createUser.');
140
141
  }
141
142
  const queryParameters = {};
142
143
  const headerParameters = {};
@@ -153,7 +154,7 @@ class UsersApi extends runtime.BaseAPI {
153
154
  method: 'POST',
154
155
  headers: headerParameters,
155
156
  query: queryParameters,
156
- body: InternalUserFields.InternalUserFieldsToJSON(requestParameters.internalUserFields),
157
+ body: InternalBulkUpdateUserFields.InternalBulkUpdateUserFieldsToJSON(requestParameters.internalBulkUpdateUserFields),
157
158
  }, initOverrides);
158
159
  return new runtime.JSONApiResponse(response, (jsonValue) => UserResponse.UserResponseFromJSON(jsonValue));
159
160
  });
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { BulkUserCreateResponse, InternalUpdatableUserFields, InternalUserFields, UserOauthAccessTokenResponse, UserResponse, UserSearchFilterParams, UsersResponse } from '../models';
13
+ import { BulkUserCreateResponse, InternalBulkUpdateUserFields, InternalUpdatableUserFields, InternalUserFields, UserOauthAccessTokenResponse, UserResponse, UserSearchFilterParams, UsersResponse } from '../models';
14
14
  export interface BulkCreateUserRequest {
15
15
  environmentId: string;
16
16
  internalUserFields: Array<InternalUserFields>;
@@ -18,7 +18,7 @@ export interface BulkCreateUserRequest {
18
18
  }
19
19
  export interface CreateUserRequest {
20
20
  environmentId: string;
21
- internalUserFields: InternalUserFields;
21
+ internalBulkUpdateUserFields: InternalBulkUpdateUserFields;
22
22
  }
23
23
  export interface DeleteUserRequest {
24
24
  environmentId: string;
@@ -58,6 +58,7 @@ import '../models/ExternalWalletFundingDefaultChain.js';
58
58
  import '../models/GateRuleType.js';
59
59
  import '../models/GlobalWalletAccessControlTypeEnum.js';
60
60
  import '../models/HealthcheckStatus.js';
61
+ import { InternalBulkUpdateUserFieldsToJSON } from '../models/InternalBulkUpdateUserFields.js';
61
62
  import { InternalUpdatableUserFieldsToJSON } from '../models/InternalUpdatableUserFields.js';
62
63
  import { InternalUserFieldsToJSON } from '../models/InternalUserFields.js';
63
64
  import '../models/InviteStatusEnum.js';
@@ -131,8 +132,8 @@ class UsersApi extends BaseAPI {
131
132
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
132
133
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createUser.');
133
134
  }
134
- if (requestParameters.internalUserFields === null || requestParameters.internalUserFields === undefined) {
135
- throw new RequiredError('internalUserFields', 'Required parameter requestParameters.internalUserFields was null or undefined when calling createUser.');
135
+ if (requestParameters.internalBulkUpdateUserFields === null || requestParameters.internalBulkUpdateUserFields === undefined) {
136
+ throw new RequiredError('internalBulkUpdateUserFields', 'Required parameter requestParameters.internalBulkUpdateUserFields was null or undefined when calling createUser.');
136
137
  }
137
138
  const queryParameters = {};
138
139
  const headerParameters = {};
@@ -149,7 +150,7 @@ class UsersApi extends BaseAPI {
149
150
  method: 'POST',
150
151
  headers: headerParameters,
151
152
  query: queryParameters,
152
- body: InternalUserFieldsToJSON(requestParameters.internalUserFields),
153
+ body: InternalBulkUpdateUserFieldsToJSON(requestParameters.internalBulkUpdateUserFields),
153
154
  }, initOverrides);
154
155
  return new JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
155
156
  });
package/src/index.cjs CHANGED
@@ -204,6 +204,8 @@ var InlineResponse200 = require('./models/InlineResponse200.cjs');
204
204
  var InlineResponse201 = require('./models/InlineResponse201.cjs');
205
205
  var InlineResponse400 = require('./models/InlineResponse400.cjs');
206
206
  var IntegrationSetting = require('./models/IntegrationSetting.cjs');
207
+ var InternalBulkUpdateUserFields = require('./models/InternalBulkUpdateUserFields.cjs');
208
+ var InternalBulkUpdateUserFieldsAllOf = require('./models/InternalBulkUpdateUserFieldsAllOf.cjs');
207
209
  var InternalServerError = require('./models/InternalServerError.cjs');
208
210
  var InternalUpdatableUserFields = require('./models/InternalUpdatableUserFields.cjs');
209
211
  var InternalUserFields = require('./models/InternalUserFields.cjs');
@@ -1137,6 +1139,12 @@ exports.InlineResponse400ToJSON = InlineResponse400.InlineResponse400ToJSON;
1137
1139
  exports.IntegrationSettingFromJSON = IntegrationSetting.IntegrationSettingFromJSON;
1138
1140
  exports.IntegrationSettingFromJSONTyped = IntegrationSetting.IntegrationSettingFromJSONTyped;
1139
1141
  exports.IntegrationSettingToJSON = IntegrationSetting.IntegrationSettingToJSON;
1142
+ exports.InternalBulkUpdateUserFieldsFromJSON = InternalBulkUpdateUserFields.InternalBulkUpdateUserFieldsFromJSON;
1143
+ exports.InternalBulkUpdateUserFieldsFromJSONTyped = InternalBulkUpdateUserFields.InternalBulkUpdateUserFieldsFromJSONTyped;
1144
+ exports.InternalBulkUpdateUserFieldsToJSON = InternalBulkUpdateUserFields.InternalBulkUpdateUserFieldsToJSON;
1145
+ exports.InternalBulkUpdateUserFieldsAllOfFromJSON = InternalBulkUpdateUserFieldsAllOf.InternalBulkUpdateUserFieldsAllOfFromJSON;
1146
+ exports.InternalBulkUpdateUserFieldsAllOfFromJSONTyped = InternalBulkUpdateUserFieldsAllOf.InternalBulkUpdateUserFieldsAllOfFromJSONTyped;
1147
+ exports.InternalBulkUpdateUserFieldsAllOfToJSON = InternalBulkUpdateUserFieldsAllOf.InternalBulkUpdateUserFieldsAllOfToJSON;
1140
1148
  exports.InternalServerErrorFromJSON = InternalServerError.InternalServerErrorFromJSON;
1141
1149
  exports.InternalServerErrorFromJSONTyped = InternalServerError.InternalServerErrorFromJSONTyped;
1142
1150
  exports.InternalServerErrorToJSON = InternalServerError.InternalServerErrorToJSON;
package/src/index.js CHANGED
@@ -200,6 +200,8 @@ export { InlineResponse200FromJSON, InlineResponse200FromJSONTyped, InlineRespon
200
200
  export { InlineResponse201FromJSON, InlineResponse201FromJSONTyped, InlineResponse201ToJSON } from './models/InlineResponse201.js';
201
201
  export { InlineResponse400FromJSON, InlineResponse400FromJSONTyped, InlineResponse400ToJSON } from './models/InlineResponse400.js';
202
202
  export { IntegrationSettingFromJSON, IntegrationSettingFromJSONTyped, IntegrationSettingToJSON } from './models/IntegrationSetting.js';
203
+ export { InternalBulkUpdateUserFieldsFromJSON, InternalBulkUpdateUserFieldsFromJSONTyped, InternalBulkUpdateUserFieldsToJSON } from './models/InternalBulkUpdateUserFields.js';
204
+ export { InternalBulkUpdateUserFieldsAllOfFromJSON, InternalBulkUpdateUserFieldsAllOfFromJSONTyped, InternalBulkUpdateUserFieldsAllOfToJSON } from './models/InternalBulkUpdateUserFieldsAllOf.js';
203
205
  export { InternalServerErrorFromJSON, InternalServerErrorFromJSONTyped, InternalServerErrorToJSON } from './models/InternalServerError.js';
204
206
  export { InternalUpdatableUserFieldsFromJSON, InternalUpdatableUserFieldsFromJSONTyped, InternalUpdatableUserFieldsToJSON } from './models/InternalUpdatableUserFields.js';
205
207
  export { InternalUserFieldsFromJSON, InternalUserFieldsFromJSONTyped, InternalUserFieldsToJSON } from './models/InternalUserFields.js';
@@ -0,0 +1,86 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var CreateUserOauthRequest = require('./CreateUserOauthRequest.cjs');
7
+ var CreateWalletRequest = require('./CreateWalletRequest.cjs');
8
+ var MfaBackupCodeAcknowledgement = require('./MfaBackupCodeAcknowledgement.cjs');
9
+
10
+ /* tslint:disable */
11
+ function InternalBulkUpdateUserFieldsFromJSON(json) {
12
+ return InternalBulkUpdateUserFieldsFromJSONTyped(json);
13
+ }
14
+ function InternalBulkUpdateUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
15
+ if ((json === undefined) || (json === null)) {
16
+ return json;
17
+ }
18
+ return {
19
+ 'alias': !runtime.exists(json, 'alias') ? undefined : json['alias'],
20
+ 'firstName': !runtime.exists(json, 'firstName') ? undefined : json['firstName'],
21
+ 'lastName': !runtime.exists(json, 'lastName') ? undefined : json['lastName'],
22
+ 'jobTitle': !runtime.exists(json, 'jobTitle') ? undefined : json['jobTitle'],
23
+ 'phoneNumber': !runtime.exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
24
+ 'metadata': !runtime.exists(json, 'metadata') ? undefined : json['metadata'],
25
+ 'mfaBackupCodeAcknowledgement': !runtime.exists(json, 'mfaBackupCodeAcknowledgement') ? undefined : MfaBackupCodeAcknowledgement.MfaBackupCodeAcknowledgementFromJSON(json['mfaBackupCodeAcknowledgement']),
26
+ 'tShirtSize': !runtime.exists(json, 'tShirtSize') ? undefined : json['tShirtSize'],
27
+ 'team': !runtime.exists(json, 'team') ? undefined : json['team'],
28
+ 'policiesConsent': !runtime.exists(json, 'policiesConsent') ? undefined : json['policiesConsent'],
29
+ 'country': !runtime.exists(json, 'country') ? undefined : json['country'],
30
+ 'username': !runtime.exists(json, 'username') ? undefined : json['username'],
31
+ 'btcWallet': !runtime.exists(json, 'btcWallet') ? undefined : json['btcWallet'],
32
+ 'kdaWallet': !runtime.exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
33
+ 'ltcWallet': !runtime.exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
34
+ 'ckbWallet': !runtime.exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
35
+ 'kasWallet': !runtime.exists(json, 'kasWallet') ? undefined : json['kasWallet'],
36
+ 'dogeWallet': !runtime.exists(json, 'dogeWallet') ? undefined : json['dogeWallet'],
37
+ 'emailNotification': !runtime.exists(json, 'emailNotification') ? undefined : json['emailNotification'],
38
+ 'discordNotification': !runtime.exists(json, 'discordNotification') ? undefined : json['discordNotification'],
39
+ 'newsletterNotification': !runtime.exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
40
+ 'id': !runtime.exists(json, 'id') ? undefined : json['id'],
41
+ 'emailVerifiedAt': !runtime.exists(json, 'emailVerifiedAt') ? undefined : (new Date(json['emailVerifiedAt'])),
42
+ 'email': !runtime.exists(json, 'email') ? undefined : json['email'],
43
+ 'wallets': !runtime.exists(json, 'wallets') ? undefined : (json['wallets'].map(CreateWalletRequest.CreateWalletRequestFromJSON)),
44
+ 'oauthAccounts': !runtime.exists(json, 'oauthAccounts') ? undefined : (json['oauthAccounts'].map(CreateUserOauthRequest.CreateUserOauthRequestFromJSON)),
45
+ };
46
+ }
47
+ function InternalBulkUpdateUserFieldsToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'alias': value.alias,
56
+ 'firstName': value.firstName,
57
+ 'lastName': value.lastName,
58
+ 'jobTitle': value.jobTitle,
59
+ 'phoneNumber': value.phoneNumber,
60
+ 'metadata': value.metadata,
61
+ 'mfaBackupCodeAcknowledgement': MfaBackupCodeAcknowledgement.MfaBackupCodeAcknowledgementToJSON(value.mfaBackupCodeAcknowledgement),
62
+ 'tShirtSize': value.tShirtSize,
63
+ 'team': value.team,
64
+ 'policiesConsent': value.policiesConsent,
65
+ 'country': value.country,
66
+ 'username': value.username,
67
+ 'btcWallet': value.btcWallet,
68
+ 'kdaWallet': value.kdaWallet,
69
+ 'ltcWallet': value.ltcWallet,
70
+ 'ckbWallet': value.ckbWallet,
71
+ 'kasWallet': value.kasWallet,
72
+ 'dogeWallet': value.dogeWallet,
73
+ 'emailNotification': value.emailNotification,
74
+ 'discordNotification': value.discordNotification,
75
+ 'newsletterNotification': value.newsletterNotification,
76
+ 'id': value.id,
77
+ 'emailVerifiedAt': value.emailVerifiedAt === undefined ? undefined : (value.emailVerifiedAt.toISOString()),
78
+ 'email': value.email,
79
+ 'wallets': value.wallets === undefined ? undefined : (value.wallets.map(CreateWalletRequest.CreateWalletRequestToJSON)),
80
+ 'oauthAccounts': value.oauthAccounts === undefined ? undefined : (value.oauthAccounts.map(CreateUserOauthRequest.CreateUserOauthRequestToJSON)),
81
+ };
82
+ }
83
+
84
+ exports.InternalBulkUpdateUserFieldsFromJSON = InternalBulkUpdateUserFieldsFromJSON;
85
+ exports.InternalBulkUpdateUserFieldsFromJSONTyped = InternalBulkUpdateUserFieldsFromJSONTyped;
86
+ exports.InternalBulkUpdateUserFieldsToJSON = InternalBulkUpdateUserFieldsToJSON;
@@ -0,0 +1,180 @@
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 { CreateUserOauthRequest } from './CreateUserOauthRequest';
13
+ import { CreateWalletRequest } from './CreateWalletRequest';
14
+ import { MfaBackupCodeAcknowledgement } from './MfaBackupCodeAcknowledgement';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface InternalBulkUpdateUserFields
19
+ */
20
+ export interface InternalBulkUpdateUserFields {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof InternalBulkUpdateUserFields
25
+ */
26
+ alias?: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof InternalBulkUpdateUserFields
31
+ */
32
+ firstName?: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof InternalBulkUpdateUserFields
37
+ */
38
+ lastName?: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof InternalBulkUpdateUserFields
43
+ */
44
+ jobTitle?: string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof InternalBulkUpdateUserFields
49
+ */
50
+ phoneNumber?: string;
51
+ /**
52
+ *
53
+ * @type {object}
54
+ * @memberof InternalBulkUpdateUserFields
55
+ */
56
+ metadata?: object;
57
+ /**
58
+ *
59
+ * @type {MfaBackupCodeAcknowledgement}
60
+ * @memberof InternalBulkUpdateUserFields
61
+ */
62
+ mfaBackupCodeAcknowledgement?: MfaBackupCodeAcknowledgement | null;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof InternalBulkUpdateUserFields
67
+ */
68
+ tShirtSize?: string;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof InternalBulkUpdateUserFields
73
+ */
74
+ team?: string;
75
+ /**
76
+ *
77
+ * @type {boolean}
78
+ * @memberof InternalBulkUpdateUserFields
79
+ */
80
+ policiesConsent?: boolean;
81
+ /**
82
+ * Standard ISO 3166-1 alpha-2 two-letter country code
83
+ * @type {string}
84
+ * @memberof InternalBulkUpdateUserFields
85
+ */
86
+ country?: string | null;
87
+ /**
88
+ * Alphanumeric with slugs and underscores username
89
+ * @type {string}
90
+ * @memberof InternalBulkUpdateUserFields
91
+ */
92
+ username?: string | null;
93
+ /**
94
+ * BTC wallet address
95
+ * @type {string}
96
+ * @memberof InternalBulkUpdateUserFields
97
+ */
98
+ btcWallet?: string | null;
99
+ /**
100
+ * KDA wallet address
101
+ * @type {string}
102
+ * @memberof InternalBulkUpdateUserFields
103
+ */
104
+ kdaWallet?: string | null;
105
+ /**
106
+ * LTC wallet address
107
+ * @type {string}
108
+ * @memberof InternalBulkUpdateUserFields
109
+ */
110
+ ltcWallet?: string | null;
111
+ /**
112
+ * CKB wallet address
113
+ * @type {string}
114
+ * @memberof InternalBulkUpdateUserFields
115
+ */
116
+ ckbWallet?: string | null;
117
+ /**
118
+ * KAS wallet address
119
+ * @type {string}
120
+ * @memberof InternalBulkUpdateUserFields
121
+ */
122
+ kasWallet?: string | null;
123
+ /**
124
+ * DOGE wallet address
125
+ * @type {string}
126
+ * @memberof InternalBulkUpdateUserFields
127
+ */
128
+ dogeWallet?: string | null;
129
+ /**
130
+ *
131
+ * @type {boolean}
132
+ * @memberof InternalBulkUpdateUserFields
133
+ */
134
+ emailNotification?: boolean;
135
+ /**
136
+ *
137
+ * @type {boolean}
138
+ * @memberof InternalBulkUpdateUserFields
139
+ */
140
+ discordNotification?: boolean;
141
+ /**
142
+ *
143
+ * @type {boolean}
144
+ * @memberof InternalBulkUpdateUserFields
145
+ */
146
+ newsletterNotification?: boolean;
147
+ /**
148
+ *
149
+ * @type {string}
150
+ * @memberof InternalBulkUpdateUserFields
151
+ */
152
+ id?: string;
153
+ /**
154
+ * When provided, the user email will be marked as verified in our system and the user will be allowed to sign in with that email. When social is enabled and the social provider has a verified email, we will automatically associate that social with the existing user.
155
+ * @type {Date}
156
+ * @memberof InternalBulkUpdateUserFields
157
+ */
158
+ emailVerifiedAt?: Date;
159
+ /**
160
+ * If email is trusted and verified, please provide a emailVerifiedAt timestamp. This will ensure that a user signing in with this email can access the correctly-created user account.
161
+ * @type {string}
162
+ * @memberof InternalBulkUpdateUserFields
163
+ */
164
+ email?: string;
165
+ /**
166
+ *
167
+ * @type {Array<CreateWalletRequest>}
168
+ * @memberof InternalBulkUpdateUserFields
169
+ */
170
+ wallets?: Array<CreateWalletRequest>;
171
+ /**
172
+ *
173
+ * @type {Array<CreateUserOauthRequest>}
174
+ * @memberof InternalBulkUpdateUserFields
175
+ */
176
+ oauthAccounts?: Array<CreateUserOauthRequest>;
177
+ }
178
+ export declare function InternalBulkUpdateUserFieldsFromJSON(json: any): InternalBulkUpdateUserFields;
179
+ export declare function InternalBulkUpdateUserFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternalBulkUpdateUserFields;
180
+ export declare function InternalBulkUpdateUserFieldsToJSON(value?: InternalBulkUpdateUserFields | null): any;
@@ -0,0 +1,80 @@
1
+ import { exists } from '../runtime.js';
2
+ import { CreateUserOauthRequestFromJSON, CreateUserOauthRequestToJSON } from './CreateUserOauthRequest.js';
3
+ import { CreateWalletRequestFromJSON, CreateWalletRequestToJSON } from './CreateWalletRequest.js';
4
+ import { MfaBackupCodeAcknowledgementFromJSON, MfaBackupCodeAcknowledgementToJSON } from './MfaBackupCodeAcknowledgement.js';
5
+
6
+ /* tslint:disable */
7
+ function InternalBulkUpdateUserFieldsFromJSON(json) {
8
+ return InternalBulkUpdateUserFieldsFromJSONTyped(json);
9
+ }
10
+ function InternalBulkUpdateUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
11
+ if ((json === undefined) || (json === null)) {
12
+ return json;
13
+ }
14
+ return {
15
+ 'alias': !exists(json, 'alias') ? undefined : json['alias'],
16
+ 'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
17
+ 'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
18
+ 'jobTitle': !exists(json, 'jobTitle') ? undefined : json['jobTitle'],
19
+ 'phoneNumber': !exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
20
+ 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
21
+ 'mfaBackupCodeAcknowledgement': !exists(json, 'mfaBackupCodeAcknowledgement') ? undefined : MfaBackupCodeAcknowledgementFromJSON(json['mfaBackupCodeAcknowledgement']),
22
+ 'tShirtSize': !exists(json, 'tShirtSize') ? undefined : json['tShirtSize'],
23
+ 'team': !exists(json, 'team') ? undefined : json['team'],
24
+ 'policiesConsent': !exists(json, 'policiesConsent') ? undefined : json['policiesConsent'],
25
+ 'country': !exists(json, 'country') ? undefined : json['country'],
26
+ 'username': !exists(json, 'username') ? undefined : json['username'],
27
+ 'btcWallet': !exists(json, 'btcWallet') ? undefined : json['btcWallet'],
28
+ 'kdaWallet': !exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
29
+ 'ltcWallet': !exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
30
+ 'ckbWallet': !exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
31
+ 'kasWallet': !exists(json, 'kasWallet') ? undefined : json['kasWallet'],
32
+ 'dogeWallet': !exists(json, 'dogeWallet') ? undefined : json['dogeWallet'],
33
+ 'emailNotification': !exists(json, 'emailNotification') ? undefined : json['emailNotification'],
34
+ 'discordNotification': !exists(json, 'discordNotification') ? undefined : json['discordNotification'],
35
+ 'newsletterNotification': !exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
36
+ 'id': !exists(json, 'id') ? undefined : json['id'],
37
+ 'emailVerifiedAt': !exists(json, 'emailVerifiedAt') ? undefined : (new Date(json['emailVerifiedAt'])),
38
+ 'email': !exists(json, 'email') ? undefined : json['email'],
39
+ 'wallets': !exists(json, 'wallets') ? undefined : (json['wallets'].map(CreateWalletRequestFromJSON)),
40
+ 'oauthAccounts': !exists(json, 'oauthAccounts') ? undefined : (json['oauthAccounts'].map(CreateUserOauthRequestFromJSON)),
41
+ };
42
+ }
43
+ function InternalBulkUpdateUserFieldsToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'alias': value.alias,
52
+ 'firstName': value.firstName,
53
+ 'lastName': value.lastName,
54
+ 'jobTitle': value.jobTitle,
55
+ 'phoneNumber': value.phoneNumber,
56
+ 'metadata': value.metadata,
57
+ 'mfaBackupCodeAcknowledgement': MfaBackupCodeAcknowledgementToJSON(value.mfaBackupCodeAcknowledgement),
58
+ 'tShirtSize': value.tShirtSize,
59
+ 'team': value.team,
60
+ 'policiesConsent': value.policiesConsent,
61
+ 'country': value.country,
62
+ 'username': value.username,
63
+ 'btcWallet': value.btcWallet,
64
+ 'kdaWallet': value.kdaWallet,
65
+ 'ltcWallet': value.ltcWallet,
66
+ 'ckbWallet': value.ckbWallet,
67
+ 'kasWallet': value.kasWallet,
68
+ 'dogeWallet': value.dogeWallet,
69
+ 'emailNotification': value.emailNotification,
70
+ 'discordNotification': value.discordNotification,
71
+ 'newsletterNotification': value.newsletterNotification,
72
+ 'id': value.id,
73
+ 'emailVerifiedAt': value.emailVerifiedAt === undefined ? undefined : (value.emailVerifiedAt.toISOString()),
74
+ 'email': value.email,
75
+ 'wallets': value.wallets === undefined ? undefined : (value.wallets.map(CreateWalletRequestToJSON)),
76
+ 'oauthAccounts': value.oauthAccounts === undefined ? undefined : (value.oauthAccounts.map(CreateUserOauthRequestToJSON)),
77
+ };
78
+ }
79
+
80
+ export { InternalBulkUpdateUserFieldsFromJSON, InternalBulkUpdateUserFieldsFromJSONTyped, InternalBulkUpdateUserFieldsToJSON };
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var CreateUserOauthRequest = require('./CreateUserOauthRequest.cjs');
7
+ var CreateWalletRequest = require('./CreateWalletRequest.cjs');
8
+
9
+ /* tslint:disable */
10
+ function InternalBulkUpdateUserFieldsAllOfFromJSON(json) {
11
+ return InternalBulkUpdateUserFieldsAllOfFromJSONTyped(json);
12
+ }
13
+ function InternalBulkUpdateUserFieldsAllOfFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'id': !runtime.exists(json, 'id') ? undefined : json['id'],
19
+ 'emailVerifiedAt': !runtime.exists(json, 'emailVerifiedAt') ? undefined : (new Date(json['emailVerifiedAt'])),
20
+ 'email': !runtime.exists(json, 'email') ? undefined : json['email'],
21
+ 'wallets': !runtime.exists(json, 'wallets') ? undefined : (json['wallets'].map(CreateWalletRequest.CreateWalletRequestFromJSON)),
22
+ 'oauthAccounts': !runtime.exists(json, 'oauthAccounts') ? undefined : (json['oauthAccounts'].map(CreateUserOauthRequest.CreateUserOauthRequestFromJSON)),
23
+ };
24
+ }
25
+ function InternalBulkUpdateUserFieldsAllOfToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'id': value.id,
34
+ 'emailVerifiedAt': value.emailVerifiedAt === undefined ? undefined : (value.emailVerifiedAt.toISOString()),
35
+ 'email': value.email,
36
+ 'wallets': value.wallets === undefined ? undefined : (value.wallets.map(CreateWalletRequest.CreateWalletRequestToJSON)),
37
+ 'oauthAccounts': value.oauthAccounts === undefined ? undefined : (value.oauthAccounts.map(CreateUserOauthRequest.CreateUserOauthRequestToJSON)),
38
+ };
39
+ }
40
+
41
+ exports.InternalBulkUpdateUserFieldsAllOfFromJSON = InternalBulkUpdateUserFieldsAllOfFromJSON;
42
+ exports.InternalBulkUpdateUserFieldsAllOfFromJSONTyped = InternalBulkUpdateUserFieldsAllOfFromJSONTyped;
43
+ exports.InternalBulkUpdateUserFieldsAllOfToJSON = InternalBulkUpdateUserFieldsAllOfToJSON;
@@ -0,0 +1,53 @@
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 { CreateUserOauthRequest } from './CreateUserOauthRequest';
13
+ import { CreateWalletRequest } from './CreateWalletRequest';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface InternalBulkUpdateUserFieldsAllOf
18
+ */
19
+ export interface InternalBulkUpdateUserFieldsAllOf {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof InternalBulkUpdateUserFieldsAllOf
24
+ */
25
+ id?: string;
26
+ /**
27
+ * When provided, the user email will be marked as verified in our system and the user will be allowed to sign in with that email. When social is enabled and the social provider has a verified email, we will automatically associate that social with the existing user.
28
+ * @type {Date}
29
+ * @memberof InternalBulkUpdateUserFieldsAllOf
30
+ */
31
+ emailVerifiedAt?: Date;
32
+ /**
33
+ * If email is trusted and verified, please provide a emailVerifiedAt timestamp. This will ensure that a user signing in with this email can access the correctly-created user account.
34
+ * @type {string}
35
+ * @memberof InternalBulkUpdateUserFieldsAllOf
36
+ */
37
+ email?: string;
38
+ /**
39
+ *
40
+ * @type {Array<CreateWalletRequest>}
41
+ * @memberof InternalBulkUpdateUserFieldsAllOf
42
+ */
43
+ wallets?: Array<CreateWalletRequest>;
44
+ /**
45
+ *
46
+ * @type {Array<CreateUserOauthRequest>}
47
+ * @memberof InternalBulkUpdateUserFieldsAllOf
48
+ */
49
+ oauthAccounts?: Array<CreateUserOauthRequest>;
50
+ }
51
+ export declare function InternalBulkUpdateUserFieldsAllOfFromJSON(json: any): InternalBulkUpdateUserFieldsAllOf;
52
+ export declare function InternalBulkUpdateUserFieldsAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternalBulkUpdateUserFieldsAllOf;
53
+ export declare function InternalBulkUpdateUserFieldsAllOfToJSON(value?: InternalBulkUpdateUserFieldsAllOf | null): any;
@@ -0,0 +1,37 @@
1
+ import { exists } from '../runtime.js';
2
+ import { CreateUserOauthRequestFromJSON, CreateUserOauthRequestToJSON } from './CreateUserOauthRequest.js';
3
+ import { CreateWalletRequestFromJSON, CreateWalletRequestToJSON } from './CreateWalletRequest.js';
4
+
5
+ /* tslint:disable */
6
+ function InternalBulkUpdateUserFieldsAllOfFromJSON(json) {
7
+ return InternalBulkUpdateUserFieldsAllOfFromJSONTyped(json);
8
+ }
9
+ function InternalBulkUpdateUserFieldsAllOfFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'id': !exists(json, 'id') ? undefined : json['id'],
15
+ 'emailVerifiedAt': !exists(json, 'emailVerifiedAt') ? undefined : (new Date(json['emailVerifiedAt'])),
16
+ 'email': !exists(json, 'email') ? undefined : json['email'],
17
+ 'wallets': !exists(json, 'wallets') ? undefined : (json['wallets'].map(CreateWalletRequestFromJSON)),
18
+ 'oauthAccounts': !exists(json, 'oauthAccounts') ? undefined : (json['oauthAccounts'].map(CreateUserOauthRequestFromJSON)),
19
+ };
20
+ }
21
+ function InternalBulkUpdateUserFieldsAllOfToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'id': value.id,
30
+ 'emailVerifiedAt': value.emailVerifiedAt === undefined ? undefined : (value.emailVerifiedAt.toISOString()),
31
+ 'email': value.email,
32
+ 'wallets': value.wallets === undefined ? undefined : (value.wallets.map(CreateWalletRequestToJSON)),
33
+ 'oauthAccounts': value.oauthAccounts === undefined ? undefined : (value.oauthAccounts.map(CreateUserOauthRequestToJSON)),
34
+ };
35
+ }
36
+
37
+ export { InternalBulkUpdateUserFieldsAllOfFromJSON, InternalBulkUpdateUserFieldsAllOfFromJSONTyped, InternalBulkUpdateUserFieldsAllOfToJSON };
@@ -14,7 +14,6 @@ function InternalUpdatableUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
14
14
  return json;
15
15
  }
16
16
  return {
17
- 'id': !runtime.exists(json, 'id') ? undefined : json['id'],
18
17
  'alias': !runtime.exists(json, 'alias') ? undefined : json['alias'],
19
18
  'firstName': !runtime.exists(json, 'firstName') ? undefined : json['firstName'],
20
19
  'lastName': !runtime.exists(json, 'lastName') ? undefined : json['lastName'],
@@ -46,7 +45,6 @@ function InternalUpdatableUserFieldsToJSON(value) {
46
45
  return null;
47
46
  }
48
47
  return {
49
- 'id': value.id,
50
48
  'alias': value.alias,
51
49
  'firstName': value.firstName,
52
50
  'lastName': value.lastName,
@@ -16,12 +16,6 @@ import { MfaBackupCodeAcknowledgement } from './MfaBackupCodeAcknowledgement';
16
16
  * @interface InternalUpdatableUserFields
17
17
  */
18
18
  export interface InternalUpdatableUserFields {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof InternalUpdatableUserFields
23
- */
24
- id?: string;
25
19
  /**
26
20
  *
27
21
  * @type {string}
@@ -10,7 +10,6 @@ function InternalUpdatableUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
10
10
  return json;
11
11
  }
12
12
  return {
13
- 'id': !exists(json, 'id') ? undefined : json['id'],
14
13
  'alias': !exists(json, 'alias') ? undefined : json['alias'],
15
14
  'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
16
15
  'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
@@ -42,7 +41,6 @@ function InternalUpdatableUserFieldsToJSON(value) {
42
41
  return null;
43
42
  }
44
43
  return {
45
- 'id': value.id,
46
44
  'alias': value.alias,
47
45
  'firstName': value.firstName,
48
46
  'lastName': value.lastName,
@@ -16,7 +16,6 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
16
16
  return json;
17
17
  }
18
18
  return {
19
- 'id': !runtime.exists(json, 'id') ? undefined : json['id'],
20
19
  'alias': !runtime.exists(json, 'alias') ? undefined : json['alias'],
21
20
  'firstName': !runtime.exists(json, 'firstName') ? undefined : json['firstName'],
22
21
  'lastName': !runtime.exists(json, 'lastName') ? undefined : json['lastName'],
@@ -52,7 +51,6 @@ function InternalUserFieldsToJSON(value) {
52
51
  return null;
53
52
  }
54
53
  return {
55
- 'id': value.id,
56
54
  'alias': value.alias,
57
55
  'firstName': value.firstName,
58
56
  'lastName': value.lastName,
@@ -18,12 +18,6 @@ import { MfaBackupCodeAcknowledgement } from './MfaBackupCodeAcknowledgement';
18
18
  * @interface InternalUserFields
19
19
  */
20
20
  export interface InternalUserFields {
21
- /**
22
- *
23
- * @type {string}
24
- * @memberof InternalUserFields
25
- */
26
- id?: string;
27
21
  /**
28
22
  *
29
23
  * @type {string}
@@ -12,7 +12,6 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
12
12
  return json;
13
13
  }
14
14
  return {
15
- 'id': !exists(json, 'id') ? undefined : json['id'],
16
15
  'alias': !exists(json, 'alias') ? undefined : json['alias'],
17
16
  'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
18
17
  'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
@@ -48,7 +47,6 @@ function InternalUserFieldsToJSON(value) {
48
47
  return null;
49
48
  }
50
49
  return {
51
- 'id': value.id,
52
50
  'alias': value.alias,
53
51
  'firstName': value.firstName,
54
52
  'lastName': value.lastName,
@@ -164,6 +164,8 @@ export * from './InlineResponse200';
164
164
  export * from './InlineResponse201';
165
165
  export * from './InlineResponse400';
166
166
  export * from './IntegrationSetting';
167
+ export * from './InternalBulkUpdateUserFields';
168
+ export * from './InternalBulkUpdateUserFieldsAllOf';
167
169
  export * from './InternalServerError';
168
170
  export * from './InternalUpdatableUserFields';
169
171
  export * from './InternalUserFields';