@dynamic-labs/sdk-api 0.161.0 → 0.162.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.161.0",
3
+ "version": "0.162.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -2277,7 +2277,7 @@ class SDKApi extends runtime.BaseAPI {
2277
2277
  await this.createWaasAccountOptionsRaw(requestParameters, initOverrides);
2278
2278
  }
2279
2279
  /**
2280
- * 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.
2280
+ * 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.
2281
2281
  * Create a Solana confidential-transfer seed
2282
2282
  */
2283
2283
  async createWaasConfidentialSeedRaw(requestParameters, initOverrides) {
@@ -2310,7 +2310,7 @@ class SDKApi extends runtime.BaseAPI {
2310
2310
  return new runtime.JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON(jsonValue));
2311
2311
  }
2312
2312
  /**
2313
- * 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.
2313
+ * 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.
2314
2314
  * Create a Solana confidential-transfer seed
2315
2315
  */
2316
2316
  async createWaasConfidentialSeed(requestParameters, initOverrides) {
@@ -5986,51 +5986,6 @@ class SDKApi extends runtime.BaseAPI {
5986
5986
  const response = await this.getUserPasskeysRaw(requestParameters, initOverrides);
5987
5987
  return await response.value();
5988
5988
  }
5989
- /**
5990
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
5991
- * Fetch a wallet\'s confidential-transfer seed
5992
- */
5993
- async getWaasConfidentialSeedRaw(requestParameters, initOverrides) {
5994
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5995
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasConfidentialSeed.');
5996
- }
5997
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
5998
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasConfidentialSeed.');
5999
- }
6000
- if (requestParameters.solanaAddress === null || requestParameters.solanaAddress === undefined) {
6001
- throw new runtime.RequiredError('solanaAddress', 'Required parameter requestParameters.solanaAddress was null or undefined when calling getWaasConfidentialSeed.');
6002
- }
6003
- const queryParameters = {};
6004
- if (requestParameters.solanaAddress !== undefined) {
6005
- queryParameters['solanaAddress'] = requestParameters.solanaAddress;
6006
- }
6007
- if (requestParameters.derivationVersion !== undefined) {
6008
- queryParameters['derivationVersion'] = requestParameters.derivationVersion;
6009
- }
6010
- const headerParameters = {};
6011
- if (this.configuration && this.configuration.accessToken) {
6012
- const token = this.configuration.accessToken;
6013
- const tokenString = await token("bearerAuth", []);
6014
- if (tokenString) {
6015
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
6016
- }
6017
- }
6018
- const response = await this.request({
6019
- path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
6020
- method: 'GET',
6021
- headers: headerParameters,
6022
- query: queryParameters,
6023
- }, initOverrides);
6024
- return new runtime.JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON(jsonValue));
6025
- }
6026
- /**
6027
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
6028
- * Fetch a wallet\'s confidential-transfer seed
6029
- */
6030
- async getWaasConfidentialSeed(requestParameters, initOverrides) {
6031
- const response = await this.getWaasConfidentialSeedRaw(requestParameters, initOverrides);
6032
- return await response.value();
6033
- }
6034
5989
  /**
6035
5990
  * Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
6036
5991
  * Get the environment-Layer\'s Rules
@@ -727,12 +727,6 @@ export interface GetUserMfaMethodsRequest {
727
727
  export interface GetUserPasskeysRequest {
728
728
  environmentId: string;
729
729
  }
730
- export interface GetWaasConfidentialSeedRequest {
731
- environmentId: string;
732
- walletId: string;
733
- solanaAddress: string;
734
- derivationVersion?: number;
735
- }
736
730
  export interface GetWaasEnvPolicyLayerRequest {
737
731
  environmentId: string;
738
732
  }
@@ -2405,12 +2399,12 @@ export declare class SDKApi extends runtime.BaseAPI {
2405
2399
  */
2406
2400
  createWaasAccountOptions(requestParameters: CreateWaasAccountOptionsRequest, initOverrides?: RequestInit): Promise<void>;
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
  createWaasConfidentialSeedRaw(requestParameters: CreateWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
2412
2406
  /**
2413
- * 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.
2407
+ * 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.
2414
2408
  * Create a Solana confidential-transfer seed
2415
2409
  */
2416
2410
  createWaasConfidentialSeed(requestParameters: CreateWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
@@ -3514,16 +3508,6 @@ export declare class SDKApi extends runtime.BaseAPI {
3514
3508
  * Get user passkeys
3515
3509
  */
3516
3510
  getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
3517
- /**
3518
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
3519
- * Fetch a wallet\'s confidential-transfer seed
3520
- */
3521
- getWaasConfidentialSeedRaw(requestParameters: GetWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
3522
- /**
3523
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
3524
- * Fetch a wallet\'s confidential-transfer seed
3525
- */
3526
- getWaasConfidentialSeed(requestParameters: GetWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
3527
3511
  /**
3528
3512
  * Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
3529
3513
  * Get the environment-Layer\'s Rules
@@ -2273,7 +2273,7 @@ class SDKApi extends BaseAPI {
2273
2273
  await this.createWaasAccountOptionsRaw(requestParameters, initOverrides);
2274
2274
  }
2275
2275
  /**
2276
- * 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.
2276
+ * 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.
2277
2277
  * Create a Solana confidential-transfer seed
2278
2278
  */
2279
2279
  async createWaasConfidentialSeedRaw(requestParameters, initOverrides) {
@@ -2306,7 +2306,7 @@ class SDKApi extends BaseAPI {
2306
2306
  return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
2307
2307
  }
2308
2308
  /**
2309
- * 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.
2309
+ * 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.
2310
2310
  * Create a Solana confidential-transfer seed
2311
2311
  */
2312
2312
  async createWaasConfidentialSeed(requestParameters, initOverrides) {
@@ -5982,51 +5982,6 @@ class SDKApi extends BaseAPI {
5982
5982
  const response = await this.getUserPasskeysRaw(requestParameters, initOverrides);
5983
5983
  return await response.value();
5984
5984
  }
5985
- /**
5986
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
5987
- * Fetch a wallet\'s confidential-transfer seed
5988
- */
5989
- async getWaasConfidentialSeedRaw(requestParameters, initOverrides) {
5990
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5991
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasConfidentialSeed.');
5992
- }
5993
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
5994
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasConfidentialSeed.');
5995
- }
5996
- if (requestParameters.solanaAddress === null || requestParameters.solanaAddress === undefined) {
5997
- throw new RequiredError('solanaAddress', 'Required parameter requestParameters.solanaAddress was null or undefined when calling getWaasConfidentialSeed.');
5998
- }
5999
- const queryParameters = {};
6000
- if (requestParameters.solanaAddress !== undefined) {
6001
- queryParameters['solanaAddress'] = requestParameters.solanaAddress;
6002
- }
6003
- if (requestParameters.derivationVersion !== undefined) {
6004
- queryParameters['derivationVersion'] = requestParameters.derivationVersion;
6005
- }
6006
- const headerParameters = {};
6007
- if (this.configuration && this.configuration.accessToken) {
6008
- const token = this.configuration.accessToken;
6009
- const tokenString = await token("bearerAuth", []);
6010
- if (tokenString) {
6011
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
6012
- }
6013
- }
6014
- const response = await this.request({
6015
- path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
6016
- method: 'GET',
6017
- headers: headerParameters,
6018
- query: queryParameters,
6019
- }, initOverrides);
6020
- return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
6021
- }
6022
- /**
6023
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
6024
- * Fetch a wallet\'s confidential-transfer seed
6025
- */
6026
- async getWaasConfidentialSeed(requestParameters, initOverrides) {
6027
- const response = await this.getWaasConfidentialSeedRaw(requestParameters, initOverrides);
6028
- return await response.value();
6029
- }
6030
5985
  /**
6031
5986
  * Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
6032
5987
  * Get the environment-Layer\'s Rules
@@ -623,7 +623,7 @@ class ServerApi extends runtime.BaseAPI {
623
623
  return await response.value();
624
624
  }
625
625
  /**
626
- * 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. Insert-only per (wallet, address, derivation version); a repeat create returns 409.
626
+ * 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. Insert-only per wallet; a repeat create returns 409.
627
627
  * Server — create a Solana confidential-transfer seed
628
628
  */
629
629
  async createWaasConfidentialSeedServerRaw(requestParameters, initOverrides) {
@@ -652,7 +652,7 @@ class ServerApi extends runtime.BaseAPI {
652
652
  return new runtime.JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON(jsonValue));
653
653
  }
654
654
  /**
655
- * 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. Insert-only per (wallet, address, derivation version); a repeat create returns 409.
655
+ * 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. Insert-only per wallet; a repeat create returns 409.
656
656
  * Server — create a Solana confidential-transfer seed
657
657
  */
658
658
  async createWaasConfidentialSeedServer(requestParameters, initOverrides) {
@@ -951,47 +951,6 @@ class ServerApi extends runtime.BaseAPI {
951
951
  const response = await this.getServerIdentityServerRaw(requestParameters, initOverrides);
952
952
  return await response.value();
953
953
  }
954
- /**
955
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
956
- * Server — fetch a wallet\'s confidential-transfer seed
957
- */
958
- async getWaasConfidentialSeedServerRaw(requestParameters, initOverrides) {
959
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
960
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasConfidentialSeedServer.');
961
- }
962
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
963
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasConfidentialSeedServer.');
964
- }
965
- if (requestParameters.solanaAddress === null || requestParameters.solanaAddress === undefined) {
966
- throw new runtime.RequiredError('solanaAddress', 'Required parameter requestParameters.solanaAddress was null or undefined when calling getWaasConfidentialSeedServer.');
967
- }
968
- const queryParameters = {};
969
- if (requestParameters.solanaAddress !== undefined) {
970
- queryParameters['solanaAddress'] = requestParameters.solanaAddress;
971
- }
972
- if (requestParameters.derivationVersion !== undefined) {
973
- queryParameters['derivationVersion'] = requestParameters.derivationVersion;
974
- }
975
- const headerParameters = {};
976
- if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
977
- headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
978
- }
979
- const response = await this.request({
980
- path: `/server/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
981
- method: 'GET',
982
- headers: headerParameters,
983
- query: queryParameters,
984
- }, initOverrides);
985
- return new runtime.JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON(jsonValue));
986
- }
987
- /**
988
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
989
- * Server — fetch a wallet\'s confidential-transfer seed
990
- */
991
- async getWaasConfidentialSeedServer(requestParameters, initOverrides) {
992
- const response = await this.getWaasConfidentialSeedServerRaw(requestParameters, initOverrides);
993
- return await response.value();
994
- }
995
954
  /**
996
955
  * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The caller supplies the token account\'s raw on-chain state; the enclave is offline and cannot reach Solana RPC.
997
956
  * Server — decrypt a Token-2022 confidential token account\'s balances
@@ -113,13 +113,6 @@ export interface GetServerIdentityServerRequest {
113
113
  environmentId: string;
114
114
  serverIdentifier?: string;
115
115
  }
116
- export interface GetWaasConfidentialSeedServerRequest {
117
- environmentId: string;
118
- walletId: string;
119
- solanaAddress: string;
120
- xDynServerSigningProof?: string;
121
- derivationVersion?: number;
122
- }
123
116
  export interface GetWaasSvmConfidentialBalanceServerRequest {
124
117
  environmentId: string;
125
118
  walletId: string;
@@ -353,12 +346,12 @@ export declare class ServerApi extends runtime.BaseAPI {
353
346
  */
354
347
  createWaasAccountServer(requestParameters: CreateWaasAccountServerRequest, initOverrides?: RequestInit): Promise<OpenRoomResponseWithServerKeygenIds>;
355
348
  /**
356
- * 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. Insert-only per (wallet, address, derivation version); a repeat create returns 409.
349
+ * 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. Insert-only per wallet; a repeat create returns 409.
357
350
  * Server — create a Solana confidential-transfer seed
358
351
  */
359
352
  createWaasConfidentialSeedServerRaw(requestParameters: CreateWaasConfidentialSeedServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
360
353
  /**
361
- * 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. Insert-only per (wallet, address, derivation version); a repeat create returns 409.
354
+ * 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. Insert-only per wallet; a repeat create returns 409.
362
355
  * Server — create a Solana confidential-transfer seed
363
356
  */
364
357
  createWaasConfidentialSeedServer(requestParameters: CreateWaasConfidentialSeedServerRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
@@ -452,16 +445,6 @@ export declare class ServerApi extends runtime.BaseAPI {
452
445
  * Get the environment\'s server identity
453
446
  */
454
447
  getServerIdentityServer(requestParameters: GetServerIdentityServerRequest, initOverrides?: RequestInit): Promise<ServerIdentityResponse>;
455
- /**
456
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
457
- * Server — fetch a wallet\'s confidential-transfer seed
458
- */
459
- getWaasConfidentialSeedServerRaw(requestParameters: GetWaasConfidentialSeedServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
460
- /**
461
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
462
- * Server — fetch a wallet\'s confidential-transfer seed
463
- */
464
- getWaasConfidentialSeedServer(requestParameters: GetWaasConfidentialSeedServerRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
465
448
  /**
466
449
  * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The caller supplies the token account\'s raw on-chain state; the enclave is offline and cannot reach Solana RPC.
467
450
  * Server — decrypt a Token-2022 confidential token account\'s balances
@@ -619,7 +619,7 @@ class ServerApi extends BaseAPI {
619
619
  return await response.value();
620
620
  }
621
621
  /**
622
- * 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. Insert-only per (wallet, address, derivation version); a repeat create returns 409.
622
+ * 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. Insert-only per wallet; a repeat create returns 409.
623
623
  * Server — create a Solana confidential-transfer seed
624
624
  */
625
625
  async createWaasConfidentialSeedServerRaw(requestParameters, initOverrides) {
@@ -648,7 +648,7 @@ class ServerApi extends BaseAPI {
648
648
  return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
649
649
  }
650
650
  /**
651
- * 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. Insert-only per (wallet, address, derivation version); a repeat create returns 409.
651
+ * 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. Insert-only per wallet; a repeat create returns 409.
652
652
  * Server — create a Solana confidential-transfer seed
653
653
  */
654
654
  async createWaasConfidentialSeedServer(requestParameters, initOverrides) {
@@ -947,47 +947,6 @@ class ServerApi extends BaseAPI {
947
947
  const response = await this.getServerIdentityServerRaw(requestParameters, initOverrides);
948
948
  return await response.value();
949
949
  }
950
- /**
951
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
952
- * Server — fetch a wallet\'s confidential-transfer seed
953
- */
954
- async getWaasConfidentialSeedServerRaw(requestParameters, initOverrides) {
955
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
956
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasConfidentialSeedServer.');
957
- }
958
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
959
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasConfidentialSeedServer.');
960
- }
961
- if (requestParameters.solanaAddress === null || requestParameters.solanaAddress === undefined) {
962
- throw new RequiredError('solanaAddress', 'Required parameter requestParameters.solanaAddress was null or undefined when calling getWaasConfidentialSeedServer.');
963
- }
964
- const queryParameters = {};
965
- if (requestParameters.solanaAddress !== undefined) {
966
- queryParameters['solanaAddress'] = requestParameters.solanaAddress;
967
- }
968
- if (requestParameters.derivationVersion !== undefined) {
969
- queryParameters['derivationVersion'] = requestParameters.derivationVersion;
970
- }
971
- const headerParameters = {};
972
- if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
973
- headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
974
- }
975
- const response = await this.request({
976
- path: `/server/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
977
- method: 'GET',
978
- headers: headerParameters,
979
- query: queryParameters,
980
- }, initOverrides);
981
- return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
982
- }
983
- /**
984
- * Returns the stored sealed seed and metadata. When `derivationVersion` is omitted, the newest stored version is returned.
985
- * Server — fetch a wallet\'s confidential-transfer seed
986
- */
987
- async getWaasConfidentialSeedServer(requestParameters, initOverrides) {
988
- const response = await this.getWaasConfidentialSeedServerRaw(requestParameters, initOverrides);
989
- return await response.value();
990
- }
991
950
  /**
992
951
  * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The caller supplies the token account\'s raw on-chain state; the enclave is offline and cannot reach Solana RPC.
993
952
  * Server — decrypt a Token-2022 confidential token account\'s balances