@dynamic-labs/sdk-api 0.138.0 → 0.140.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.
Files changed (126) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +1 -0
  3. package/src/apis/AdminActionsApi.js +1 -0
  4. package/src/apis/AllowlistsApi.cjs +1 -0
  5. package/src/apis/AllowlistsApi.js +1 -0
  6. package/src/apis/AnalyticsApi.cjs +1 -0
  7. package/src/apis/AnalyticsApi.js +1 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +1 -0
  9. package/src/apis/AuthorizedClientsApi.js +1 -0
  10. package/src/apis/BusinessAccountsApi.cjs +1 -0
  11. package/src/apis/BusinessAccountsApi.js +1 -0
  12. package/src/apis/CaptchaApi.cjs +1 -0
  13. package/src/apis/CaptchaApi.js +1 -0
  14. package/src/apis/ChainalysisApi.cjs +1 -0
  15. package/src/apis/ChainalysisApi.js +1 -0
  16. package/src/apis/ChainsApi.cjs +1 -0
  17. package/src/apis/ChainsApi.js +1 -0
  18. package/src/apis/CheckoutApi.cjs +1 -0
  19. package/src/apis/CheckoutApi.js +1 -0
  20. package/src/apis/ClientGrantApi.cjs +1 -0
  21. package/src/apis/ClientGrantApi.js +1 -0
  22. package/src/apis/CustomFieldsApi.cjs +1 -0
  23. package/src/apis/CustomFieldsApi.js +1 -0
  24. package/src/apis/CustomHostnamesApi.cjs +1 -0
  25. package/src/apis/CustomHostnamesApi.js +1 -0
  26. package/src/apis/CustomNetworksApi.cjs +1 -0
  27. package/src/apis/CustomNetworksApi.js +1 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +1 -0
  29. package/src/apis/DeeplinkUrlsApi.js +1 -0
  30. package/src/apis/EnvironmentsApi.cjs +1 -0
  31. package/src/apis/EnvironmentsApi.js +1 -0
  32. package/src/apis/EventsApi.cjs +1 -0
  33. package/src/apis/EventsApi.js +1 -0
  34. package/src/apis/ExchangesApi.cjs +1 -0
  35. package/src/apis/ExchangesApi.js +1 -0
  36. package/src/apis/ExportsApi.cjs +1 -0
  37. package/src/apis/ExportsApi.js +1 -0
  38. package/src/apis/ExternalJwtApi.cjs +1 -0
  39. package/src/apis/ExternalJwtApi.js +1 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +1 -0
  41. package/src/apis/FlowAnalyticsApi.js +1 -0
  42. package/src/apis/GaslessApi.cjs +1 -0
  43. package/src/apis/GaslessApi.js +1 -0
  44. package/src/apis/GatesApi.cjs +1 -0
  45. package/src/apis/GatesApi.js +1 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +1 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +1 -0
  50. package/src/apis/GlobalWalletsApi.cjs +1 -0
  51. package/src/apis/GlobalWalletsApi.js +1 -0
  52. package/src/apis/InvitesApi.cjs +1 -0
  53. package/src/apis/InvitesApi.js +1 -0
  54. package/src/apis/KybApi.cjs +1 -0
  55. package/src/apis/KybApi.js +1 -0
  56. package/src/apis/MembersApi.cjs +1 -0
  57. package/src/apis/MembersApi.js +1 -0
  58. package/src/apis/MfaSettingsApi.cjs +1 -0
  59. package/src/apis/MfaSettingsApi.js +1 -0
  60. package/src/apis/NameServicesApi.cjs +1 -0
  61. package/src/apis/NameServicesApi.js +1 -0
  62. package/src/apis/OrganizationSettingsApi.cjs +1 -0
  63. package/src/apis/OrganizationSettingsApi.js +1 -0
  64. package/src/apis/OrganizationsApi.cjs +1 -0
  65. package/src/apis/OrganizationsApi.js +1 -0
  66. package/src/apis/OriginsApi.cjs +1 -0
  67. package/src/apis/OriginsApi.js +1 -0
  68. package/src/apis/ProjectsApi.cjs +1 -0
  69. package/src/apis/ProjectsApi.js +1 -0
  70. package/src/apis/ProvidersApi.cjs +1 -0
  71. package/src/apis/ProvidersApi.js +1 -0
  72. package/src/apis/SDKApi.cjs +112 -0
  73. package/src/apis/SDKApi.d.ts +43 -1
  74. package/src/apis/SDKApi.js +112 -0
  75. package/src/apis/SDKViewsApi.cjs +1 -0
  76. package/src/apis/SDKViewsApi.js +1 -0
  77. package/src/apis/ScreeningPoliciesApi.cjs +1 -0
  78. package/src/apis/ScreeningPoliciesApi.js +1 -0
  79. package/src/apis/ServerApi.cjs +78 -0
  80. package/src/apis/ServerApi.d.ts +33 -1
  81. package/src/apis/ServerApi.js +78 -0
  82. package/src/apis/SessionsApi.cjs +1 -0
  83. package/src/apis/SessionsApi.js +1 -0
  84. package/src/apis/TestAccountApi.cjs +1 -0
  85. package/src/apis/TestAccountApi.js +1 -0
  86. package/src/apis/TokensApi.cjs +1 -0
  87. package/src/apis/TokensApi.js +1 -0
  88. package/src/apis/UserApiTokensApi.cjs +1 -0
  89. package/src/apis/UserApiTokensApi.js +1 -0
  90. package/src/apis/UsersApi.cjs +1 -0
  91. package/src/apis/UsersApi.js +1 -0
  92. package/src/apis/VisitsApi.cjs +1 -0
  93. package/src/apis/VisitsApi.js +1 -0
  94. package/src/apis/WaasApi.cjs +1 -0
  95. package/src/apis/WaasApi.js +1 -0
  96. package/src/apis/WalletConnectApi.cjs +1 -0
  97. package/src/apis/WalletConnectApi.js +1 -0
  98. package/src/apis/WalletsApi.cjs +1 -0
  99. package/src/apis/WalletsApi.js +1 -0
  100. package/src/apis/WebhooksApi.cjs +1 -0
  101. package/src/apis/WebhooksApi.js +1 -0
  102. package/src/apis/YieldApi.cjs +1 -0
  103. package/src/apis/YieldApi.js +1 -0
  104. package/src/apis/ZendeskApi.cjs +1 -0
  105. package/src/apis/ZendeskApi.js +1 -0
  106. package/src/index.cjs +24 -0
  107. package/src/index.js +5 -0
  108. package/src/models/WaasConfidentialAccountState.cjs +47 -0
  109. package/src/models/WaasConfidentialAccountState.d.ts +39 -0
  110. package/src/models/WaasConfidentialAccountState.js +41 -0
  111. package/src/models/WaasConfidentialSeedCreateRequest.cjs +35 -0
  112. package/src/models/WaasConfidentialSeedCreateRequest.d.ts +33 -0
  113. package/src/models/WaasConfidentialSeedCreateRequest.js +29 -0
  114. package/src/models/WaasConfidentialTransferOperation.cjs +43 -0
  115. package/src/models/WaasConfidentialTransferOperation.d.ts +26 -0
  116. package/src/models/WaasConfidentialTransferOperation.js +37 -0
  117. package/src/models/WaasSignConfidentialTransferRequest.cjs +65 -0
  118. package/src/models/WaasSignConfidentialTransferRequest.d.ts +119 -0
  119. package/src/models/WaasSignConfidentialTransferRequest.js +59 -0
  120. package/src/models/WaasSignConfidentialTransferResponse.cjs +45 -0
  121. package/src/models/WaasSignConfidentialTransferResponse.d.ts +33 -0
  122. package/src/models/WaasSignConfidentialTransferResponse.js +39 -0
  123. package/src/models/WalletListItem.cjs +3 -0
  124. package/src/models/WalletListItem.d.ts +6 -0
  125. package/src/models/WalletListItem.js +3 -0
  126. package/src/models/index.d.ts +5 -0
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function WaasConfidentialAccountStateFromJSON(json) {
15
+ return WaasConfidentialAccountStateFromJSONTyped(json);
16
+ }
17
+ function WaasConfidentialAccountStateFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'data': json['data'],
23
+ 'lamports': json['lamports'],
24
+ 'owner': json['owner'],
25
+ };
26
+ }
27
+ function WaasConfidentialAccountStateToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'data': value.data,
36
+ 'lamports': value.lamports,
37
+ 'owner': value.owner,
38
+ };
39
+ }
40
+
41
+ export { WaasConfidentialAccountStateFromJSON, WaasConfidentialAccountStateFromJSONTyped, WaasConfidentialAccountStateToJSON };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WaasConfidentialSeedCreateRequestFromJSON(json) {
9
+ return WaasConfidentialSeedCreateRequestFromJSONTyped(json);
10
+ }
11
+ function WaasConfidentialSeedCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'solanaAddress': json['solanaAddress'],
17
+ 'derivationVersion': !runtime.exists(json, 'derivationVersion') ? undefined : json['derivationVersion'],
18
+ };
19
+ }
20
+ function WaasConfidentialSeedCreateRequestToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'solanaAddress': value.solanaAddress,
29
+ 'derivationVersion': value.derivationVersion,
30
+ };
31
+ }
32
+
33
+ exports.WaasConfidentialSeedCreateRequestFromJSON = WaasConfidentialSeedCreateRequestFromJSON;
34
+ exports.WaasConfidentialSeedCreateRequestFromJSONTyped = WaasConfidentialSeedCreateRequestFromJSONTyped;
35
+ exports.WaasConfidentialSeedCreateRequestToJSON = WaasConfidentialSeedCreateRequestToJSON;
@@ -0,0 +1,33 @@
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
+ *
14
+ * @export
15
+ * @interface WaasConfidentialSeedCreateRequest
16
+ */
17
+ export interface WaasConfidentialSeedCreateRequest {
18
+ /**
19
+ * Solana address (base58 public key) the seed derives ElGamal keys for
20
+ * @type {string}
21
+ * @memberof WaasConfidentialSeedCreateRequest
22
+ */
23
+ solanaAddress: string;
24
+ /**
25
+ * Seed generation index under `solanaAddress` (defaults to 1). Increment to rotate the seed; must match the version active on the confidential token account.
26
+ * @type {number}
27
+ * @memberof WaasConfidentialSeedCreateRequest
28
+ */
29
+ derivationVersion?: number;
30
+ }
31
+ export declare function WaasConfidentialSeedCreateRequestFromJSON(json: any): WaasConfidentialSeedCreateRequest;
32
+ export declare function WaasConfidentialSeedCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasConfidentialSeedCreateRequest;
33
+ export declare function WaasConfidentialSeedCreateRequestToJSON(value?: WaasConfidentialSeedCreateRequest | null): any;
@@ -0,0 +1,29 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function WaasConfidentialSeedCreateRequestFromJSON(json) {
5
+ return WaasConfidentialSeedCreateRequestFromJSONTyped(json);
6
+ }
7
+ function WaasConfidentialSeedCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'solanaAddress': json['solanaAddress'],
13
+ 'derivationVersion': !exists(json, 'derivationVersion') ? undefined : json['derivationVersion'],
14
+ };
15
+ }
16
+ function WaasConfidentialSeedCreateRequestToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'solanaAddress': value.solanaAddress,
25
+ 'derivationVersion': value.derivationVersion,
26
+ };
27
+ }
28
+
29
+ export { WaasConfidentialSeedCreateRequestFromJSON, WaasConfidentialSeedCreateRequestFromJSONTyped, WaasConfidentialSeedCreateRequestToJSON };
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ /**
19
+ * The Token-2022 confidential-transfer operation to build and sign.
20
+ * @export
21
+ * @enum {string}
22
+ */
23
+ exports.WaasConfidentialTransferOperation = void 0;
24
+ (function (WaasConfidentialTransferOperation) {
25
+ WaasConfidentialTransferOperation["ConfigureAccount"] = "configureAccount";
26
+ WaasConfidentialTransferOperation["Deposit"] = "deposit";
27
+ WaasConfidentialTransferOperation["Transfer"] = "transfer";
28
+ WaasConfidentialTransferOperation["ApplyPendingBalance"] = "applyPendingBalance";
29
+ WaasConfidentialTransferOperation["Withdraw"] = "withdraw";
30
+ })(exports.WaasConfidentialTransferOperation || (exports.WaasConfidentialTransferOperation = {}));
31
+ function WaasConfidentialTransferOperationFromJSON(json) {
32
+ return WaasConfidentialTransferOperationFromJSONTyped(json);
33
+ }
34
+ function WaasConfidentialTransferOperationFromJSONTyped(json, ignoreDiscriminator) {
35
+ return json;
36
+ }
37
+ function WaasConfidentialTransferOperationToJSON(value) {
38
+ return value;
39
+ }
40
+
41
+ exports.WaasConfidentialTransferOperationFromJSON = WaasConfidentialTransferOperationFromJSON;
42
+ exports.WaasConfidentialTransferOperationFromJSONTyped = WaasConfidentialTransferOperationFromJSONTyped;
43
+ exports.WaasConfidentialTransferOperationToJSON = WaasConfidentialTransferOperationToJSON;
@@ -0,0 +1,26 @@
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
+ * The Token-2022 confidential-transfer operation to build and sign.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum WaasConfidentialTransferOperation {
18
+ ConfigureAccount = "configureAccount",
19
+ Deposit = "deposit",
20
+ Transfer = "transfer",
21
+ ApplyPendingBalance = "applyPendingBalance",
22
+ Withdraw = "withdraw"
23
+ }
24
+ export declare function WaasConfidentialTransferOperationFromJSON(json: any): WaasConfidentialTransferOperation;
25
+ export declare function WaasConfidentialTransferOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasConfidentialTransferOperation;
26
+ export declare function WaasConfidentialTransferOperationToJSON(value?: WaasConfidentialTransferOperation | null): any;
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The Token-2022 confidential-transfer operation to build and sign.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ var WaasConfidentialTransferOperation;
20
+ (function (WaasConfidentialTransferOperation) {
21
+ WaasConfidentialTransferOperation["ConfigureAccount"] = "configureAccount";
22
+ WaasConfidentialTransferOperation["Deposit"] = "deposit";
23
+ WaasConfidentialTransferOperation["Transfer"] = "transfer";
24
+ WaasConfidentialTransferOperation["ApplyPendingBalance"] = "applyPendingBalance";
25
+ WaasConfidentialTransferOperation["Withdraw"] = "withdraw";
26
+ })(WaasConfidentialTransferOperation || (WaasConfidentialTransferOperation = {}));
27
+ function WaasConfidentialTransferOperationFromJSON(json) {
28
+ return WaasConfidentialTransferOperationFromJSONTyped(json);
29
+ }
30
+ function WaasConfidentialTransferOperationFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function WaasConfidentialTransferOperationToJSON(value) {
34
+ return value;
35
+ }
36
+
37
+ export { WaasConfidentialTransferOperation, WaasConfidentialTransferOperationFromJSON, WaasConfidentialTransferOperationFromJSONTyped, WaasConfidentialTransferOperationToJSON };
@@ -0,0 +1,65 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasConfidentialAccountState = require('./WaasConfidentialAccountState.cjs');
7
+ var WaasConfidentialTransferOperation = require('./WaasConfidentialTransferOperation.cjs');
8
+
9
+ /* tslint:disable */
10
+ function WaasSignConfidentialTransferRequestFromJSON(json) {
11
+ return WaasSignConfidentialTransferRequestFromJSONTyped(json);
12
+ }
13
+ function WaasSignConfidentialTransferRequestFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'solanaAddress': json['solanaAddress'],
19
+ 'derivationVersion': !runtime.exists(json, 'derivationVersion') ? undefined : json['derivationVersion'],
20
+ 'operation': WaasConfidentialTransferOperation.WaasConfidentialTransferOperationFromJSON(json['operation']),
21
+ 'mint': json['mint'],
22
+ 'tokenAccount': json['tokenAccount'],
23
+ 'destinationTokenAccount': !runtime.exists(json, 'destinationTokenAccount') ? undefined : json['destinationTokenAccount'],
24
+ 'amount': !runtime.exists(json, 'amount') ? undefined : json['amount'],
25
+ 'decimals': !runtime.exists(json, 'decimals') ? undefined : json['decimals'],
26
+ 'auditorElgamalPubkey': !runtime.exists(json, 'auditorElgamalPubkey') ? undefined : json['auditorElgamalPubkey'],
27
+ 'lamportsPerByte': json['lamportsPerByte'],
28
+ 'chainId': json['chainId'],
29
+ 'recentBlockhash': json['recentBlockhash'],
30
+ 'lastValidBlockHeight': json['lastValidBlockHeight'],
31
+ 'feePayer': !runtime.exists(json, 'feePayer') ? undefined : json['feePayer'],
32
+ 'accountState': !runtime.exists(json, 'accountState') ? undefined : WaasConfidentialAccountState.WaasConfidentialAccountStateFromJSON(json['accountState']),
33
+ 'destinationAccountState': !runtime.exists(json, 'destinationAccountState') ? undefined : WaasConfidentialAccountState.WaasConfidentialAccountStateFromJSON(json['destinationAccountState']),
34
+ };
35
+ }
36
+ function WaasSignConfidentialTransferRequestToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'solanaAddress': value.solanaAddress,
45
+ 'derivationVersion': value.derivationVersion,
46
+ 'operation': WaasConfidentialTransferOperation.WaasConfidentialTransferOperationToJSON(value.operation),
47
+ 'mint': value.mint,
48
+ 'tokenAccount': value.tokenAccount,
49
+ 'destinationTokenAccount': value.destinationTokenAccount,
50
+ 'amount': value.amount,
51
+ 'decimals': value.decimals,
52
+ 'auditorElgamalPubkey': value.auditorElgamalPubkey,
53
+ 'lamportsPerByte': value.lamportsPerByte,
54
+ 'chainId': value.chainId,
55
+ 'recentBlockhash': value.recentBlockhash,
56
+ 'lastValidBlockHeight': value.lastValidBlockHeight,
57
+ 'feePayer': value.feePayer,
58
+ 'accountState': WaasConfidentialAccountState.WaasConfidentialAccountStateToJSON(value.accountState),
59
+ 'destinationAccountState': WaasConfidentialAccountState.WaasConfidentialAccountStateToJSON(value.destinationAccountState),
60
+ };
61
+ }
62
+
63
+ exports.WaasSignConfidentialTransferRequestFromJSON = WaasSignConfidentialTransferRequestFromJSON;
64
+ exports.WaasSignConfidentialTransferRequestFromJSONTyped = WaasSignConfidentialTransferRequestFromJSONTyped;
65
+ exports.WaasSignConfidentialTransferRequestToJSON = WaasSignConfidentialTransferRequestToJSON;
@@ -0,0 +1,119 @@
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
+ import { WaasConfidentialAccountState } from './WaasConfidentialAccountState';
13
+ import { WaasConfidentialTransferOperation } from './WaasConfidentialTransferOperation';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface WaasSignConfidentialTransferRequest
18
+ */
19
+ export interface WaasSignConfidentialTransferRequest {
20
+ /**
21
+ * Solana address (base58 public key) whose confidential seed signs the operation. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed` or the PUT variant).
22
+ * @type {string}
23
+ * @memberof WaasSignConfidentialTransferRequest
24
+ */
25
+ solanaAddress: string;
26
+ /**
27
+ * Version of the stored seed to sign with. Defaults to the newest stored version; must match the version active on the confidential token account.
28
+ * @type {number}
29
+ * @memberof WaasSignConfidentialTransferRequest
30
+ */
31
+ derivationVersion?: number;
32
+ /**
33
+ *
34
+ * @type {WaasConfidentialTransferOperation}
35
+ * @memberof WaasSignConfidentialTransferRequest
36
+ */
37
+ operation: WaasConfidentialTransferOperation;
38
+ /**
39
+ * The Token-2022 mint.
40
+ * @type {string}
41
+ * @memberof WaasSignConfidentialTransferRequest
42
+ */
43
+ mint: string;
44
+ /**
45
+ * The source confidential-capable token account.
46
+ * @type {string}
47
+ * @memberof WaasSignConfidentialTransferRequest
48
+ */
49
+ tokenAccount: string;
50
+ /**
51
+ * Required for `transfer`: the recipient's confidential-capable token account for the same mint.
52
+ * @type {string}
53
+ * @memberof WaasSignConfidentialTransferRequest
54
+ */
55
+ destinationTokenAccount?: string;
56
+ /**
57
+ * Required for `deposit`, `transfer` and `withdraw`: the token amount in base units, decimal-encoded (u64).
58
+ * @type {string}
59
+ * @memberof WaasSignConfidentialTransferRequest
60
+ */
61
+ amount?: string;
62
+ /**
63
+ * The mint's decimals, required for `deposit` and `withdraw`. Read from the mint account by the caller.
64
+ * @type {number}
65
+ * @memberof WaasSignConfidentialTransferRequest
66
+ */
67
+ decimals?: number;
68
+ /**
69
+ * The mint's confidential-transfer auditor ElGamal public key, when configured. Read from the mint account by the caller; omit when the mint has no auditor.
70
+ * @type {string}
71
+ * @memberof WaasSignConfidentialTransferRequest
72
+ */
73
+ auditorElgamalPubkey?: string;
74
+ /**
75
+ * Current cluster rent constant in lamports per byte (e.g. `6333`), used to compute rent exemption for the proof accounts. This is the per-byte rate, not the per-account total returned by `getMinimumBalanceForRentExemption`.
76
+ * @type {string}
77
+ * @memberof WaasSignConfidentialTransferRequest
78
+ */
79
+ lamportsPerByte: string;
80
+ /**
81
+ * SVM cluster identifier (genesis hash), binding the transaction to one cluster.
82
+ * @type {string}
83
+ * @memberof WaasSignConfidentialTransferRequest
84
+ */
85
+ chainId: string;
86
+ /**
87
+ * A recent blockhash (or durable-nonce value) fetched moments before invoking, since the enclave is offline and cannot reach Solana RPC.
88
+ * @type {string}
89
+ * @memberof WaasSignConfidentialTransferRequest
90
+ */
91
+ recentBlockhash: string;
92
+ /**
93
+ * The last valid block height paired with `recentBlockhash`.
94
+ * @type {string}
95
+ * @memberof WaasSignConfidentialTransferRequest
96
+ */
97
+ lastValidBlockHeight: string;
98
+ /**
99
+ * The account that pays transaction fees. Defaults to `solanaAddress`.
100
+ * @type {string}
101
+ * @memberof WaasSignConfidentialTransferRequest
102
+ */
103
+ feePayer?: string;
104
+ /**
105
+ *
106
+ * @type {WaasConfidentialAccountState}
107
+ * @memberof WaasSignConfidentialTransferRequest
108
+ */
109
+ accountState?: WaasConfidentialAccountState;
110
+ /**
111
+ *
112
+ * @type {WaasConfidentialAccountState}
113
+ * @memberof WaasSignConfidentialTransferRequest
114
+ */
115
+ destinationAccountState?: WaasConfidentialAccountState;
116
+ }
117
+ export declare function WaasSignConfidentialTransferRequestFromJSON(json: any): WaasSignConfidentialTransferRequest;
118
+ export declare function WaasSignConfidentialTransferRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSignConfidentialTransferRequest;
119
+ export declare function WaasSignConfidentialTransferRequestToJSON(value?: WaasSignConfidentialTransferRequest | null): any;
@@ -0,0 +1,59 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasConfidentialAccountStateFromJSON, WaasConfidentialAccountStateToJSON } from './WaasConfidentialAccountState.js';
3
+ import { WaasConfidentialTransferOperationFromJSON, WaasConfidentialTransferOperationToJSON } from './WaasConfidentialTransferOperation.js';
4
+
5
+ /* tslint:disable */
6
+ function WaasSignConfidentialTransferRequestFromJSON(json) {
7
+ return WaasSignConfidentialTransferRequestFromJSONTyped(json);
8
+ }
9
+ function WaasSignConfidentialTransferRequestFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'solanaAddress': json['solanaAddress'],
15
+ 'derivationVersion': !exists(json, 'derivationVersion') ? undefined : json['derivationVersion'],
16
+ 'operation': WaasConfidentialTransferOperationFromJSON(json['operation']),
17
+ 'mint': json['mint'],
18
+ 'tokenAccount': json['tokenAccount'],
19
+ 'destinationTokenAccount': !exists(json, 'destinationTokenAccount') ? undefined : json['destinationTokenAccount'],
20
+ 'amount': !exists(json, 'amount') ? undefined : json['amount'],
21
+ 'decimals': !exists(json, 'decimals') ? undefined : json['decimals'],
22
+ 'auditorElgamalPubkey': !exists(json, 'auditorElgamalPubkey') ? undefined : json['auditorElgamalPubkey'],
23
+ 'lamportsPerByte': json['lamportsPerByte'],
24
+ 'chainId': json['chainId'],
25
+ 'recentBlockhash': json['recentBlockhash'],
26
+ 'lastValidBlockHeight': json['lastValidBlockHeight'],
27
+ 'feePayer': !exists(json, 'feePayer') ? undefined : json['feePayer'],
28
+ 'accountState': !exists(json, 'accountState') ? undefined : WaasConfidentialAccountStateFromJSON(json['accountState']),
29
+ 'destinationAccountState': !exists(json, 'destinationAccountState') ? undefined : WaasConfidentialAccountStateFromJSON(json['destinationAccountState']),
30
+ };
31
+ }
32
+ function WaasSignConfidentialTransferRequestToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'solanaAddress': value.solanaAddress,
41
+ 'derivationVersion': value.derivationVersion,
42
+ 'operation': WaasConfidentialTransferOperationToJSON(value.operation),
43
+ 'mint': value.mint,
44
+ 'tokenAccount': value.tokenAccount,
45
+ 'destinationTokenAccount': value.destinationTokenAccount,
46
+ 'amount': value.amount,
47
+ 'decimals': value.decimals,
48
+ 'auditorElgamalPubkey': value.auditorElgamalPubkey,
49
+ 'lamportsPerByte': value.lamportsPerByte,
50
+ 'chainId': value.chainId,
51
+ 'recentBlockhash': value.recentBlockhash,
52
+ 'lastValidBlockHeight': value.lastValidBlockHeight,
53
+ 'feePayer': value.feePayer,
54
+ 'accountState': WaasConfidentialAccountStateToJSON(value.accountState),
55
+ 'destinationAccountState': WaasConfidentialAccountStateToJSON(value.destinationAccountState),
56
+ };
57
+ }
58
+
59
+ export { WaasSignConfidentialTransferRequestFromJSON, WaasSignConfidentialTransferRequestFromJSONTyped, WaasSignConfidentialTransferRequestToJSON };
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ function WaasSignConfidentialTransferResponseFromJSON(json) {
19
+ return WaasSignConfidentialTransferResponseFromJSONTyped(json);
20
+ }
21
+ function WaasSignConfidentialTransferResponseFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'serializedTransactions': json['serializedTransactions'],
27
+ 'signatures': json['signatures'],
28
+ };
29
+ }
30
+ function WaasSignConfidentialTransferResponseToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'serializedTransactions': value.serializedTransactions,
39
+ 'signatures': value.signatures,
40
+ };
41
+ }
42
+
43
+ exports.WaasSignConfidentialTransferResponseFromJSON = WaasSignConfidentialTransferResponseFromJSON;
44
+ exports.WaasSignConfidentialTransferResponseFromJSONTyped = WaasSignConfidentialTransferResponseFromJSONTyped;
45
+ exports.WaasSignConfidentialTransferResponseToJSON = WaasSignConfidentialTransferResponseToJSON;
@@ -0,0 +1,33 @@
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
+ *
14
+ * @export
15
+ * @interface WaasSignConfidentialTransferResponse
16
+ */
17
+ export interface WaasSignConfidentialTransferResponse {
18
+ /**
19
+ * Base64-encoded signed transactions in broadcast order: proof verification, execution, then proof-account closures.
20
+ * @type {Array<string>}
21
+ * @memberof WaasSignConfidentialTransferResponse
22
+ */
23
+ serializedTransactions: Array<string>;
24
+ /**
25
+ * Base58-encoded ed25519 signature over each transaction — the transaction id once confirmed, in the same order as `serializedTransactions`.
26
+ * @type {Array<string>}
27
+ * @memberof WaasSignConfidentialTransferResponse
28
+ */
29
+ signatures: Array<string>;
30
+ }
31
+ export declare function WaasSignConfidentialTransferResponseFromJSON(json: any): WaasSignConfidentialTransferResponse;
32
+ export declare function WaasSignConfidentialTransferResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSignConfidentialTransferResponse;
33
+ export declare function WaasSignConfidentialTransferResponseToJSON(value?: WaasSignConfidentialTransferResponse | null): any;
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function WaasSignConfidentialTransferResponseFromJSON(json) {
15
+ return WaasSignConfidentialTransferResponseFromJSONTyped(json);
16
+ }
17
+ function WaasSignConfidentialTransferResponseFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'serializedTransactions': json['serializedTransactions'],
23
+ 'signatures': json['signatures'],
24
+ };
25
+ }
26
+ function WaasSignConfidentialTransferResponseToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'serializedTransactions': value.serializedTransactions,
35
+ 'signatures': value.signatures,
36
+ };
37
+ }
38
+
39
+ export { WaasSignConfidentialTransferResponseFromJSON, WaasSignConfidentialTransferResponseFromJSONTyped, WaasSignConfidentialTransferResponseToJSON };
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('../runtime.cjs');
5
6
  var ChainEnum = require('./ChainEnum.cjs');
6
7
 
7
8
  /* tslint:disable */
@@ -25,6 +26,7 @@ function WalletListItemFromJSONTyped(json, ignoreDiscriminator) {
25
26
  return {
26
27
  'id': json['id'],
27
28
  'userId': json['userId'],
29
+ 'businessAccountId': !runtime.exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
28
30
  'name': json['name'],
29
31
  'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
30
32
  'publicKey': json['publicKey'],
@@ -44,6 +46,7 @@ function WalletListItemToJSON(value) {
44
46
  return {
45
47
  'id': value.id,
46
48
  'userId': value.userId,
49
+ 'businessAccountId': value.businessAccountId,
47
50
  'name': value.name,
48
51
  'chain': ChainEnum.ChainEnumToJSON(value.chain),
49
52
  'publicKey': value.publicKey,
@@ -28,6 +28,12 @@ export interface WalletListItem {
28
28
  * @memberof WalletListItem
29
29
  */
30
30
  userId: string | null;
31
+ /**
32
+ * ID of the business account the wallet belongs to, or null if it is in none
33
+ * @type {string}
34
+ * @memberof WalletListItem
35
+ */
36
+ businessAccountId?: string | null;
31
37
  /**
32
38
  *
33
39
  * @type {string}
@@ -1,3 +1,4 @@
1
+ import { exists } from '../runtime.js';
1
2
  import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
2
3
 
3
4
  /* tslint:disable */
@@ -21,6 +22,7 @@ function WalletListItemFromJSONTyped(json, ignoreDiscriminator) {
21
22
  return {
22
23
  'id': json['id'],
23
24
  'userId': json['userId'],
25
+ 'businessAccountId': !exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
24
26
  'name': json['name'],
25
27
  'chain': ChainEnumFromJSON(json['chain']),
26
28
  'publicKey': json['publicKey'],
@@ -40,6 +42,7 @@ function WalletListItemToJSON(value) {
40
42
  return {
41
43
  'id': value.id,
42
44
  'userId': value.userId,
45
+ 'businessAccountId': value.businessAccountId,
43
46
  'name': value.name,
44
47
  'chain': ChainEnumToJSON(value.chain),
45
48
  'publicKey': value.publicKey,