Skip to content

Commit

Permalink
Merge pull request #40 from reservoirprotocol/chore/update-api-types
Browse files Browse the repository at this point in the history
Chore/update api types
  • Loading branch information
pedromcunha authored Feb 29, 2024
2 parents 075a42e + ade63ae commit b85b46e
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/slimy-windows-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@reservoir0x/relay-sdk': patch
---

Sync sdk types with api
65 changes: 60 additions & 5 deletions packages/sdk/src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export interface paths {
enabled?: boolean;
rebalancePercentage?: string | null;
bufferPercentage?: string | null;
optimismPortal?: string | null;
l1CrossDomainMessenger?: string | null;
l2OutputOracle?: string | null;
})[];
};
};
Expand Down Expand Up @@ -95,6 +98,7 @@ export interface paths {
wsRpcUrl: string;
targetBalance: string;
capacityPerRequest: string;
partialCapacityPerRequestAmount: string;
feeBpsPrice?: string;
stack?: string;
httpRpcUrlPublic: string;
Expand All @@ -103,7 +107,10 @@ export interface paths {
explorerName: string;
displayName: string;
depositAddress?: string;
baseChainId?: number;
baseChainId: number;
optimismPortal?: string;
l1CrossDomainMessenger?: string;
l2OutputOracle?: string;
rebalancePercentage?: string;
bufferPercentage?: string;
};
Expand Down Expand Up @@ -161,6 +168,7 @@ export interface paths {
wsRpcUrl?: string;
targetBalance?: string;
capacityPerRequest?: string;
partialCapacityPerRequestAmount?: string;
feeBpsPrice?: string;
stack?: string;
httpRpcUrlPublic?: string;
Expand All @@ -169,6 +177,10 @@ export interface paths {
explorerName?: string;
displayName?: string;
depositAddress?: string;
baseChainId?: number;
optimismPortal?: string;
l1CrossDomainMessenger?: string;
l2OutputOracle?: string;
rebalancePercentage?: string;
bufferPercentage?: string;
};
Expand Down Expand Up @@ -217,11 +229,12 @@ export interface paths {
"x-admin-api-key": string;
};
};
requestBody: {
requestBody?: {
content: {
"application/json": {
chainId?: number;
enabled: boolean;
enabled?: boolean;
partialDisable?: boolean;
};
};
};
Expand Down Expand Up @@ -289,6 +302,7 @@ export interface paths {
data?: string;
}[];
source?: string;
allowSplitRouting?: boolean;
};
};
};
Expand Down Expand Up @@ -317,7 +331,10 @@ export interface paths {
relayerGas?: string;
relayerService?: string;
};
timeEstimate?: number;
breakdown?: {
value?: string;
timeEstimate?: number;
}[];
balances?: {
userBalance?: string;
requiredToSolve?: string;
Expand Down Expand Up @@ -407,6 +424,7 @@ export interface paths {
"application/json": {
requestId?: string;
shortRequestId?: string;
currency?: string;
price?: string;
relayerFee?: string;
depositGasFee?: string;
Expand All @@ -431,7 +449,6 @@ export interface paths {
"application/json": {
request?: Record<string, never>;
signature?: string;
tx?: string;
};
};
};
Expand Down Expand Up @@ -488,6 +505,9 @@ export interface paths {
fixed?: string;
price?: string;
};
externalActions?: {
price?: string;
}[];
inTxs?: {
fee?: string;
data?: {
Expand Down Expand Up @@ -628,6 +648,41 @@ export interface paths {
};
};
};
"/admin/tx-confirmation-delay": {
post: {
parameters: {
header: {
"x-admin-api-key": string;
};
};
requestBody?: {
content: {
"application/json": {
delay?: number;
threshold?: number;
};
};
};
responses: {
/** @description Default Response */
200: {
content: {
"application/json": {
message?: string;
};
};
};
/** @description Default Response */
401: {
content: {
"application/json": {
message?: string;
};
};
};
};
};
};
}

export type webhooks = Record<string, never>;
Expand Down

0 comments on commit b85b46e

Please sign in to comment.