@cleave-protocol/ai-sdk 0.1.0 → 0.1.1

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/index.d.cts CHANGED
@@ -66,5 +66,18 @@ declare function findToken(options?: CleaveToolsOptions): Tool<FindTokenInput, C
66
66
  declare function getGas(options?: CleaveToolsOptions): Tool<GetGasInput, CleaveResult>;
67
67
  declare function cleaveTools(options?: CleaveToolsOptions): CleaveTools;
68
68
 
69
- export { CHAIN_IDS, CleaveApiError, DEFAULT_BASE_URL, DEFAULT_TIMEOUT_MS, cleaveTools, findToken, getGas, planSwap, trackSwap };
70
- export type { CleaveResult, CleaveTools, CleaveToolsOptions, FindTokenInput, GetGasInput, PlanSwapInput, TrackSwapInput };
69
+ type CheckRule = "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "G1" | "G2" | "G3" | "G4";
70
+ type CheckResult = {
71
+ ok: true;
72
+ } | {
73
+ ok: false;
74
+ rule: CheckRule;
75
+ message: string;
76
+ };
77
+ declare function checkPlanSwap(request: PlanSwapInput, body: Record<string, unknown>): CheckResult;
78
+ declare function checkGetGas(request: GetGasInput, body: Record<string, unknown>, nowSec?: number): CheckResult;
79
+ declare function screenPlanSwap(request: PlanSwapInput, body: Record<string, unknown>): Record<string, unknown>;
80
+ declare function screenGetGas(request: GetGasInput, body: Record<string, unknown>, nowSec?: number): Record<string, unknown>;
81
+
82
+ export { CHAIN_IDS, CleaveApiError, DEFAULT_BASE_URL, DEFAULT_TIMEOUT_MS, checkGetGas, checkPlanSwap, cleaveTools, findToken, getGas, planSwap, screenGetGas, screenPlanSwap, trackSwap };
83
+ export type { CheckResult, CheckRule, CleaveResult, CleaveTools, CleaveToolsOptions, FindTokenInput, GetGasInput, PlanSwapInput, TrackSwapInput };
package/dist/index.d.ts CHANGED
@@ -66,5 +66,18 @@ declare function findToken(options?: CleaveToolsOptions): Tool<FindTokenInput, C
66
66
  declare function getGas(options?: CleaveToolsOptions): Tool<GetGasInput, CleaveResult>;
67
67
  declare function cleaveTools(options?: CleaveToolsOptions): CleaveTools;
68
68
 
69
- export { CHAIN_IDS, CleaveApiError, DEFAULT_BASE_URL, DEFAULT_TIMEOUT_MS, cleaveTools, findToken, getGas, planSwap, trackSwap };
70
- export type { CleaveResult, CleaveTools, CleaveToolsOptions, FindTokenInput, GetGasInput, PlanSwapInput, TrackSwapInput };
69
+ type CheckRule = "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "G1" | "G2" | "G3" | "G4";
70
+ type CheckResult = {
71
+ ok: true;
72
+ } | {
73
+ ok: false;
74
+ rule: CheckRule;
75
+ message: string;
76
+ };
77
+ declare function checkPlanSwap(request: PlanSwapInput, body: Record<string, unknown>): CheckResult;
78
+ declare function checkGetGas(request: GetGasInput, body: Record<string, unknown>, nowSec?: number): CheckResult;
79
+ declare function screenPlanSwap(request: PlanSwapInput, body: Record<string, unknown>): Record<string, unknown>;
80
+ declare function screenGetGas(request: GetGasInput, body: Record<string, unknown>, nowSec?: number): Record<string, unknown>;
81
+
82
+ export { CHAIN_IDS, CleaveApiError, DEFAULT_BASE_URL, DEFAULT_TIMEOUT_MS, checkGetGas, checkPlanSwap, cleaveTools, findToken, getGas, planSwap, screenGetGas, screenPlanSwap, trackSwap };
83
+ export type { CheckResult, CheckRule, CleaveResult, CleaveTools, CleaveToolsOptions, FindTokenInput, GetGasInput, PlanSwapInput, TrackSwapInput };