Skip to content

Commit 3dad37f

Browse files
Merge pull request #19 from aurora-is-near/create-pull-request/patch
feat: update API Client
2 parents 0431cad + 9862cbe commit 3dad37f

File tree

3 files changed

+115
-12
lines changed

3 files changed

+115
-12
lines changed

src/generated/clients/auroraCloudConsoleApi/client.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,15 @@ export interface AuroraCloudConsoleApiMethods {
285285
data?: null;
286286
};
287287
};
288+
repair: {
289+
response: NonNullable<operations['repair']['responses']['200']>['content']['application/json'];
290+
data: NonNullable<operations['repair']['requestBody']>['content']['application/json'];
291+
options: {
292+
params: operations['repair']['parameters']['path'];
293+
query?: null;
294+
data: AuroraCloudConsoleApiMethods['repair']['data'];
295+
};
296+
};
288297
};
289298

290299
export type AuroraCloudConsoleApiRequest = <T extends keyof AuroraCloudConsoleApiMethods>(
@@ -327,6 +336,7 @@ export type AuroraCloudConsoleApiClient = {
327336
removeForwarderTokens: (options: AuroraCloudConsoleApiMethods['removeForwarderTokens']['options']) => Promise<AuroraCloudConsoleApiMethods['removeForwarderTokens']['response']>;
328337
updateForwarderTokens: (options: AuroraCloudConsoleApiMethods['updateForwarderTokens']['options']) => Promise<AuroraCloudConsoleApiMethods['updateForwarderTokens']['response']>;
329338
healthcheck: (options: AuroraCloudConsoleApiMethods['healthcheck']['options']) => Promise<AuroraCloudConsoleApiMethods['healthcheck']['response']>;
339+
repair: (options: AuroraCloudConsoleApiMethods['repair']['options']) => Promise<AuroraCloudConsoleApiMethods['repair']['response']>;
330340
}
331341

332342
export const getOperations = (request: AuroraCloudConsoleApiRequest): AuroraCloudConsoleApiClient => ({
@@ -636,4 +646,13 @@ export const getOperations = (request: AuroraCloudConsoleApiRequest): AuroraClou
636646
secure: true,
637647
}, options) as Promise<AuroraCloudConsoleApiMethods['healthcheck']['response']>;
638648
},
649+
async repair(
650+
options: AuroraCloudConsoleApiMethods['repair']['options']
651+
): Promise<AuroraCloudConsoleApiMethods['repair']['response']> {
652+
return request({
653+
endpoint: '/api/silos/{id}/repair',
654+
method: 'post',
655+
secure: true,
656+
}, options) as Promise<AuroraCloudConsoleApiMethods['repair']['response']>;
657+
},
639658
});

src/generated/clients/auroraCloudConsoleApi/types.ts

Lines changed: 95 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,13 @@ export interface paths {
231231
*/
232232
get: operations["healthcheck"];
233233
};
234+
"/api/silos/{id}/repair": {
235+
/**
236+
* Perform various checks and, if necessary, transactions to repair a silo
237+
* @description **Required scopes:** `silos:write`
238+
*/
239+
post: operations["repair"];
240+
};
234241
}
235242

236243
export type webhooks = Record<string, never>;
@@ -514,8 +521,9 @@ export interface operations {
514521
engineVersion: string;
515522
genesis: string;
516523
name: string;
517-
network: string;
518524
rpcUrl: string;
525+
intentsIntegrationStatus: string;
526+
trisolarisIntegrationStatus: string;
519527
nativeToken: {
520528
symbol: string;
521529
name: string | null;
@@ -550,8 +558,9 @@ export interface operations {
550558
engineVersion: string;
551559
genesis: string;
552560
name: string;
553-
network: string;
554561
rpcUrl: string;
562+
intentsIntegrationStatus: string;
563+
trisolarisIntegrationStatus: string;
555564
nativeToken: {
556565
symbol: string;
557566
name: string | null;
@@ -585,6 +594,7 @@ export interface operations {
585594
symbol: string;
586595
decimals: number;
587596
aurora_address: string | null;
597+
silo_address: string | null;
588598
near_address: string | null;
589599
ethereum_address: string | null;
590600
iconUrl: string | null;
@@ -926,7 +936,7 @@ export interface operations {
926936
content: {
927937
"application/json": {
928938
/** @enum {string} */
929-
status: "PENDING" | "SUCCESSFUL";
939+
status: "PENDING" | "SUCCESSFUL" | "FAILED";
930940
isEnabled: boolean;
931941
/** @enum {string} */
932942
action: "MAKE_TRANSACTION" | "DEPLOY_CONTRACT";
@@ -961,7 +971,7 @@ export interface operations {
961971
content: {
962972
"application/json": {
963973
/** @enum {string} */
964-
status: "PENDING" | "SUCCESSFUL";
974+
status: "PENDING" | "SUCCESSFUL" | "FAILED";
965975
address: string;
966976
/** @enum {string} */
967977
action: "MAKE_TRANSACTION" | "DEPLOY_CONTRACT";
@@ -996,7 +1006,7 @@ export interface operations {
9961006
content: {
9971007
"application/json": {
9981008
/** @enum {string} */
999-
status: "PENDING" | "SUCCESSFUL";
1009+
status: "PENDING" | "SUCCESSFUL" | "FAILED";
10001010
address: string;
10011011
/** @enum {string} */
10021012
action: "MAKE_TRANSACTION" | "DEPLOY_CONTRACT";
@@ -1323,18 +1333,92 @@ export interface operations {
13231333
"application/json": {
13241334
/** @enum {string} */
13251335
networkStatus: "ok" | "invalid-network" | "stalled";
1326-
defaultTokensDeployed: {
1327-
NEAR: boolean;
1328-
USDt: boolean;
1329-
USDC: boolean;
1330-
AURORA: boolean;
1336+
defaultTokens: {
1337+
NEAR: {
1338+
isContractDeployed: boolean;
1339+
storageBalance: {
1340+
total: string;
1341+
available: string;
1342+
} | null;
1343+
};
1344+
USDt: {
1345+
isContractDeployed: boolean;
1346+
storageBalance: {
1347+
total: string;
1348+
available: string;
1349+
} | null;
1350+
};
1351+
USDC: {
1352+
isContractDeployed: boolean;
1353+
storageBalance: {
1354+
total: string;
1355+
available: string;
1356+
} | null;
1357+
};
1358+
AURORA: {
1359+
isContractDeployed: boolean;
1360+
storageBalance: {
1361+
total: string;
1362+
available: string;
1363+
} | null;
1364+
};
13311365
};
1332-
bridgedTokensDeployed: {
1366+
bridgedTokens: {
13331367
[key: string]: unknown;
13341368
} | null;
13351369
};
13361370
};
13371371
};
13381372
};
13391373
};
1374+
/**
1375+
* Perform various checks and, if necessary, transactions to repair a silo
1376+
* @description **Required scopes:** `silos:write`
1377+
*/
1378+
repair: {
1379+
parameters: {
1380+
path: {
1381+
id: number;
1382+
};
1383+
};
1384+
/** @description Body */
1385+
requestBody?: {
1386+
content: {
1387+
"application/json": Record<string, never>;
1388+
};
1389+
};
1390+
responses: {
1391+
/** @description 200 */
1392+
200: {
1393+
content: {
1394+
"application/json": {
1395+
/** @enum {string} */
1396+
status: "ok" | "skipped";
1397+
initialisation: ({
1398+
/** @enum {string} */
1399+
defaultTokensDeployed: "PENDING" | "SUCCESSFUL" | "FAILED";
1400+
/** @enum {string} */
1401+
baseTokenSet: "PENDING" | "SUCCESSFUL" | "FAILED";
1402+
isSiloActive: boolean;
1403+
}) | null;
1404+
pendingTransactions: {
1405+
numberOfPendingTransactions: number;
1406+
numberOfPendingTransactionsResolved: number;
1407+
} | null;
1408+
pendingBridgedTokens: ({
1409+
numberOfRequests: number;
1410+
numberOfRequestsResolved: number;
1411+
numberOfPendingDeployments: number;
1412+
numberOfPendingDeploymentsResolved: number;
1413+
tokens: ({
1414+
symbol: string;
1415+
/** @enum {string} */
1416+
status: "PENDING" | "SUCCESSFUL" | "FAILED";
1417+
})[];
1418+
}) | null;
1419+
};
1420+
};
1421+
};
1422+
};
1423+
};
13401424
}

src/generated/clients/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export {
2121
export const createAuroraCloudConsoleApiClient = (
2222
options: OpenApiClientOptions,
2323
): AuroraCloudConsoleApiClient => {
24-
const request = getRequestFunction('Aurora Cloud Console API', '1.10.0', options);
24+
const request = getRequestFunction('Aurora Cloud Console API', '1.11.0', options);
2525

2626
return getAuroraCloudConsoleApiOperations(request);
2727
};

0 commit comments

Comments
 (0)