@dynamic-labs/sdk-api 0.0.1067 → 0.0.1069

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 (117) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +1 -1
  3. package/src/apis/AdminActionsApi.js +1 -1
  4. package/src/apis/AllowlistsApi.cjs +1 -1
  5. package/src/apis/AllowlistsApi.js +1 -1
  6. package/src/apis/AnalyticsApi.cjs +1 -1
  7. package/src/apis/AnalyticsApi.js +1 -1
  8. package/src/apis/AuthorizedClientsApi.cjs +1 -1
  9. package/src/apis/AuthorizedClientsApi.js +1 -1
  10. package/src/apis/CaptchaApi.cjs +1 -1
  11. package/src/apis/CaptchaApi.js +1 -1
  12. package/src/apis/ChainalysisApi.cjs +1 -1
  13. package/src/apis/ChainalysisApi.js +1 -1
  14. package/src/apis/ChainsApi.cjs +1 -1
  15. package/src/apis/ChainsApi.js +1 -1
  16. package/src/apis/CheckoutApi.cjs +1 -1
  17. package/src/apis/CheckoutApi.js +1 -1
  18. package/src/apis/ClientGrantApi.cjs +1 -1
  19. package/src/apis/ClientGrantApi.js +1 -1
  20. package/src/apis/CustomFieldsApi.cjs +1 -1
  21. package/src/apis/CustomFieldsApi.js +1 -1
  22. package/src/apis/CustomHostnamesApi.cjs +1 -1
  23. package/src/apis/CustomHostnamesApi.js +1 -1
  24. package/src/apis/CustomNetworksApi.cjs +1 -1
  25. package/src/apis/CustomNetworksApi.js +1 -1
  26. package/src/apis/DeeplinkUrlsApi.cjs +1 -1
  27. package/src/apis/DeeplinkUrlsApi.js +1 -1
  28. package/src/apis/EnvironmentsApi.cjs +1 -1
  29. package/src/apis/EnvironmentsApi.js +1 -1
  30. package/src/apis/EventsApi.cjs +1 -1
  31. package/src/apis/EventsApi.js +1 -1
  32. package/src/apis/ExchangesApi.cjs +1 -1
  33. package/src/apis/ExchangesApi.js +1 -1
  34. package/src/apis/ExportsApi.cjs +1 -1
  35. package/src/apis/ExportsApi.js +1 -1
  36. package/src/apis/ExternalJwtApi.cjs +1 -1
  37. package/src/apis/ExternalJwtApi.js +1 -1
  38. package/src/apis/FlowAnalyticsApi.cjs +1 -1
  39. package/src/apis/FlowAnalyticsApi.js +1 -1
  40. package/src/apis/GatesApi.cjs +1 -1
  41. package/src/apis/GatesApi.js +1 -1
  42. package/src/apis/GlobalWalletAccessControlApi.cjs +1 -1
  43. package/src/apis/GlobalWalletAccessControlApi.js +1 -1
  44. package/src/apis/GlobalWalletConnectionsApi.cjs +1 -1
  45. package/src/apis/GlobalWalletConnectionsApi.js +1 -1
  46. package/src/apis/GlobalWalletsApi.cjs +1 -1
  47. package/src/apis/GlobalWalletsApi.js +1 -1
  48. package/src/apis/InvitesApi.cjs +1 -1
  49. package/src/apis/InvitesApi.js +1 -1
  50. package/src/apis/MembersApi.cjs +1 -1
  51. package/src/apis/MembersApi.js +1 -1
  52. package/src/apis/MfaSettingsApi.cjs +1 -1
  53. package/src/apis/MfaSettingsApi.js +1 -1
  54. package/src/apis/NameServicesApi.cjs +1 -1
  55. package/src/apis/NameServicesApi.js +1 -1
  56. package/src/apis/OrganizationSettingsApi.cjs +1 -1
  57. package/src/apis/OrganizationSettingsApi.js +1 -1
  58. package/src/apis/OrganizationsApi.cjs +1 -1
  59. package/src/apis/OrganizationsApi.js +1 -1
  60. package/src/apis/OriginsApi.cjs +1 -1
  61. package/src/apis/OriginsApi.js +1 -1
  62. package/src/apis/ProjectsApi.cjs +1 -1
  63. package/src/apis/ProjectsApi.js +1 -1
  64. package/src/apis/ProvidersApi.cjs +1 -1
  65. package/src/apis/ProvidersApi.js +1 -1
  66. package/src/apis/SDKApi.cjs +62 -0
  67. package/src/apis/SDKApi.d.ts +26 -1
  68. package/src/apis/SDKApi.js +62 -0
  69. package/src/apis/SDKViewsApi.cjs +1 -1
  70. package/src/apis/SDKViewsApi.js +1 -1
  71. package/src/apis/SessionsApi.cjs +1 -1
  72. package/src/apis/SessionsApi.js +1 -1
  73. package/src/apis/TestAccountApi.cjs +1 -1
  74. package/src/apis/TestAccountApi.js +1 -1
  75. package/src/apis/TokensApi.cjs +1 -1
  76. package/src/apis/TokensApi.js +1 -1
  77. package/src/apis/UserApiTokensApi.cjs +1 -1
  78. package/src/apis/UserApiTokensApi.js +1 -1
  79. package/src/apis/UsersApi.cjs +1 -1
  80. package/src/apis/UsersApi.js +1 -1
  81. package/src/apis/VisitsApi.cjs +1 -1
  82. package/src/apis/VisitsApi.js +1 -1
  83. package/src/apis/WaasApi.cjs +1 -1
  84. package/src/apis/WaasApi.js +1 -1
  85. package/src/apis/WalletConnectApi.cjs +1 -1
  86. package/src/apis/WalletConnectApi.js +1 -1
  87. package/src/apis/WalletsApi.cjs +1 -1
  88. package/src/apis/WalletsApi.js +1 -1
  89. package/src/apis/WebhooksApi.cjs +1 -1
  90. package/src/apis/WebhooksApi.js +1 -1
  91. package/src/index.cjs +28 -0
  92. package/src/index.js +7 -0
  93. package/src/models/AddBusinessAccountSignerSdkRequest.cjs +7 -0
  94. package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +20 -0
  95. package/src/models/AddBusinessAccountSignerSdkRequest.js +7 -0
  96. package/src/models/FlowFeeClaimRequest.cjs +37 -0
  97. package/src/models/FlowFeeClaimRequest.d.ts +39 -0
  98. package/src/models/FlowFeeClaimRequest.js +31 -0
  99. package/src/models/FlowFeeClaimResponse.cjs +35 -0
  100. package/src/models/FlowFeeClaimResponse.d.ts +34 -0
  101. package/src/models/FlowFeeClaimResponse.js +29 -0
  102. package/src/models/FlowFeeClaimSignature.cjs +45 -0
  103. package/src/models/FlowFeeClaimSignature.d.ts +33 -0
  104. package/src/models/FlowFeeClaimSignature.js +39 -0
  105. package/src/models/FlowFeeClaimStep.cjs +49 -0
  106. package/src/models/FlowFeeClaimStep.d.ts +45 -0
  107. package/src/models/FlowFeeClaimStep.js +43 -0
  108. package/src/models/FlowFeeClaimSubmitRequest.cjs +35 -0
  109. package/src/models/FlowFeeClaimSubmitRequest.d.ts +34 -0
  110. package/src/models/FlowFeeClaimSubmitRequest.js +29 -0
  111. package/src/models/FlowFeeClaimSubmitResponse.cjs +35 -0
  112. package/src/models/FlowFeeClaimSubmitResponse.d.ts +33 -0
  113. package/src/models/FlowFeeClaimSubmitResponse.js +29 -0
  114. package/src/models/InlineObject6.cjs +35 -0
  115. package/src/models/InlineObject6.d.ts +33 -0
  116. package/src/models/InlineObject6.js +29 -0
  117. package/src/models/index.d.ts +7 -0
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
6
  var BusinessAccountSignerType = require('./BusinessAccountSignerType.cjs');
7
+ var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
7
8
  var UserIdentifierTypeEnum = require('./UserIdentifierTypeEnum.cjs');
8
9
 
9
10
  /* tslint:disable */
@@ -19,6 +20,9 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
19
20
  'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
20
21
  'identifier': !runtime.exists(json, 'identifier') ? undefined : json['identifier'],
21
22
  'type': !runtime.exists(json, 'type') ? undefined : UserIdentifierTypeEnum.UserIdentifierTypeEnumFromJSON(json['type']),
23
+ 'clientKeygenIds': json['clientKeygenIds'],
24
+ 'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
25
+ 'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
22
26
  };
23
27
  }
24
28
  function AddBusinessAccountSignerSdkRequestToJSON(value) {
@@ -33,6 +37,9 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
33
37
  'userId': value.userId,
34
38
  'identifier': value.identifier,
35
39
  'type': UserIdentifierTypeEnum.UserIdentifierTypeEnumToJSON(value.type),
40
+ 'clientKeygenIds': value.clientKeygenIds,
41
+ 'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
42
+ 'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
36
43
  };
37
44
  }
38
45
 
@@ -10,9 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { BusinessAccountSignerType } from './BusinessAccountSignerType';
13
+ import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
13
14
  import { UserIdentifierTypeEnum } from './UserIdentifierTypeEnum';
14
15
  /**
15
16
  * SDK addSigner body. Same user resolution shape as addMember (userId OR identifier + type), plus `signerType` for the signer-role enum (endUser/server). `type` here is the user-resolution type, NOT the signer type — `signerType` lives on a dedicated field.
17
+ * The remaining fields parameterise the reshare ceremony that runs after the pending signer row is written. `clientKeygenIds` come from the caller's local MPC state; the threshold scheme fields describe the source share set (old) and the destination share set (new) that the ceremony produces.
16
18
  * @export
17
19
  * @interface AddBusinessAccountSignerSdkRequest
18
20
  */
@@ -41,6 +43,24 @@ export interface AddBusinessAccountSignerSdkRequest {
41
43
  * @memberof AddBusinessAccountSignerSdkRequest
42
44
  */
43
45
  type?: UserIdentifierTypeEnum;
46
+ /**
47
+ * Caller's MPC keygen IDs participating in the reshare.
48
+ * @type {Array<string>}
49
+ * @memberof AddBusinessAccountSignerSdkRequest
50
+ */
51
+ clientKeygenIds: Array<string>;
52
+ /**
53
+ *
54
+ * @type {ThresholdSignatureScheme}
55
+ * @memberof AddBusinessAccountSignerSdkRequest
56
+ */
57
+ oldThresholdSignatureScheme: ThresholdSignatureScheme;
58
+ /**
59
+ *
60
+ * @type {ThresholdSignatureScheme}
61
+ * @memberof AddBusinessAccountSignerSdkRequest
62
+ */
63
+ newThresholdSignatureScheme: ThresholdSignatureScheme;
44
64
  }
45
65
  export declare function AddBusinessAccountSignerSdkRequestFromJSON(json: any): AddBusinessAccountSignerSdkRequest;
46
66
  export declare function AddBusinessAccountSignerSdkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddBusinessAccountSignerSdkRequest;
@@ -1,5 +1,6 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { BusinessAccountSignerTypeFromJSON, BusinessAccountSignerTypeToJSON } from './BusinessAccountSignerType.js';
3
+ import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
3
4
  import { UserIdentifierTypeEnumFromJSON, UserIdentifierTypeEnumToJSON } from './UserIdentifierTypeEnum.js';
4
5
 
5
6
  /* tslint:disable */
@@ -15,6 +16,9 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
15
16
  'userId': !exists(json, 'userId') ? undefined : json['userId'],
16
17
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
17
18
  'type': !exists(json, 'type') ? undefined : UserIdentifierTypeEnumFromJSON(json['type']),
19
+ 'clientKeygenIds': json['clientKeygenIds'],
20
+ 'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
21
+ 'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
18
22
  };
19
23
  }
20
24
  function AddBusinessAccountSignerSdkRequestToJSON(value) {
@@ -29,6 +33,9 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
29
33
  'userId': value.userId,
30
34
  'identifier': value.identifier,
31
35
  'type': UserIdentifierTypeEnumToJSON(value.type),
36
+ 'clientKeygenIds': value.clientKeygenIds,
37
+ 'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
38
+ 'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
32
39
  };
33
40
  }
34
41
 
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowFeeClaimRequestFromJSON(json) {
9
+ return FlowFeeClaimRequestFromJSONTyped(json);
10
+ }
11
+ function FlowFeeClaimRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
17
+ 'recipientAddress': json['recipientAddress'],
18
+ 'tokenAddress': !runtime.exists(json, 'tokenAddress') ? undefined : json['tokenAddress'],
19
+ };
20
+ }
21
+ function FlowFeeClaimRequestToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'chainId': value.chainId,
30
+ 'recipientAddress': value.recipientAddress,
31
+ 'tokenAddress': value.tokenAddress,
32
+ };
33
+ }
34
+
35
+ exports.FlowFeeClaimRequestFromJSON = FlowFeeClaimRequestFromJSON;
36
+ exports.FlowFeeClaimRequestFromJSONTyped = FlowFeeClaimRequestFromJSONTyped;
37
+ exports.FlowFeeClaimRequestToJSON = FlowFeeClaimRequestToJSON;
@@ -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
+ * Request to initiate a fee claim. Provider-agnostic: the caller only supplies the recipient address and the backend looks up unclaimed fee balances across every provider, returning a signing step for each. chainId and tokenAddress are optional filters to narrow the claim to a specific balance.
14
+ * @export
15
+ * @interface FlowFeeClaimRequest
16
+ */
17
+ export interface FlowFeeClaimRequest {
18
+ /**
19
+ * Optional filter — only claim balances settled on this chain
20
+ * @type {string}
21
+ * @memberof FlowFeeClaimRequest
22
+ */
23
+ chainId?: string;
24
+ /**
25
+ * Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
26
+ * @type {string}
27
+ * @memberof FlowFeeClaimRequest
28
+ */
29
+ recipientAddress: string;
30
+ /**
31
+ * Optional filter — only claim balances for this token contract address
32
+ * @type {string}
33
+ * @memberof FlowFeeClaimRequest
34
+ */
35
+ tokenAddress?: string;
36
+ }
37
+ export declare function FlowFeeClaimRequestFromJSON(json: any): FlowFeeClaimRequest;
38
+ export declare function FlowFeeClaimRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimRequest;
39
+ export declare function FlowFeeClaimRequestToJSON(value?: FlowFeeClaimRequest | null): any;
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowFeeClaimRequestFromJSON(json) {
5
+ return FlowFeeClaimRequestFromJSONTyped(json);
6
+ }
7
+ function FlowFeeClaimRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
13
+ 'recipientAddress': json['recipientAddress'],
14
+ 'tokenAddress': !exists(json, 'tokenAddress') ? undefined : json['tokenAddress'],
15
+ };
16
+ }
17
+ function FlowFeeClaimRequestToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'chainId': value.chainId,
26
+ 'recipientAddress': value.recipientAddress,
27
+ 'tokenAddress': value.tokenAddress,
28
+ };
29
+ }
30
+
31
+ export { FlowFeeClaimRequestFromJSON, FlowFeeClaimRequestFromJSONTyped, FlowFeeClaimRequestToJSON };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var FlowFeeClaimStep = require('./FlowFeeClaimStep.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowFeeClaimResponseFromJSON(json) {
9
+ return FlowFeeClaimResponseFromJSONTyped(json);
10
+ }
11
+ function FlowFeeClaimResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'requestId': json['requestId'],
17
+ 'steps': (json['steps'].map(FlowFeeClaimStep.FlowFeeClaimStepFromJSON)),
18
+ };
19
+ }
20
+ function FlowFeeClaimResponseToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'requestId': value.requestId,
29
+ 'steps': (value.steps.map(FlowFeeClaimStep.FlowFeeClaimStepToJSON)),
30
+ };
31
+ }
32
+
33
+ exports.FlowFeeClaimResponseFromJSON = FlowFeeClaimResponseFromJSON;
34
+ exports.FlowFeeClaimResponseFromJSONTyped = FlowFeeClaimResponseFromJSONTyped;
35
+ exports.FlowFeeClaimResponseToJSON = FlowFeeClaimResponseToJSON;
@@ -0,0 +1,34 @@
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 { FlowFeeClaimStep } from './FlowFeeClaimStep';
13
+ /**
14
+ * Instructions to complete a fee claim. Contains an opaque requestId that correlates the initiated claim on submit, and the steps the recipient must complete (one per claimable balance across all providers).
15
+ * @export
16
+ * @interface FlowFeeClaimResponse
17
+ */
18
+ export interface FlowFeeClaimResponse {
19
+ /**
20
+ * Opaque identifier correlating this initiated claim; echoed back on submit so the backend can resolve the provider(s) internally
21
+ * @type {string}
22
+ * @memberof FlowFeeClaimResponse
23
+ */
24
+ requestId: string;
25
+ /**
26
+ *
27
+ * @type {Array<FlowFeeClaimStep>}
28
+ * @memberof FlowFeeClaimResponse
29
+ */
30
+ steps: Array<FlowFeeClaimStep>;
31
+ }
32
+ export declare function FlowFeeClaimResponseFromJSON(json: any): FlowFeeClaimResponse;
33
+ export declare function FlowFeeClaimResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimResponse;
34
+ export declare function FlowFeeClaimResponseToJSON(value?: FlowFeeClaimResponse | null): any;
@@ -0,0 +1,29 @@
1
+ import { FlowFeeClaimStepFromJSON, FlowFeeClaimStepToJSON } from './FlowFeeClaimStep.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowFeeClaimResponseFromJSON(json) {
5
+ return FlowFeeClaimResponseFromJSONTyped(json);
6
+ }
7
+ function FlowFeeClaimResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'requestId': json['requestId'],
13
+ 'steps': (json['steps'].map(FlowFeeClaimStepFromJSON)),
14
+ };
15
+ }
16
+ function FlowFeeClaimResponseToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'requestId': value.requestId,
25
+ 'steps': (value.steps.map(FlowFeeClaimStepToJSON)),
26
+ };
27
+ }
28
+
29
+ export { FlowFeeClaimResponseFromJSON, FlowFeeClaimResponseFromJSONTyped, FlowFeeClaimResponseToJSON };
@@ -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 FlowFeeClaimSignatureFromJSON(json) {
19
+ return FlowFeeClaimSignatureFromJSONTyped(json);
20
+ }
21
+ function FlowFeeClaimSignatureFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'signature': json['signature'],
27
+ 'stepId': json['stepId'],
28
+ };
29
+ }
30
+ function FlowFeeClaimSignatureToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'signature': value.signature,
39
+ 'stepId': value.stepId,
40
+ };
41
+ }
42
+
43
+ exports.FlowFeeClaimSignatureFromJSON = FlowFeeClaimSignatureFromJSON;
44
+ exports.FlowFeeClaimSignatureFromJSONTyped = FlowFeeClaimSignatureFromJSONTyped;
45
+ exports.FlowFeeClaimSignatureToJSON = FlowFeeClaimSignatureToJSON;
@@ -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
+ * A signature over a single claim step's payload.
14
+ * @export
15
+ * @interface FlowFeeClaimSignature
16
+ */
17
+ export interface FlowFeeClaimSignature {
18
+ /**
19
+ * Signature the recipient produced over the step's payload
20
+ * @type {string}
21
+ * @memberof FlowFeeClaimSignature
22
+ */
23
+ signature: string;
24
+ /**
25
+ * The id of the FlowFeeClaimStep this signature corresponds to
26
+ * @type {string}
27
+ * @memberof FlowFeeClaimSignature
28
+ */
29
+ stepId: string;
30
+ }
31
+ export declare function FlowFeeClaimSignatureFromJSON(json: any): FlowFeeClaimSignature;
32
+ export declare function FlowFeeClaimSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimSignature;
33
+ export declare function FlowFeeClaimSignatureToJSON(value?: FlowFeeClaimSignature | 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 FlowFeeClaimSignatureFromJSON(json) {
15
+ return FlowFeeClaimSignatureFromJSONTyped(json);
16
+ }
17
+ function FlowFeeClaimSignatureFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'signature': json['signature'],
23
+ 'stepId': json['stepId'],
24
+ };
25
+ }
26
+ function FlowFeeClaimSignatureToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'signature': value.signature,
35
+ 'stepId': value.stepId,
36
+ };
37
+ }
38
+
39
+ export { FlowFeeClaimSignatureFromJSON, FlowFeeClaimSignatureFromJSONTyped, FlowFeeClaimSignatureToJSON };
@@ -0,0 +1,49 @@
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 FlowFeeClaimStepFromJSON(json) {
19
+ return FlowFeeClaimStepFromJSONTyped(json);
20
+ }
21
+ function FlowFeeClaimStepFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'action': json['action'],
27
+ 'data': json['data'],
28
+ 'id': json['id'],
29
+ 'type': json['type'],
30
+ };
31
+ }
32
+ function FlowFeeClaimStepToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'action': value.action,
41
+ 'data': value.data,
42
+ 'id': value.id,
43
+ 'type': value.type,
44
+ };
45
+ }
46
+
47
+ exports.FlowFeeClaimStepFromJSON = FlowFeeClaimStepFromJSON;
48
+ exports.FlowFeeClaimStepFromJSONTyped = FlowFeeClaimStepFromJSONTyped;
49
+ exports.FlowFeeClaimStepToJSON = FlowFeeClaimStepToJSON;
@@ -0,0 +1,45 @@
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
+ * A single step the recipient completes to authorize a claim, typically a request to sign an opaque payload. Steps are executed against whichever provider holds the balance; that provider is an internal detail and is not surfaced to the caller.
14
+ * @export
15
+ * @interface FlowFeeClaimStep
16
+ */
17
+ export interface FlowFeeClaimStep {
18
+ /**
19
+ * Human-readable description of the step
20
+ * @type {string}
21
+ * @memberof FlowFeeClaimStep
22
+ */
23
+ action: string;
24
+ /**
25
+ * Opaque payload the recipient must act on (e.g. sign)
26
+ * @type {object}
27
+ * @memberof FlowFeeClaimStep
28
+ */
29
+ data: object;
30
+ /**
31
+ * Identifier for the step, echoed back when submitting its signature
32
+ * @type {string}
33
+ * @memberof FlowFeeClaimStep
34
+ */
35
+ id: string;
36
+ /**
37
+ * The type of step, such as a signature request
38
+ * @type {string}
39
+ * @memberof FlowFeeClaimStep
40
+ */
41
+ type: string;
42
+ }
43
+ export declare function FlowFeeClaimStepFromJSON(json: any): FlowFeeClaimStep;
44
+ export declare function FlowFeeClaimStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimStep;
45
+ export declare function FlowFeeClaimStepToJSON(value?: FlowFeeClaimStep | null): any;
@@ -0,0 +1,43 @@
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 FlowFeeClaimStepFromJSON(json) {
15
+ return FlowFeeClaimStepFromJSONTyped(json);
16
+ }
17
+ function FlowFeeClaimStepFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'action': json['action'],
23
+ 'data': json['data'],
24
+ 'id': json['id'],
25
+ 'type': json['type'],
26
+ };
27
+ }
28
+ function FlowFeeClaimStepToJSON(value) {
29
+ if (value === undefined) {
30
+ return undefined;
31
+ }
32
+ if (value === null) {
33
+ return null;
34
+ }
35
+ return {
36
+ 'action': value.action,
37
+ 'data': value.data,
38
+ 'id': value.id,
39
+ 'type': value.type,
40
+ };
41
+ }
42
+
43
+ export { FlowFeeClaimStepFromJSON, FlowFeeClaimStepFromJSONTyped, FlowFeeClaimStepToJSON };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var FlowFeeClaimSignature = require('./FlowFeeClaimSignature.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowFeeClaimSubmitRequestFromJSON(json) {
9
+ return FlowFeeClaimSubmitRequestFromJSONTyped(json);
10
+ }
11
+ function FlowFeeClaimSubmitRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'requestId': json['requestId'],
17
+ 'signatures': (json['signatures'].map(FlowFeeClaimSignature.FlowFeeClaimSignatureFromJSON)),
18
+ };
19
+ }
20
+ function FlowFeeClaimSubmitRequestToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'requestId': value.requestId,
29
+ 'signatures': (value.signatures.map(FlowFeeClaimSignature.FlowFeeClaimSignatureToJSON)),
30
+ };
31
+ }
32
+
33
+ exports.FlowFeeClaimSubmitRequestFromJSON = FlowFeeClaimSubmitRequestFromJSON;
34
+ exports.FlowFeeClaimSubmitRequestFromJSONTyped = FlowFeeClaimSubmitRequestFromJSONTyped;
35
+ exports.FlowFeeClaimSubmitRequestToJSON = FlowFeeClaimSubmitRequestToJSON;
@@ -0,0 +1,34 @@
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 { FlowFeeClaimSignature } from './FlowFeeClaimSignature';
13
+ /**
14
+ * Submit the signatures for a previously initiated claim. The backend resolves the provider(s) from the requestId and executes the claim(s).
15
+ * @export
16
+ * @interface FlowFeeClaimSubmitRequest
17
+ */
18
+ export interface FlowFeeClaimSubmitRequest {
19
+ /**
20
+ * The requestId returned when the claim was initiated
21
+ * @type {string}
22
+ * @memberof FlowFeeClaimSubmitRequest
23
+ */
24
+ requestId: string;
25
+ /**
26
+ * One signature per step returned by the claim initiation
27
+ * @type {Array<FlowFeeClaimSignature>}
28
+ * @memberof FlowFeeClaimSubmitRequest
29
+ */
30
+ signatures: Array<FlowFeeClaimSignature>;
31
+ }
32
+ export declare function FlowFeeClaimSubmitRequestFromJSON(json: any): FlowFeeClaimSubmitRequest;
33
+ export declare function FlowFeeClaimSubmitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimSubmitRequest;
34
+ export declare function FlowFeeClaimSubmitRequestToJSON(value?: FlowFeeClaimSubmitRequest | null): any;
@@ -0,0 +1,29 @@
1
+ import { FlowFeeClaimSignatureFromJSON, FlowFeeClaimSignatureToJSON } from './FlowFeeClaimSignature.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowFeeClaimSubmitRequestFromJSON(json) {
5
+ return FlowFeeClaimSubmitRequestFromJSONTyped(json);
6
+ }
7
+ function FlowFeeClaimSubmitRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'requestId': json['requestId'],
13
+ 'signatures': (json['signatures'].map(FlowFeeClaimSignatureFromJSON)),
14
+ };
15
+ }
16
+ function FlowFeeClaimSubmitRequestToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'requestId': value.requestId,
25
+ 'signatures': (value.signatures.map(FlowFeeClaimSignatureToJSON)),
26
+ };
27
+ }
28
+
29
+ export { FlowFeeClaimSubmitRequestFromJSON, FlowFeeClaimSubmitRequestFromJSONTyped, FlowFeeClaimSubmitRequestToJSON };