@dynamic-labs/sdk-api 0.0.330 → 0.0.332
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/apis/SDKApi.cjs +71 -0
- package/src/apis/SDKApi.d.ts +26 -1
- package/src/apis/SDKApi.js +71 -0
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/ChainEnum.cjs +1 -0
- package/src/models/ChainEnum.d.ts +2 -1
- package/src/models/ChainEnum.js +1 -0
- package/src/models/InitEmailAuthRequest.cjs +45 -0
- package/src/models/InitEmailAuthRequest.d.ts +33 -0
- package/src/models/InitEmailAuthRequest.js +39 -0
- package/src/models/InitEmailAuthResponse.cjs +45 -0
- package/src/models/InitEmailAuthResponse.d.ts +33 -0
- package/src/models/InitEmailAuthResponse.js +39 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -34,6 +34,8 @@ require('../models/ExportStatusEnum.cjs');
|
|
|
34
34
|
var ExportEmbeddedWalletResponse = require('../models/ExportEmbeddedWalletResponse.cjs');
|
|
35
35
|
require('../models/GateRuleType.cjs');
|
|
36
36
|
var GetUserPasskeysResponse = require('../models/GetUserPasskeysResponse.cjs');
|
|
37
|
+
var InitEmailAuthRequest = require('../models/InitEmailAuthRequest.cjs');
|
|
38
|
+
var InitEmailAuthResponse = require('../models/InitEmailAuthResponse.cjs');
|
|
37
39
|
var InitPasskeyRecoveryRequest = require('../models/InitPasskeyRecoveryRequest.cjs');
|
|
38
40
|
var InitPasskeyRecoveryResponse = require('../models/InitPasskeyRecoveryResponse.cjs');
|
|
39
41
|
require('../models/InviteStatusEnum.cjs');
|
|
@@ -277,6 +279,33 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
277
279
|
yield this.createVisitRaw(requestParameters, initOverrides);
|
|
278
280
|
});
|
|
279
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* Options call for this endpoint
|
|
284
|
+
*/
|
|
285
|
+
emailAuthOptionsRaw(requestParameters, initOverrides) {
|
|
286
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
287
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
288
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling emailAuthOptions.');
|
|
289
|
+
}
|
|
290
|
+
const queryParameters = {};
|
|
291
|
+
const headerParameters = {};
|
|
292
|
+
const response = yield this.request({
|
|
293
|
+
path: `/sdk/{environmentId}/users/embeddedWallets/emailAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
294
|
+
method: 'OPTIONS',
|
|
295
|
+
headers: headerParameters,
|
|
296
|
+
query: queryParameters,
|
|
297
|
+
}, initOverrides);
|
|
298
|
+
return new runtime.VoidApiResponse(response);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Options call for this endpoint
|
|
303
|
+
*/
|
|
304
|
+
emailAuthOptions(requestParameters, initOverrides) {
|
|
305
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
306
|
+
yield this.emailAuthOptionsRaw(requestParameters, initOverrides);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
280
309
|
/**
|
|
281
310
|
* Options call for this endpoint
|
|
282
311
|
*/
|
|
@@ -636,6 +665,48 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
636
665
|
return yield response.value();
|
|
637
666
|
});
|
|
638
667
|
}
|
|
668
|
+
/**
|
|
669
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
670
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
671
|
+
*/
|
|
672
|
+
initEmailAuthRaw(requestParameters, initOverrides) {
|
|
673
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
674
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
675
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initEmailAuth.');
|
|
676
|
+
}
|
|
677
|
+
if (requestParameters.initEmailAuthRequest === null || requestParameters.initEmailAuthRequest === undefined) {
|
|
678
|
+
throw new runtime.RequiredError('initEmailAuthRequest', 'Required parameter requestParameters.initEmailAuthRequest was null or undefined when calling initEmailAuth.');
|
|
679
|
+
}
|
|
680
|
+
const queryParameters = {};
|
|
681
|
+
const headerParameters = {};
|
|
682
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
683
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
684
|
+
const token = this.configuration.accessToken;
|
|
685
|
+
const tokenString = yield token("bearerAuth", []);
|
|
686
|
+
if (tokenString) {
|
|
687
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
const response = yield this.request({
|
|
691
|
+
path: `/sdk/{environmentId}/users/embeddedWallets/emailAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
692
|
+
method: 'POST',
|
|
693
|
+
headers: headerParameters,
|
|
694
|
+
query: queryParameters,
|
|
695
|
+
body: InitEmailAuthRequest.InitEmailAuthRequestToJSON(requestParameters.initEmailAuthRequest),
|
|
696
|
+
}, initOverrides);
|
|
697
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InitEmailAuthResponse.InitEmailAuthResponseFromJSON(jsonValue));
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
702
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
703
|
+
*/
|
|
704
|
+
initEmailAuth(requestParameters, initOverrides) {
|
|
705
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
706
|
+
const response = yield this.initEmailAuthRaw(requestParameters, initOverrides);
|
|
707
|
+
return yield response.value();
|
|
708
|
+
});
|
|
709
|
+
}
|
|
639
710
|
/**
|
|
640
711
|
* Initialize the passkey recovery process for a user\'s passkey embedded wallet
|
|
641
712
|
* Initialize the passkey recovery process for a user\'s passkey embedded wallet
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, ExportEmbeddedWalletResponse, GetUserPasskeysResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, NetworkConfigurationResponse, NonceResponse, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, SdkSettingsRequest, SupportedOnrampsResponse, UpdateSelfResponse, UserFields, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
13
|
+
import { CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, ExportEmbeddedWalletResponse, GetUserPasskeysResponse, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, NetworkConfigurationResponse, NonceResponse, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, SdkSettingsRequest, SupportedOnrampsResponse, UpdateSelfResponse, UserFields, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
14
14
|
export interface CompletePasskeyRecoveryOperationRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
completePasskeyRecoveryRequest: CompletePasskeyRecoveryRequest;
|
|
@@ -33,6 +33,9 @@ export interface CreateVisitRequest {
|
|
|
33
33
|
environmentId: string;
|
|
34
34
|
connectRequest: ConnectRequest;
|
|
35
35
|
}
|
|
36
|
+
export interface EmailAuthOptionsRequest {
|
|
37
|
+
environmentId: string;
|
|
38
|
+
}
|
|
36
39
|
export interface EmailProviderOptionsRequest {
|
|
37
40
|
environmentId: string;
|
|
38
41
|
}
|
|
@@ -75,6 +78,10 @@ export interface GetSupportedOnrampsRequest {
|
|
|
75
78
|
export interface GetUserPasskeysRequest {
|
|
76
79
|
environmentId: string;
|
|
77
80
|
}
|
|
81
|
+
export interface InitEmailAuthOperationRequest {
|
|
82
|
+
environmentId: string;
|
|
83
|
+
initEmailAuthRequest: InitEmailAuthRequest;
|
|
84
|
+
}
|
|
78
85
|
export interface InitPasskeyRecoveryOperationRequest {
|
|
79
86
|
environmentId: string;
|
|
80
87
|
initPasskeyRecoveryRequest: InitPasskeyRecoveryRequest;
|
|
@@ -329,6 +336,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
329
336
|
* Create a visit
|
|
330
337
|
*/
|
|
331
338
|
createVisit(requestParameters: CreateVisitRequest, initOverrides?: RequestInit): Promise<void>;
|
|
339
|
+
/**
|
|
340
|
+
* Options call for this endpoint
|
|
341
|
+
*/
|
|
342
|
+
emailAuthOptionsRaw(requestParameters: EmailAuthOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
343
|
+
/**
|
|
344
|
+
* Options call for this endpoint
|
|
345
|
+
*/
|
|
346
|
+
emailAuthOptions(requestParameters: EmailAuthOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
332
347
|
/**
|
|
333
348
|
* Options call for this endpoint
|
|
334
349
|
*/
|
|
@@ -421,6 +436,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
421
436
|
* Gets passkey data associated with a user
|
|
422
437
|
*/
|
|
423
438
|
getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
|
|
439
|
+
/**
|
|
440
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
441
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
442
|
+
*/
|
|
443
|
+
initEmailAuthRaw(requestParameters: InitEmailAuthOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InitEmailAuthResponse>>;
|
|
444
|
+
/**
|
|
445
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
446
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
447
|
+
*/
|
|
448
|
+
initEmailAuth(requestParameters: InitEmailAuthOperationRequest, initOverrides?: RequestInit): Promise<InitEmailAuthResponse>;
|
|
424
449
|
/**
|
|
425
450
|
* Initialize the passkey recovery process for a user\'s passkey embedded wallet
|
|
426
451
|
* Initialize the passkey recovery process for a user\'s passkey embedded wallet
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -30,6 +30,8 @@ import '../models/ExportStatusEnum.js';
|
|
|
30
30
|
import { ExportEmbeddedWalletResponseFromJSON } from '../models/ExportEmbeddedWalletResponse.js';
|
|
31
31
|
import '../models/GateRuleType.js';
|
|
32
32
|
import { GetUserPasskeysResponseFromJSON } from '../models/GetUserPasskeysResponse.js';
|
|
33
|
+
import { InitEmailAuthRequestToJSON } from '../models/InitEmailAuthRequest.js';
|
|
34
|
+
import { InitEmailAuthResponseFromJSON } from '../models/InitEmailAuthResponse.js';
|
|
33
35
|
import { InitPasskeyRecoveryRequestToJSON } from '../models/InitPasskeyRecoveryRequest.js';
|
|
34
36
|
import { InitPasskeyRecoveryResponseFromJSON } from '../models/InitPasskeyRecoveryResponse.js';
|
|
35
37
|
import '../models/InviteStatusEnum.js';
|
|
@@ -273,6 +275,33 @@ class SDKApi extends BaseAPI {
|
|
|
273
275
|
yield this.createVisitRaw(requestParameters, initOverrides);
|
|
274
276
|
});
|
|
275
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Options call for this endpoint
|
|
280
|
+
*/
|
|
281
|
+
emailAuthOptionsRaw(requestParameters, initOverrides) {
|
|
282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
284
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling emailAuthOptions.');
|
|
285
|
+
}
|
|
286
|
+
const queryParameters = {};
|
|
287
|
+
const headerParameters = {};
|
|
288
|
+
const response = yield this.request({
|
|
289
|
+
path: `/sdk/{environmentId}/users/embeddedWallets/emailAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
290
|
+
method: 'OPTIONS',
|
|
291
|
+
headers: headerParameters,
|
|
292
|
+
query: queryParameters,
|
|
293
|
+
}, initOverrides);
|
|
294
|
+
return new VoidApiResponse(response);
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Options call for this endpoint
|
|
299
|
+
*/
|
|
300
|
+
emailAuthOptions(requestParameters, initOverrides) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
yield this.emailAuthOptionsRaw(requestParameters, initOverrides);
|
|
303
|
+
});
|
|
304
|
+
}
|
|
276
305
|
/**
|
|
277
306
|
* Options call for this endpoint
|
|
278
307
|
*/
|
|
@@ -632,6 +661,48 @@ class SDKApi extends BaseAPI {
|
|
|
632
661
|
return yield response.value();
|
|
633
662
|
});
|
|
634
663
|
}
|
|
664
|
+
/**
|
|
665
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
666
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
667
|
+
*/
|
|
668
|
+
initEmailAuthRaw(requestParameters, initOverrides) {
|
|
669
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
670
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
671
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initEmailAuth.');
|
|
672
|
+
}
|
|
673
|
+
if (requestParameters.initEmailAuthRequest === null || requestParameters.initEmailAuthRequest === undefined) {
|
|
674
|
+
throw new RequiredError('initEmailAuthRequest', 'Required parameter requestParameters.initEmailAuthRequest was null or undefined when calling initEmailAuth.');
|
|
675
|
+
}
|
|
676
|
+
const queryParameters = {};
|
|
677
|
+
const headerParameters = {};
|
|
678
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
679
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
680
|
+
const token = this.configuration.accessToken;
|
|
681
|
+
const tokenString = yield token("bearerAuth", []);
|
|
682
|
+
if (tokenString) {
|
|
683
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
const response = yield this.request({
|
|
687
|
+
path: `/sdk/{environmentId}/users/embeddedWallets/emailAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
688
|
+
method: 'POST',
|
|
689
|
+
headers: headerParameters,
|
|
690
|
+
query: queryParameters,
|
|
691
|
+
body: InitEmailAuthRequestToJSON(requestParameters.initEmailAuthRequest),
|
|
692
|
+
}, initOverrides);
|
|
693
|
+
return new JSONApiResponse(response, (jsonValue) => InitEmailAuthResponseFromJSON(jsonValue));
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
698
|
+
* Initialize the email authentication process for a user\'s embedded wallet
|
|
699
|
+
*/
|
|
700
|
+
initEmailAuth(requestParameters, initOverrides) {
|
|
701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
702
|
+
const response = yield this.initEmailAuthRaw(requestParameters, initOverrides);
|
|
703
|
+
return yield response.value();
|
|
704
|
+
});
|
|
705
|
+
}
|
|
635
706
|
/**
|
|
636
707
|
* Initialize the passkey recovery process for a user\'s passkey embedded wallet
|
|
637
708
|
* Initialize the passkey recovery process for a user\'s passkey embedded wallet
|
package/src/index.cjs
CHANGED
|
@@ -91,6 +91,8 @@ var GateUpdateRequest = require('./models/GateUpdateRequest.cjs');
|
|
|
91
91
|
var GatesResponse = require('./models/GatesResponse.cjs');
|
|
92
92
|
var GetUserPasskeysResponse = require('./models/GetUserPasskeysResponse.cjs');
|
|
93
93
|
var HCaptchaSettings = require('./models/HCaptchaSettings.cjs');
|
|
94
|
+
var InitEmailAuthRequest = require('./models/InitEmailAuthRequest.cjs');
|
|
95
|
+
var InitEmailAuthResponse = require('./models/InitEmailAuthResponse.cjs');
|
|
94
96
|
var InitPasskeyRecoveryRequest = require('./models/InitPasskeyRecoveryRequest.cjs');
|
|
95
97
|
var InitPasskeyRecoveryResponse = require('./models/InitPasskeyRecoveryResponse.cjs');
|
|
96
98
|
var InlineObject = require('./models/InlineObject.cjs');
|
|
@@ -521,6 +523,12 @@ exports.GetUserPasskeysResponseToJSON = GetUserPasskeysResponse.GetUserPasskeysR
|
|
|
521
523
|
exports.HCaptchaSettingsFromJSON = HCaptchaSettings.HCaptchaSettingsFromJSON;
|
|
522
524
|
exports.HCaptchaSettingsFromJSONTyped = HCaptchaSettings.HCaptchaSettingsFromJSONTyped;
|
|
523
525
|
exports.HCaptchaSettingsToJSON = HCaptchaSettings.HCaptchaSettingsToJSON;
|
|
526
|
+
exports.InitEmailAuthRequestFromJSON = InitEmailAuthRequest.InitEmailAuthRequestFromJSON;
|
|
527
|
+
exports.InitEmailAuthRequestFromJSONTyped = InitEmailAuthRequest.InitEmailAuthRequestFromJSONTyped;
|
|
528
|
+
exports.InitEmailAuthRequestToJSON = InitEmailAuthRequest.InitEmailAuthRequestToJSON;
|
|
529
|
+
exports.InitEmailAuthResponseFromJSON = InitEmailAuthResponse.InitEmailAuthResponseFromJSON;
|
|
530
|
+
exports.InitEmailAuthResponseFromJSONTyped = InitEmailAuthResponse.InitEmailAuthResponseFromJSONTyped;
|
|
531
|
+
exports.InitEmailAuthResponseToJSON = InitEmailAuthResponse.InitEmailAuthResponseToJSON;
|
|
524
532
|
exports.InitPasskeyRecoveryRequestFromJSON = InitPasskeyRecoveryRequest.InitPasskeyRecoveryRequestFromJSON;
|
|
525
533
|
exports.InitPasskeyRecoveryRequestFromJSONTyped = InitPasskeyRecoveryRequest.InitPasskeyRecoveryRequestFromJSONTyped;
|
|
526
534
|
exports.InitPasskeyRecoveryRequestToJSON = InitPasskeyRecoveryRequest.InitPasskeyRecoveryRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -87,6 +87,8 @@ export { GateUpdateRequestFromJSON, GateUpdateRequestFromJSONTyped, GateUpdateRe
|
|
|
87
87
|
export { GatesResponseFromJSON, GatesResponseFromJSONTyped, GatesResponseToJSON } from './models/GatesResponse.js';
|
|
88
88
|
export { GetUserPasskeysResponseFromJSON, GetUserPasskeysResponseFromJSONTyped, GetUserPasskeysResponseToJSON } from './models/GetUserPasskeysResponse.js';
|
|
89
89
|
export { HCaptchaSettingsFromJSON, HCaptchaSettingsFromJSONTyped, HCaptchaSettingsToJSON } from './models/HCaptchaSettings.js';
|
|
90
|
+
export { InitEmailAuthRequestFromJSON, InitEmailAuthRequestFromJSONTyped, InitEmailAuthRequestToJSON } from './models/InitEmailAuthRequest.js';
|
|
91
|
+
export { InitEmailAuthResponseFromJSON, InitEmailAuthResponseFromJSONTyped, InitEmailAuthResponseToJSON } from './models/InitEmailAuthResponse.js';
|
|
90
92
|
export { InitPasskeyRecoveryRequestFromJSON, InitPasskeyRecoveryRequestFromJSONTyped, InitPasskeyRecoveryRequestToJSON } from './models/InitPasskeyRecoveryRequest.js';
|
|
91
93
|
export { InitPasskeyRecoveryResponseFromJSON, InitPasskeyRecoveryResponseFromJSONTyped, InitPasskeyRecoveryResponseToJSON } from './models/InitPasskeyRecoveryResponse.js';
|
|
92
94
|
export { InlineObjectFromJSON, InlineObjectFromJSONTyped, InlineObjectToJSON } from './models/InlineObject.js';
|
package/src/models/ChainEnum.cjs
CHANGED
|
@@ -29,6 +29,7 @@ exports.ChainEnum = void 0;
|
|
|
29
29
|
ChainEnum["Algo"] = "ALGO";
|
|
30
30
|
ChainEnum["Stark"] = "STARK";
|
|
31
31
|
ChainEnum["Cosmos"] = "COSMOS";
|
|
32
|
+
ChainEnum["Btc"] = "BTC";
|
|
32
33
|
})(exports.ChainEnum || (exports.ChainEnum = {}));
|
|
33
34
|
function ChainEnumFromJSON(json) {
|
|
34
35
|
return ChainEnumFromJSONTyped(json);
|
|
@@ -21,7 +21,8 @@ export declare enum ChainEnum {
|
|
|
21
21
|
Sol = "SOL",
|
|
22
22
|
Algo = "ALGO",
|
|
23
23
|
Stark = "STARK",
|
|
24
|
-
Cosmos = "COSMOS"
|
|
24
|
+
Cosmos = "COSMOS",
|
|
25
|
+
Btc = "BTC"
|
|
25
26
|
}
|
|
26
27
|
export declare function ChainEnumFromJSON(json: any): ChainEnum;
|
|
27
28
|
export declare function ChainEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainEnum;
|
package/src/models/ChainEnum.js
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function InitEmailAuthRequestFromJSON(json) {
|
|
19
|
+
return InitEmailAuthRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function InitEmailAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'walletId': json['walletId'],
|
|
27
|
+
'turnkeyEmailAuthTargetPublicKey': json['turnkeyEmailAuthTargetPublicKey'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function InitEmailAuthRequestToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'walletId': value.walletId,
|
|
39
|
+
'turnkeyEmailAuthTargetPublicKey': value.turnkeyEmailAuthTargetPublicKey,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.InitEmailAuthRequestFromJSON = InitEmailAuthRequestFromJSON;
|
|
44
|
+
exports.InitEmailAuthRequestFromJSONTyped = InitEmailAuthRequestFromJSONTyped;
|
|
45
|
+
exports.InitEmailAuthRequestToJSON = InitEmailAuthRequestToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InitEmailAuthRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface InitEmailAuthRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InitEmailAuthRequest
|
|
22
|
+
*/
|
|
23
|
+
walletId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitEmailAuthRequest
|
|
28
|
+
*/
|
|
29
|
+
turnkeyEmailAuthTargetPublicKey: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function InitEmailAuthRequestFromJSON(json: any): InitEmailAuthRequest;
|
|
32
|
+
export declare function InitEmailAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitEmailAuthRequest;
|
|
33
|
+
export declare function InitEmailAuthRequestToJSON(value?: InitEmailAuthRequest | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function InitEmailAuthRequestFromJSON(json) {
|
|
15
|
+
return InitEmailAuthRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function InitEmailAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'walletId': json['walletId'],
|
|
23
|
+
'turnkeyEmailAuthTargetPublicKey': json['turnkeyEmailAuthTargetPublicKey'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function InitEmailAuthRequestToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'walletId': value.walletId,
|
|
35
|
+
'turnkeyEmailAuthTargetPublicKey': value.turnkeyEmailAuthTargetPublicKey,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { InitEmailAuthRequestFromJSON, InitEmailAuthRequestFromJSONTyped, InitEmailAuthRequestToJSON };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function InitEmailAuthResponseFromJSON(json) {
|
|
19
|
+
return InitEmailAuthResponseFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function InitEmailAuthResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'turnkeyUserId': json['turnkeyUserId'],
|
|
27
|
+
'turnkeyApiKeyId': json['turnkeyApiKeyId'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function InitEmailAuthResponseToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'turnkeyUserId': value.turnkeyUserId,
|
|
39
|
+
'turnkeyApiKeyId': value.turnkeyApiKeyId,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.InitEmailAuthResponseFromJSON = InitEmailAuthResponseFromJSON;
|
|
44
|
+
exports.InitEmailAuthResponseFromJSONTyped = InitEmailAuthResponseFromJSONTyped;
|
|
45
|
+
exports.InitEmailAuthResponseToJSON = InitEmailAuthResponseToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InitEmailAuthResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface InitEmailAuthResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InitEmailAuthResponse
|
|
22
|
+
*/
|
|
23
|
+
turnkeyUserId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitEmailAuthResponse
|
|
28
|
+
*/
|
|
29
|
+
turnkeyApiKeyId: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function InitEmailAuthResponseFromJSON(json: any): InitEmailAuthResponse;
|
|
32
|
+
export declare function InitEmailAuthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitEmailAuthResponse;
|
|
33
|
+
export declare function InitEmailAuthResponseToJSON(value?: InitEmailAuthResponse | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function InitEmailAuthResponseFromJSON(json) {
|
|
15
|
+
return InitEmailAuthResponseFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function InitEmailAuthResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'turnkeyUserId': json['turnkeyUserId'],
|
|
23
|
+
'turnkeyApiKeyId': json['turnkeyApiKeyId'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function InitEmailAuthResponseToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'turnkeyUserId': value.turnkeyUserId,
|
|
35
|
+
'turnkeyApiKeyId': value.turnkeyApiKeyId,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { InitEmailAuthResponseFromJSON, InitEmailAuthResponseFromJSONTyped, InitEmailAuthResponseToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export * from './GateUpdateRequest';
|
|
|
64
64
|
export * from './GatesResponse';
|
|
65
65
|
export * from './GetUserPasskeysResponse';
|
|
66
66
|
export * from './HCaptchaSettings';
|
|
67
|
+
export * from './InitEmailAuthRequest';
|
|
68
|
+
export * from './InitEmailAuthResponse';
|
|
67
69
|
export * from './InitPasskeyRecoveryRequest';
|
|
68
70
|
export * from './InitPasskeyRecoveryResponse';
|
|
69
71
|
export * from './InlineObject';
|