@dynamic-labs/sdk-api-core 0.0.870 → 0.0.872
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 +67 -0
- package/src/apis/SDKApi.d.ts +26 -1
- package/src/apis/SDKApi.js +67 -0
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/DeviceRegistrationRequest.cjs +37 -0
- package/src/models/DeviceRegistrationRequest.d.ts +39 -0
- package/src/models/DeviceRegistrationRequest.js +31 -0
- package/src/models/WalletKeyShareInfo.cjs +2 -0
- package/src/models/WalletKeyShareInfo.d.ts +6 -0
- package/src/models/WalletKeyShareInfo.js +2 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.cjs +2 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.d.ts +6 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.js +2 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -66,6 +66,7 @@ var DelegatedShareDeliveryRequest = require('../models/DelegatedShareDeliveryReq
|
|
|
66
66
|
var DelegatedShareDeliveryResponse = require('../models/DelegatedShareDeliveryResponse.cjs');
|
|
67
67
|
var DeleteEmbeddedWalletsRequest = require('../models/DeleteEmbeddedWalletsRequest.cjs');
|
|
68
68
|
var DeleteUserPasskeyRequest = require('../models/DeleteUserPasskeyRequest.cjs');
|
|
69
|
+
var DeviceRegistrationRequest = require('../models/DeviceRegistrationRequest.cjs');
|
|
69
70
|
require('../models/TimeUnitEnum.cjs');
|
|
70
71
|
var EmailProviderResponse = require('../models/EmailProviderResponse.cjs');
|
|
71
72
|
var EmailVerificationCreateRequest = require('../models/EmailVerificationCreateRequest.cjs');
|
|
@@ -2065,6 +2066,72 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2065
2066
|
yield this.deliverDelegatedShareOptionsRaw(requestParameters, initOverrides);
|
|
2066
2067
|
});
|
|
2067
2068
|
}
|
|
2069
|
+
/**
|
|
2070
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
2071
|
+
* Register a new device for an authenticated user
|
|
2072
|
+
*/
|
|
2073
|
+
deviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2074
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2075
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2076
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistration.');
|
|
2077
|
+
}
|
|
2078
|
+
const queryParameters = {};
|
|
2079
|
+
const headerParameters = {};
|
|
2080
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2081
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2082
|
+
const token = this.configuration.accessToken;
|
|
2083
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2084
|
+
if (tokenString) {
|
|
2085
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
const response = yield this.request({
|
|
2089
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2090
|
+
method: 'POST',
|
|
2091
|
+
headers: headerParameters,
|
|
2092
|
+
query: queryParameters,
|
|
2093
|
+
body: DeviceRegistrationRequest.DeviceRegistrationRequestToJSON(requestParameters.deviceRegistrationRequest),
|
|
2094
|
+
}, initOverrides);
|
|
2095
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VerifyResponse.VerifyResponseFromJSON(jsonValue));
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
2100
|
+
* Register a new device for an authenticated user
|
|
2101
|
+
*/
|
|
2102
|
+
deviceRegistration(requestParameters, initOverrides) {
|
|
2103
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2104
|
+
const response = yield this.deviceRegistrationRaw(requestParameters, initOverrides);
|
|
2105
|
+
return yield response.value();
|
|
2106
|
+
});
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Options call for this endpoint
|
|
2110
|
+
*/
|
|
2111
|
+
deviceRegistrationOptionsRaw(requestParameters, initOverrides) {
|
|
2112
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2113
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2114
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationOptions.');
|
|
2115
|
+
}
|
|
2116
|
+
const queryParameters = {};
|
|
2117
|
+
const headerParameters = {};
|
|
2118
|
+
const response = yield this.request({
|
|
2119
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2120
|
+
method: 'OPTIONS',
|
|
2121
|
+
headers: headerParameters,
|
|
2122
|
+
query: queryParameters,
|
|
2123
|
+
}, initOverrides);
|
|
2124
|
+
return new runtime.VoidApiResponse(response);
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Options call for this endpoint
|
|
2129
|
+
*/
|
|
2130
|
+
deviceRegistrationOptions(requestParameters, initOverrides) {
|
|
2131
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2132
|
+
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2133
|
+
});
|
|
2134
|
+
}
|
|
2068
2135
|
/**
|
|
2069
2136
|
* Disconnects the specified global wallet connection.
|
|
2070
2137
|
* Disconnect a global wallet connection
|
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 { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
13
|
+
import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
14
14
|
export interface AuthMfaEmailDeviceOptionsRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
@@ -214,6 +214,13 @@ export interface DeliverDelegatedShareOptionsRequest {
|
|
|
214
214
|
environmentId: string;
|
|
215
215
|
walletId: string;
|
|
216
216
|
}
|
|
217
|
+
export interface DeviceRegistrationOperationRequest {
|
|
218
|
+
environmentId: string;
|
|
219
|
+
deviceRegistrationRequest?: DeviceRegistrationRequest;
|
|
220
|
+
}
|
|
221
|
+
export interface DeviceRegistrationOptionsRequest {
|
|
222
|
+
environmentId: string;
|
|
223
|
+
}
|
|
217
224
|
export interface DisconnectGlobalWalletConnectionRequest {
|
|
218
225
|
environmentId: string;
|
|
219
226
|
globalWalletConnectionId: string;
|
|
@@ -1507,6 +1514,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1507
1514
|
* Options call for this endpoint
|
|
1508
1515
|
*/
|
|
1509
1516
|
deliverDelegatedShareOptions(requestParameters: DeliverDelegatedShareOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1517
|
+
/**
|
|
1518
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
1519
|
+
* Register a new device for an authenticated user
|
|
1520
|
+
*/
|
|
1521
|
+
deviceRegistrationRaw(requestParameters: DeviceRegistrationOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
|
|
1522
|
+
/**
|
|
1523
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
1524
|
+
* Register a new device for an authenticated user
|
|
1525
|
+
*/
|
|
1526
|
+
deviceRegistration(requestParameters: DeviceRegistrationOperationRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Options call for this endpoint
|
|
1529
|
+
*/
|
|
1530
|
+
deviceRegistrationOptionsRaw(requestParameters: DeviceRegistrationOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1531
|
+
/**
|
|
1532
|
+
* Options call for this endpoint
|
|
1533
|
+
*/
|
|
1534
|
+
deviceRegistrationOptions(requestParameters: DeviceRegistrationOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1510
1535
|
/**
|
|
1511
1536
|
* Disconnects the specified global wallet connection.
|
|
1512
1537
|
* Disconnect a global wallet connection
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -62,6 +62,7 @@ import { DelegatedShareDeliveryRequestToJSON } from '../models/DelegatedShareDel
|
|
|
62
62
|
import { DelegatedShareDeliveryResponseFromJSON } from '../models/DelegatedShareDeliveryResponse.js';
|
|
63
63
|
import { DeleteEmbeddedWalletsRequestToJSON } from '../models/DeleteEmbeddedWalletsRequest.js';
|
|
64
64
|
import { DeleteUserPasskeyRequestToJSON } from '../models/DeleteUserPasskeyRequest.js';
|
|
65
|
+
import { DeviceRegistrationRequestToJSON } from '../models/DeviceRegistrationRequest.js';
|
|
65
66
|
import '../models/TimeUnitEnum.js';
|
|
66
67
|
import { EmailProviderResponseFromJSON } from '../models/EmailProviderResponse.js';
|
|
67
68
|
import { EmailVerificationCreateRequestToJSON } from '../models/EmailVerificationCreateRequest.js';
|
|
@@ -2061,6 +2062,72 @@ class SDKApi extends BaseAPI {
|
|
|
2061
2062
|
yield this.deliverDelegatedShareOptionsRaw(requestParameters, initOverrides);
|
|
2062
2063
|
});
|
|
2063
2064
|
}
|
|
2065
|
+
/**
|
|
2066
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
2067
|
+
* Register a new device for an authenticated user
|
|
2068
|
+
*/
|
|
2069
|
+
deviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2070
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2071
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2072
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistration.');
|
|
2073
|
+
}
|
|
2074
|
+
const queryParameters = {};
|
|
2075
|
+
const headerParameters = {};
|
|
2076
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2077
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2078
|
+
const token = this.configuration.accessToken;
|
|
2079
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2080
|
+
if (tokenString) {
|
|
2081
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
const response = yield this.request({
|
|
2085
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2086
|
+
method: 'POST',
|
|
2087
|
+
headers: headerParameters,
|
|
2088
|
+
query: queryParameters,
|
|
2089
|
+
body: DeviceRegistrationRequestToJSON(requestParameters.deviceRegistrationRequest),
|
|
2090
|
+
}, initOverrides);
|
|
2091
|
+
return new JSONApiResponse(response, (jsonValue) => VerifyResponseFromJSON(jsonValue));
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
2096
|
+
* Register a new device for an authenticated user
|
|
2097
|
+
*/
|
|
2098
|
+
deviceRegistration(requestParameters, initOverrides) {
|
|
2099
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2100
|
+
const response = yield this.deviceRegistrationRaw(requestParameters, initOverrides);
|
|
2101
|
+
return yield response.value();
|
|
2102
|
+
});
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Options call for this endpoint
|
|
2106
|
+
*/
|
|
2107
|
+
deviceRegistrationOptionsRaw(requestParameters, initOverrides) {
|
|
2108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2109
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2110
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationOptions.');
|
|
2111
|
+
}
|
|
2112
|
+
const queryParameters = {};
|
|
2113
|
+
const headerParameters = {};
|
|
2114
|
+
const response = yield this.request({
|
|
2115
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2116
|
+
method: 'OPTIONS',
|
|
2117
|
+
headers: headerParameters,
|
|
2118
|
+
query: queryParameters,
|
|
2119
|
+
}, initOverrides);
|
|
2120
|
+
return new VoidApiResponse(response);
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2123
|
+
/**
|
|
2124
|
+
* Options call for this endpoint
|
|
2125
|
+
*/
|
|
2126
|
+
deviceRegistrationOptions(requestParameters, initOverrides) {
|
|
2127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2128
|
+
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2064
2131
|
/**
|
|
2065
2132
|
* Disconnects the specified global wallet connection.
|
|
2066
2133
|
* Disconnect a global wallet connection
|
package/src/index.cjs
CHANGED
|
@@ -82,6 +82,7 @@ var DelegatedShareDeliveryRequestEncryptedDelegatedShare = require('./models/Del
|
|
|
82
82
|
var DelegatedShareDeliveryResponse = require('./models/DelegatedShareDeliveryResponse.cjs');
|
|
83
83
|
var DeleteEmbeddedWalletsRequest = require('./models/DeleteEmbeddedWalletsRequest.cjs');
|
|
84
84
|
var DeleteUserPasskeyRequest = require('./models/DeleteUserPasskeyRequest.cjs');
|
|
85
|
+
var DeviceRegistrationRequest = require('./models/DeviceRegistrationRequest.cjs');
|
|
85
86
|
var Duration = require('./models/Duration.cjs');
|
|
86
87
|
var DynamicJwt = require('./models/DynamicJwt.cjs');
|
|
87
88
|
var EcdsaValidatorOptions = require('./models/EcdsaValidatorOptions.cjs');
|
|
@@ -704,6 +705,9 @@ exports.DeleteEmbeddedWalletsRequestToJSON = DeleteEmbeddedWalletsRequest.Delete
|
|
|
704
705
|
exports.DeleteUserPasskeyRequestFromJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSON;
|
|
705
706
|
exports.DeleteUserPasskeyRequestFromJSONTyped = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSONTyped;
|
|
706
707
|
exports.DeleteUserPasskeyRequestToJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestToJSON;
|
|
708
|
+
exports.DeviceRegistrationRequestFromJSON = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSON;
|
|
709
|
+
exports.DeviceRegistrationRequestFromJSONTyped = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSONTyped;
|
|
710
|
+
exports.DeviceRegistrationRequestToJSON = DeviceRegistrationRequest.DeviceRegistrationRequestToJSON;
|
|
707
711
|
exports.DurationFromJSON = Duration.DurationFromJSON;
|
|
708
712
|
exports.DurationFromJSONTyped = Duration.DurationFromJSONTyped;
|
|
709
713
|
exports.DurationToJSON = Duration.DurationToJSON;
|
package/src/index.js
CHANGED
|
@@ -78,6 +78,7 @@ export { DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSON, Delegated
|
|
|
78
78
|
export { DelegatedShareDeliveryResponseFromJSON, DelegatedShareDeliveryResponseFromJSONTyped, DelegatedShareDeliveryResponseStatusEnum, DelegatedShareDeliveryResponseToJSON } from './models/DelegatedShareDeliveryResponse.js';
|
|
79
79
|
export { DeleteEmbeddedWalletsRequestFromJSON, DeleteEmbeddedWalletsRequestFromJSONTyped, DeleteEmbeddedWalletsRequestToJSON } from './models/DeleteEmbeddedWalletsRequest.js';
|
|
80
80
|
export { DeleteUserPasskeyRequestFromJSON, DeleteUserPasskeyRequestFromJSONTyped, DeleteUserPasskeyRequestToJSON } from './models/DeleteUserPasskeyRequest.js';
|
|
81
|
+
export { DeviceRegistrationRequestFromJSON, DeviceRegistrationRequestFromJSONTyped, DeviceRegistrationRequestToJSON } from './models/DeviceRegistrationRequest.js';
|
|
81
82
|
export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
|
|
82
83
|
export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.js';
|
|
83
84
|
export { EcdsaValidatorOptions, EcdsaValidatorOptionsFromJSON, EcdsaValidatorOptionsFromJSONTyped, EcdsaValidatorOptionsToJSON } from './models/EcdsaValidatorOptions.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function DeviceRegistrationRequestFromJSON(json) {
|
|
9
|
+
return DeviceRegistrationRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function DeviceRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
|
|
17
|
+
'signedNonce': !runtime.exists(json, 'signedNonce') ? undefined : json['signedNonce'],
|
|
18
|
+
'publicKey': !runtime.exists(json, 'publicKey') ? undefined : json['publicKey'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function DeviceRegistrationRequestToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'nonce': value.nonce,
|
|
30
|
+
'signedNonce': value.signedNonce,
|
|
31
|
+
'publicKey': value.publicKey,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.DeviceRegistrationRequestFromJSON = DeviceRegistrationRequestFromJSON;
|
|
36
|
+
exports.DeviceRegistrationRequestFromJSONTyped = DeviceRegistrationRequestFromJSONTyped;
|
|
37
|
+
exports.DeviceRegistrationRequestToJSON = DeviceRegistrationRequestToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* Request body for device registration with optional mobile registration fields
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeviceRegistrationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DeviceRegistrationRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Nonce for mobile device registration
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeviceRegistrationRequest
|
|
22
|
+
*/
|
|
23
|
+
nonce?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Signed nonce for mobile device registration verification
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DeviceRegistrationRequest
|
|
28
|
+
*/
|
|
29
|
+
signedNonce?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Public key for mobile device registration
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DeviceRegistrationRequest
|
|
34
|
+
*/
|
|
35
|
+
publicKey?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function DeviceRegistrationRequestFromJSON(json: any): DeviceRegistrationRequest;
|
|
38
|
+
export declare function DeviceRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceRegistrationRequest;
|
|
39
|
+
export declare function DeviceRegistrationRequestToJSON(value?: DeviceRegistrationRequest | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function DeviceRegistrationRequestFromJSON(json) {
|
|
5
|
+
return DeviceRegistrationRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function DeviceRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
|
13
|
+
'signedNonce': !exists(json, 'signedNonce') ? undefined : json['signedNonce'],
|
|
14
|
+
'publicKey': !exists(json, 'publicKey') ? undefined : json['publicKey'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function DeviceRegistrationRequestToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'nonce': value.nonce,
|
|
26
|
+
'signedNonce': value.signedNonce,
|
|
27
|
+
'publicKey': value.publicKey,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { DeviceRegistrationRequestFromJSON, DeviceRegistrationRequestFromJSONTyped, DeviceRegistrationRequestToJSON };
|
|
@@ -17,6 +17,7 @@ function WalletKeyShareInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
17
|
'backupLocation': json['backupLocation'],
|
|
18
18
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
19
19
|
'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
20
|
+
'keygenId': !runtime.exists(json, 'keygenId') ? undefined : json['keygenId'],
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
function WalletKeyShareInfoToJSON(value) {
|
|
@@ -31,6 +32,7 @@ function WalletKeyShareInfoToJSON(value) {
|
|
|
31
32
|
'backupLocation': value.backupLocation,
|
|
32
33
|
'passwordEncrypted': value.passwordEncrypted,
|
|
33
34
|
'externalKeyShareId': value.externalKeyShareId,
|
|
35
|
+
'keygenId': value.keygenId,
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -39,6 +39,12 @@ export interface WalletKeyShareInfo {
|
|
|
39
39
|
* @memberof WalletKeyShareInfo
|
|
40
40
|
*/
|
|
41
41
|
externalKeyShareId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WalletKeyShareInfo
|
|
46
|
+
*/
|
|
47
|
+
keygenId?: string;
|
|
42
48
|
}
|
|
43
49
|
export declare function WalletKeyShareInfoFromJSON(json: any): WalletKeyShareInfo;
|
|
44
50
|
export declare function WalletKeyShareInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletKeyShareInfo;
|
|
@@ -13,6 +13,7 @@ function WalletKeyShareInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
'backupLocation': json['backupLocation'],
|
|
14
14
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
15
15
|
'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
16
|
+
'keygenId': !exists(json, 'keygenId') ? undefined : json['keygenId'],
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
function WalletKeyShareInfoToJSON(value) {
|
|
@@ -27,6 +28,7 @@ function WalletKeyShareInfoToJSON(value) {
|
|
|
27
28
|
'backupLocation': value.backupLocation,
|
|
28
29
|
'passwordEncrypted': value.passwordEncrypted,
|
|
29
30
|
'externalKeyShareId': value.externalKeyShareId,
|
|
31
|
+
'keygenId': value.keygenId,
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -17,6 +17,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json, ign
|
|
|
17
17
|
'backupLocation': json['backupLocation'],
|
|
18
18
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
19
19
|
'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
20
|
+
'keygenId': !runtime.exists(json, 'keygenId') ? undefined : json['keygenId'],
|
|
20
21
|
'encryptedAccountCredential': !runtime.exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
21
22
|
};
|
|
22
23
|
}
|
|
@@ -32,6 +33,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialToJSON(value) {
|
|
|
32
33
|
'backupLocation': value.backupLocation,
|
|
33
34
|
'passwordEncrypted': value.passwordEncrypted,
|
|
34
35
|
'externalKeyShareId': value.externalKeyShareId,
|
|
36
|
+
'keygenId': value.keygenId,
|
|
35
37
|
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
@@ -39,6 +39,12 @@ export interface WalletKeyShareInfoWithEncryptedAccountCredential {
|
|
|
39
39
|
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
40
40
|
*/
|
|
41
41
|
externalKeyShareId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
46
|
+
*/
|
|
47
|
+
keygenId?: string;
|
|
42
48
|
/**
|
|
43
49
|
* A string with a max length of 4096 characters
|
|
44
50
|
* @type {string}
|
|
@@ -13,6 +13,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json, ign
|
|
|
13
13
|
'backupLocation': json['backupLocation'],
|
|
14
14
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
15
15
|
'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
16
|
+
'keygenId': !exists(json, 'keygenId') ? undefined : json['keygenId'],
|
|
16
17
|
'encryptedAccountCredential': !exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
17
18
|
};
|
|
18
19
|
}
|
|
@@ -28,6 +29,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialToJSON(value) {
|
|
|
28
29
|
'backupLocation': value.backupLocation,
|
|
29
30
|
'passwordEncrypted': value.passwordEncrypted,
|
|
30
31
|
'externalKeyShareId': value.externalKeyShareId,
|
|
32
|
+
'keygenId': value.keygenId,
|
|
31
33
|
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
32
34
|
};
|
|
33
35
|
}
|
package/src/models/index.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export * from './DelegatedShareDeliveryRequestEncryptedDelegatedShare';
|
|
|
75
75
|
export * from './DelegatedShareDeliveryResponse';
|
|
76
76
|
export * from './DeleteEmbeddedWalletsRequest';
|
|
77
77
|
export * from './DeleteUserPasskeyRequest';
|
|
78
|
+
export * from './DeviceRegistrationRequest';
|
|
78
79
|
export * from './Duration';
|
|
79
80
|
export * from './DynamicJwt';
|
|
80
81
|
export * from './EcdsaValidatorOptions';
|