@dynamic-labs/sdk-api 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/apis/SDKApi.cjs +7 -6
- package/src/apis/SDKApi.d.ts +6 -6
- package/src/apis/SDKApi.js +7 -6
- package/src/models/SponsorSVMTransactionRequest.cjs +4 -12
- package/src/models/SponsorSVMTransactionRequest.d.ts +6 -0
- package/src/models/SponsorSVMTransactionRequest.js +4 -12
- package/src/models/UnprocessableEntityErrorCode.cjs +2 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +3 -1
- package/src/models/UnprocessableEntityErrorCode.js +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -11972,7 +11972,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11972
11972
|
await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
|
|
11973
11973
|
}
|
|
11974
11974
|
/**
|
|
11975
|
-
*
|
|
11975
|
+
* Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now — no reward campaign for this vault, or every attributable token is already fully claimed.
|
|
11976
11976
|
* Build a vault reward-claim signing payload
|
|
11977
11977
|
*/
|
|
11978
11978
|
async yieldVaultClaimRaw(requestParameters, initOverrides) {
|
|
@@ -11995,14 +11995,15 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11995
11995
|
query: queryParameters,
|
|
11996
11996
|
body: YieldVaultClaimRequest.YieldVaultClaimRequestToJSON(requestParameters.yieldVaultClaimRequest),
|
|
11997
11997
|
}, initOverrides);
|
|
11998
|
-
return new runtime.
|
|
11998
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => YieldVaultActionResponse.YieldVaultActionResponseFromJSON(jsonValue));
|
|
11999
11999
|
}
|
|
12000
12000
|
/**
|
|
12001
|
-
*
|
|
12001
|
+
* Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now — no reward campaign for this vault, or every attributable token is already fully claimed.
|
|
12002
12002
|
* Build a vault reward-claim signing payload
|
|
12003
12003
|
*/
|
|
12004
12004
|
async yieldVaultClaim(requestParameters, initOverrides) {
|
|
12005
|
-
await this.yieldVaultClaimRaw(requestParameters, initOverrides);
|
|
12005
|
+
const response = await this.yieldVaultClaimRaw(requestParameters, initOverrides);
|
|
12006
|
+
return await response.value();
|
|
12006
12007
|
}
|
|
12007
12008
|
/**
|
|
12008
12009
|
* Options call for this endpoint
|
|
@@ -12169,7 +12170,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
12169
12170
|
await this.yieldVaultRewardsOptionsRaw(requestParameters, initOverrides);
|
|
12170
12171
|
}
|
|
12171
12172
|
/**
|
|
12172
|
-
* Builds an unsigned
|
|
12173
|
+
* Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
|
|
12173
12174
|
* Build a vault withdraw signing payload
|
|
12174
12175
|
*/
|
|
12175
12176
|
async yieldVaultWithdrawRaw(requestParameters, initOverrides) {
|
|
@@ -12195,7 +12196,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
12195
12196
|
return new runtime.JSONApiResponse(response, (jsonValue) => YieldVaultActionResponse.YieldVaultActionResponseFromJSON(jsonValue));
|
|
12196
12197
|
}
|
|
12197
12198
|
/**
|
|
12198
|
-
* Builds an unsigned
|
|
12199
|
+
* Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
|
|
12199
12200
|
* Build a vault withdraw signing payload
|
|
12200
12201
|
*/
|
|
12201
12202
|
async yieldVaultWithdraw(requestParameters, initOverrides) {
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -5015,15 +5015,15 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
5015
5015
|
*/
|
|
5016
5016
|
walletsVerifyOptions(requestParameters: WalletsVerifyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5017
5017
|
/**
|
|
5018
|
-
*
|
|
5018
|
+
* Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now — no reward campaign for this vault, or every attributable token is already fully claimed.
|
|
5019
5019
|
* Build a vault reward-claim signing payload
|
|
5020
5020
|
*/
|
|
5021
|
-
yieldVaultClaimRaw(requestParameters: YieldVaultClaimOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
5021
|
+
yieldVaultClaimRaw(requestParameters: YieldVaultClaimOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<YieldVaultActionResponse>>;
|
|
5022
5022
|
/**
|
|
5023
|
-
*
|
|
5023
|
+
* Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now — no reward campaign for this vault, or every attributable token is already fully claimed.
|
|
5024
5024
|
* Build a vault reward-claim signing payload
|
|
5025
5025
|
*/
|
|
5026
|
-
yieldVaultClaim(requestParameters: YieldVaultClaimOperationRequest, initOverrides?: RequestInit): Promise<
|
|
5026
|
+
yieldVaultClaim(requestParameters: YieldVaultClaimOperationRequest, initOverrides?: RequestInit): Promise<YieldVaultActionResponse>;
|
|
5027
5027
|
/**
|
|
5028
5028
|
* Options call for this endpoint
|
|
5029
5029
|
*/
|
|
@@ -5075,12 +5075,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
5075
5075
|
*/
|
|
5076
5076
|
yieldVaultRewardsOptions(requestParameters: YieldVaultRewardsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5077
5077
|
/**
|
|
5078
|
-
* Builds an unsigned
|
|
5078
|
+
* Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
|
|
5079
5079
|
* Build a vault withdraw signing payload
|
|
5080
5080
|
*/
|
|
5081
5081
|
yieldVaultWithdrawRaw(requestParameters: YieldVaultWithdrawRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<YieldVaultActionResponse>>;
|
|
5082
5082
|
/**
|
|
5083
|
-
* Builds an unsigned
|
|
5083
|
+
* Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
|
|
5084
5084
|
* Build a vault withdraw signing payload
|
|
5085
5085
|
*/
|
|
5086
5086
|
yieldVaultWithdraw(requestParameters: YieldVaultWithdrawRequest, initOverrides?: RequestInit): Promise<YieldVaultActionResponse>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -11968,7 +11968,7 @@ class SDKApi extends BaseAPI {
|
|
|
11968
11968
|
await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
|
|
11969
11969
|
}
|
|
11970
11970
|
/**
|
|
11971
|
-
*
|
|
11971
|
+
* Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now — no reward campaign for this vault, or every attributable token is already fully claimed.
|
|
11972
11972
|
* Build a vault reward-claim signing payload
|
|
11973
11973
|
*/
|
|
11974
11974
|
async yieldVaultClaimRaw(requestParameters, initOverrides) {
|
|
@@ -11991,14 +11991,15 @@ class SDKApi extends BaseAPI {
|
|
|
11991
11991
|
query: queryParameters,
|
|
11992
11992
|
body: YieldVaultClaimRequestToJSON(requestParameters.yieldVaultClaimRequest),
|
|
11993
11993
|
}, initOverrides);
|
|
11994
|
-
return new
|
|
11994
|
+
return new JSONApiResponse(response, (jsonValue) => YieldVaultActionResponseFromJSON(jsonValue));
|
|
11995
11995
|
}
|
|
11996
11996
|
/**
|
|
11997
|
-
*
|
|
11997
|
+
* Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now — no reward campaign for this vault, or every attributable token is already fully claimed.
|
|
11998
11998
|
* Build a vault reward-claim signing payload
|
|
11999
11999
|
*/
|
|
12000
12000
|
async yieldVaultClaim(requestParameters, initOverrides) {
|
|
12001
|
-
await this.yieldVaultClaimRaw(requestParameters, initOverrides);
|
|
12001
|
+
const response = await this.yieldVaultClaimRaw(requestParameters, initOverrides);
|
|
12002
|
+
return await response.value();
|
|
12002
12003
|
}
|
|
12003
12004
|
/**
|
|
12004
12005
|
* Options call for this endpoint
|
|
@@ -12165,7 +12166,7 @@ class SDKApi extends BaseAPI {
|
|
|
12165
12166
|
await this.yieldVaultRewardsOptionsRaw(requestParameters, initOverrides);
|
|
12166
12167
|
}
|
|
12167
12168
|
/**
|
|
12168
|
-
* Builds an unsigned
|
|
12169
|
+
* Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
|
|
12169
12170
|
* Build a vault withdraw signing payload
|
|
12170
12171
|
*/
|
|
12171
12172
|
async yieldVaultWithdrawRaw(requestParameters, initOverrides) {
|
|
@@ -12191,7 +12192,7 @@ class SDKApi extends BaseAPI {
|
|
|
12191
12192
|
return new JSONApiResponse(response, (jsonValue) => YieldVaultActionResponseFromJSON(jsonValue));
|
|
12192
12193
|
}
|
|
12193
12194
|
/**
|
|
12194
|
-
* Builds an unsigned
|
|
12195
|
+
* Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
|
|
12195
12196
|
* Build a vault withdraw signing payload
|
|
12196
12197
|
*/
|
|
12197
12198
|
async yieldVaultWithdraw(requestParameters, initOverrides) {
|
|
@@ -2,19 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
5
7
|
/* 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
8
|
function SponsorSVMTransactionRequestFromJSON(json) {
|
|
19
9
|
return SponsorSVMTransactionRequestFromJSONTyped(json);
|
|
20
10
|
}
|
|
@@ -24,6 +14,7 @@ function SponsorSVMTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
14
|
}
|
|
25
15
|
return {
|
|
26
16
|
'transaction': json['transaction'],
|
|
17
|
+
'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
|
|
27
18
|
};
|
|
28
19
|
}
|
|
29
20
|
function SponsorSVMTransactionRequestToJSON(value) {
|
|
@@ -35,6 +26,7 @@ function SponsorSVMTransactionRequestToJSON(value) {
|
|
|
35
26
|
}
|
|
36
27
|
return {
|
|
37
28
|
'transaction': value.transaction,
|
|
29
|
+
'userId': value.userId,
|
|
38
30
|
};
|
|
39
31
|
}
|
|
40
32
|
|
|
@@ -21,6 +21,12 @@ export interface SponsorSVMTransactionRequest {
|
|
|
21
21
|
* @memberof SponsorSVMTransactionRequest
|
|
22
22
|
*/
|
|
23
23
|
transaction: string;
|
|
24
|
+
/**
|
|
25
|
+
* The end user this relay is sponsored for. Required for server-auth callers.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SponsorSVMTransactionRequest
|
|
28
|
+
*/
|
|
29
|
+
userId?: string;
|
|
24
30
|
}
|
|
25
31
|
export declare function SponsorSVMTransactionRequestFromJSON(json: any): SponsorSVMTransactionRequest;
|
|
26
32
|
export declare function SponsorSVMTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SponsorSVMTransactionRequest;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
1
3
|
/* 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
4
|
function SponsorSVMTransactionRequestFromJSON(json) {
|
|
15
5
|
return SponsorSVMTransactionRequestFromJSONTyped(json);
|
|
16
6
|
}
|
|
@@ -20,6 +10,7 @@ function SponsorSVMTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
10
|
}
|
|
21
11
|
return {
|
|
22
12
|
'transaction': json['transaction'],
|
|
13
|
+
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
23
14
|
};
|
|
24
15
|
}
|
|
25
16
|
function SponsorSVMTransactionRequestToJSON(value) {
|
|
@@ -31,6 +22,7 @@ function SponsorSVMTransactionRequestToJSON(value) {
|
|
|
31
22
|
}
|
|
32
23
|
return {
|
|
33
24
|
'transaction': value.transaction,
|
|
25
|
+
'userId': value.userId,
|
|
34
26
|
};
|
|
35
27
|
}
|
|
36
28
|
|
|
@@ -160,6 +160,8 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
160
160
|
UnprocessableEntityErrorCode["BroadcastRateLimited"] = "broadcast_rate_limited";
|
|
161
161
|
UnprocessableEntityErrorCode["BroadcastIdempotencyConflict"] = "broadcast_idempotency_conflict";
|
|
162
162
|
UnprocessableEntityErrorCode["BroadcastWalletIneligible"] = "broadcast_wallet_ineligible";
|
|
163
|
+
UnprocessableEntityErrorCode["BroadcastNotSubmitted"] = "broadcast_not_submitted";
|
|
164
|
+
UnprocessableEntityErrorCode["OfflineRecoveryCloudBackupConflict"] = "offline_recovery_cloud_backup_conflict";
|
|
163
165
|
})(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
|
|
164
166
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
165
167
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -152,7 +152,9 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
152
152
|
BroadcastOutcomeUnknown = "broadcast_outcome_unknown",
|
|
153
153
|
BroadcastRateLimited = "broadcast_rate_limited",
|
|
154
154
|
BroadcastIdempotencyConflict = "broadcast_idempotency_conflict",
|
|
155
|
-
BroadcastWalletIneligible = "broadcast_wallet_ineligible"
|
|
155
|
+
BroadcastWalletIneligible = "broadcast_wallet_ineligible",
|
|
156
|
+
BroadcastNotSubmitted = "broadcast_not_submitted",
|
|
157
|
+
OfflineRecoveryCloudBackupConflict = "offline_recovery_cloud_backup_conflict"
|
|
156
158
|
}
|
|
157
159
|
export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
|
|
158
160
|
export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
|
|
@@ -156,6 +156,8 @@ var UnprocessableEntityErrorCode;
|
|
|
156
156
|
UnprocessableEntityErrorCode["BroadcastRateLimited"] = "broadcast_rate_limited";
|
|
157
157
|
UnprocessableEntityErrorCode["BroadcastIdempotencyConflict"] = "broadcast_idempotency_conflict";
|
|
158
158
|
UnprocessableEntityErrorCode["BroadcastWalletIneligible"] = "broadcast_wallet_ineligible";
|
|
159
|
+
UnprocessableEntityErrorCode["BroadcastNotSubmitted"] = "broadcast_not_submitted";
|
|
160
|
+
UnprocessableEntityErrorCode["OfflineRecoveryCloudBackupConflict"] = "offline_recovery_cloud_backup_conflict";
|
|
159
161
|
})(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
|
|
160
162
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
161
163
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|