Skip to content

Commit

Permalink
Update OpenAPI schema (#153)
Browse files Browse the repository at this point in the history
* Update OpenAPI schema

* bump to 3.1.15

---------

Co-authored-by: Kiln Bot <[email protected]>
Co-authored-by: Martin Saldinger <[email protected]>
  • Loading branch information
3 people authored Nov 7, 2024
1 parent 292dd04 commit e3f137b
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kilnfi/sdk",
"version": "3.1.14",
"version": "3.1.15",
"autor": "Kiln <[email protected]> (https://kiln.fi)",
"license": "BUSL-1.1",
"description": "JavaScript sdk for Kiln API",
Expand Down
107 changes: 99 additions & 8 deletions src/openapi/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5140,6 +5140,26 @@ export interface paths {
patch?: never;
trace?: never;
};
"/v1/kava/balance": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Get balance
* @description Get balance of a Kava account
*/
post: operations["postKavaGetBalance"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/v1/kava/transaction/stake": {
parameters: {
query?: never;
Expand Down Expand Up @@ -25079,6 +25099,18 @@ export interface components {
* }
*/
KAVATxDecoding: Record<string, never>;
KAVAGetBalancePayload: {
/**
* @description Wallet address
* @example fetch1djqecw6nn5tydxq0shan7srv8j65clsf7vypl6
*/
address: string;
/**
* @description The denomination of the balance to query
* @example ukava
*/
denom: string;
};
FETStake: {
/**
* @description Public key of the validator
Expand Down Expand Up @@ -40027,7 +40059,7 @@ export interface operations {
};
responses: {
/** @description Successful operation */
201: {
200: {
headers: {
[name: string]: unknown;
};
Expand Down Expand Up @@ -41592,13 +41624,13 @@ export interface operations {
};
responses: {
/** @description Successful operation */
201: {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json; charset=utf-8": {
data?: {
data: {
/**
* @description The balance of the account
* @example 1000000
Expand Down Expand Up @@ -42342,6 +42374,65 @@ export interface operations {
};
};
};
postKavaGetBalance: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** @description Account to query */
requestBody: {
content: {
"application/json; charset=utf-8": components["schemas"]["KAVAGetBalancePayload"];
};
};
responses: {
/** @description Successful operation */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json; charset=utf-8": {
data: {
/**
* @description The balance of the account
* @example 1000000
*/
amount: string;
/**
* @description The denomination of the balance
* @example ukava
*/
denom: string;
};
};
};
};
/** @description Invalid parameters */
400: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description Unauthorized */
401: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description Internal server error */
500: {
headers: {
[name: string]: unknown;
};
content?: never;
};
};
};
postKavaStakeTx: {
parameters: {
query?: never;
Expand Down Expand Up @@ -43063,13 +43154,13 @@ export interface operations {
};
responses: {
/** @description Successful operation */
201: {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json; charset=utf-8": {
data?: {
data: {
/**
* @description The balance of the account
* @example 1000000
Expand Down Expand Up @@ -44548,7 +44639,7 @@ export interface operations {
};
responses: {
/** @description Successful operation */
201: {
200: {
headers: {
[name: string]: unknown;
};
Expand Down Expand Up @@ -45127,13 +45218,13 @@ export interface operations {
};
responses: {
/** @description Successful operation */
201: {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json; charset=utf-8": {
data?: {
data: {
/**
* @description The balance of the account
* @example 1000000
Expand Down

0 comments on commit e3f137b

Please sign in to comment.