x402-proxy 0.9.3 → 0.10.0

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.
@@ -1,59 +1,15 @@
1
- import { x402Client } from "@x402/fetch";
2
- //#region src/openclaw/tools.d.ts
3
- type ModelEntry = {
4
- provider: string;
5
- id: string;
6
- name: string;
7
- maxTokens: number;
8
- reasoning: boolean;
9
- input: string[];
10
- cost: {
11
- input: number;
12
- output: number;
13
- cacheRead: number;
14
- cacheWrite: number;
15
- };
16
- contextWindow: number;
17
- };
18
- //#endregion
1
+ import { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";
2
+ import * as openclaw_plugin_sdk0 from "openclaw/plugin-sdk";
3
+ import * as openclaw_plugin_sdk_core0 from "openclaw/plugin-sdk/core";
4
+
19
5
  //#region src/openclaw/plugin.d.ts
20
- type ProviderCatalogResult = {
21
- provider: {
22
- baseUrl: string;
23
- api?: string;
24
- authHeader?: boolean;
25
- models: Array<Omit<ModelEntry, "provider">>;
26
- };
27
- } | null;
28
- type OpenClawPluginApi = {
29
- pluginConfig?: Record<string, unknown>;
30
- logger: {
31
- info: (msg: string) => void;
32
- error: (msg: string) => void;
33
- };
34
- registerProvider: (provider: {
35
- id: string;
36
- label: string;
37
- auth: unknown[];
38
- catalog: {
39
- order?: "simple" | "profile" | "paired" | "late";
40
- run: (ctx: unknown) => Promise<ProviderCatalogResult>;
41
- };
42
- }) => void;
43
- registerTool: (tool: unknown) => void;
44
- registerCommand: (command: unknown) => void;
45
- registerService: (service: {
46
- id: string;
47
- start: () => Promise<void>;
48
- stop: () => Promise<void>;
49
- }) => void;
50
- registerHttpRoute: (params: {
51
- path: string;
52
- match: string;
53
- auth: string;
54
- handler: (req: unknown, res: unknown) => Promise<void>;
55
- }) => void;
56
- };
57
6
  declare function register(api: OpenClawPluginApi): void;
7
+ declare const _default: {
8
+ id: string;
9
+ name: string;
10
+ description: string;
11
+ configSchema: openclaw_plugin_sdk0.OpenClawPluginConfigSchema;
12
+ register: NonNullable<openclaw_plugin_sdk_core0.OpenClawPluginDefinition["register"]>;
13
+ } & Pick<openclaw_plugin_sdk_core0.OpenClawPluginDefinition, "kind">;
58
14
  //#endregion
59
- export { register };
15
+ export { _default as default, register };