@avow-finance/spec 0.0.0-stage → 0.1.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.
- package/LICENSE +201 -0
- package/README.md +119 -2
- package/dist/agent-connect.d.ts +82 -0
- package/dist/agent-connect.d.ts.map +1 -0
- package/dist/agent-connect.js +91 -0
- package/dist/agent-connect.js.map +1 -0
- package/dist/agent-session.d.ts +791 -0
- package/dist/agent-session.d.ts.map +1 -0
- package/dist/agent-session.js +176 -0
- package/dist/agent-session.js.map +1 -0
- package/dist/ap2.d.ts +79 -0
- package/dist/ap2.d.ts.map +1 -0
- package/dist/ap2.js +151 -0
- package/dist/ap2.js.map +1 -0
- package/dist/api-request.d.ts +144 -0
- package/dist/api-request.d.ts.map +1 -0
- package/dist/api-request.js +246 -0
- package/dist/api-request.js.map +1 -0
- package/dist/api.d.ts +288 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +332 -0
- package/dist/api.js.map +1 -0
- package/dist/canonical.d.ts +22 -0
- package/dist/canonical.d.ts.map +1 -0
- package/dist/canonical.js +66 -0
- package/dist/canonical.js.map +1 -0
- package/dist/commitment-card.d.ts +78 -0
- package/dist/commitment-card.d.ts.map +1 -0
- package/dist/commitment-card.js +224 -0
- package/dist/commitment-card.js.map +1 -0
- package/dist/commitment.d.ts +185 -0
- package/dist/commitment.d.ts.map +1 -0
- package/dist/commitment.js +148 -0
- package/dist/commitment.js.map +1 -0
- package/dist/compute-offers.d.ts +128 -0
- package/dist/compute-offers.d.ts.map +1 -0
- package/dist/compute-offers.js +111 -0
- package/dist/compute-offers.js.map +1 -0
- package/dist/contest.d.ts +88 -0
- package/dist/contest.d.ts.map +1 -0
- package/dist/contest.js +131 -0
- package/dist/contest.js.map +1 -0
- package/dist/demo.d.ts +69 -0
- package/dist/demo.d.ts.map +1 -0
- package/dist/demo.js +152 -0
- package/dist/demo.js.map +1 -0
- package/dist/dependencies.d.ts +308 -0
- package/dist/dependencies.d.ts.map +1 -0
- package/dist/dependencies.js +133 -0
- package/dist/dependencies.js.map +1 -0
- package/dist/eip712.d.ts +1569 -0
- package/dist/eip712.d.ts.map +1 -0
- package/dist/eip712.js +550 -0
- package/dist/eip712.js.map +1 -0
- package/dist/elided-terms.d.ts +37 -0
- package/dist/elided-terms.d.ts.map +1 -0
- package/dist/elided-terms.js +48 -0
- package/dist/elided-terms.js.map +1 -0
- package/dist/erc8183.d.ts +78 -0
- package/dist/erc8183.d.ts.map +1 -0
- package/dist/erc8183.js +88 -0
- package/dist/erc8183.js.map +1 -0
- package/dist/facts.d.ts +70 -0
- package/dist/facts.d.ts.map +1 -0
- package/dist/facts.js +33 -0
- package/dist/facts.js.map +1 -0
- package/dist/gpu-reservation.d.ts +79 -0
- package/dist/gpu-reservation.d.ts.map +1 -0
- package/dist/gpu-reservation.js +135 -0
- package/dist/gpu-reservation.js.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/job-session.d.ts +981 -0
- package/dist/job-session.d.ts.map +1 -0
- package/dist/job-session.js +170 -0
- package/dist/job-session.js.map +1 -0
- package/dist/job-verification.d.ts +244 -0
- package/dist/job-verification.d.ts.map +1 -0
- package/dist/job-verification.js +89 -0
- package/dist/job-verification.js.map +1 -0
- package/dist/job-wording.d.ts +48 -0
- package/dist/job-wording.d.ts.map +1 -0
- package/dist/job-wording.js +134 -0
- package/dist/job-wording.js.map +1 -0
- package/dist/job.d.ts +117 -0
- package/dist/job.d.ts.map +1 -0
- package/dist/job.js +166 -0
- package/dist/job.js.map +1 -0
- package/dist/json-fields.d.ts +13 -0
- package/dist/json-fields.d.ts.map +1 -0
- package/dist/json-fields.js +30 -0
- package/dist/json-fields.js.map +1 -0
- package/dist/keychain.d.ts +51 -0
- package/dist/keychain.d.ts.map +1 -0
- package/dist/keychain.js +133 -0
- package/dist/keychain.js.map +1 -0
- package/dist/mailbox.d.ts +1650 -0
- package/dist/mailbox.d.ts.map +1 -0
- package/dist/mailbox.js +87 -0
- package/dist/mailbox.js.map +1 -0
- package/dist/mandate.d.ts +53 -0
- package/dist/mandate.d.ts.map +1 -0
- package/dist/mandate.js +97 -0
- package/dist/mandate.js.map +1 -0
- package/dist/networks.d.ts +18 -0
- package/dist/networks.d.ts.map +1 -0
- package/dist/networks.js +24 -0
- package/dist/networks.js.map +1 -0
- package/dist/profiles.d.ts +31 -0
- package/dist/profiles.d.ts.map +1 -0
- package/dist/profiles.js +33 -0
- package/dist/profiles.js.map +1 -0
- package/dist/rail.d.ts +48 -0
- package/dist/rail.d.ts.map +1 -0
- package/dist/rail.js +28 -0
- package/dist/rail.js.map +1 -0
- package/dist/reasons.d.ts +173 -0
- package/dist/reasons.d.ts.map +1 -0
- package/dist/reasons.js +174 -0
- package/dist/reasons.js.map +1 -0
- package/dist/reference-link.d.ts +23 -0
- package/dist/reference-link.d.ts.map +1 -0
- package/dist/reference-link.js +56 -0
- package/dist/reference-link.js.map +1 -0
- package/dist/references.d.ts +125 -0
- package/dist/references.d.ts.map +1 -0
- package/dist/references.js +108 -0
- package/dist/references.js.map +1 -0
- package/dist/replay.d.ts +30 -0
- package/dist/replay.d.ts.map +1 -0
- package/dist/replay.js +27 -0
- package/dist/replay.js.map +1 -0
- package/dist/sandbox-registration.d.ts +200 -0
- package/dist/sandbox-registration.d.ts.map +1 -0
- package/dist/sandbox-registration.js +172 -0
- package/dist/sandbox-registration.js.map +1 -0
- package/dist/sandbox.d.ts +3478 -0
- package/dist/sandbox.d.ts.map +1 -0
- package/dist/sandbox.js +316 -0
- package/dist/sandbox.js.map +1 -0
- package/dist/session-fields.d.ts +203 -0
- package/dist/session-fields.d.ts.map +1 -0
- package/dist/session-fields.js +43 -0
- package/dist/session-fields.js.map +1 -0
- package/dist/supplier-adapter.d.ts +65 -0
- package/dist/supplier-adapter.d.ts.map +1 -0
- package/dist/supplier-adapter.js +91 -0
- package/dist/supplier-adapter.js.map +1 -0
- package/dist/terms-v1.d.ts +74 -0
- package/dist/terms-v1.d.ts.map +1 -0
- package/dist/terms-v1.js +156 -0
- package/dist/terms-v1.js.map +1 -0
- package/dist/terms.d.ts +341 -0
- package/dist/terms.d.ts.map +1 -0
- package/dist/terms.js +715 -0
- package/dist/terms.js.map +1 -0
- package/dist/test-customer.d.ts +1525 -0
- package/dist/test-customer.d.ts.map +1 -0
- package/dist/test-customer.js +260 -0
- package/dist/test-customer.js.map +1 -0
- package/dist/types.d.ts +272 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +32 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +51 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +66 -0
- package/dist/version.js.map +1 -0
- package/dist/wire.d.ts +2698 -0
- package/dist/wire.d.ts.map +1 -0
- package/dist/wire.js +678 -0
- package/dist/wire.js.map +1 -0
- package/package.json +37 -3
- package/vectors/api-request-v1.json +53 -0
- package/vectors/contest-statement-v1.json +42 -0
- package/vectors/terms-v2.json +398 -0
- package/vectors/terms-v3.json +2103 -0
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
import type { Hex } from 'viem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type ComputeOffers } from './compute-offers.js';
|
|
4
|
+
import { type PinnedBlock } from './dependencies.js';
|
|
5
|
+
import { type FactBody, type VerifiedBy } from './facts.js';
|
|
6
|
+
import { type JobVerification } from './job-verification.js';
|
|
7
|
+
import { type RailState } from './rail.js';
|
|
8
|
+
import type { ReasonCode } from './reasons.js';
|
|
9
|
+
import { type CommitmentReference } from './references.js';
|
|
10
|
+
import { type AgentSource, type RefusalLayer } from './session-fields.js';
|
|
11
|
+
/**
|
|
12
|
+
* The events of the developer's agent session, beside a job's own events, so the terminal and the
|
|
13
|
+
* screen draw the same lines from the same events. Speech, tool calls with their results, facts and
|
|
14
|
+
* receipts are kinds of their own, so speech is never drawn as evidence and evidence never as
|
|
15
|
+
* speech. Each names its run, and the order when it belongs to a job. Each job is its own run, and
|
|
16
|
+
* a turn the developer starts is its own run with no order.
|
|
17
|
+
*
|
|
18
|
+
* A signed event is an attributed statement. The agent key's signature says who posted it, never
|
|
19
|
+
* that what it says is true. So each fact and receipt names who verified it, the commitment on the
|
|
20
|
+
* chain and the block, and a reader checks from the chain what it can. The developer's own
|
|
21
|
+
* messages stay in their terminal and are never posted as events, but the agent's replies can
|
|
22
|
+
* repeat them, since `said` carries the model's words.
|
|
23
|
+
*/
|
|
24
|
+
/** The tools the agent session gives a model, and nothing else. */
|
|
25
|
+
export declare const JOB_TOOLS: readonly ['read_order', 'compute_offers', 'book_compute', 'cancel_compute', 'submit_quote', 'authority', 'commitments'];
|
|
26
|
+
export type JobTool = (typeof JOB_TOOLS)[number];
|
|
27
|
+
/**
|
|
28
|
+
* Who spoke: a model by its id, `scripted` for the deterministic fixture, or the customer, with the
|
|
29
|
+
* index of what it said in its order's `said`, so a reader matches the two.
|
|
30
|
+
*/
|
|
31
|
+
export type Speaker = {
|
|
32
|
+
kind: 'model';
|
|
33
|
+
model: string;
|
|
34
|
+
} | {
|
|
35
|
+
kind: 'customer';
|
|
36
|
+
index: number;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The form a model's name takes wherever it's drawn: a letter or a digit, then up to 63 more
|
|
40
|
+
* letters, digits, spaces and `._:'/@+-`, as `speakerName` makes one from any model id. The
|
|
41
|
+
* terminal draws a speaker's name by the same rule.
|
|
42
|
+
*/
|
|
43
|
+
export declare const SPEAKER_NAME: RegExp;
|
|
44
|
+
/**
|
|
45
|
+
* A model id in the form `SPEAKER_NAME` takes: any other character replaced, anything before its
|
|
46
|
+
* first letter or digit dropped, and cut to 64.
|
|
47
|
+
*/
|
|
48
|
+
export declare function speakerName(model: string): string;
|
|
49
|
+
/** The model id scripted runs speak as, so every line they draw says it was scripted. */
|
|
50
|
+
export declare const SCRIPTED_MODEL = "scripted";
|
|
51
|
+
interface SessionEventBase {
|
|
52
|
+
run: number;
|
|
53
|
+
source: AgentSource;
|
|
54
|
+
/** The order the event belongs to, or null for a turn the developer started. */
|
|
55
|
+
orderId: string | null;
|
|
56
|
+
}
|
|
57
|
+
/** Words a model or the customer said, drawn as speech and never as evidence. */
|
|
58
|
+
export interface Said extends SessionEventBase {
|
|
59
|
+
type: 'said';
|
|
60
|
+
speaker: Speaker;
|
|
61
|
+
text: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A tool the model called, with a summary code wrote of what it was called with. A booking call
|
|
65
|
+
* names the offer and how many GPUs, both null when the model's input wasn't in the form the tool
|
|
66
|
+
* takes, which the tool layer refuses.
|
|
67
|
+
*/
|
|
68
|
+
export type ToolCall = SessionEventBase & {
|
|
69
|
+
type: 'tool_call';
|
|
70
|
+
/** Pairs the call with its result, counting from 1 within the run. */
|
|
71
|
+
call: number;
|
|
72
|
+
summary: string;
|
|
73
|
+
} & ({
|
|
74
|
+
tool: Exclude<JobTool, 'book_compute'>;
|
|
75
|
+
} | {
|
|
76
|
+
tool: 'book_compute';
|
|
77
|
+
offer: string;
|
|
78
|
+
quantity: number;
|
|
79
|
+
} | {
|
|
80
|
+
tool: 'book_compute';
|
|
81
|
+
offer: null;
|
|
82
|
+
quantity: null;
|
|
83
|
+
});
|
|
84
|
+
/** The limits that applied when the model compared offers, in micros. */
|
|
85
|
+
export interface ToolLimits {
|
|
86
|
+
/** The most `service.ts` lets a booking cost per GPU-hour. */
|
|
87
|
+
budgetPerGpuHour: bigint;
|
|
88
|
+
/** Whether `service.ts` books compute at all. */
|
|
89
|
+
computeSwitch: 'on' | 'off';
|
|
90
|
+
/** The most the agent's mandate allows for one commitment. */
|
|
91
|
+
capPerCommitment: bigint;
|
|
92
|
+
/** The most the agent can hold in bookings at once. */
|
|
93
|
+
capOpenReserves: bigint;
|
|
94
|
+
/** What the agent had left of its open-reserves cap. */
|
|
95
|
+
openReservesLeft: bigint;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* What a tool returned, in a summary code wrote. A refusal names its reason code and the layer
|
|
99
|
+
* that refused. A listing of offers carries them and the limits that applied, so the comparison can
|
|
100
|
+
* be shown as it was. A result shown again, as evidence beside an answer, names the run and call
|
|
101
|
+
* that made it and is never a new call. A reader shows the original event it names, and refuses a
|
|
102
|
+
* copy that differs from it, so the evidence beside an answer is the recorded result and never a
|
|
103
|
+
* new claim.
|
|
104
|
+
*/
|
|
105
|
+
export type ToolResult = SessionEventBase & {
|
|
106
|
+
type: 'tool_result';
|
|
107
|
+
call: number;
|
|
108
|
+
tool: JobTool;
|
|
109
|
+
summary: string;
|
|
110
|
+
/** For a result shown again, the run and call that made it. */
|
|
111
|
+
recalled: {
|
|
112
|
+
run: number;
|
|
113
|
+
call: number;
|
|
114
|
+
} | null;
|
|
115
|
+
/**
|
|
116
|
+
* For `compute_offers`, the listing the model saw, with the moment it was listed, which says
|
|
117
|
+
* whether each offer was firm.
|
|
118
|
+
*/
|
|
119
|
+
listing: ComputeOffers | null;
|
|
120
|
+
/** For `compute_offers`, the limits that applied to it. */
|
|
121
|
+
limits: ToolLimits | null;
|
|
122
|
+
} & ({
|
|
123
|
+
ok: true;
|
|
124
|
+
} | {
|
|
125
|
+
ok: false;
|
|
126
|
+
code: ReasonCode;
|
|
127
|
+
layer: RefusalLayer;
|
|
128
|
+
});
|
|
129
|
+
/** A fact code outside the model verified, with who verified it and what it rests on. */
|
|
130
|
+
export interface SessionFact extends SessionEventBase, FactBody {
|
|
131
|
+
type: 'fact';
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* A commitment as a receipt: what it is, whose it is, what it holds and its state on the lock, as
|
|
135
|
+
* a check read it, with who verified it and where. A job commitment carries what a link to verify it
|
|
136
|
+
* carries, so the screen builds its own link and checks it from the chain.
|
|
137
|
+
*/
|
|
138
|
+
export interface CommitmentReceipt extends SessionEventBase {
|
|
139
|
+
type: 'commitment';
|
|
140
|
+
/** `compute` is the business's booking of compute, and `job` the customer's commitment. */
|
|
141
|
+
role: 'compute' | 'job';
|
|
142
|
+
reference: CommitmentReference;
|
|
143
|
+
/** The reserve, in micros. */
|
|
144
|
+
amount: bigint;
|
|
145
|
+
state: RailState;
|
|
146
|
+
verifiedBy: VerifiedBy;
|
|
147
|
+
block: PinnedBlock;
|
|
148
|
+
transactionHash: Hex | null;
|
|
149
|
+
/** For a job, what a link to verify it carries, and null for compute. */
|
|
150
|
+
verification: JobVerification | null;
|
|
151
|
+
}
|
|
152
|
+
/** One event of the agent session. */
|
|
153
|
+
export type AgentSessionEvent = Said | ToolCall | ToolResult | SessionFact | CommitmentReceipt;
|
|
154
|
+
/**
|
|
155
|
+
* Why a result can't be the one a call got, or null when it can. A call and its result name the
|
|
156
|
+
* same run, call number and tool, and a result shown again pairs with the call that first made it,
|
|
157
|
+
* never with this one. A booking call whose input wasn't in the tool's form names no offer, so its
|
|
158
|
+
* result is a refusal by `service`, and a reader refuses a pair that shows one booked.
|
|
159
|
+
*/
|
|
160
|
+
export declare function toolResultProblem(call: ToolCall, result: ToolResult): ReasonCode | null;
|
|
161
|
+
/** The longest speech one event carries. A longer answer goes in several. */
|
|
162
|
+
export declare const SAID_TEXT_MAX = 4000;
|
|
163
|
+
/** The longest summary a tool call or result carries. */
|
|
164
|
+
export declare const SUMMARY_MAX = 500;
|
|
165
|
+
/** Each agent session event's JSON form, which the session's event schema takes beside its own. */
|
|
166
|
+
export declare const AGENT_SESSION_EVENT_SCHEMAS: readonly [z.ZodObject<{
|
|
167
|
+
run: z.ZodNumber;
|
|
168
|
+
source: z.ZodEnum<{
|
|
169
|
+
mcp: "mcp";
|
|
170
|
+
script: "script";
|
|
171
|
+
session: "session";
|
|
172
|
+
}>;
|
|
173
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
174
|
+
type: z.ZodLiteral<"said">;
|
|
175
|
+
speaker: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
176
|
+
kind: z.ZodLiteral<"model">;
|
|
177
|
+
model: z.ZodString;
|
|
178
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
179
|
+
kind: z.ZodLiteral<"customer">;
|
|
180
|
+
index: z.ZodNumber;
|
|
181
|
+
}, z.core.$strict>], "kind">;
|
|
182
|
+
text: z.ZodString;
|
|
183
|
+
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
184
|
+
run: z.ZodNumber;
|
|
185
|
+
source: z.ZodEnum<{
|
|
186
|
+
mcp: "mcp";
|
|
187
|
+
script: "script";
|
|
188
|
+
session: "session";
|
|
189
|
+
}>;
|
|
190
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
191
|
+
type: z.ZodLiteral<"tool_call">;
|
|
192
|
+
call: z.ZodNumber;
|
|
193
|
+
tool: z.ZodLiteral<"book_compute">;
|
|
194
|
+
summary: z.ZodString;
|
|
195
|
+
offer: z.ZodString;
|
|
196
|
+
quantity: z.ZodNumber;
|
|
197
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
198
|
+
run: z.ZodNumber;
|
|
199
|
+
source: z.ZodEnum<{
|
|
200
|
+
mcp: "mcp";
|
|
201
|
+
script: "script";
|
|
202
|
+
session: "session";
|
|
203
|
+
}>;
|
|
204
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
205
|
+
type: z.ZodLiteral<"tool_call">;
|
|
206
|
+
call: z.ZodNumber;
|
|
207
|
+
tool: z.ZodLiteral<"book_compute">;
|
|
208
|
+
summary: z.ZodString;
|
|
209
|
+
offer: z.ZodNull;
|
|
210
|
+
quantity: z.ZodNull;
|
|
211
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
212
|
+
run: z.ZodNumber;
|
|
213
|
+
source: z.ZodEnum<{
|
|
214
|
+
mcp: "mcp";
|
|
215
|
+
script: "script";
|
|
216
|
+
session: "session";
|
|
217
|
+
}>;
|
|
218
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
219
|
+
type: z.ZodLiteral<"tool_call">;
|
|
220
|
+
call: z.ZodNumber;
|
|
221
|
+
tool: z.ZodEnum<{
|
|
222
|
+
authority: "authority";
|
|
223
|
+
cancel_compute: "cancel_compute";
|
|
224
|
+
commitments: "commitments";
|
|
225
|
+
compute_offers: "compute_offers";
|
|
226
|
+
read_order: "read_order";
|
|
227
|
+
submit_quote: "submit_quote";
|
|
228
|
+
}>;
|
|
229
|
+
summary: z.ZodString;
|
|
230
|
+
}, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
231
|
+
run: z.ZodNumber;
|
|
232
|
+
source: z.ZodEnum<{
|
|
233
|
+
mcp: "mcp";
|
|
234
|
+
script: "script";
|
|
235
|
+
session: "session";
|
|
236
|
+
}>;
|
|
237
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
238
|
+
type: z.ZodLiteral<"tool_result">;
|
|
239
|
+
call: z.ZodNumber;
|
|
240
|
+
tool: z.ZodEnum<{
|
|
241
|
+
authority: "authority";
|
|
242
|
+
book_compute: "book_compute";
|
|
243
|
+
cancel_compute: "cancel_compute";
|
|
244
|
+
commitments: "commitments";
|
|
245
|
+
compute_offers: "compute_offers";
|
|
246
|
+
read_order: "read_order";
|
|
247
|
+
submit_quote: "submit_quote";
|
|
248
|
+
}>;
|
|
249
|
+
summary: z.ZodString;
|
|
250
|
+
recalled: z.ZodNullable<z.ZodObject<{
|
|
251
|
+
run: z.ZodNumber;
|
|
252
|
+
call: z.ZodNumber;
|
|
253
|
+
}, z.core.$strict>>;
|
|
254
|
+
listing: z.ZodNullable<z.ZodObject<{
|
|
255
|
+
supplier: z.ZodString;
|
|
256
|
+
listedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
257
|
+
offers: z.ZodArray<z.ZodObject<{
|
|
258
|
+
id: z.ZodString;
|
|
259
|
+
supplier: z.ZodString;
|
|
260
|
+
gpu: z.ZodString;
|
|
261
|
+
region: z.ZodString;
|
|
262
|
+
sku: z.ZodString;
|
|
263
|
+
gpus: z.ZodObject<{
|
|
264
|
+
min: z.ZodNumber;
|
|
265
|
+
max: z.ZodNumber;
|
|
266
|
+
}, z.core.$strict>;
|
|
267
|
+
minutes: z.ZodNumber;
|
|
268
|
+
startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
269
|
+
freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
270
|
+
pricePerGpuHour: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
271
|
+
reservePerGpu: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
272
|
+
expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
273
|
+
}, z.core.$strict>>;
|
|
274
|
+
}, z.core.$strict>>;
|
|
275
|
+
limits: z.ZodNullable<z.ZodObject<{
|
|
276
|
+
budgetPerGpuHour: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
277
|
+
computeSwitch: z.ZodEnum<{
|
|
278
|
+
off: "off";
|
|
279
|
+
on: "on";
|
|
280
|
+
}>;
|
|
281
|
+
capPerCommitment: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
282
|
+
capOpenReserves: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
283
|
+
openReservesLeft: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
284
|
+
}, z.core.$strict>>;
|
|
285
|
+
ok: z.ZodLiteral<true>;
|
|
286
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
287
|
+
run: z.ZodNumber;
|
|
288
|
+
source: z.ZodEnum<{
|
|
289
|
+
mcp: "mcp";
|
|
290
|
+
script: "script";
|
|
291
|
+
session: "session";
|
|
292
|
+
}>;
|
|
293
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
294
|
+
type: z.ZodLiteral<"tool_result">;
|
|
295
|
+
call: z.ZodNumber;
|
|
296
|
+
tool: z.ZodEnum<{
|
|
297
|
+
authority: "authority";
|
|
298
|
+
book_compute: "book_compute";
|
|
299
|
+
cancel_compute: "cancel_compute";
|
|
300
|
+
commitments: "commitments";
|
|
301
|
+
compute_offers: "compute_offers";
|
|
302
|
+
read_order: "read_order";
|
|
303
|
+
submit_quote: "submit_quote";
|
|
304
|
+
}>;
|
|
305
|
+
summary: z.ZodString;
|
|
306
|
+
recalled: z.ZodNullable<z.ZodObject<{
|
|
307
|
+
run: z.ZodNumber;
|
|
308
|
+
call: z.ZodNumber;
|
|
309
|
+
}, z.core.$strict>>;
|
|
310
|
+
listing: z.ZodNullable<z.ZodObject<{
|
|
311
|
+
supplier: z.ZodString;
|
|
312
|
+
listedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
313
|
+
offers: z.ZodArray<z.ZodObject<{
|
|
314
|
+
id: z.ZodString;
|
|
315
|
+
supplier: z.ZodString;
|
|
316
|
+
gpu: z.ZodString;
|
|
317
|
+
region: z.ZodString;
|
|
318
|
+
sku: z.ZodString;
|
|
319
|
+
gpus: z.ZodObject<{
|
|
320
|
+
min: z.ZodNumber;
|
|
321
|
+
max: z.ZodNumber;
|
|
322
|
+
}, z.core.$strict>;
|
|
323
|
+
minutes: z.ZodNumber;
|
|
324
|
+
startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
325
|
+
freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
326
|
+
pricePerGpuHour: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
327
|
+
reservePerGpu: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
328
|
+
expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
329
|
+
}, z.core.$strict>>;
|
|
330
|
+
}, z.core.$strict>>;
|
|
331
|
+
limits: z.ZodNullable<z.ZodObject<{
|
|
332
|
+
budgetPerGpuHour: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
333
|
+
computeSwitch: z.ZodEnum<{
|
|
334
|
+
off: "off";
|
|
335
|
+
on: "on";
|
|
336
|
+
}>;
|
|
337
|
+
capPerCommitment: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
338
|
+
capOpenReserves: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
339
|
+
openReservesLeft: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
340
|
+
}, z.core.$strict>>;
|
|
341
|
+
ok: z.ZodLiteral<false>;
|
|
342
|
+
code: z.ZodEnum<{
|
|
343
|
+
"administrator.no_authority": "administrator.no_authority";
|
|
344
|
+
"agent.key_mismatch": "agent.key_mismatch";
|
|
345
|
+
"agent.revoked": "agent.revoked";
|
|
346
|
+
"agreement.parties_mismatch": "agreement.parties_mismatch";
|
|
347
|
+
"approval.charges_mismatch": "approval.charges_mismatch";
|
|
348
|
+
"approval.commitment_mismatch": "approval.commitment_mismatch";
|
|
349
|
+
"approval.dispute_mismatch": "approval.dispute_mismatch";
|
|
350
|
+
"approval.human_invalid": "approval.human_invalid";
|
|
351
|
+
"approval.human_required": "approval.human_required";
|
|
352
|
+
"approval.mandate_mismatch": "approval.mandate_mismatch";
|
|
353
|
+
"approval.parties_mismatch": "approval.parties_mismatch";
|
|
354
|
+
"approval.terms_mismatch": "approval.terms_mismatch";
|
|
355
|
+
approved: "approved";
|
|
356
|
+
"authorization.accept_by_passed": "authorization.accept_by_passed";
|
|
357
|
+
"authorization.buyer_mismatch": "authorization.buyer_mismatch";
|
|
358
|
+
"authorization.commitment_mismatch": "authorization.commitment_mismatch";
|
|
359
|
+
"authorization.mandate_mismatch": "authorization.mandate_mismatch";
|
|
360
|
+
"authorization.payee_mismatch": "authorization.payee_mismatch";
|
|
361
|
+
"authorization.terms_mismatch": "authorization.terms_mismatch";
|
|
362
|
+
"authorization.token_not_accepted": "authorization.token_not_accepted";
|
|
363
|
+
"business.test_data": "business.test_data";
|
|
364
|
+
"business.unknown": "business.unknown";
|
|
365
|
+
"business.unverified": "business.unverified";
|
|
366
|
+
"chain.acceptance_reverted": "chain.acceptance_reverted";
|
|
367
|
+
"chain.agent_key_inactive": "chain.agent_key_inactive";
|
|
368
|
+
"chain.approval_mismatch": "chain.approval_mismatch";
|
|
369
|
+
"chain.cancel_reverted": "chain.cancel_reverted";
|
|
370
|
+
"chain.lock_timing_unexpected": "chain.lock_timing_unexpected";
|
|
371
|
+
"chain.lock_unknown": "chain.lock_unknown";
|
|
372
|
+
"chain.mandate_mismatch": "chain.mandate_mismatch";
|
|
373
|
+
"chain.report_reverted": "chain.report_reverted";
|
|
374
|
+
"chain.reserve_accepted": "chain.reserve_accepted";
|
|
375
|
+
"chain.reserve_mismatch": "chain.reserve_mismatch";
|
|
376
|
+
"chain.reserve_missing": "chain.reserve_missing";
|
|
377
|
+
"chain.supplier_mismatch": "chain.supplier_mismatch";
|
|
378
|
+
"commitment.cancel_closed": "commitment.cancel_closed";
|
|
379
|
+
"commitment.cancel_on_lock": "commitment.cancel_on_lock";
|
|
380
|
+
"commitment.ended": "commitment.ended";
|
|
381
|
+
"commitment.unknown": "commitment.unknown";
|
|
382
|
+
"consent.count_out_of_range": "consent.count_out_of_range";
|
|
383
|
+
"consent.count_passed": "consent.count_passed";
|
|
384
|
+
"consent.not_releasable": "consent.not_releasable";
|
|
385
|
+
"contest.already_contested": "contest.already_contested";
|
|
386
|
+
"contest.not_contestable": "contest.not_contestable";
|
|
387
|
+
"contest.not_on_chain": "contest.not_on_chain";
|
|
388
|
+
"contest.reason_not_for_charge": "contest.reason_not_for_charge";
|
|
389
|
+
"contest.statement_invalid": "contest.statement_invalid";
|
|
390
|
+
"contest.statement_mismatch": "contest.statement_mismatch";
|
|
391
|
+
"contest.window_closed": "contest.window_closed";
|
|
392
|
+
"dependency.cancellable": "dependency.cancellable";
|
|
393
|
+
"dependency.charge_pending": "dependency.charge_pending";
|
|
394
|
+
"dependency.disclosure_invalid": "dependency.disclosure_invalid";
|
|
395
|
+
"dependency.does_not_fit": "dependency.does_not_fit";
|
|
396
|
+
"dependency.elided": "dependency.elided";
|
|
397
|
+
"dependency.ended": "dependency.ended";
|
|
398
|
+
"dependency.lock_unknown": "dependency.lock_unknown";
|
|
399
|
+
"dependency.not_accepted": "dependency.not_accepted";
|
|
400
|
+
"dependency.not_found": "dependency.not_found";
|
|
401
|
+
"dependency.not_owned": "dependency.not_owned";
|
|
402
|
+
"dependency.required": "dependency.required";
|
|
403
|
+
"dependency.self_supplied": "dependency.self_supplied";
|
|
404
|
+
"dependency.stale": "dependency.stale";
|
|
405
|
+
"dependency.terms_mismatch": "dependency.terms_mismatch";
|
|
406
|
+
"dependency.unreadable": "dependency.unreadable";
|
|
407
|
+
"dependency.unrecorded": "dependency.unrecorded";
|
|
408
|
+
"keychain.over_daily_limit": "keychain.over_daily_limit";
|
|
409
|
+
"mandate.action_not_permitted": "mandate.action_not_permitted";
|
|
410
|
+
"mandate.ap2_mismatch": "mandate.ap2_mismatch";
|
|
411
|
+
"mandate.category_not_allowed": "mandate.category_not_allowed";
|
|
412
|
+
"mandate.currency_not_allowed": "mandate.currency_not_allowed";
|
|
413
|
+
"mandate.ends_before_window": "mandate.ends_before_window";
|
|
414
|
+
"mandate.expired": "mandate.expired";
|
|
415
|
+
"mandate.invalid": "mandate.invalid";
|
|
416
|
+
"mandate.missing": "mandate.missing";
|
|
417
|
+
"mandate.over_commitment_cap": "mandate.over_commitment_cap";
|
|
418
|
+
"mandate.over_open_reserves_cap": "mandate.over_open_reserves_cap";
|
|
419
|
+
"mandate.over_payment_limit": "mandate.over_payment_limit";
|
|
420
|
+
"mandate.revoked": "mandate.revoked";
|
|
421
|
+
"mandate.signature_invalid": "mandate.signature_invalid";
|
|
422
|
+
"mandate.supplier_not_allowed": "mandate.supplier_not_allowed";
|
|
423
|
+
"mandate.token_not_allowed": "mandate.token_not_allowed";
|
|
424
|
+
"message.expired": "message.expired";
|
|
425
|
+
"message.invalid": "message.invalid";
|
|
426
|
+
"message.replayed": "message.replayed";
|
|
427
|
+
"message.schema_unknown": "message.schema_unknown";
|
|
428
|
+
"message.signature_invalid": "message.signature_invalid";
|
|
429
|
+
"message.signer_unknown": "message.signer_unknown";
|
|
430
|
+
"message.validity_too_long": "message.validity_too_long";
|
|
431
|
+
"message.wrong_chain": "message.wrong_chain";
|
|
432
|
+
"message.wrong_contract": "message.wrong_contract";
|
|
433
|
+
"order.commitment_mismatch": "order.commitment_mismatch";
|
|
434
|
+
"order.limit_reached": "order.limit_reached";
|
|
435
|
+
"order.out_of_step": "order.out_of_step";
|
|
436
|
+
"order.supplier_mismatch": "order.supplier_mismatch";
|
|
437
|
+
"order.terms_changed": "order.terms_changed";
|
|
438
|
+
"order.unknown": "order.unknown";
|
|
439
|
+
"payment.amount_mismatch": "payment.amount_mismatch";
|
|
440
|
+
"payment.attributed_twice": "payment.attributed_twice";
|
|
441
|
+
"payment.failed": "payment.failed";
|
|
442
|
+
"payment.memo_mismatch": "payment.memo_mismatch";
|
|
443
|
+
"payment.not_final": "payment.not_final";
|
|
444
|
+
"payment.not_found": "payment.not_found";
|
|
445
|
+
"payment.not_memo_transfer": "payment.not_memo_transfer";
|
|
446
|
+
"payment.recipient_mismatch": "payment.recipient_mismatch";
|
|
447
|
+
"payment.sender_mismatch": "payment.sender_mismatch";
|
|
448
|
+
"payment.token_mismatch": "payment.token_mismatch";
|
|
449
|
+
"payment.token_not_accepted": "payment.token_not_accepted";
|
|
450
|
+
"reference.commitment_mismatch": "reference.commitment_mismatch";
|
|
451
|
+
"reference.unreadable": "reference.unreadable";
|
|
452
|
+
"report.amount_invalid": "report.amount_invalid";
|
|
453
|
+
"report.kind_not_allowed": "report.kind_not_allowed";
|
|
454
|
+
"report.limit_reached": "report.limit_reached";
|
|
455
|
+
"report.not_reportable": "report.not_reportable";
|
|
456
|
+
"report.open": "report.open";
|
|
457
|
+
"report.too_early": "report.too_early";
|
|
458
|
+
"request.id_reused": "request.id_reused";
|
|
459
|
+
"request.in_progress": "request.in_progress";
|
|
460
|
+
"request.invalid": "request.invalid";
|
|
461
|
+
"request.signer_unknown": "request.signer_unknown";
|
|
462
|
+
"request.unsigned": "request.unsigned";
|
|
463
|
+
"sandbox.budget_spent": "sandbox.budget_spent";
|
|
464
|
+
"sandbox.closed": "sandbox.closed";
|
|
465
|
+
"sandbox.event_too_large": "sandbox.event_too_large";
|
|
466
|
+
"sandbox.faucet_fees_low": "sandbox.faucet_fees_low";
|
|
467
|
+
"sandbox.limit_reached": "sandbox.limit_reached";
|
|
468
|
+
"sandbox.pool_empty": "sandbox.pool_empty";
|
|
469
|
+
"sandbox.session_expired": "sandbox.session_expired";
|
|
470
|
+
"sandbox.session_full": "sandbox.session_full";
|
|
471
|
+
"sandbox.session_rate": "sandbox.session_rate";
|
|
472
|
+
"sandbox.session_taken": "sandbox.session_taken";
|
|
473
|
+
"sandbox.taken": "sandbox.taken";
|
|
474
|
+
"service.booking_required": "service.booking_required";
|
|
475
|
+
"service.cancel_declined": "service.cancel_declined";
|
|
476
|
+
"service.cancel_late": "service.cancel_late";
|
|
477
|
+
"service.check_failed": "service.check_failed";
|
|
478
|
+
"service.compute_off": "service.compute_off";
|
|
479
|
+
"service.over_budget": "service.over_budget";
|
|
480
|
+
"service.quantity_unavailable": "service.quantity_unavailable";
|
|
481
|
+
"service.unavailable": "service.unavailable";
|
|
482
|
+
"service.unknown_booking": "service.unknown_booking";
|
|
483
|
+
"service.unknown_offer": "service.unknown_offer";
|
|
484
|
+
"sponsorship.altered": "sponsorship.altered";
|
|
485
|
+
"sponsorship.budget_spent": "sponsorship.budget_spent";
|
|
486
|
+
"sponsorship.over_cap": "sponsorship.over_cap";
|
|
487
|
+
"sponsorship.rate_limited": "sponsorship.rate_limited";
|
|
488
|
+
"sponsorship.refused": "sponsorship.refused";
|
|
489
|
+
"sponsorship.simulation_failed": "sponsorship.simulation_failed";
|
|
490
|
+
"supplier.declined": "supplier.declined";
|
|
491
|
+
"supplier.not_accepted": "supplier.not_accepted";
|
|
492
|
+
"supplier.unknown": "supplier.unknown";
|
|
493
|
+
"terms.backing_unsupported": "terms.backing_unsupported";
|
|
494
|
+
"terms.category_mismatch": "terms.category_mismatch";
|
|
495
|
+
"terms.charges_invalid": "terms.charges_invalid";
|
|
496
|
+
"terms.contest_window_short": "terms.contest_window_short";
|
|
497
|
+
"terms.currency_mismatch": "terms.currency_mismatch";
|
|
498
|
+
"terms.deadlines_out_of_order": "terms.deadlines_out_of_order";
|
|
499
|
+
"terms.dispute_invalid": "terms.dispute_invalid";
|
|
500
|
+
"terms.hash_mismatch": "terms.hash_mismatch";
|
|
501
|
+
"terms.incomplete": "terms.incomplete";
|
|
502
|
+
"terms.invalid": "terms.invalid";
|
|
503
|
+
"terms.reserve_mismatch": "terms.reserve_mismatch";
|
|
504
|
+
"terms.template_invalid": "terms.template_invalid";
|
|
505
|
+
"terms.template_unknown": "terms.template_unknown";
|
|
506
|
+
"terms.version_unknown": "terms.version_unknown";
|
|
507
|
+
}>;
|
|
508
|
+
layer: z.ZodEnum<{
|
|
509
|
+
avow: "avow";
|
|
510
|
+
customer: "customer";
|
|
511
|
+
keychain: "keychain";
|
|
512
|
+
lock: "lock";
|
|
513
|
+
relay: "relay";
|
|
514
|
+
sdk: "sdk";
|
|
515
|
+
service: "service";
|
|
516
|
+
supplier: "supplier";
|
|
517
|
+
unknown: "unknown";
|
|
518
|
+
}>;
|
|
519
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
520
|
+
text: z.ZodString;
|
|
521
|
+
check: z.ZodEnum<{
|
|
522
|
+
commitment: "commitment";
|
|
523
|
+
dependency: "dependency";
|
|
524
|
+
payment: "payment";
|
|
525
|
+
reserve: "reserve";
|
|
526
|
+
}>;
|
|
527
|
+
verifiedBy: z.ZodEnum<{
|
|
528
|
+
avow: "avow";
|
|
529
|
+
customer: "customer";
|
|
530
|
+
service: "service";
|
|
531
|
+
}>;
|
|
532
|
+
reference: z.ZodObject<{
|
|
533
|
+
kind: z.ZodLiteral<"commitment">;
|
|
534
|
+
chainId: z.ZodNumber;
|
|
535
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
536
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
537
|
+
side: z.ZodEnum<{
|
|
538
|
+
buyer: "buyer";
|
|
539
|
+
supplier: "supplier";
|
|
540
|
+
}>;
|
|
541
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
542
|
+
}, z.core.$strict>;
|
|
543
|
+
block: z.ZodObject<{
|
|
544
|
+
number: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
545
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
546
|
+
timestamp: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
547
|
+
}, z.core.$strict>;
|
|
548
|
+
transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
549
|
+
run: z.ZodNumber;
|
|
550
|
+
source: z.ZodEnum<{
|
|
551
|
+
mcp: "mcp";
|
|
552
|
+
script: "script";
|
|
553
|
+
session: "session";
|
|
554
|
+
}>;
|
|
555
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
556
|
+
type: z.ZodLiteral<"fact">;
|
|
557
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
558
|
+
run: z.ZodNumber;
|
|
559
|
+
source: z.ZodEnum<{
|
|
560
|
+
mcp: "mcp";
|
|
561
|
+
script: "script";
|
|
562
|
+
session: "session";
|
|
563
|
+
}>;
|
|
564
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
565
|
+
type: z.ZodLiteral<"commitment">;
|
|
566
|
+
role: z.ZodEnum<{
|
|
567
|
+
compute: "compute";
|
|
568
|
+
job: "job";
|
|
569
|
+
}>;
|
|
570
|
+
reference: z.ZodObject<{
|
|
571
|
+
kind: z.ZodLiteral<"commitment">;
|
|
572
|
+
chainId: z.ZodNumber;
|
|
573
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
574
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
575
|
+
side: z.ZodEnum<{
|
|
576
|
+
buyer: "buyer";
|
|
577
|
+
supplier: "supplier";
|
|
578
|
+
}>;
|
|
579
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
580
|
+
}, z.core.$strict>;
|
|
581
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
582
|
+
state: z.ZodEnum<{
|
|
583
|
+
accepted: "accepted";
|
|
584
|
+
charge_pending: "charge_pending";
|
|
585
|
+
charged: "charged";
|
|
586
|
+
none: "none";
|
|
587
|
+
paused: "paused";
|
|
588
|
+
released: "released";
|
|
589
|
+
reserved: "reserved";
|
|
590
|
+
resolved: "resolved";
|
|
591
|
+
}>;
|
|
592
|
+
verifiedBy: z.ZodEnum<{
|
|
593
|
+
avow: "avow";
|
|
594
|
+
customer: "customer";
|
|
595
|
+
service: "service";
|
|
596
|
+
}>;
|
|
597
|
+
block: z.ZodObject<{
|
|
598
|
+
number: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
599
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
600
|
+
timestamp: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
601
|
+
}, z.core.$strict>;
|
|
602
|
+
transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
603
|
+
verification: z.ZodNullable<z.ZodObject<{
|
|
604
|
+
kind: z.ZodLiteral<"job">;
|
|
605
|
+
commitment: z.ZodObject<{
|
|
606
|
+
kind: z.ZodLiteral<"commitment">;
|
|
607
|
+
chainId: z.ZodNumber;
|
|
608
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
609
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
610
|
+
side: z.ZodEnum<{
|
|
611
|
+
buyer: "buyer";
|
|
612
|
+
supplier: "supplier";
|
|
613
|
+
}>;
|
|
614
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
615
|
+
}, z.core.$strict>;
|
|
616
|
+
header: z.ZodObject<{
|
|
617
|
+
version: z.ZodLiteral<3>;
|
|
618
|
+
template: z.ZodLiteral<"job/1">;
|
|
619
|
+
currency: z.ZodEnum<{
|
|
620
|
+
USD: "USD";
|
|
621
|
+
}>;
|
|
622
|
+
amountDecimals: z.ZodLiteral<6>;
|
|
623
|
+
dependencyCheck: z.ZodEnum<{
|
|
624
|
+
buyer: "buyer";
|
|
625
|
+
}>;
|
|
626
|
+
}, z.core.$strict>;
|
|
627
|
+
dependencies: z.ZodUnion<readonly [z.ZodTuple<[z.ZodObject<{
|
|
628
|
+
on: z.ZodObject<{
|
|
629
|
+
kind: z.ZodLiteral<"commitment">;
|
|
630
|
+
chainId: z.ZodNumber;
|
|
631
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
632
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
633
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
634
|
+
side: z.ZodLiteral<"buyer">;
|
|
635
|
+
}, z.core.$strict>;
|
|
636
|
+
condition: z.ZodEnum<{
|
|
637
|
+
accepted: "accepted";
|
|
638
|
+
}>;
|
|
639
|
+
disclosed: z.ZodEnum<{
|
|
640
|
+
subject: "subject";
|
|
641
|
+
}>;
|
|
642
|
+
}, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
|
|
643
|
+
on: z.ZodObject<{
|
|
644
|
+
kind: z.ZodLiteral<"commitment">;
|
|
645
|
+
chainId: z.ZodNumber;
|
|
646
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
647
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
648
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
649
|
+
side: z.ZodLiteral<"buyer">;
|
|
650
|
+
}, z.core.$strict>;
|
|
651
|
+
condition: z.ZodEnum<{
|
|
652
|
+
accepted: "accepted";
|
|
653
|
+
}>;
|
|
654
|
+
disclosed: z.ZodEnum<{
|
|
655
|
+
subject: "subject";
|
|
656
|
+
}>;
|
|
657
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
658
|
+
on: z.ZodObject<{
|
|
659
|
+
kind: z.ZodLiteral<"commitment">;
|
|
660
|
+
chainId: z.ZodNumber;
|
|
661
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
662
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
663
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
664
|
+
side: z.ZodLiteral<"buyer">;
|
|
665
|
+
}, z.core.$strict>;
|
|
666
|
+
condition: z.ZodEnum<{
|
|
667
|
+
accepted: "accepted";
|
|
668
|
+
}>;
|
|
669
|
+
disclosed: z.ZodEnum<{
|
|
670
|
+
subject: "subject";
|
|
671
|
+
}>;
|
|
672
|
+
}, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
|
|
673
|
+
on: z.ZodObject<{
|
|
674
|
+
kind: z.ZodLiteral<"commitment">;
|
|
675
|
+
chainId: z.ZodNumber;
|
|
676
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
677
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
678
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
679
|
+
side: z.ZodLiteral<"buyer">;
|
|
680
|
+
}, z.core.$strict>;
|
|
681
|
+
condition: z.ZodEnum<{
|
|
682
|
+
accepted: "accepted";
|
|
683
|
+
}>;
|
|
684
|
+
disclosed: z.ZodEnum<{
|
|
685
|
+
subject: "subject";
|
|
686
|
+
}>;
|
|
687
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
688
|
+
on: z.ZodObject<{
|
|
689
|
+
kind: z.ZodLiteral<"commitment">;
|
|
690
|
+
chainId: z.ZodNumber;
|
|
691
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
692
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
693
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
694
|
+
side: z.ZodLiteral<"buyer">;
|
|
695
|
+
}, z.core.$strict>;
|
|
696
|
+
condition: z.ZodEnum<{
|
|
697
|
+
accepted: "accepted";
|
|
698
|
+
}>;
|
|
699
|
+
disclosed: z.ZodEnum<{
|
|
700
|
+
subject: "subject";
|
|
701
|
+
}>;
|
|
702
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
703
|
+
on: z.ZodObject<{
|
|
704
|
+
kind: z.ZodLiteral<"commitment">;
|
|
705
|
+
chainId: z.ZodNumber;
|
|
706
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
707
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
708
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
709
|
+
side: z.ZodLiteral<"buyer">;
|
|
710
|
+
}, z.core.$strict>;
|
|
711
|
+
condition: z.ZodEnum<{
|
|
712
|
+
accepted: "accepted";
|
|
713
|
+
}>;
|
|
714
|
+
disclosed: z.ZodEnum<{
|
|
715
|
+
subject: "subject";
|
|
716
|
+
}>;
|
|
717
|
+
}, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
|
|
718
|
+
on: z.ZodObject<{
|
|
719
|
+
kind: z.ZodLiteral<"commitment">;
|
|
720
|
+
chainId: z.ZodNumber;
|
|
721
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
722
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
723
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
724
|
+
side: z.ZodLiteral<"buyer">;
|
|
725
|
+
}, z.core.$strict>;
|
|
726
|
+
condition: z.ZodEnum<{
|
|
727
|
+
accepted: "accepted";
|
|
728
|
+
}>;
|
|
729
|
+
disclosed: z.ZodEnum<{
|
|
730
|
+
subject: "subject";
|
|
731
|
+
}>;
|
|
732
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
733
|
+
on: z.ZodObject<{
|
|
734
|
+
kind: z.ZodLiteral<"commitment">;
|
|
735
|
+
chainId: z.ZodNumber;
|
|
736
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
737
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
738
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
739
|
+
side: z.ZodLiteral<"buyer">;
|
|
740
|
+
}, z.core.$strict>;
|
|
741
|
+
condition: z.ZodEnum<{
|
|
742
|
+
accepted: "accepted";
|
|
743
|
+
}>;
|
|
744
|
+
disclosed: z.ZodEnum<{
|
|
745
|
+
subject: "subject";
|
|
746
|
+
}>;
|
|
747
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
748
|
+
on: z.ZodObject<{
|
|
749
|
+
kind: z.ZodLiteral<"commitment">;
|
|
750
|
+
chainId: z.ZodNumber;
|
|
751
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
752
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
753
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
754
|
+
side: z.ZodLiteral<"buyer">;
|
|
755
|
+
}, z.core.$strict>;
|
|
756
|
+
condition: z.ZodEnum<{
|
|
757
|
+
accepted: "accepted";
|
|
758
|
+
}>;
|
|
759
|
+
disclosed: z.ZodEnum<{
|
|
760
|
+
subject: "subject";
|
|
761
|
+
}>;
|
|
762
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
763
|
+
on: z.ZodObject<{
|
|
764
|
+
kind: z.ZodLiteral<"commitment">;
|
|
765
|
+
chainId: z.ZodNumber;
|
|
766
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
767
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
768
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
769
|
+
side: z.ZodLiteral<"buyer">;
|
|
770
|
+
}, z.core.$strict>;
|
|
771
|
+
condition: z.ZodEnum<{
|
|
772
|
+
accepted: "accepted";
|
|
773
|
+
}>;
|
|
774
|
+
disclosed: z.ZodEnum<{
|
|
775
|
+
subject: "subject";
|
|
776
|
+
}>;
|
|
777
|
+
}, z.core.$strict>], null>]>;
|
|
778
|
+
dependenciesSalt: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
779
|
+
sectionHashes: z.ZodObject<{
|
|
780
|
+
subject: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
781
|
+
consideration: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
782
|
+
remedies: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
783
|
+
resolution: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
784
|
+
backing: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
785
|
+
}, z.core.$strict>;
|
|
786
|
+
}, z.core.$strict>>;
|
|
787
|
+
}, z.core.$strict>];
|
|
788
|
+
/** Every agent session event type. */
|
|
789
|
+
export declare const AGENT_SESSION_EVENT_TYPES: readonly ["said", "tool_call", "tool_result", "fact", "commitment"];
|
|
790
|
+
export {};
|
|
791
|
+
//# sourceMappingURL=agent-session.d.ts.map
|