@dynamic-labs/sdk-api 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
|
@@ -79,6 +79,7 @@ var DelegatedShareDeliveryRequest = require('../models/DelegatedShareDeliveryReq
|
|
|
79
79
|
var DelegatedShareDeliveryResponse = require('../models/DelegatedShareDeliveryResponse.cjs');
|
|
80
80
|
var DeleteEmbeddedWalletsRequest = require('../models/DeleteEmbeddedWalletsRequest.cjs');
|
|
81
81
|
var DeleteUserPasskeyRequest = require('../models/DeleteUserPasskeyRequest.cjs');
|
|
82
|
+
var DeviceRegistrationRequest = require('../models/DeviceRegistrationRequest.cjs');
|
|
82
83
|
var EmailProviderResponse = require('../models/EmailProviderResponse.cjs');
|
|
83
84
|
var EmailVerificationCreateRequest = require('../models/EmailVerificationCreateRequest.cjs');
|
|
84
85
|
var EmailVerificationCreateResponse = require('../models/EmailVerificationCreateResponse.cjs');
|
|
@@ -2087,6 +2088,72 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2087
2088
|
yield this.deliverDelegatedShareOptionsRaw(requestParameters, initOverrides);
|
|
2088
2089
|
});
|
|
2089
2090
|
}
|
|
2091
|
+
/**
|
|
2092
|
+
* 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.
|
|
2093
|
+
* Register a new device for an authenticated user
|
|
2094
|
+
*/
|
|
2095
|
+
deviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2096
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2097
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2098
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistration.');
|
|
2099
|
+
}
|
|
2100
|
+
const queryParameters = {};
|
|
2101
|
+
const headerParameters = {};
|
|
2102
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2103
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2104
|
+
const token = this.configuration.accessToken;
|
|
2105
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2106
|
+
if (tokenString) {
|
|
2107
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
const response = yield this.request({
|
|
2111
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2112
|
+
method: 'POST',
|
|
2113
|
+
headers: headerParameters,
|
|
2114
|
+
query: queryParameters,
|
|
2115
|
+
body: DeviceRegistrationRequest.DeviceRegistrationRequestToJSON(requestParameters.deviceRegistrationRequest),
|
|
2116
|
+
}, initOverrides);
|
|
2117
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VerifyResponse.VerifyResponseFromJSON(jsonValue));
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* 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.
|
|
2122
|
+
* Register a new device for an authenticated user
|
|
2123
|
+
*/
|
|
2124
|
+
deviceRegistration(requestParameters, initOverrides) {
|
|
2125
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2126
|
+
const response = yield this.deviceRegistrationRaw(requestParameters, initOverrides);
|
|
2127
|
+
return yield response.value();
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
/**
|
|
2131
|
+
* Options call for this endpoint
|
|
2132
|
+
*/
|
|
2133
|
+
deviceRegistrationOptionsRaw(requestParameters, initOverrides) {
|
|
2134
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2135
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2136
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationOptions.');
|
|
2137
|
+
}
|
|
2138
|
+
const queryParameters = {};
|
|
2139
|
+
const headerParameters = {};
|
|
2140
|
+
const response = yield this.request({
|
|
2141
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2142
|
+
method: 'OPTIONS',
|
|
2143
|
+
headers: headerParameters,
|
|
2144
|
+
query: queryParameters,
|
|
2145
|
+
}, initOverrides);
|
|
2146
|
+
return new runtime.VoidApiResponse(response);
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2150
|
+
* Options call for this endpoint
|
|
2151
|
+
*/
|
|
2152
|
+
deviceRegistrationOptions(requestParameters, initOverrides) {
|
|
2153
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2154
|
+
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2155
|
+
});
|
|
2156
|
+
}
|
|
2090
2157
|
/**
|
|
2091
2158
|
* Disconnects the specified global wallet connection.
|
|
2092
2159
|
* 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, InlineObject1, 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, InlineObject1, 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;
|
|
@@ -1512,6 +1519,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1512
1519
|
* Options call for this endpoint
|
|
1513
1520
|
*/
|
|
1514
1521
|
deliverDelegatedShareOptions(requestParameters: DeliverDelegatedShareOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
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
|
+
deviceRegistrationRaw(requestParameters: DeviceRegistrationOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
|
|
1527
|
+
/**
|
|
1528
|
+
* 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.
|
|
1529
|
+
* Register a new device for an authenticated user
|
|
1530
|
+
*/
|
|
1531
|
+
deviceRegistration(requestParameters: DeviceRegistrationOperationRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
|
|
1532
|
+
/**
|
|
1533
|
+
* Options call for this endpoint
|
|
1534
|
+
*/
|
|
1535
|
+
deviceRegistrationOptionsRaw(requestParameters: DeviceRegistrationOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1536
|
+
/**
|
|
1537
|
+
* Options call for this endpoint
|
|
1538
|
+
*/
|
|
1539
|
+
deviceRegistrationOptions(requestParameters: DeviceRegistrationOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1515
1540
|
/**
|
|
1516
1541
|
* Disconnects the specified global wallet connection.
|
|
1517
1542
|
* Disconnect a global wallet connection
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -75,6 +75,7 @@ import { DelegatedShareDeliveryRequestToJSON } from '../models/DelegatedShareDel
|
|
|
75
75
|
import { DelegatedShareDeliveryResponseFromJSON } from '../models/DelegatedShareDeliveryResponse.js';
|
|
76
76
|
import { DeleteEmbeddedWalletsRequestToJSON } from '../models/DeleteEmbeddedWalletsRequest.js';
|
|
77
77
|
import { DeleteUserPasskeyRequestToJSON } from '../models/DeleteUserPasskeyRequest.js';
|
|
78
|
+
import { DeviceRegistrationRequestToJSON } from '../models/DeviceRegistrationRequest.js';
|
|
78
79
|
import { EmailProviderResponseFromJSON } from '../models/EmailProviderResponse.js';
|
|
79
80
|
import { EmailVerificationCreateRequestToJSON } from '../models/EmailVerificationCreateRequest.js';
|
|
80
81
|
import { EmailVerificationCreateResponseFromJSON } from '../models/EmailVerificationCreateResponse.js';
|
|
@@ -2083,6 +2084,72 @@ class SDKApi extends BaseAPI {
|
|
|
2083
2084
|
yield this.deliverDelegatedShareOptionsRaw(requestParameters, initOverrides);
|
|
2084
2085
|
});
|
|
2085
2086
|
}
|
|
2087
|
+
/**
|
|
2088
|
+
* 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.
|
|
2089
|
+
* Register a new device for an authenticated user
|
|
2090
|
+
*/
|
|
2091
|
+
deviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2093
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2094
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistration.');
|
|
2095
|
+
}
|
|
2096
|
+
const queryParameters = {};
|
|
2097
|
+
const headerParameters = {};
|
|
2098
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2099
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2100
|
+
const token = this.configuration.accessToken;
|
|
2101
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2102
|
+
if (tokenString) {
|
|
2103
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
const response = yield this.request({
|
|
2107
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2108
|
+
method: 'POST',
|
|
2109
|
+
headers: headerParameters,
|
|
2110
|
+
query: queryParameters,
|
|
2111
|
+
body: DeviceRegistrationRequestToJSON(requestParameters.deviceRegistrationRequest),
|
|
2112
|
+
}, initOverrides);
|
|
2113
|
+
return new JSONApiResponse(response, (jsonValue) => VerifyResponseFromJSON(jsonValue));
|
|
2114
|
+
});
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* 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.
|
|
2118
|
+
* Register a new device for an authenticated user
|
|
2119
|
+
*/
|
|
2120
|
+
deviceRegistration(requestParameters, initOverrides) {
|
|
2121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2122
|
+
const response = yield this.deviceRegistrationRaw(requestParameters, initOverrides);
|
|
2123
|
+
return yield response.value();
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
/**
|
|
2127
|
+
* Options call for this endpoint
|
|
2128
|
+
*/
|
|
2129
|
+
deviceRegistrationOptionsRaw(requestParameters, initOverrides) {
|
|
2130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2131
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2132
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationOptions.');
|
|
2133
|
+
}
|
|
2134
|
+
const queryParameters = {};
|
|
2135
|
+
const headerParameters = {};
|
|
2136
|
+
const response = yield this.request({
|
|
2137
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2138
|
+
method: 'OPTIONS',
|
|
2139
|
+
headers: headerParameters,
|
|
2140
|
+
query: queryParameters,
|
|
2141
|
+
}, initOverrides);
|
|
2142
|
+
return new VoidApiResponse(response);
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
2145
|
+
/**
|
|
2146
|
+
* Options call for this endpoint
|
|
2147
|
+
*/
|
|
2148
|
+
deviceRegistrationOptions(requestParameters, initOverrides) {
|
|
2149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2150
|
+
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2151
|
+
});
|
|
2152
|
+
}
|
|
2086
2153
|
/**
|
|
2087
2154
|
* Disconnects the specified global wallet connection.
|
|
2088
2155
|
* Disconnect a global wallet connection
|
package/src/index.cjs
CHANGED
|
@@ -180,6 +180,7 @@ var DelegatedShareDeliveryRequestEncryptedDelegatedShare = require('./models/Del
|
|
|
180
180
|
var DelegatedShareDeliveryResponse = require('./models/DelegatedShareDeliveryResponse.cjs');
|
|
181
181
|
var DeleteEmbeddedWalletsRequest = require('./models/DeleteEmbeddedWalletsRequest.cjs');
|
|
182
182
|
var DeleteUserPasskeyRequest = require('./models/DeleteUserPasskeyRequest.cjs');
|
|
183
|
+
var DeviceRegistrationRequest = require('./models/DeviceRegistrationRequest.cjs');
|
|
183
184
|
var DnsRecordType = require('./models/DnsRecordType.cjs');
|
|
184
185
|
var Duration = require('./models/Duration.cjs');
|
|
185
186
|
var DynamicJwt = require('./models/DynamicJwt.cjs');
|
|
@@ -1214,6 +1215,9 @@ exports.DeleteEmbeddedWalletsRequestToJSON = DeleteEmbeddedWalletsRequest.Delete
|
|
|
1214
1215
|
exports.DeleteUserPasskeyRequestFromJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSON;
|
|
1215
1216
|
exports.DeleteUserPasskeyRequestFromJSONTyped = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSONTyped;
|
|
1216
1217
|
exports.DeleteUserPasskeyRequestToJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestToJSON;
|
|
1218
|
+
exports.DeviceRegistrationRequestFromJSON = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSON;
|
|
1219
|
+
exports.DeviceRegistrationRequestFromJSONTyped = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSONTyped;
|
|
1220
|
+
exports.DeviceRegistrationRequestToJSON = DeviceRegistrationRequest.DeviceRegistrationRequestToJSON;
|
|
1217
1221
|
Object.defineProperty(exports, 'DnsRecordType', {
|
|
1218
1222
|
enumerable: true,
|
|
1219
1223
|
get: function () { return DnsRecordType.DnsRecordType; }
|
package/src/index.js
CHANGED
|
@@ -176,6 +176,7 @@ export { DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSON, Delegated
|
|
|
176
176
|
export { DelegatedShareDeliveryResponseFromJSON, DelegatedShareDeliveryResponseFromJSONTyped, DelegatedShareDeliveryResponseStatusEnum, DelegatedShareDeliveryResponseToJSON } from './models/DelegatedShareDeliveryResponse.js';
|
|
177
177
|
export { DeleteEmbeddedWalletsRequestFromJSON, DeleteEmbeddedWalletsRequestFromJSONTyped, DeleteEmbeddedWalletsRequestToJSON } from './models/DeleteEmbeddedWalletsRequest.js';
|
|
178
178
|
export { DeleteUserPasskeyRequestFromJSON, DeleteUserPasskeyRequestFromJSONTyped, DeleteUserPasskeyRequestToJSON } from './models/DeleteUserPasskeyRequest.js';
|
|
179
|
+
export { DeviceRegistrationRequestFromJSON, DeviceRegistrationRequestFromJSONTyped, DeviceRegistrationRequestToJSON } from './models/DeviceRegistrationRequest.js';
|
|
179
180
|
export { DnsRecordType, DnsRecordTypeFromJSON, DnsRecordTypeFromJSONTyped, DnsRecordTypeToJSON } from './models/DnsRecordType.js';
|
|
180
181
|
export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
|
|
181
182
|
export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.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
|
@@ -138,6 +138,7 @@ export * from './DelegatedShareDeliveryRequestEncryptedDelegatedShare';
|
|
|
138
138
|
export * from './DelegatedShareDeliveryResponse';
|
|
139
139
|
export * from './DeleteEmbeddedWalletsRequest';
|
|
140
140
|
export * from './DeleteUserPasskeyRequest';
|
|
141
|
+
export * from './DeviceRegistrationRequest';
|
|
141
142
|
export * from './DnsRecordType';
|
|
142
143
|
export * from './Duration';
|
|
143
144
|
export * from './DynamicJwt';
|