@dynamic-labs/sdk-api 0.0.1040 → 0.0.1042

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 (100) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +3 -2
  3. package/src/apis/AdminActionsApi.js +3 -2
  4. package/src/apis/AllowlistsApi.cjs +3 -2
  5. package/src/apis/AllowlistsApi.js +3 -2
  6. package/src/apis/AnalyticsApi.cjs +3 -2
  7. package/src/apis/AnalyticsApi.js +3 -2
  8. package/src/apis/AuthorizedClientsApi.cjs +3 -2
  9. package/src/apis/AuthorizedClientsApi.js +3 -2
  10. package/src/apis/ChainalysisApi.cjs +3 -2
  11. package/src/apis/ChainalysisApi.js +3 -2
  12. package/src/apis/ChainsApi.cjs +3 -2
  13. package/src/apis/ChainsApi.js +3 -2
  14. package/src/apis/CheckoutApi.cjs +3 -2
  15. package/src/apis/CheckoutApi.js +3 -2
  16. package/src/apis/ClientGrantApi.cjs +3 -2
  17. package/src/apis/ClientGrantApi.js +3 -2
  18. package/src/apis/CustomFieldsApi.cjs +3 -2
  19. package/src/apis/CustomFieldsApi.js +3 -2
  20. package/src/apis/CustomHostnamesApi.cjs +3 -2
  21. package/src/apis/CustomHostnamesApi.js +3 -2
  22. package/src/apis/CustomNetworksApi.cjs +3 -2
  23. package/src/apis/CustomNetworksApi.js +3 -2
  24. package/src/apis/DeeplinkUrlsApi.cjs +3 -2
  25. package/src/apis/DeeplinkUrlsApi.js +3 -2
  26. package/src/apis/EnvironmentsApi.cjs +3 -2
  27. package/src/apis/EnvironmentsApi.js +3 -2
  28. package/src/apis/EventsApi.cjs +3 -2
  29. package/src/apis/EventsApi.js +3 -2
  30. package/src/apis/ExchangesApi.cjs +3 -2
  31. package/src/apis/ExchangesApi.js +3 -2
  32. package/src/apis/ExportsApi.cjs +3 -2
  33. package/src/apis/ExportsApi.js +3 -2
  34. package/src/apis/ExternalJwtApi.cjs +3 -2
  35. package/src/apis/ExternalJwtApi.js +3 -2
  36. package/src/apis/GatesApi.cjs +3 -2
  37. package/src/apis/GatesApi.js +3 -2
  38. package/src/apis/GlobalWalletAccessControlApi.cjs +3 -2
  39. package/src/apis/GlobalWalletAccessControlApi.js +3 -2
  40. package/src/apis/GlobalWalletConnectionsApi.cjs +3 -2
  41. package/src/apis/GlobalWalletConnectionsApi.js +3 -2
  42. package/src/apis/GlobalWalletsApi.cjs +3 -2
  43. package/src/apis/GlobalWalletsApi.js +3 -2
  44. package/src/apis/InvitesApi.cjs +3 -2
  45. package/src/apis/InvitesApi.js +3 -2
  46. package/src/apis/MembersApi.cjs +3 -2
  47. package/src/apis/MembersApi.js +3 -2
  48. package/src/apis/MfaSettingsApi.cjs +3 -2
  49. package/src/apis/MfaSettingsApi.js +3 -2
  50. package/src/apis/NameServicesApi.cjs +3 -2
  51. package/src/apis/NameServicesApi.js +3 -2
  52. package/src/apis/OrganizationSettingsApi.cjs +3 -2
  53. package/src/apis/OrganizationSettingsApi.js +3 -2
  54. package/src/apis/OrganizationsApi.cjs +3 -2
  55. package/src/apis/OrganizationsApi.js +3 -2
  56. package/src/apis/OriginsApi.cjs +3 -2
  57. package/src/apis/OriginsApi.js +3 -2
  58. package/src/apis/ProjectsApi.cjs +3 -2
  59. package/src/apis/ProjectsApi.js +3 -2
  60. package/src/apis/ProvidersApi.cjs +3 -2
  61. package/src/apis/ProvidersApi.js +3 -2
  62. package/src/apis/SDKApi.cjs +1 -0
  63. package/src/apis/SDKApi.js +1 -0
  64. package/src/apis/SDKViewsApi.cjs +3 -2
  65. package/src/apis/SDKViewsApi.js +3 -2
  66. package/src/apis/SessionsApi.cjs +3 -2
  67. package/src/apis/SessionsApi.js +3 -2
  68. package/src/apis/TestAccountApi.cjs +3 -2
  69. package/src/apis/TestAccountApi.js +3 -2
  70. package/src/apis/TokensApi.cjs +3 -2
  71. package/src/apis/TokensApi.js +3 -2
  72. package/src/apis/UserApiTokensApi.cjs +3 -2
  73. package/src/apis/UserApiTokensApi.js +3 -2
  74. package/src/apis/UsersApi.cjs +3 -2
  75. package/src/apis/UsersApi.js +3 -2
  76. package/src/apis/VisitsApi.cjs +3 -2
  77. package/src/apis/VisitsApi.js +3 -2
  78. package/src/apis/WaasApi.cjs +3 -2
  79. package/src/apis/WaasApi.js +3 -2
  80. package/src/apis/WalletConnectApi.cjs +3 -2
  81. package/src/apis/WalletConnectApi.js +3 -2
  82. package/src/apis/WalletsApi.cjs +3 -2
  83. package/src/apis/WalletsApi.js +3 -2
  84. package/src/apis/WebhooksApi.cjs +3 -2
  85. package/src/apis/WebhooksApi.js +3 -2
  86. package/src/index.cjs +12 -0
  87. package/src/index.js +2 -0
  88. package/src/models/BackupKeySharesToLocationsRequest.cjs +3 -3
  89. package/src/models/BackupKeySharesToLocationsRequest.d.ts +3 -3
  90. package/src/models/BackupKeySharesToLocationsRequest.js +3 -3
  91. package/src/models/BackupKeySharesToLocationsRequestLocations.cjs +52 -0
  92. package/src/models/BackupKeySharesToLocationsRequestLocations.d.ts +66 -0
  93. package/src/models/BackupKeySharesToLocationsRequestLocations.js +46 -0
  94. package/src/models/SwapSigningPayload.cjs +3 -0
  95. package/src/models/SwapSigningPayload.d.ts +8 -1
  96. package/src/models/SwapSigningPayload.js +3 -0
  97. package/src/models/SwapTronTransactionData.cjs +47 -0
  98. package/src/models/SwapTronTransactionData.d.ts +39 -0
  99. package/src/models/SwapTronTransactionData.js +41 -0
  100. package/src/models/index.d.ts +2 -0
package/src/index.cjs CHANGED
@@ -111,6 +111,7 @@ var AuthorizedClient = require('./models/AuthorizedClient.cjs');
111
111
  var AuthorizedClientList = require('./models/AuthorizedClientList.cjs');
112
112
  var BackupKeySharesToLocationsPendingResponse = require('./models/BackupKeySharesToLocationsPendingResponse.cjs');
113
113
  var BackupKeySharesToLocationsRequest = require('./models/BackupKeySharesToLocationsRequest.cjs');
114
+ var BackupKeySharesToLocationsRequestLocations = require('./models/BackupKeySharesToLocationsRequestLocations.cjs');
114
115
  var BackupKeySharesToLocationsResponse = require('./models/BackupKeySharesToLocationsResponse.cjs');
115
116
  var BackupKeySharesToLocationsResponseLocationsWithKeyShares = require('./models/BackupKeySharesToLocationsResponseLocationsWithKeyShares.cjs');
116
117
  var BackupKeySharesToLocationsWithUserIdRequest = require('./models/BackupKeySharesToLocationsWithUserIdRequest.cjs');
@@ -642,6 +643,7 @@ var SwapStatusResponse = require('./models/SwapStatusResponse.cjs');
642
643
  var SwapStep = require('./models/SwapStep.cjs');
643
644
  var SwapStepSide = require('./models/SwapStepSide.cjs');
644
645
  var SwapToken = require('./models/SwapToken.cjs');
646
+ var SwapTronTransactionData = require('./models/SwapTronTransactionData.cjs');
645
647
  var TelegramPostRequest = require('./models/TelegramPostRequest.cjs');
646
648
  var TelegramUser = require('./models/TelegramUser.cjs');
647
649
  var TestAccountResponse = require('./models/TestAccountResponse.cjs');
@@ -1103,6 +1105,13 @@ exports.BackupKeySharesToLocationsPendingResponseToJSON = BackupKeySharesToLocat
1103
1105
  exports.BackupKeySharesToLocationsRequestFromJSON = BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestFromJSON;
1104
1106
  exports.BackupKeySharesToLocationsRequestFromJSONTyped = BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestFromJSONTyped;
1105
1107
  exports.BackupKeySharesToLocationsRequestToJSON = BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestToJSON;
1108
+ exports.BackupKeySharesToLocationsRequestLocationsFromJSON = BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSON;
1109
+ exports.BackupKeySharesToLocationsRequestLocationsFromJSONTyped = BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSONTyped;
1110
+ exports.BackupKeySharesToLocationsRequestLocationsToJSON = BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsToJSON;
1111
+ Object.defineProperty(exports, 'BackupKeySharesToLocationsRequestLocationsTokenSourceEnum', {
1112
+ enumerable: true,
1113
+ get: function () { return BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsTokenSourceEnum; }
1114
+ });
1106
1115
  exports.BackupKeySharesToLocationsResponseFromJSON = BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseFromJSON;
1107
1116
  exports.BackupKeySharesToLocationsResponseFromJSONTyped = BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseFromJSONTyped;
1108
1117
  Object.defineProperty(exports, 'BackupKeySharesToLocationsResponsePasswordUpdateStatusEnum', {
@@ -3068,6 +3077,9 @@ exports.SwapStepSideToJSON = SwapStepSide.SwapStepSideToJSON;
3068
3077
  exports.SwapTokenFromJSON = SwapToken.SwapTokenFromJSON;
3069
3078
  exports.SwapTokenFromJSONTyped = SwapToken.SwapTokenFromJSONTyped;
3070
3079
  exports.SwapTokenToJSON = SwapToken.SwapTokenToJSON;
3080
+ exports.SwapTronTransactionDataFromJSON = SwapTronTransactionData.SwapTronTransactionDataFromJSON;
3081
+ exports.SwapTronTransactionDataFromJSONTyped = SwapTronTransactionData.SwapTronTransactionDataFromJSONTyped;
3082
+ exports.SwapTronTransactionDataToJSON = SwapTronTransactionData.SwapTronTransactionDataToJSON;
3071
3083
  exports.TelegramPostRequestFromJSON = TelegramPostRequest.TelegramPostRequestFromJSON;
3072
3084
  exports.TelegramPostRequestFromJSONTyped = TelegramPostRequest.TelegramPostRequestFromJSONTyped;
3073
3085
  exports.TelegramPostRequestToJSON = TelegramPostRequest.TelegramPostRequestToJSON;
package/src/index.js CHANGED
@@ -107,6 +107,7 @@ export { AuthorizedClientFromJSON, AuthorizedClientFromJSONTyped, AuthorizedClie
107
107
  export { AuthorizedClientListFromJSON, AuthorizedClientListFromJSONTyped, AuthorizedClientListToJSON } from './models/AuthorizedClientList.js';
108
108
  export { BackupKeySharesToLocationsPendingResponseFromJSON, BackupKeySharesToLocationsPendingResponseFromJSONTyped, BackupKeySharesToLocationsPendingResponsePasswordUpdateStatusEnum, BackupKeySharesToLocationsPendingResponseToJSON } from './models/BackupKeySharesToLocationsPendingResponse.js';
109
109
  export { BackupKeySharesToLocationsRequestFromJSON, BackupKeySharesToLocationsRequestFromJSONTyped, BackupKeySharesToLocationsRequestToJSON } from './models/BackupKeySharesToLocationsRequest.js';
110
+ export { BackupKeySharesToLocationsRequestLocationsFromJSON, BackupKeySharesToLocationsRequestLocationsFromJSONTyped, BackupKeySharesToLocationsRequestLocationsToJSON, BackupKeySharesToLocationsRequestLocationsTokenSourceEnum } from './models/BackupKeySharesToLocationsRequestLocations.js';
110
111
  export { BackupKeySharesToLocationsResponseFromJSON, BackupKeySharesToLocationsResponseFromJSONTyped, BackupKeySharesToLocationsResponsePasswordUpdateStatusEnum, BackupKeySharesToLocationsResponseToJSON } from './models/BackupKeySharesToLocationsResponse.js';
111
112
  export { BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON, BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped, BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON } from './models/BackupKeySharesToLocationsResponseLocationsWithKeyShares.js';
112
113
  export { BackupKeySharesToLocationsWithUserIdRequestFromJSON, BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped, BackupKeySharesToLocationsWithUserIdRequestToJSON } from './models/BackupKeySharesToLocationsWithUserIdRequest.js';
@@ -638,6 +639,7 @@ export { SwapStatusResponseFromJSON, SwapStatusResponseFromJSONTyped, SwapStatus
638
639
  export { SwapStepFromJSON, SwapStepFromJSONTyped, SwapStepToJSON } from './models/SwapStep.js';
639
640
  export { SwapStepSideFromJSON, SwapStepSideFromJSONTyped, SwapStepSideToJSON } from './models/SwapStepSide.js';
640
641
  export { SwapTokenFromJSON, SwapTokenFromJSONTyped, SwapTokenToJSON } from './models/SwapToken.js';
642
+ export { SwapTronTransactionDataFromJSON, SwapTronTransactionDataFromJSONTyped, SwapTronTransactionDataToJSON } from './models/SwapTronTransactionData.js';
641
643
  export { TelegramPostRequestFromJSON, TelegramPostRequestFromJSONTyped, TelegramPostRequestToJSON } from './models/TelegramPostRequest.js';
642
644
  export { TelegramUserFromJSON, TelegramUserFromJSONTyped, TelegramUserToJSON } from './models/TelegramUser.js';
643
645
  export { TestAccountResponseFromJSON, TestAccountResponseFromJSONTyped, TestAccountResponseToJSON } from './models/TestAccountResponse.js';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
- var BackupKeySharesToLocationsWithUserIdRequestLocations = require('./BackupKeySharesToLocationsWithUserIdRequestLocations.cjs');
6
+ var BackupKeySharesToLocationsRequestLocations = require('./BackupKeySharesToLocationsRequestLocations.cjs');
7
7
 
8
8
  /* tslint:disable */
9
9
  function BackupKeySharesToLocationsRequestFromJSON(json) {
@@ -16,7 +16,7 @@ function BackupKeySharesToLocationsRequestFromJSONTyped(json, ignoreDiscriminato
16
16
  return {
17
17
  'passwordUpdateBatchId': !runtime.exists(json, 'passwordUpdateBatchId') ? undefined : json['passwordUpdateBatchId'],
18
18
  'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
19
- 'locations': (json['locations'].map(BackupKeySharesToLocationsWithUserIdRequestLocations.BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON)),
19
+ 'locations': (json['locations'].map(BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSON)),
20
20
  };
21
21
  }
22
22
  function BackupKeySharesToLocationsRequestToJSON(value) {
@@ -29,7 +29,7 @@ function BackupKeySharesToLocationsRequestToJSON(value) {
29
29
  return {
30
30
  'passwordUpdateBatchId': value.passwordUpdateBatchId,
31
31
  'shareSetId': value.shareSetId,
32
- 'locations': (value.locations.map(BackupKeySharesToLocationsWithUserIdRequestLocations.BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON)),
32
+ 'locations': (value.locations.map(BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsToJSON)),
33
33
  };
34
34
  }
35
35
 
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { BackupKeySharesToLocationsWithUserIdRequestLocations } from './BackupKeySharesToLocationsWithUserIdRequestLocations';
12
+ import { BackupKeySharesToLocationsRequestLocations } from './BackupKeySharesToLocationsRequestLocations';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -33,10 +33,10 @@ export interface BackupKeySharesToLocationsRequest {
33
33
  shareSetId?: string | null;
34
34
  /**
35
35
  * List of backup locations with their key share configuration
36
- * @type {Array<BackupKeySharesToLocationsWithUserIdRequestLocations>}
36
+ * @type {Array<BackupKeySharesToLocationsRequestLocations>}
37
37
  * @memberof BackupKeySharesToLocationsRequest
38
38
  */
39
- locations: Array<BackupKeySharesToLocationsWithUserIdRequestLocations>;
39
+ locations: Array<BackupKeySharesToLocationsRequestLocations>;
40
40
  }
41
41
  export declare function BackupKeySharesToLocationsRequestFromJSON(json: any): BackupKeySharesToLocationsRequest;
42
42
  export declare function BackupKeySharesToLocationsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsRequest;
@@ -1,5 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
- import { BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON, BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON } from './BackupKeySharesToLocationsWithUserIdRequestLocations.js';
2
+ import { BackupKeySharesToLocationsRequestLocationsFromJSON, BackupKeySharesToLocationsRequestLocationsToJSON } from './BackupKeySharesToLocationsRequestLocations.js';
3
3
 
4
4
  /* tslint:disable */
5
5
  function BackupKeySharesToLocationsRequestFromJSON(json) {
@@ -12,7 +12,7 @@ function BackupKeySharesToLocationsRequestFromJSONTyped(json, ignoreDiscriminato
12
12
  return {
13
13
  'passwordUpdateBatchId': !exists(json, 'passwordUpdateBatchId') ? undefined : json['passwordUpdateBatchId'],
14
14
  'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
15
- 'locations': (json['locations'].map(BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON)),
15
+ 'locations': (json['locations'].map(BackupKeySharesToLocationsRequestLocationsFromJSON)),
16
16
  };
17
17
  }
18
18
  function BackupKeySharesToLocationsRequestToJSON(value) {
@@ -25,7 +25,7 @@ function BackupKeySharesToLocationsRequestToJSON(value) {
25
25
  return {
26
26
  'passwordUpdateBatchId': value.passwordUpdateBatchId,
27
27
  'shareSetId': value.shareSetId,
28
- 'locations': (value.locations.map(BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON)),
28
+ 'locations': (value.locations.map(BackupKeySharesToLocationsRequestLocationsToJSON)),
29
29
  };
30
30
  }
31
31
 
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
7
+ var WaasBackupOptionsEnum = require('./WaasBackupOptionsEnum.cjs');
8
+
9
+ /* tslint:disable */
10
+ /**
11
+ * @export
12
+ * @enum {string}
13
+ */
14
+ exports.BackupKeySharesToLocationsRequestLocationsTokenSourceEnum = void 0;
15
+ (function (BackupKeySharesToLocationsRequestLocationsTokenSourceEnum) {
16
+ BackupKeySharesToLocationsRequestLocationsTokenSourceEnum["External"] = "external";
17
+ BackupKeySharesToLocationsRequestLocationsTokenSourceEnum["StoredOauth"] = "stored_oauth";
18
+ })(exports.BackupKeySharesToLocationsRequestLocationsTokenSourceEnum || (exports.BackupKeySharesToLocationsRequestLocationsTokenSourceEnum = {}));
19
+ function BackupKeySharesToLocationsRequestLocationsFromJSON(json) {
20
+ return BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json);
21
+ }
22
+ function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'location': WaasBackupOptionsEnum.WaasBackupOptionsEnumFromJSON(json['location']),
28
+ 'keygenId': !runtime.exists(json, 'keygenId') ? undefined : json['keygenId'],
29
+ 'thresholdSignatureScheme': !runtime.exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
30
+ 'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
31
+ 'tokenSource': !runtime.exists(json, 'tokenSource') ? undefined : json['tokenSource'],
32
+ };
33
+ }
34
+ function BackupKeySharesToLocationsRequestLocationsToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'location': WaasBackupOptionsEnum.WaasBackupOptionsEnumToJSON(value.location),
43
+ 'keygenId': value.keygenId,
44
+ 'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
45
+ 'externalKeyShareId': value.externalKeyShareId,
46
+ 'tokenSource': value.tokenSource,
47
+ };
48
+ }
49
+
50
+ exports.BackupKeySharesToLocationsRequestLocationsFromJSON = BackupKeySharesToLocationsRequestLocationsFromJSON;
51
+ exports.BackupKeySharesToLocationsRequestLocationsFromJSONTyped = BackupKeySharesToLocationsRequestLocationsFromJSONTyped;
52
+ exports.BackupKeySharesToLocationsRequestLocationsToJSON = BackupKeySharesToLocationsRequestLocationsToJSON;
@@ -0,0 +1,66 @@
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 { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
13
+ import { WaasBackupOptionsEnum } from './WaasBackupOptionsEnum';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BackupKeySharesToLocationsRequestLocations
18
+ */
19
+ export interface BackupKeySharesToLocationsRequestLocations {
20
+ /**
21
+ *
22
+ * @type {WaasBackupOptionsEnum}
23
+ * @memberof BackupKeySharesToLocationsRequestLocations
24
+ */
25
+ location: WaasBackupOptionsEnum;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof BackupKeySharesToLocationsRequestLocations
30
+ */
31
+ keygenId?: string;
32
+ /**
33
+ *
34
+ * @type {ThresholdSignatureScheme}
35
+ * @memberof BackupKeySharesToLocationsRequestLocations
36
+ */
37
+ thresholdSignatureScheme?: ThresholdSignatureScheme;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof BackupKeySharesToLocationsRequestLocations
42
+ */
43
+ externalKeyShareId?: string;
44
+ /**
45
+ * Audit-only indicator of which OAuth token the client used to back
46
+ * up this location: `external` (consumer-supplied, e.g. Fanpla's own
47
+ * Drive-scoped token) or `stored_oauth` (resolved from the user's
48
+ * linked account). Enum only — never the token value. Currently set
49
+ * only for the `googleDrive` location; persisted verbatim on the
50
+ * `backupKeyShares` wallet action metadata.
51
+ * @type {string}
52
+ * @memberof BackupKeySharesToLocationsRequestLocations
53
+ */
54
+ tokenSource?: BackupKeySharesToLocationsRequestLocationsTokenSourceEnum;
55
+ }
56
+ /**
57
+ * @export
58
+ * @enum {string}
59
+ */
60
+ export declare enum BackupKeySharesToLocationsRequestLocationsTokenSourceEnum {
61
+ External = "external",
62
+ StoredOauth = "stored_oauth"
63
+ }
64
+ export declare function BackupKeySharesToLocationsRequestLocationsFromJSON(json: any): BackupKeySharesToLocationsRequestLocations;
65
+ export declare function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsRequestLocations;
66
+ export declare function BackupKeySharesToLocationsRequestLocationsToJSON(value?: BackupKeySharesToLocationsRequestLocations | null): any;
@@ -0,0 +1,46 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
3
+ import { WaasBackupOptionsEnumFromJSON, WaasBackupOptionsEnumToJSON } from './WaasBackupOptionsEnum.js';
4
+
5
+ /* tslint:disable */
6
+ /**
7
+ * @export
8
+ * @enum {string}
9
+ */
10
+ var BackupKeySharesToLocationsRequestLocationsTokenSourceEnum;
11
+ (function (BackupKeySharesToLocationsRequestLocationsTokenSourceEnum) {
12
+ BackupKeySharesToLocationsRequestLocationsTokenSourceEnum["External"] = "external";
13
+ BackupKeySharesToLocationsRequestLocationsTokenSourceEnum["StoredOauth"] = "stored_oauth";
14
+ })(BackupKeySharesToLocationsRequestLocationsTokenSourceEnum || (BackupKeySharesToLocationsRequestLocationsTokenSourceEnum = {}));
15
+ function BackupKeySharesToLocationsRequestLocationsFromJSON(json) {
16
+ return BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json);
17
+ }
18
+ function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDiscriminator) {
19
+ if ((json === undefined) || (json === null)) {
20
+ return json;
21
+ }
22
+ return {
23
+ 'location': WaasBackupOptionsEnumFromJSON(json['location']),
24
+ 'keygenId': !exists(json, 'keygenId') ? undefined : json['keygenId'],
25
+ 'thresholdSignatureScheme': !exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
26
+ 'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
27
+ 'tokenSource': !exists(json, 'tokenSource') ? undefined : json['tokenSource'],
28
+ };
29
+ }
30
+ function BackupKeySharesToLocationsRequestLocationsToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'location': WaasBackupOptionsEnumToJSON(value.location),
39
+ 'keygenId': value.keygenId,
40
+ 'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
41
+ 'externalKeyShareId': value.externalKeyShareId,
42
+ 'tokenSource': value.tokenSource,
43
+ };
44
+ }
45
+
46
+ export { BackupKeySharesToLocationsRequestLocationsFromJSON, BackupKeySharesToLocationsRequestLocationsFromJSONTyped, BackupKeySharesToLocationsRequestLocationsToJSON, BackupKeySharesToLocationsRequestLocationsTokenSourceEnum };
@@ -6,6 +6,7 @@ var runtime = require('../runtime.cjs');
6
6
  var ChainEnum = require('./ChainEnum.cjs');
7
7
  var SwapEvmApprovalData = require('./SwapEvmApprovalData.cjs');
8
8
  var SwapEvmTransactionData = require('./SwapEvmTransactionData.cjs');
9
+ var SwapTronTransactionData = require('./SwapTronTransactionData.cjs');
9
10
 
10
11
  /* tslint:disable */
11
12
  function SwapSigningPayloadFromJSON(json) {
@@ -22,6 +23,7 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
22
23
  'evmApproval': !runtime.exists(json, 'evmApproval') ? undefined : SwapEvmApprovalData.SwapEvmApprovalDataFromJSON(json['evmApproval']),
23
24
  'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
24
25
  'psbt': !runtime.exists(json, 'psbt') ? undefined : json['psbt'],
26
+ 'tronTransaction': !runtime.exists(json, 'tronTransaction') ? undefined : SwapTronTransactionData.SwapTronTransactionDataFromJSON(json['tronTransaction']),
25
27
  };
26
28
  }
27
29
  function SwapSigningPayloadToJSON(value) {
@@ -38,6 +40,7 @@ function SwapSigningPayloadToJSON(value) {
38
40
  'evmApproval': SwapEvmApprovalData.SwapEvmApprovalDataToJSON(value.evmApproval),
39
41
  'serializedTransaction': value.serializedTransaction,
40
42
  'psbt': value.psbt,
43
+ 'tronTransaction': SwapTronTransactionData.SwapTronTransactionDataToJSON(value.tronTransaction),
41
44
  };
42
45
  }
43
46
 
@@ -12,8 +12,9 @@
12
12
  import { ChainEnum } from './ChainEnum';
13
13
  import { SwapEvmApprovalData } from './SwapEvmApprovalData';
14
14
  import { SwapEvmTransactionData } from './SwapEvmTransactionData';
15
+ import { SwapTronTransactionData } from './SwapTronTransactionData';
15
16
  /**
16
- * Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbt.
17
+ * Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbt. TRON uses tronTransaction.
17
18
  * @export
18
19
  * @interface SwapSigningPayload
19
20
  */
@@ -54,6 +55,12 @@ export interface SwapSigningPayload {
54
55
  * @memberof SwapSigningPayload
55
56
  */
56
57
  psbt?: string;
58
+ /**
59
+ *
60
+ * @type {SwapTronTransactionData}
61
+ * @memberof SwapSigningPayload
62
+ */
63
+ tronTransaction?: SwapTronTransactionData;
57
64
  }
58
65
  export declare function SwapSigningPayloadFromJSON(json: any): SwapSigningPayload;
59
66
  export declare function SwapSigningPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapSigningPayload;
@@ -2,6 +2,7 @@ import { exists } from '../runtime.js';
2
2
  import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
3
  import { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataToJSON } from './SwapEvmApprovalData.js';
4
4
  import { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataToJSON } from './SwapEvmTransactionData.js';
5
+ import { SwapTronTransactionDataFromJSON, SwapTronTransactionDataToJSON } from './SwapTronTransactionData.js';
5
6
 
6
7
  /* tslint:disable */
7
8
  function SwapSigningPayloadFromJSON(json) {
@@ -18,6 +19,7 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
18
19
  'evmApproval': !exists(json, 'evmApproval') ? undefined : SwapEvmApprovalDataFromJSON(json['evmApproval']),
19
20
  'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
20
21
  'psbt': !exists(json, 'psbt') ? undefined : json['psbt'],
22
+ 'tronTransaction': !exists(json, 'tronTransaction') ? undefined : SwapTronTransactionDataFromJSON(json['tronTransaction']),
21
23
  };
22
24
  }
23
25
  function SwapSigningPayloadToJSON(value) {
@@ -34,6 +36,7 @@ function SwapSigningPayloadToJSON(value) {
34
36
  'evmApproval': SwapEvmApprovalDataToJSON(value.evmApproval),
35
37
  'serializedTransaction': value.serializedTransaction,
36
38
  'psbt': value.psbt,
39
+ 'tronTransaction': SwapTronTransactionDataToJSON(value.tronTransaction),
37
40
  };
38
41
  }
39
42
 
@@ -0,0 +1,47 @@
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 SwapTronTransactionDataFromJSON(json) {
19
+ return SwapTronTransactionDataFromJSONTyped(json);
20
+ }
21
+ function SwapTronTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'rawDataHex': json['rawDataHex'],
27
+ 'to': json['to'],
28
+ 'value': json['value'],
29
+ };
30
+ }
31
+ function SwapTronTransactionDataToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'rawDataHex': value.rawDataHex,
40
+ 'to': value.to,
41
+ 'value': value.value,
42
+ };
43
+ }
44
+
45
+ exports.SwapTronTransactionDataFromJSON = SwapTronTransactionDataFromJSON;
46
+ exports.SwapTronTransactionDataFromJSONTyped = SwapTronTransactionDataFromJSONTyped;
47
+ exports.SwapTronTransactionDataToJSON = SwapTronTransactionDataToJSON;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SwapTronTransactionData
16
+ */
17
+ export interface SwapTronTransactionData {
18
+ /**
19
+ * Hex-encoded serialized Tron raw_data protobuf (a TriggerSmartContract call to the swap router). This is the full signable transaction; the Tron signer derives the txID (sha256 of raw_data) and signs it.
20
+ * @type {string}
21
+ * @memberof SwapTronTransactionData
22
+ */
23
+ rawDataHex: string;
24
+ /**
25
+ * Router contract address (base58), for display only
26
+ * @type {string}
27
+ * @memberof SwapTronTransactionData
28
+ */
29
+ to: string;
30
+ /**
31
+ * Native TRX amount in sun (hex string, "0x0" if token-only)
32
+ * @type {string}
33
+ * @memberof SwapTronTransactionData
34
+ */
35
+ value: string;
36
+ }
37
+ export declare function SwapTronTransactionDataFromJSON(json: any): SwapTronTransactionData;
38
+ export declare function SwapTronTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapTronTransactionData;
39
+ export declare function SwapTronTransactionDataToJSON(value?: SwapTronTransactionData | null): any;
@@ -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 SwapTronTransactionDataFromJSON(json) {
15
+ return SwapTronTransactionDataFromJSONTyped(json);
16
+ }
17
+ function SwapTronTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'rawDataHex': json['rawDataHex'],
23
+ 'to': json['to'],
24
+ 'value': json['value'],
25
+ };
26
+ }
27
+ function SwapTronTransactionDataToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'rawDataHex': value.rawDataHex,
36
+ 'to': value.to,
37
+ 'value': value.value,
38
+ };
39
+ }
40
+
41
+ export { SwapTronTransactionDataFromJSON, SwapTronTransactionDataFromJSONTyped, SwapTronTransactionDataToJSON };
@@ -63,6 +63,7 @@ export * from './AuthorizedClient';
63
63
  export * from './AuthorizedClientList';
64
64
  export * from './BackupKeySharesToLocationsPendingResponse';
65
65
  export * from './BackupKeySharesToLocationsRequest';
66
+ export * from './BackupKeySharesToLocationsRequestLocations';
66
67
  export * from './BackupKeySharesToLocationsResponse';
67
68
  export * from './BackupKeySharesToLocationsResponseLocationsWithKeyShares';
68
69
  export * from './BackupKeySharesToLocationsWithUserIdRequest';
@@ -594,6 +595,7 @@ export * from './SwapStatusResponse';
594
595
  export * from './SwapStep';
595
596
  export * from './SwapStepSide';
596
597
  export * from './SwapToken';
598
+ export * from './SwapTronTransactionData';
597
599
  export * from './TelegramPostRequest';
598
600
  export * from './TelegramUser';
599
601
  export * from './TestAccountResponse';