@hightop/sdk 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AgentApiAccountResponse, type AgentApiBalancesResponse, type AgentApiBorrowRepayRequest, type AgentApiBorrowResponse, type AgentApiCapabilitiesResponse, type AgentApiConversionExecuteRequest, type AgentApiConversionQuoteRequest, type AgentApiConversionQuoteResponse, type AgentApiDeleverageRequest, type AgentApiEndpointKey, type AgentApiError, type AgentApiHttpMethod, type AgentApiOperationDetailQuery, type AgentApiOperationResponse, type AgentApiOperationsQuery, type AgentApiOperationsResponse, type AgentApiPathParamValue, type AgentApiRequestFor, type AgentApiResponseFor, type AgentApiSelfResponse, type AgentApiSelfUsageResponse, type AgentApiSimulateRequest, type AgentApiSimulateResponse, type AgentApiWriteResponse, type AgentApiX402PurchaseRequest, type AgentApiX402PurchaseResponse, type AgentApiX402QuoteRequest, type AgentApiX402QuoteResponse, type AgentApiX402SignRequest, type AgentApiX402SignResponse } from './generated/agent-api.js';
|
|
1
|
+
import { type AgentApiAccountResponse, type AgentApiBalancesResponse, type AgentApiBorrowRepayRequest, type AgentApiBorrowResponse, type AgentApiCapabilitiesResponse, type AgentApiConversionExecuteRequest, type AgentApiConversionQuoteRequest, type AgentApiConversionQuoteResponse, type AgentApiDeleverageRequest, type AgentApiEndpointKey, type AgentApiError, type AgentApiHttpMethod, type AgentApiOperationDetailQuery, type AgentApiOperationResponse, type AgentApiOperationsQuery, type AgentApiOperationsResponse, type AgentApiPathParamValue, type AgentApiRequestFor, type AgentApiResponseFor, type AgentApiSelfLimitsResponse, type AgentApiSelfResponse, type AgentApiSelfUsageResponse, type AgentApiSimulateRequest, type AgentApiSimulateResponse, type AgentApiWriteResponse, type AgentApiX402PurchaseRequest, type AgentApiX402PurchaseResponse, type AgentApiX402QuoteRequest, type AgentApiX402QuoteResponse, type AgentApiX402SignRequest, type AgentApiX402SignResponse } from './generated/agent-api.js';
|
|
2
2
|
type FetchLike = typeof fetch;
|
|
3
3
|
export type HightopAgentClientConfig = {
|
|
4
4
|
baseUrl?: string;
|
|
@@ -47,6 +47,7 @@ export declare class HightopAgentClient {
|
|
|
47
47
|
constructor(config: HightopAgentClientConfig);
|
|
48
48
|
readonly self: {
|
|
49
49
|
get: (options?: HightopAgentRequestOptions) => Promise<AgentApiSelfResponse>;
|
|
50
|
+
limits: (options?: HightopAgentRequestOptions) => Promise<AgentApiSelfLimitsResponse>;
|
|
50
51
|
usage: (options?: HightopAgentRequestOptions) => Promise<AgentApiSelfUsageResponse>;
|
|
51
52
|
};
|
|
52
53
|
readonly capabilities: {
|
package/dist/client.js
CHANGED
|
@@ -159,6 +159,7 @@ export class HightopAgentClient {
|
|
|
159
159
|
}
|
|
160
160
|
self = {
|
|
161
161
|
get: (options) => this.requestEndpoint('GET /v1/agent/self', undefined, options),
|
|
162
|
+
limits: (options) => this.requestEndpoint('GET /v1/agent/self/limits', undefined, options),
|
|
162
163
|
usage: (options) => this.requestEndpoint('GET /v1/agent/self/usage', undefined, options),
|
|
163
164
|
};
|
|
164
165
|
capabilities = {
|
|
@@ -809,7 +809,6 @@ export type AgentApiX402QuoteResponse = {
|
|
|
809
809
|
unsupported_details?: {
|
|
810
810
|
advertised_max_timeout_seconds: number;
|
|
811
811
|
min_supported_seconds: number;
|
|
812
|
-
max_supported_seconds: number;
|
|
813
812
|
};
|
|
814
813
|
};
|
|
815
814
|
export type AgentApiX402PurchaseRequest = {
|
|
@@ -1085,7 +1084,7 @@ export declare const agentApiEndpoints: readonly [{
|
|
|
1085
1084
|
readonly responseType: "AgentApiSelfLimitsResponse";
|
|
1086
1085
|
readonly idempotencyRequired: false;
|
|
1087
1086
|
readonly routeClass: "read";
|
|
1088
|
-
readonly description: "Return
|
|
1087
|
+
readonly description: "Return effective operation permissions, spend/swap limits, and current-period usage for the authenticated agent.";
|
|
1089
1088
|
}, {
|
|
1090
1089
|
readonly key: "GET /v1/agent/capabilities";
|
|
1091
1090
|
readonly method: "GET";
|
|
@@ -149,7 +149,7 @@ export const agentApiEndpoints = [
|
|
|
149
149
|
responseType: 'AgentApiSelfLimitsResponse',
|
|
150
150
|
idempotencyRequired: false,
|
|
151
151
|
routeClass: 'read',
|
|
152
|
-
description:
|
|
152
|
+
description: 'Return effective operation permissions, spend/swap limits, and current-period usage for the authenticated agent.',
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
key: 'GET /v1/agent/capabilities',
|