@dynamic-labs/sdk-api 0.0.1125 → 0.1.0
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 +61 -6
- package/src/apis/SDKApi.d.ts +31 -7
- package/src/apis/SDKApi.js +61 -6
- package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +1 -1
- package/src/models/WaasTransactionBroadcastErrorPayload.cjs +1 -1
- package/src/models/WaasTransactionBroadcastErrorPayload.d.ts +1 -1
- package/src/models/WaasTransactionBroadcastErrorPayload.js +1 -1
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -58,7 +58,6 @@ var MFADevice = require('../models/MFADevice.cjs');
|
|
|
58
58
|
var BusinessAccount = require('../models/BusinessAccount.cjs');
|
|
59
59
|
var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
|
|
60
60
|
var BusinessAccountMember = require('../models/BusinessAccountMember.cjs');
|
|
61
|
-
var BusinessAccountSigner = require('../models/BusinessAccountSigner.cjs');
|
|
62
61
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
63
62
|
require('../models/CaptchaProviderEnum.cjs');
|
|
64
63
|
require('../models/DestinationTypeEnum.cjs');
|
|
@@ -5430,6 +5429,39 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5430
5429
|
const response = await this.getUserPasskeysRaw(requestParameters, initOverrides);
|
|
5431
5430
|
return await response.value();
|
|
5432
5431
|
}
|
|
5432
|
+
/**
|
|
5433
|
+
* Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
|
|
5434
|
+
* Get the environment-Layer\'s Rules
|
|
5435
|
+
*/
|
|
5436
|
+
async getWaasEnvPolicyLayerRaw(requestParameters, initOverrides) {
|
|
5437
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5438
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasEnvPolicyLayer.');
|
|
5439
|
+
}
|
|
5440
|
+
const queryParameters = {};
|
|
5441
|
+
const headerParameters = {};
|
|
5442
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5443
|
+
const token = this.configuration.accessToken;
|
|
5444
|
+
const tokenString = await token("bearerAuth", []);
|
|
5445
|
+
if (tokenString) {
|
|
5446
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5447
|
+
}
|
|
5448
|
+
}
|
|
5449
|
+
const response = await this.request({
|
|
5450
|
+
path: `/sdk/{environmentId}/waas/env-policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5451
|
+
method: 'GET',
|
|
5452
|
+
headers: headerParameters,
|
|
5453
|
+
query: queryParameters,
|
|
5454
|
+
}, initOverrides);
|
|
5455
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
5456
|
+
}
|
|
5457
|
+
/**
|
|
5458
|
+
* Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
|
|
5459
|
+
* Get the environment-Layer\'s Rules
|
|
5460
|
+
*/
|
|
5461
|
+
async getWaasEnvPolicyLayer(requestParameters, initOverrides) {
|
|
5462
|
+
const response = await this.getWaasEnvPolicyLayerRaw(requestParameters, initOverrides);
|
|
5463
|
+
return await response.value();
|
|
5464
|
+
}
|
|
5433
5465
|
/**
|
|
5434
5466
|
* Returns the Composition Layer content for the calling wallet\'s own active Signer, or (given shareSetId) another share set of the same wallet — e.g. a delegated share set — without mutating it. Only the wallet\'s own owner may target another share set.
|
|
5435
5467
|
* Get a signer-Layer\'s Rules
|
|
@@ -8810,8 +8842,8 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8810
8842
|
return await response.value();
|
|
8811
8843
|
}
|
|
8812
8844
|
/**
|
|
8813
|
-
*
|
|
8814
|
-
* SDK — add a signer to a wallet in a business account
|
|
8845
|
+
* Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
|
|
8846
|
+
* SDK — add a signer to a wallet in a business account
|
|
8815
8847
|
*/
|
|
8816
8848
|
async sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8817
8849
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -8843,11 +8875,11 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8843
8875
|
query: queryParameters,
|
|
8844
8876
|
body: AddBusinessAccountSignerSdkRequest.AddBusinessAccountSignerSdkRequestToJSON(requestParameters.addBusinessAccountSignerSdkRequest),
|
|
8845
8877
|
}, initOverrides);
|
|
8846
|
-
return new runtime.
|
|
8878
|
+
return new runtime.TextApiResponse(response);
|
|
8847
8879
|
}
|
|
8848
8880
|
/**
|
|
8849
|
-
*
|
|
8850
|
-
* SDK — add a signer to a wallet in a business account
|
|
8881
|
+
* Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
|
|
8882
|
+
* SDK — add a signer to a wallet in a business account
|
|
8851
8883
|
*/
|
|
8852
8884
|
async sdkAddBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8853
8885
|
const response = await this.sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
@@ -11571,6 +11603,29 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11571
11603
|
async verifyUnlinkOptions(requestParameters, initOverrides) {
|
|
11572
11604
|
await this.verifyUnlinkOptionsRaw(requestParameters, initOverrides);
|
|
11573
11605
|
}
|
|
11606
|
+
/**
|
|
11607
|
+
* Options call for this endpoint
|
|
11608
|
+
*/
|
|
11609
|
+
async waasEnvPolicyLayerOptionsRaw(requestParameters, initOverrides) {
|
|
11610
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11611
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling waasEnvPolicyLayerOptions.');
|
|
11612
|
+
}
|
|
11613
|
+
const queryParameters = {};
|
|
11614
|
+
const headerParameters = {};
|
|
11615
|
+
const response = await this.request({
|
|
11616
|
+
path: `/sdk/{environmentId}/waas/env-policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
11617
|
+
method: 'OPTIONS',
|
|
11618
|
+
headers: headerParameters,
|
|
11619
|
+
query: queryParameters,
|
|
11620
|
+
}, initOverrides);
|
|
11621
|
+
return new runtime.VoidApiResponse(response);
|
|
11622
|
+
}
|
|
11623
|
+
/**
|
|
11624
|
+
* Options call for this endpoint
|
|
11625
|
+
*/
|
|
11626
|
+
async waasEnvPolicyLayerOptions(requestParameters, initOverrides) {
|
|
11627
|
+
await this.waasEnvPolicyLayerOptionsRaw(requestParameters, initOverrides);
|
|
11628
|
+
}
|
|
11574
11629
|
/**
|
|
11575
11630
|
* Options call for this endpoint
|
|
11576
11631
|
*/
|
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, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember,
|
|
13
|
+
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultRewardsResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -664,6 +664,9 @@ export interface GetUserMfaMethodsRequest {
|
|
|
664
664
|
export interface GetUserPasskeysRequest {
|
|
665
665
|
environmentId: string;
|
|
666
666
|
}
|
|
667
|
+
export interface GetWaasEnvPolicyLayerRequest {
|
|
668
|
+
environmentId: string;
|
|
669
|
+
}
|
|
667
670
|
export interface GetWaasSignerSelfPolicyLayerRequest {
|
|
668
671
|
environmentId: string;
|
|
669
672
|
walletId: string;
|
|
@@ -1468,6 +1471,9 @@ export interface VerifyUnlinkOperationRequest {
|
|
|
1468
1471
|
export interface VerifyUnlinkOptionsRequest {
|
|
1469
1472
|
environmentId: string;
|
|
1470
1473
|
}
|
|
1474
|
+
export interface WaasEnvPolicyLayerOptionsRequest {
|
|
1475
|
+
environmentId: string;
|
|
1476
|
+
}
|
|
1471
1477
|
export interface WaasSignerSelfPolicyLayerOptionsRequest {
|
|
1472
1478
|
environmentId: string;
|
|
1473
1479
|
walletId: string;
|
|
@@ -3022,6 +3028,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3022
3028
|
* Get user passkeys
|
|
3023
3029
|
*/
|
|
3024
3030
|
getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
|
|
3031
|
+
/**
|
|
3032
|
+
* Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
|
|
3033
|
+
* Get the environment-Layer\'s Rules
|
|
3034
|
+
*/
|
|
3035
|
+
getWaasEnvPolicyLayerRaw(requestParameters: GetWaasEnvPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
3036
|
+
/**
|
|
3037
|
+
* Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
|
|
3038
|
+
* Get the environment-Layer\'s Rules
|
|
3039
|
+
*/
|
|
3040
|
+
getWaasEnvPolicyLayer(requestParameters: GetWaasEnvPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
3025
3041
|
/**
|
|
3026
3042
|
* Returns the Composition Layer content for the calling wallet\'s own active Signer, or (given shareSetId) another share set of the same wallet — e.g. a delegated share set — without mutating it. Only the wallet\'s own owner may target another share set.
|
|
3027
3043
|
* Get a signer-Layer\'s Rules
|
|
@@ -4027,15 +4043,15 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4027
4043
|
*/
|
|
4028
4044
|
sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<BusinessAccountMember>;
|
|
4029
4045
|
/**
|
|
4030
|
-
*
|
|
4031
|
-
* SDK — add a signer to a wallet in a business account
|
|
4046
|
+
* Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
|
|
4047
|
+
* SDK — add a signer to a wallet in a business account
|
|
4032
4048
|
*/
|
|
4033
|
-
sdkAddBusinessAccountSignerRaw(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
4049
|
+
sdkAddBusinessAccountSignerRaw(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<string>>;
|
|
4034
4050
|
/**
|
|
4035
|
-
*
|
|
4036
|
-
* SDK — add a signer to a wallet in a business account
|
|
4051
|
+
* Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
|
|
4052
|
+
* SDK — add a signer to a wallet in a business account
|
|
4037
4053
|
*/
|
|
4038
|
-
sdkAddBusinessAccountSigner(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<
|
|
4054
|
+
sdkAddBusinessAccountSigner(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<string>;
|
|
4039
4055
|
/**
|
|
4040
4056
|
* Options call for this endpoint
|
|
4041
4057
|
*/
|
|
@@ -4846,6 +4862,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4846
4862
|
* Options call for this endpoint
|
|
4847
4863
|
*/
|
|
4848
4864
|
verifyUnlinkOptions(requestParameters: VerifyUnlinkOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4865
|
+
/**
|
|
4866
|
+
* Options call for this endpoint
|
|
4867
|
+
*/
|
|
4868
|
+
waasEnvPolicyLayerOptionsRaw(requestParameters: WaasEnvPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
4869
|
+
/**
|
|
4870
|
+
* Options call for this endpoint
|
|
4871
|
+
*/
|
|
4872
|
+
waasEnvPolicyLayerOptions(requestParameters: WaasEnvPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4849
4873
|
/**
|
|
4850
4874
|
* Options call for this endpoint
|
|
4851
4875
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -54,7 +54,6 @@ import { MFADeviceFromJSON } from '../models/MFADevice.js';
|
|
|
54
54
|
import { BusinessAccountFromJSON } from '../models/BusinessAccount.js';
|
|
55
55
|
import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.js';
|
|
56
56
|
import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
|
|
57
|
-
import { BusinessAccountSignerFromJSON } from '../models/BusinessAccountSigner.js';
|
|
58
57
|
import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
|
|
59
58
|
import '../models/CaptchaProviderEnum.js';
|
|
60
59
|
import '../models/DestinationTypeEnum.js';
|
|
@@ -5426,6 +5425,39 @@ class SDKApi extends BaseAPI {
|
|
|
5426
5425
|
const response = await this.getUserPasskeysRaw(requestParameters, initOverrides);
|
|
5427
5426
|
return await response.value();
|
|
5428
5427
|
}
|
|
5428
|
+
/**
|
|
5429
|
+
* Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
|
|
5430
|
+
* Get the environment-Layer\'s Rules
|
|
5431
|
+
*/
|
|
5432
|
+
async getWaasEnvPolicyLayerRaw(requestParameters, initOverrides) {
|
|
5433
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5434
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasEnvPolicyLayer.');
|
|
5435
|
+
}
|
|
5436
|
+
const queryParameters = {};
|
|
5437
|
+
const headerParameters = {};
|
|
5438
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5439
|
+
const token = this.configuration.accessToken;
|
|
5440
|
+
const tokenString = await token("bearerAuth", []);
|
|
5441
|
+
if (tokenString) {
|
|
5442
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5443
|
+
}
|
|
5444
|
+
}
|
|
5445
|
+
const response = await this.request({
|
|
5446
|
+
path: `/sdk/{environmentId}/waas/env-policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5447
|
+
method: 'GET',
|
|
5448
|
+
headers: headerParameters,
|
|
5449
|
+
query: queryParameters,
|
|
5450
|
+
}, initOverrides);
|
|
5451
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
5452
|
+
}
|
|
5453
|
+
/**
|
|
5454
|
+
* Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
|
|
5455
|
+
* Get the environment-Layer\'s Rules
|
|
5456
|
+
*/
|
|
5457
|
+
async getWaasEnvPolicyLayer(requestParameters, initOverrides) {
|
|
5458
|
+
const response = await this.getWaasEnvPolicyLayerRaw(requestParameters, initOverrides);
|
|
5459
|
+
return await response.value();
|
|
5460
|
+
}
|
|
5429
5461
|
/**
|
|
5430
5462
|
* Returns the Composition Layer content for the calling wallet\'s own active Signer, or (given shareSetId) another share set of the same wallet — e.g. a delegated share set — without mutating it. Only the wallet\'s own owner may target another share set.
|
|
5431
5463
|
* Get a signer-Layer\'s Rules
|
|
@@ -8806,8 +8838,8 @@ class SDKApi extends BaseAPI {
|
|
|
8806
8838
|
return await response.value();
|
|
8807
8839
|
}
|
|
8808
8840
|
/**
|
|
8809
|
-
*
|
|
8810
|
-
* SDK — add a signer to a wallet in a business account
|
|
8841
|
+
* Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
|
|
8842
|
+
* SDK — add a signer to a wallet in a business account
|
|
8811
8843
|
*/
|
|
8812
8844
|
async sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8813
8845
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -8839,11 +8871,11 @@ class SDKApi extends BaseAPI {
|
|
|
8839
8871
|
query: queryParameters,
|
|
8840
8872
|
body: AddBusinessAccountSignerSdkRequestToJSON(requestParameters.addBusinessAccountSignerSdkRequest),
|
|
8841
8873
|
}, initOverrides);
|
|
8842
|
-
return new
|
|
8874
|
+
return new TextApiResponse(response);
|
|
8843
8875
|
}
|
|
8844
8876
|
/**
|
|
8845
|
-
*
|
|
8846
|
-
* SDK — add a signer to a wallet in a business account
|
|
8877
|
+
* Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
|
|
8878
|
+
* SDK — add a signer to a wallet in a business account
|
|
8847
8879
|
*/
|
|
8848
8880
|
async sdkAddBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8849
8881
|
const response = await this.sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
@@ -11567,6 +11599,29 @@ class SDKApi extends BaseAPI {
|
|
|
11567
11599
|
async verifyUnlinkOptions(requestParameters, initOverrides) {
|
|
11568
11600
|
await this.verifyUnlinkOptionsRaw(requestParameters, initOverrides);
|
|
11569
11601
|
}
|
|
11602
|
+
/**
|
|
11603
|
+
* Options call for this endpoint
|
|
11604
|
+
*/
|
|
11605
|
+
async waasEnvPolicyLayerOptionsRaw(requestParameters, initOverrides) {
|
|
11606
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11607
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling waasEnvPolicyLayerOptions.');
|
|
11608
|
+
}
|
|
11609
|
+
const queryParameters = {};
|
|
11610
|
+
const headerParameters = {};
|
|
11611
|
+
const response = await this.request({
|
|
11612
|
+
path: `/sdk/{environmentId}/waas/env-policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
11613
|
+
method: 'OPTIONS',
|
|
11614
|
+
headers: headerParameters,
|
|
11615
|
+
query: queryParameters,
|
|
11616
|
+
}, initOverrides);
|
|
11617
|
+
return new VoidApiResponse(response);
|
|
11618
|
+
}
|
|
11619
|
+
/**
|
|
11620
|
+
* Options call for this endpoint
|
|
11621
|
+
*/
|
|
11622
|
+
async waasEnvPolicyLayerOptions(requestParameters, initOverrides) {
|
|
11623
|
+
await this.waasEnvPolicyLayerOptionsRaw(requestParameters, initOverrides);
|
|
11624
|
+
}
|
|
11570
11625
|
/**
|
|
11571
11626
|
* Options call for this endpoint
|
|
11572
11627
|
*/
|
|
@@ -17,7 +17,7 @@ import { UserIdentifierTypeEnum } from './UserIdentifierTypeEnum';
|
|
|
17
17
|
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
18
18
|
/**
|
|
19
19
|
* SDK addSigner body. Same user resolution shape as addMember (userId OR identifier + type), plus `signerType` for the signer-role enum (endUser/server). `type` here is the user-resolution type, NOT the signer type — `signerType` lives on a dedicated field. `smsCountryCode` is required when `type` is `phoneNumber`; `socialProvider` is required when `type` is `socialUsername` or `socialAccountId`.
|
|
20
|
-
* The remaining fields parameterise the reshare ceremony that runs
|
|
20
|
+
* The remaining fields parameterise the MPC reshare ceremony that runs during the SSE response. `clientKeygenIds` come from the caller's local MPC state (the JS SDK obtains them internally by calling `exportID()` on the existing client share); the threshold scheme fields describe the source share set (old) and the destination share set (new) that the ceremony produces.
|
|
21
21
|
* @export
|
|
22
22
|
* @interface AddBusinessAccountSignerSdkRequest
|
|
23
23
|
*/
|
|
@@ -15,7 +15,7 @@ function WaasTransactionBroadcastErrorPayloadFromJSONTyped(json, ignoreDiscrimin
|
|
|
15
15
|
}
|
|
16
16
|
return {
|
|
17
17
|
'attempts': json['attempts'],
|
|
18
|
-
'broadcastId': json['broadcastId'],
|
|
18
|
+
'broadcastId': !runtime.exists(json, 'broadcastId') ? undefined : json['broadcastId'],
|
|
19
19
|
'retryable': json['retryable'],
|
|
20
20
|
'submissionState': WaasTransactionBroadcastSubmissionState.WaasTransactionBroadcastSubmissionStateFromJSON(json['submissionState']),
|
|
21
21
|
'transactionId': !runtime.exists(json, 'transactionId') ? undefined : json['transactionId'],
|
|
@@ -27,7 +27,7 @@ export interface WaasTransactionBroadcastErrorPayload {
|
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof WaasTransactionBroadcastErrorPayload
|
|
29
29
|
*/
|
|
30
|
-
broadcastId
|
|
30
|
+
broadcastId?: string;
|
|
31
31
|
/**
|
|
32
32
|
* Whether re-sending the identical signed payload may succeed.
|
|
33
33
|
* @type {boolean}
|
|
@@ -11,7 +11,7 @@ function WaasTransactionBroadcastErrorPayloadFromJSONTyped(json, ignoreDiscrimin
|
|
|
11
11
|
}
|
|
12
12
|
return {
|
|
13
13
|
'attempts': json['attempts'],
|
|
14
|
-
'broadcastId': json['broadcastId'],
|
|
14
|
+
'broadcastId': !exists(json, 'broadcastId') ? undefined : json['broadcastId'],
|
|
15
15
|
'retryable': json['retryable'],
|
|
16
16
|
'submissionState': WaasTransactionBroadcastSubmissionStateFromJSON(json['submissionState']),
|
|
17
17
|
'transactionId': !exists(json, 'transactionId') ? undefined : json['transactionId'],
|