Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OpenAPI schema #153

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <support@kiln.fi> (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