Skip to content

Commit f68c934

Browse files
authored
Update OpenAPI schema (#228)
* Update OpenAPI schema * Update package version --------- Co-authored-by: Kiln Bot <[email protected]>
1 parent 52d722b commit f68c934

File tree

2 files changed

+128
-1
lines changed

2 files changed

+128
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kilnfi/sdk",
3-
"version": "4.2.3",
3+
"version": "4.2.4",
44
"autor": "Kiln <[email protected]> (https://kiln.fi)",
55
"license": "BUSL-1.1",
66
"description": "JavaScript sdk for Kiln API",

src/openapi/schema.ts

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7707,6 +7707,26 @@ export interface paths {
77077707
patch?: never;
77087708
trace?: never;
77097709
};
7710+
"/trx/operations": {
7711+
parameters: {
7712+
query?: never;
7713+
header?: never;
7714+
path?: never;
7715+
cookie?: never;
7716+
};
7717+
/**
7718+
* Operations
7719+
* @description Get the operations of TRX stakes.
7720+
*/
7721+
get: operations["getTrxOperations"];
7722+
put?: never;
7723+
post?: never;
7724+
delete?: never;
7725+
options?: never;
7726+
head?: never;
7727+
patch?: never;
7728+
trace?: never;
7729+
};
77107730
"/trx/transaction/stake": {
77117731
parameters: {
77127732
query?: never;
@@ -36972,6 +36992,62 @@ export interface components {
3697236992
*/
3697336993
rewards_usd?: number;
3697436994
};
36995+
TRXOperations: {
36996+
/**
36997+
* @description Transaction id
36998+
* @example 2e2127d3697df687b73367c1877fbb3e336d85d5068b822ba9c78a020b00bd88
36999+
*/
37000+
tx_id: string;
37001+
/**
37002+
* @description Block number of the event
37003+
* @example 15828207
37004+
*/
37005+
block_number: number;
37006+
/**
37007+
* @description Operation type
37008+
* @example FreezeBalanceV2Contract
37009+
*/
37010+
type: string;
37011+
/**
37012+
* @description Wallet address
37013+
* @example TAERHY5gyzDRmAaeqqa6C4Fuyc9HLnnHx7
37014+
*/
37015+
wallet: string;
37016+
/** @description Votes */
37017+
votes: {
37018+
/**
37019+
* @description super representative address
37020+
* @example TQzd66b9EFVHJfZK5AmiVhBjtJvXGeSPPZ
37021+
*/
37022+
address: string;
37023+
/**
37024+
* @description Vote count
37025+
* @example 4
37026+
*/
37027+
count: string;
37028+
}[];
37029+
/**
37030+
* @description Frozen TRX in sun
37031+
* @example 1000000
37032+
*/
37033+
frozen_balance: string;
37034+
/**
37035+
* @description Unfreeze TRX in sun
37036+
* @example 1000000
37037+
*/
37038+
unfreeze_balance: string;
37039+
/**
37040+
* @description Resource type
37041+
* @example BANDWIDTH
37042+
* @enum {string}
37043+
*/
37044+
resource: "BANDWIDTH" | "ENERGY";
37045+
/**
37046+
* @description Operation timestamp (RFC3339 format)
37047+
* @example 2025-05-30T11:59:01+00:00
37048+
*/
37049+
timestamp: string;
37050+
};
3697537051
};
3697637052
responses: never;
3697737053
parameters: {
@@ -57202,6 +57278,57 @@ export interface operations {
5720257278
};
5720357279
};
5720457280
};
57281+
getTrxOperations: {
57282+
parameters: {
57283+
query?: {
57284+
wallets?: components["parameters"]["TRXWalletsParam"];
57285+
/** @description Comma-separated list of Kiln accounts identifiers */
57286+
accounts?: components["parameters"]["AccountsParam"];
57287+
/** @description Get data from this date (YYYY-MM-DD) */
57288+
start_date?: components["parameters"]["StartDateParam"];
57289+
/** @description Get data to this date (YYYY-MM-DD) */
57290+
end_date?: components["parameters"]["EndDateParam"];
57291+
};
57292+
header?: never;
57293+
path?: never;
57294+
cookie?: never;
57295+
};
57296+
requestBody?: never;
57297+
responses: {
57298+
/** @description Successful operation */
57299+
200: {
57300+
headers: {
57301+
[name: string]: unknown;
57302+
};
57303+
content: {
57304+
"application/json; charset=utf-8": {
57305+
data: components["schemas"]["TRXOperations"][];
57306+
};
57307+
};
57308+
};
57309+
/** @description Invalid parameters */
57310+
400: {
57311+
headers: {
57312+
[name: string]: unknown;
57313+
};
57314+
content?: never;
57315+
};
57316+
/** @description Unauthorized */
57317+
401: {
57318+
headers: {
57319+
[name: string]: unknown;
57320+
};
57321+
content?: never;
57322+
};
57323+
/** @description Internal server error */
57324+
500: {
57325+
headers: {
57326+
[name: string]: unknown;
57327+
};
57328+
content?: never;
57329+
};
57330+
};
57331+
};
5720557332
postTrxStakeTx: {
5720657333
parameters: {
5720757334
query?: never;

0 commit comments

Comments
 (0)