@dynamic-labs/sdk-api-core 0.161.0 → 0.163.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.
@@ -722,12 +722,6 @@ export interface GetUserMfaMethodsRequest {
722
722
  export interface GetUserPasskeysRequest {
723
723
  environmentId: string;
724
724
  }
725
- export interface GetWaasConfidentialSeedRequest {
726
- environmentId: string;
727
- walletId: string;
728
- solanaAddress: string;
729
- derivationVersion?: number;
730
- }
731
725
  export interface GetWaasEnvPolicyLayerRequest {
732
726
  environmentId: string;
733
727
  }
@@ -2400,12 +2394,12 @@ export declare class SDKApi extends runtime.BaseAPI {
2400
2394
  */
2401
2395
  createWaasAccountOptions(requestParameters: CreateWaasAccountOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2402
2396
  /**
2403
- * Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed seed via client-keyshare-service, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per (wallet, address, derivation version) — a repeat create returns 409.
2397
+ * Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed credential for the wallet, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per wallet — a repeat create returns 409.
2404
2398
  * Create a Solana confidential-transfer seed
2405
2399
  */
2406
2400
  createWaasConfidentialSeedRaw(requestParameters: CreateWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
2407
2401
  /**
2408
- * Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed seed via client-keyshare-service, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per (wallet, address, derivation version) — a repeat create returns 409.
2402
+ * Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed credential for the wallet, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per wallet — a repeat create returns 409.
2409
2403
  * Create a Solana confidential-transfer seed
2410
2404
  */
2411
2405
  createWaasConfidentialSeed(requestParameters: CreateWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
@@ -3481,16 +3475,6 @@ export declare class SDKApi extends runtime.BaseAPI {
3481
3475
  * Get user passkeys
3482
3476
  */
3483
3477
  getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
3484
- /**
3485
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
3486
- * Fetch a wallet\'s confidential-transfer seed
3487
- */
3488
- getWaasConfidentialSeedRaw(requestParameters: GetWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
3489
- /**
3490
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
3491
- * Fetch a wallet\'s confidential-transfer seed
3492
- */
3493
- getWaasConfidentialSeed(requestParameters: GetWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
3494
3478
  /**
3495
3479
  * Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
3496
3480
  * Get the environment-Layer\'s Rules
@@ -2207,7 +2207,7 @@ class SDKApi extends BaseAPI {
2207
2207
  await this.createWaasAccountOptionsRaw(requestParameters, initOverrides);
2208
2208
  }
2209
2209
  /**
2210
- * Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed seed via client-keyshare-service, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per (wallet, address, derivation version) — a repeat create returns 409.
2210
+ * Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed credential for the wallet, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per wallet — a repeat create returns 409.
2211
2211
  * Create a Solana confidential-transfer seed
2212
2212
  */
2213
2213
  async createWaasConfidentialSeedRaw(requestParameters, initOverrides) {
@@ -2240,7 +2240,7 @@ class SDKApi extends BaseAPI {
2240
2240
  return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
2241
2241
  }
2242
2242
  /**
2243
- * Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed seed via client-keyshare-service, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per (wallet, address, derivation version) — a repeat create returns 409.
2243
+ * Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed credential for the wallet, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per wallet — a repeat create returns 409.
2244
2244
  * Create a Solana confidential-transfer seed
2245
2245
  */
2246
2246
  async createWaasConfidentialSeed(requestParameters, initOverrides) {
@@ -5839,51 +5839,6 @@ class SDKApi extends BaseAPI {
5839
5839
  const response = await this.getUserPasskeysRaw(requestParameters, initOverrides);
5840
5840
  return await response.value();
5841
5841
  }
5842
- /**
5843
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
5844
- * Fetch a wallet\'s confidential-transfer seed
5845
- */
5846
- async getWaasConfidentialSeedRaw(requestParameters, initOverrides) {
5847
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5848
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasConfidentialSeed.');
5849
- }
5850
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
5851
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasConfidentialSeed.');
5852
- }
5853
- if (requestParameters.solanaAddress === null || requestParameters.solanaAddress === undefined) {
5854
- throw new RequiredError('solanaAddress', 'Required parameter requestParameters.solanaAddress was null or undefined when calling getWaasConfidentialSeed.');
5855
- }
5856
- const queryParameters = {};
5857
- if (requestParameters.solanaAddress !== undefined) {
5858
- queryParameters['solanaAddress'] = requestParameters.solanaAddress;
5859
- }
5860
- if (requestParameters.derivationVersion !== undefined) {
5861
- queryParameters['derivationVersion'] = requestParameters.derivationVersion;
5862
- }
5863
- const headerParameters = {};
5864
- if (this.configuration && this.configuration.accessToken) {
5865
- const token = this.configuration.accessToken;
5866
- const tokenString = await token("bearerAuth", []);
5867
- if (tokenString) {
5868
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
5869
- }
5870
- }
5871
- const response = await this.request({
5872
- path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
5873
- method: 'GET',
5874
- headers: headerParameters,
5875
- query: queryParameters,
5876
- }, initOverrides);
5877
- return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
5878
- }
5879
- /**
5880
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
5881
- * Fetch a wallet\'s confidential-transfer seed
5882
- */
5883
- async getWaasConfidentialSeed(requestParameters, initOverrides) {
5884
- const response = await this.getWaasConfidentialSeedRaw(requestParameters, initOverrides);
5885
- return await response.value();
5886
- }
5887
5842
  /**
5888
5843
  * Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
5889
5844
  * Get the environment-Layer\'s Rules