@okutrade/account-api
Version:
TypeScript client for OKU Account API using Connect-ES
104 lines (103 loc) • 2.78 kB
TypeScript
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file gfxcafe/oku/account/v1/telemetry.proto.
*/
export declare const file_gfxcafe_oku_account_v1_telemetry: GenFile;
/**
* EntryRequest contains telemetry data
*
* @generated from message gfxcafe.oku.account.v1.EntryRequest
*/
export type EntryRequest = Message<"gfxcafe.oku.account.v1.EntryRequest"> & {
/**
* Chain ID where the transaction occurred
*
* @generated from field: int32 chain_id = 1;
*/
chainId: number;
/**
* Transaction hash
*
* @generated from field: string transaction_hash = 2;
*/
transactionHash: string;
/**
* Sender address
*
* @generated from field: string sender = 3;
*/
sender: string;
/**
* Current page in the UI
*
* @generated from field: string current_page = 4;
*/
currentPage: string;
/**
* Feature being used (e.g., "market_order", "swap", "router_swap")
*
* @generated from field: string feature = 5;
*/
feature: string;
/**
* Extra data as key-value pairs
*
* @generated from field: map<string, string> extra_data = 6;
*/
extraData: {
[key: string]: string;
};
/**
* Quote ID if applicable
*
* @generated from field: string quote_id = 7;
*/
quoteId: string;
};
/**
* Describes the message gfxcafe.oku.account.v1.EntryRequest.
* Use `create(EntryRequestSchema)` to create a new message.
*/
export declare const EntryRequestSchema: GenMessage<EntryRequest>;
/**
* EntryResponse indicates success
*
* @generated from message gfxcafe.oku.account.v1.EntryResponse
*/
export type EntryResponse = Message<"gfxcafe.oku.account.v1.EntryResponse"> & {
/**
* Whether the entry was successfully recorded
*
* @generated from field: bool success = 1;
*/
success: boolean;
/**
* Optional message
*
* @generated from field: string message = 2;
*/
message: string;
};
/**
* Describes the message gfxcafe.oku.account.v1.EntryResponse.
* Use `create(EntryResponseSchema)` to create a new message.
*/
export declare const EntryResponseSchema: GenMessage<EntryResponse>;
/**
* TelemetryService collects telemetry data
*
* @generated from service gfxcafe.oku.account.v1.TelemetryService
*/
export declare const TelemetryService: GenService<{
/**
* Submit a telemetry entry (/telemetry/entry)
*
* @generated from rpc gfxcafe.oku.account.v1.TelemetryService.Entry
*/
entry: {
methodKind: "unary";
input: typeof EntryRequestSchema;
output: typeof EntryResponseSchema;
};
}>;