@avow-finance/spec 0.0.0-stage → 0.2.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 +90 -0
- package/dist/agent-connect.d.ts.map +1 -0
- package/dist/agent-connect.js +102 -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,981 @@
|
|
|
1
|
+
import type { Hex } from 'viem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type CheckedDependency, type PinnedBlock } from './dependencies.js';
|
|
4
|
+
import { type ChargeKind, type ReleaseReason } from './eip712.js';
|
|
5
|
+
import type { JobSubject } from './job.js';
|
|
6
|
+
import type { ReasonCode } from './reasons.js';
|
|
7
|
+
import { type CommitmentReference, type PaymentReference } from './references.js';
|
|
8
|
+
import { type AgentSource } from './session-fields.js';
|
|
9
|
+
import { type CustomerRefusal, type DeliveryResult, type JobCustomer, type JobRequirement } from './test-customer.js';
|
|
10
|
+
/**
|
|
11
|
+
* The events of one job, which the developer's job process posts to its session as they happen,
|
|
12
|
+
* so the screen shows what the developer's code does. Each names the order it belongs to. In order
|
|
13
|
+
* they are the order received, the compute secured, the quote sent, the customer verifying, the
|
|
14
|
+
* customer verified or refused, the developer's own check of the customer's commitment passed or
|
|
15
|
+
* refused, work started, delivered, the payment received and each reserve released. A job the
|
|
16
|
+
* customer cancels after its start posts the cancellation and each step of the charge instead:
|
|
17
|
+
* reported, confirmed by Avow, then paid or paused for a ruling.
|
|
18
|
+
*
|
|
19
|
+
* An event about the customer reports what the customer's order said, with each check's block, so
|
|
20
|
+
* the screen can read the chain at that block itself. Every statement names the block it rests on
|
|
21
|
+
* and says nothing beyond it.
|
|
22
|
+
*/
|
|
23
|
+
interface JobEventBase {
|
|
24
|
+
run: number;
|
|
25
|
+
source: AgentSource;
|
|
26
|
+
orderId: string;
|
|
27
|
+
}
|
|
28
|
+
/** Avow's test customer offered a job, which needs an accepted compute booking behind the quote. */
|
|
29
|
+
export interface JobOrderReceived extends JobEventBase {
|
|
30
|
+
type: 'job_order_received';
|
|
31
|
+
customer: JobCustomer;
|
|
32
|
+
work: JobSubject['work'];
|
|
33
|
+
/** The job's price in micros, paid by a separate transfer on delivery. */
|
|
34
|
+
price: bigint;
|
|
35
|
+
deliverBy: bigint;
|
|
36
|
+
requirement: JobRequirement;
|
|
37
|
+
}
|
|
38
|
+
/** The business booked compute for the job, and the GPU supplier accepted the booking. */
|
|
39
|
+
export interface JobComputeSecured extends JobEventBase {
|
|
40
|
+
type: 'job_compute_secured';
|
|
41
|
+
/** The compute booking, on the buyer side of the business's own lock. */
|
|
42
|
+
reference: CommitmentReference;
|
|
43
|
+
/** The GPU supplier's business id. */
|
|
44
|
+
supplier: string;
|
|
45
|
+
/** What the business reserved for it, in micros. */
|
|
46
|
+
amount: bigint;
|
|
47
|
+
/** Until this moment the business can cancel the booking at no charge. */
|
|
48
|
+
freeCancelBy: bigint;
|
|
49
|
+
/** When the reserve comes back if nobody releases or charges it before. */
|
|
50
|
+
releaseDate: bigint;
|
|
51
|
+
}
|
|
52
|
+
/** The developer's code quoted the job. */
|
|
53
|
+
export interface JobQuoteSent extends JobEventBase {
|
|
54
|
+
type: 'job_quote_sent';
|
|
55
|
+
termsHash: Hex;
|
|
56
|
+
/** The compute booking the quote names, or null when it names none. */
|
|
57
|
+
compute: CommitmentReference | null;
|
|
58
|
+
price: bigint;
|
|
59
|
+
}
|
|
60
|
+
/** The customer is checking the quote and the compute booking it names. */
|
|
61
|
+
export interface JobCustomerVerifying extends JobEventBase {
|
|
62
|
+
type: 'job_customer_verifying';
|
|
63
|
+
}
|
|
64
|
+
/** The customer's check passed, with each booking relied on and the block it was read at. */
|
|
65
|
+
export interface JobCustomerVerified extends JobEventBase {
|
|
66
|
+
type: 'job_customer_verified';
|
|
67
|
+
checks: CheckedDependency[];
|
|
68
|
+
}
|
|
69
|
+
/** The customer refused the quote, or its reserve was refused on the way to its lock. */
|
|
70
|
+
export interface JobCustomerRefused extends JobEventBase {
|
|
71
|
+
type: 'job_customer_refused';
|
|
72
|
+
refusal: CustomerRefusal;
|
|
73
|
+
}
|
|
74
|
+
/** One charge the job's terms let the supplier report, up to its cap in micros. */
|
|
75
|
+
export interface JobCharge {
|
|
76
|
+
kind: ChargeKind;
|
|
77
|
+
amount: bigint;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The developer's code checked the customer's commitment and its reserve, and its acceptance
|
|
81
|
+
* landed on the customer's lock. This is the moment work can begin.
|
|
82
|
+
*/
|
|
83
|
+
export interface JobCommitmentChecked extends JobEventBase {
|
|
84
|
+
type: 'job_commitment_checked';
|
|
85
|
+
/** The customer's commitment, on the buyer side of the customer's lock. */
|
|
86
|
+
reference: CommitmentReference;
|
|
87
|
+
/** What the customer's reserve holds, in micros. */
|
|
88
|
+
amount: bigint;
|
|
89
|
+
/** The charges the reserve backs, each with its cap. The job's price is never one. */
|
|
90
|
+
charges: JobCharge[];
|
|
91
|
+
releaseDate: bigint;
|
|
92
|
+
/** The compute booking as the acceptance check read it again, with its block. */
|
|
93
|
+
checks: CheckedDependency[];
|
|
94
|
+
/**
|
|
95
|
+
* The transaction that carried the acceptance, and its block. Null when the lock already showed
|
|
96
|
+
* the acceptance an earlier attempt sent, and this run never saw the transaction it landed in.
|
|
97
|
+
*/
|
|
98
|
+
acceptedIn: {
|
|
99
|
+
transactionHash: Hex;
|
|
100
|
+
blockNumber: bigint;
|
|
101
|
+
} | null;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Who refused the customer's commitment on the developer's side. `service` is the developer's own
|
|
105
|
+
* check, which the job process runs for its service. `avow` is Avow's API declining to authorize
|
|
106
|
+
* the commitment for the developer's business, as for a reserve it doesn't see funded. `relay` and
|
|
107
|
+
* `lock` refused the acceptance on its way to the customer's lock.
|
|
108
|
+
*/
|
|
109
|
+
export declare const COMMITMENT_REFUSAL_LAYERS: readonly ['service', 'avow', 'relay', 'lock'];
|
|
110
|
+
export type CommitmentRefusalLayer = (typeof COMMITMENT_REFUSAL_LAYERS)[number];
|
|
111
|
+
/** The developer's code refused the customer's commitment, so no work starts. */
|
|
112
|
+
export interface JobCommitmentRefused extends JobEventBase {
|
|
113
|
+
type: 'job_commitment_refused';
|
|
114
|
+
code: ReasonCode;
|
|
115
|
+
layer: CommitmentRefusalLayer;
|
|
116
|
+
/** The block the refusing check read, or null when it refused before reading the chain. */
|
|
117
|
+
block: PinnedBlock | null;
|
|
118
|
+
/** The booking relied on that failed, by its place in the terms, or null when none did alone. */
|
|
119
|
+
index: number | null;
|
|
120
|
+
}
|
|
121
|
+
/** Work started, at or after the moment the customer's free cancellation ended. */
|
|
122
|
+
export interface JobWorkStarted extends JobEventBase {
|
|
123
|
+
type: 'job_work_started';
|
|
124
|
+
reference: CommitmentReference;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The developer's code reported delivery to the customer, handing over the result. The work is
|
|
128
|
+
* simulated, so the result is a placeholder whose label says so, with the hash of its content.
|
|
129
|
+
*/
|
|
130
|
+
export interface JobDelivered extends JobEventBase {
|
|
131
|
+
type: 'job_delivered';
|
|
132
|
+
reference: CommitmentReference;
|
|
133
|
+
result: DeliveryResult;
|
|
134
|
+
}
|
|
135
|
+
/** The customer paid the price, by a transfer whose memo is the job's commitment id. */
|
|
136
|
+
export interface JobPaid extends JobEventBase {
|
|
137
|
+
type: 'job_paid';
|
|
138
|
+
payment: PaymentReference;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The customer cancelled the job after its start, by a signed request Avow timestamped. Work stops,
|
|
142
|
+
* and the job's terms let the business report a late-cancellation charge on the customer's reserve.
|
|
143
|
+
*/
|
|
144
|
+
export interface JobCustomerCancelled extends JobEventBase {
|
|
145
|
+
type: 'job_customer_cancelled';
|
|
146
|
+
reference: CommitmentReference;
|
|
147
|
+
/** When the customer says Avow recorded its cancellation. */
|
|
148
|
+
cancelledAt: bigint;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* How long a business waits after a customer's cancellation before it reports the charge, in
|
|
152
|
+
* seconds. Avow confirms a late-cancellation charge from its own record of the cancellation, and
|
|
153
|
+
* only when that record shows the cancellation clearly before the report, on Avow's clock and on
|
|
154
|
+
* the chain's. A report filed sooner goes to a ruling.
|
|
155
|
+
*/
|
|
156
|
+
export declare const REPORT_AFTER_CANCELLATION = 45n;
|
|
157
|
+
/**
|
|
158
|
+
* The business reported a charge on the customer's reserve, signed by its supplier signing key.
|
|
159
|
+
* Nothing has moved yet. Avow answers the report from its own records before the report's deadline.
|
|
160
|
+
*/
|
|
161
|
+
export interface JobChargeReported extends JobEventBase {
|
|
162
|
+
type: 'job_charge_reported';
|
|
163
|
+
reference: CommitmentReference;
|
|
164
|
+
kind: ChargeKind;
|
|
165
|
+
/** The charge reported, in micros, within the cap the job's terms set for its kind. */
|
|
166
|
+
amount: bigint;
|
|
167
|
+
/** Which of the commitment's reports this is, 1 or 2. */
|
|
168
|
+
reportNumber: number;
|
|
169
|
+
transactionHash: Hex;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Avow confirmed the charge against its record of the cancellation. The charge isn't paid yet. The
|
|
173
|
+
* customer can contest it until `contestableUntil`, and it becomes payable then if it hasn't.
|
|
174
|
+
*/
|
|
175
|
+
export interface JobChargeConfirmed extends JobEventBase {
|
|
176
|
+
type: 'job_charge_confirmed';
|
|
177
|
+
reference: CommitmentReference;
|
|
178
|
+
amount: bigint;
|
|
179
|
+
contestableUntil: bigint;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Why a reported charge waits for a ruling. `contested` is the customer's contest of a confirmed
|
|
183
|
+
* charge, `referred` is Avow sending the report to a ruling since its records don't support it, and
|
|
184
|
+
* `unanswered` is a report Avow didn't answer before its deadline.
|
|
185
|
+
*/
|
|
186
|
+
export declare const CHARGE_PAUSE_CAUSES: readonly ['contested', 'referred', 'unanswered'];
|
|
187
|
+
export type ChargePauseCause = (typeof CHARGE_PAUSE_CAUSES)[number];
|
|
188
|
+
/** The charge is paused for a ruling, so nothing pays until one is posted. */
|
|
189
|
+
export interface JobChargePaused extends JobEventBase {
|
|
190
|
+
type: 'job_charge_paused';
|
|
191
|
+
reference: CommitmentReference;
|
|
192
|
+
cause: ChargePauseCause;
|
|
193
|
+
}
|
|
194
|
+
/** The contest window closed with no contest, and the lock paid the charge to the business. */
|
|
195
|
+
export interface JobChargePaid extends JobEventBase {
|
|
196
|
+
type: 'job_charge_paid';
|
|
197
|
+
reference: CommitmentReference;
|
|
198
|
+
amount: bigint;
|
|
199
|
+
}
|
|
200
|
+
/** How a reserve came back. A consent carries the reason the supplier gave, as it gave it. */
|
|
201
|
+
export type JobRelease = {
|
|
202
|
+
way: 'consent';
|
|
203
|
+
reason: ReleaseReason;
|
|
204
|
+
} | {
|
|
205
|
+
way: 'free_cancellation';
|
|
206
|
+
} | {
|
|
207
|
+
way: 'release_date';
|
|
208
|
+
} | {
|
|
209
|
+
way: 'unaccepted';
|
|
210
|
+
};
|
|
211
|
+
/** A reserve of the job came back to the business that made it. */
|
|
212
|
+
export interface JobReserveReleased extends JobEventBase {
|
|
213
|
+
type: 'job_reserve_released';
|
|
214
|
+
/** `job` is the customer's reserve for the job, and `compute` the business's for its compute. */
|
|
215
|
+
role: 'job' | 'compute';
|
|
216
|
+
reference: CommitmentReference;
|
|
217
|
+
release: JobRelease;
|
|
218
|
+
transactionHash: Hex;
|
|
219
|
+
}
|
|
220
|
+
/** One event of a job, as its session's screen shows it. */
|
|
221
|
+
export type JobEvent = JobOrderReceived | JobComputeSecured | JobQuoteSent | JobCustomerVerifying | JobCustomerVerified | JobCustomerRefused | JobCommitmentChecked | JobCommitmentRefused | JobWorkStarted | JobDelivered | JobPaid | JobCustomerCancelled | JobChargeReported | JobChargeConfirmed | JobChargePaused | JobChargePaid | JobReserveReleased;
|
|
222
|
+
/** Each job event's JSON form, which the session's event schema takes alongside its own. */
|
|
223
|
+
export declare const JOB_EVENT_SCHEMAS: readonly [z.ZodObject<{
|
|
224
|
+
run: z.ZodNumber;
|
|
225
|
+
source: z.ZodEnum<{
|
|
226
|
+
mcp: "mcp";
|
|
227
|
+
script: "script";
|
|
228
|
+
session: "session";
|
|
229
|
+
}>;
|
|
230
|
+
orderId: z.ZodString;
|
|
231
|
+
type: z.ZodLiteral<"job_order_received">;
|
|
232
|
+
customer: z.ZodObject<{
|
|
233
|
+
label: z.ZodLiteral<"Avow's test customer">;
|
|
234
|
+
businessId: z.ZodString;
|
|
235
|
+
}, z.core.$strict>;
|
|
236
|
+
work: z.ZodObject<{
|
|
237
|
+
kind: z.ZodString;
|
|
238
|
+
summary: z.ZodString;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
241
|
+
deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
242
|
+
requirement: z.ZodObject<{
|
|
243
|
+
template: z.ZodLiteral<"gpu-reservation/1">;
|
|
244
|
+
condition: z.ZodLiteral<"accepted">;
|
|
245
|
+
disclosed: z.ZodLiteral<"subject">;
|
|
246
|
+
}, z.core.$strict>;
|
|
247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
+
run: z.ZodNumber;
|
|
249
|
+
source: z.ZodEnum<{
|
|
250
|
+
mcp: "mcp";
|
|
251
|
+
script: "script";
|
|
252
|
+
session: "session";
|
|
253
|
+
}>;
|
|
254
|
+
orderId: z.ZodString;
|
|
255
|
+
type: z.ZodLiteral<"job_compute_secured">;
|
|
256
|
+
reference: z.ZodObject<{
|
|
257
|
+
kind: z.ZodLiteral<"commitment">;
|
|
258
|
+
chainId: z.ZodNumber;
|
|
259
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
260
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
261
|
+
side: z.ZodEnum<{
|
|
262
|
+
buyer: "buyer";
|
|
263
|
+
supplier: "supplier";
|
|
264
|
+
}>;
|
|
265
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
266
|
+
}, z.core.$strict>;
|
|
267
|
+
supplier: z.ZodString;
|
|
268
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
269
|
+
freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
270
|
+
releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
272
|
+
run: z.ZodNumber;
|
|
273
|
+
source: z.ZodEnum<{
|
|
274
|
+
mcp: "mcp";
|
|
275
|
+
script: "script";
|
|
276
|
+
session: "session";
|
|
277
|
+
}>;
|
|
278
|
+
orderId: z.ZodString;
|
|
279
|
+
type: z.ZodLiteral<"job_quote_sent">;
|
|
280
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
281
|
+
compute: z.ZodNullable<z.ZodObject<{
|
|
282
|
+
kind: z.ZodLiteral<"commitment">;
|
|
283
|
+
chainId: z.ZodNumber;
|
|
284
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
285
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
286
|
+
side: z.ZodEnum<{
|
|
287
|
+
buyer: "buyer";
|
|
288
|
+
supplier: "supplier";
|
|
289
|
+
}>;
|
|
290
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
291
|
+
}, z.core.$strict>>;
|
|
292
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
293
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
294
|
+
run: z.ZodNumber;
|
|
295
|
+
source: z.ZodEnum<{
|
|
296
|
+
mcp: "mcp";
|
|
297
|
+
script: "script";
|
|
298
|
+
session: "session";
|
|
299
|
+
}>;
|
|
300
|
+
orderId: z.ZodString;
|
|
301
|
+
type: z.ZodLiteral<"job_customer_verifying">;
|
|
302
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
303
|
+
run: z.ZodNumber;
|
|
304
|
+
source: z.ZodEnum<{
|
|
305
|
+
mcp: "mcp";
|
|
306
|
+
script: "script";
|
|
307
|
+
session: "session";
|
|
308
|
+
}>;
|
|
309
|
+
orderId: z.ZodString;
|
|
310
|
+
type: z.ZodLiteral<"job_customer_verified">;
|
|
311
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
312
|
+
on: z.ZodObject<{
|
|
313
|
+
kind: z.ZodLiteral<"commitment">;
|
|
314
|
+
chainId: z.ZodNumber;
|
|
315
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
316
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
317
|
+
side: z.ZodEnum<{
|
|
318
|
+
buyer: "buyer";
|
|
319
|
+
supplier: "supplier";
|
|
320
|
+
}>;
|
|
321
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
322
|
+
}, z.core.$strict>;
|
|
323
|
+
block: z.ZodObject<{
|
|
324
|
+
number: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
325
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
326
|
+
timestamp: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
}, z.core.$strict>>;
|
|
329
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
330
|
+
run: z.ZodNumber;
|
|
331
|
+
source: z.ZodEnum<{
|
|
332
|
+
mcp: "mcp";
|
|
333
|
+
script: "script";
|
|
334
|
+
session: "session";
|
|
335
|
+
}>;
|
|
336
|
+
orderId: z.ZodString;
|
|
337
|
+
type: z.ZodLiteral<"job_customer_refused">;
|
|
338
|
+
refusal: z.ZodObject<{
|
|
339
|
+
code: z.ZodEnum<{
|
|
340
|
+
"administrator.no_authority": "administrator.no_authority";
|
|
341
|
+
"agent.key_mismatch": "agent.key_mismatch";
|
|
342
|
+
"agent.revoked": "agent.revoked";
|
|
343
|
+
"agreement.parties_mismatch": "agreement.parties_mismatch";
|
|
344
|
+
"approval.charges_mismatch": "approval.charges_mismatch";
|
|
345
|
+
"approval.commitment_mismatch": "approval.commitment_mismatch";
|
|
346
|
+
"approval.dispute_mismatch": "approval.dispute_mismatch";
|
|
347
|
+
"approval.human_invalid": "approval.human_invalid";
|
|
348
|
+
"approval.human_required": "approval.human_required";
|
|
349
|
+
"approval.mandate_mismatch": "approval.mandate_mismatch";
|
|
350
|
+
"approval.parties_mismatch": "approval.parties_mismatch";
|
|
351
|
+
"approval.terms_mismatch": "approval.terms_mismatch";
|
|
352
|
+
approved: "approved";
|
|
353
|
+
"authorization.accept_by_passed": "authorization.accept_by_passed";
|
|
354
|
+
"authorization.buyer_mismatch": "authorization.buyer_mismatch";
|
|
355
|
+
"authorization.commitment_mismatch": "authorization.commitment_mismatch";
|
|
356
|
+
"authorization.mandate_mismatch": "authorization.mandate_mismatch";
|
|
357
|
+
"authorization.payee_mismatch": "authorization.payee_mismatch";
|
|
358
|
+
"authorization.terms_mismatch": "authorization.terms_mismatch";
|
|
359
|
+
"authorization.token_not_accepted": "authorization.token_not_accepted";
|
|
360
|
+
"business.test_data": "business.test_data";
|
|
361
|
+
"business.unknown": "business.unknown";
|
|
362
|
+
"business.unverified": "business.unverified";
|
|
363
|
+
"chain.acceptance_reverted": "chain.acceptance_reverted";
|
|
364
|
+
"chain.agent_key_inactive": "chain.agent_key_inactive";
|
|
365
|
+
"chain.approval_mismatch": "chain.approval_mismatch";
|
|
366
|
+
"chain.cancel_reverted": "chain.cancel_reverted";
|
|
367
|
+
"chain.lock_timing_unexpected": "chain.lock_timing_unexpected";
|
|
368
|
+
"chain.lock_unknown": "chain.lock_unknown";
|
|
369
|
+
"chain.mandate_mismatch": "chain.mandate_mismatch";
|
|
370
|
+
"chain.report_reverted": "chain.report_reverted";
|
|
371
|
+
"chain.reserve_accepted": "chain.reserve_accepted";
|
|
372
|
+
"chain.reserve_mismatch": "chain.reserve_mismatch";
|
|
373
|
+
"chain.reserve_missing": "chain.reserve_missing";
|
|
374
|
+
"chain.supplier_mismatch": "chain.supplier_mismatch";
|
|
375
|
+
"commitment.cancel_closed": "commitment.cancel_closed";
|
|
376
|
+
"commitment.cancel_on_lock": "commitment.cancel_on_lock";
|
|
377
|
+
"commitment.ended": "commitment.ended";
|
|
378
|
+
"commitment.unknown": "commitment.unknown";
|
|
379
|
+
"consent.count_out_of_range": "consent.count_out_of_range";
|
|
380
|
+
"consent.count_passed": "consent.count_passed";
|
|
381
|
+
"consent.not_releasable": "consent.not_releasable";
|
|
382
|
+
"contest.already_contested": "contest.already_contested";
|
|
383
|
+
"contest.not_contestable": "contest.not_contestable";
|
|
384
|
+
"contest.not_on_chain": "contest.not_on_chain";
|
|
385
|
+
"contest.reason_not_for_charge": "contest.reason_not_for_charge";
|
|
386
|
+
"contest.statement_invalid": "contest.statement_invalid";
|
|
387
|
+
"contest.statement_mismatch": "contest.statement_mismatch";
|
|
388
|
+
"contest.window_closed": "contest.window_closed";
|
|
389
|
+
"dependency.cancellable": "dependency.cancellable";
|
|
390
|
+
"dependency.charge_pending": "dependency.charge_pending";
|
|
391
|
+
"dependency.disclosure_invalid": "dependency.disclosure_invalid";
|
|
392
|
+
"dependency.does_not_fit": "dependency.does_not_fit";
|
|
393
|
+
"dependency.elided": "dependency.elided";
|
|
394
|
+
"dependency.ended": "dependency.ended";
|
|
395
|
+
"dependency.lock_unknown": "dependency.lock_unknown";
|
|
396
|
+
"dependency.not_accepted": "dependency.not_accepted";
|
|
397
|
+
"dependency.not_found": "dependency.not_found";
|
|
398
|
+
"dependency.not_owned": "dependency.not_owned";
|
|
399
|
+
"dependency.required": "dependency.required";
|
|
400
|
+
"dependency.self_supplied": "dependency.self_supplied";
|
|
401
|
+
"dependency.stale": "dependency.stale";
|
|
402
|
+
"dependency.terms_mismatch": "dependency.terms_mismatch";
|
|
403
|
+
"dependency.unreadable": "dependency.unreadable";
|
|
404
|
+
"dependency.unrecorded": "dependency.unrecorded";
|
|
405
|
+
"keychain.over_daily_limit": "keychain.over_daily_limit";
|
|
406
|
+
"mandate.action_not_permitted": "mandate.action_not_permitted";
|
|
407
|
+
"mandate.ap2_mismatch": "mandate.ap2_mismatch";
|
|
408
|
+
"mandate.category_not_allowed": "mandate.category_not_allowed";
|
|
409
|
+
"mandate.currency_not_allowed": "mandate.currency_not_allowed";
|
|
410
|
+
"mandate.ends_before_window": "mandate.ends_before_window";
|
|
411
|
+
"mandate.expired": "mandate.expired";
|
|
412
|
+
"mandate.invalid": "mandate.invalid";
|
|
413
|
+
"mandate.missing": "mandate.missing";
|
|
414
|
+
"mandate.over_commitment_cap": "mandate.over_commitment_cap";
|
|
415
|
+
"mandate.over_open_reserves_cap": "mandate.over_open_reserves_cap";
|
|
416
|
+
"mandate.over_payment_limit": "mandate.over_payment_limit";
|
|
417
|
+
"mandate.revoked": "mandate.revoked";
|
|
418
|
+
"mandate.signature_invalid": "mandate.signature_invalid";
|
|
419
|
+
"mandate.supplier_not_allowed": "mandate.supplier_not_allowed";
|
|
420
|
+
"mandate.token_not_allowed": "mandate.token_not_allowed";
|
|
421
|
+
"message.expired": "message.expired";
|
|
422
|
+
"message.invalid": "message.invalid";
|
|
423
|
+
"message.replayed": "message.replayed";
|
|
424
|
+
"message.schema_unknown": "message.schema_unknown";
|
|
425
|
+
"message.signature_invalid": "message.signature_invalid";
|
|
426
|
+
"message.signer_unknown": "message.signer_unknown";
|
|
427
|
+
"message.validity_too_long": "message.validity_too_long";
|
|
428
|
+
"message.wrong_chain": "message.wrong_chain";
|
|
429
|
+
"message.wrong_contract": "message.wrong_contract";
|
|
430
|
+
"order.commitment_mismatch": "order.commitment_mismatch";
|
|
431
|
+
"order.limit_reached": "order.limit_reached";
|
|
432
|
+
"order.out_of_step": "order.out_of_step";
|
|
433
|
+
"order.supplier_mismatch": "order.supplier_mismatch";
|
|
434
|
+
"order.terms_changed": "order.terms_changed";
|
|
435
|
+
"order.unknown": "order.unknown";
|
|
436
|
+
"payment.amount_mismatch": "payment.amount_mismatch";
|
|
437
|
+
"payment.attributed_twice": "payment.attributed_twice";
|
|
438
|
+
"payment.failed": "payment.failed";
|
|
439
|
+
"payment.memo_mismatch": "payment.memo_mismatch";
|
|
440
|
+
"payment.not_final": "payment.not_final";
|
|
441
|
+
"payment.not_found": "payment.not_found";
|
|
442
|
+
"payment.not_memo_transfer": "payment.not_memo_transfer";
|
|
443
|
+
"payment.recipient_mismatch": "payment.recipient_mismatch";
|
|
444
|
+
"payment.sender_mismatch": "payment.sender_mismatch";
|
|
445
|
+
"payment.token_mismatch": "payment.token_mismatch";
|
|
446
|
+
"payment.token_not_accepted": "payment.token_not_accepted";
|
|
447
|
+
"reference.commitment_mismatch": "reference.commitment_mismatch";
|
|
448
|
+
"reference.unreadable": "reference.unreadable";
|
|
449
|
+
"report.amount_invalid": "report.amount_invalid";
|
|
450
|
+
"report.kind_not_allowed": "report.kind_not_allowed";
|
|
451
|
+
"report.limit_reached": "report.limit_reached";
|
|
452
|
+
"report.not_reportable": "report.not_reportable";
|
|
453
|
+
"report.open": "report.open";
|
|
454
|
+
"report.too_early": "report.too_early";
|
|
455
|
+
"request.id_reused": "request.id_reused";
|
|
456
|
+
"request.in_progress": "request.in_progress";
|
|
457
|
+
"request.invalid": "request.invalid";
|
|
458
|
+
"request.signer_unknown": "request.signer_unknown";
|
|
459
|
+
"request.unsigned": "request.unsigned";
|
|
460
|
+
"sandbox.budget_spent": "sandbox.budget_spent";
|
|
461
|
+
"sandbox.closed": "sandbox.closed";
|
|
462
|
+
"sandbox.event_too_large": "sandbox.event_too_large";
|
|
463
|
+
"sandbox.faucet_fees_low": "sandbox.faucet_fees_low";
|
|
464
|
+
"sandbox.limit_reached": "sandbox.limit_reached";
|
|
465
|
+
"sandbox.pool_empty": "sandbox.pool_empty";
|
|
466
|
+
"sandbox.session_expired": "sandbox.session_expired";
|
|
467
|
+
"sandbox.session_full": "sandbox.session_full";
|
|
468
|
+
"sandbox.session_rate": "sandbox.session_rate";
|
|
469
|
+
"sandbox.session_taken": "sandbox.session_taken";
|
|
470
|
+
"sandbox.taken": "sandbox.taken";
|
|
471
|
+
"service.booking_required": "service.booking_required";
|
|
472
|
+
"service.cancel_declined": "service.cancel_declined";
|
|
473
|
+
"service.cancel_late": "service.cancel_late";
|
|
474
|
+
"service.check_failed": "service.check_failed";
|
|
475
|
+
"service.compute_off": "service.compute_off";
|
|
476
|
+
"service.over_budget": "service.over_budget";
|
|
477
|
+
"service.quantity_unavailable": "service.quantity_unavailable";
|
|
478
|
+
"service.unavailable": "service.unavailable";
|
|
479
|
+
"service.unknown_booking": "service.unknown_booking";
|
|
480
|
+
"service.unknown_offer": "service.unknown_offer";
|
|
481
|
+
"sponsorship.altered": "sponsorship.altered";
|
|
482
|
+
"sponsorship.budget_spent": "sponsorship.budget_spent";
|
|
483
|
+
"sponsorship.over_cap": "sponsorship.over_cap";
|
|
484
|
+
"sponsorship.rate_limited": "sponsorship.rate_limited";
|
|
485
|
+
"sponsorship.refused": "sponsorship.refused";
|
|
486
|
+
"sponsorship.simulation_failed": "sponsorship.simulation_failed";
|
|
487
|
+
"supplier.declined": "supplier.declined";
|
|
488
|
+
"supplier.not_accepted": "supplier.not_accepted";
|
|
489
|
+
"supplier.unknown": "supplier.unknown";
|
|
490
|
+
"terms.backing_unsupported": "terms.backing_unsupported";
|
|
491
|
+
"terms.category_mismatch": "terms.category_mismatch";
|
|
492
|
+
"terms.charges_invalid": "terms.charges_invalid";
|
|
493
|
+
"terms.contest_window_short": "terms.contest_window_short";
|
|
494
|
+
"terms.currency_mismatch": "terms.currency_mismatch";
|
|
495
|
+
"terms.deadlines_out_of_order": "terms.deadlines_out_of_order";
|
|
496
|
+
"terms.dispute_invalid": "terms.dispute_invalid";
|
|
497
|
+
"terms.hash_mismatch": "terms.hash_mismatch";
|
|
498
|
+
"terms.incomplete": "terms.incomplete";
|
|
499
|
+
"terms.invalid": "terms.invalid";
|
|
500
|
+
"terms.reserve_mismatch": "terms.reserve_mismatch";
|
|
501
|
+
"terms.template_invalid": "terms.template_invalid";
|
|
502
|
+
"terms.template_unknown": "terms.template_unknown";
|
|
503
|
+
"terms.version_unknown": "terms.version_unknown";
|
|
504
|
+
}>;
|
|
505
|
+
layer: z.ZodEnum<{
|
|
506
|
+
avow: "avow";
|
|
507
|
+
customer: "customer";
|
|
508
|
+
keychain: "keychain";
|
|
509
|
+
lock: "lock";
|
|
510
|
+
relay: "relay";
|
|
511
|
+
supplier: "supplier";
|
|
512
|
+
unknown: "unknown";
|
|
513
|
+
}>;
|
|
514
|
+
block: z.ZodNullable<z.ZodObject<{
|
|
515
|
+
number: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
516
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
517
|
+
timestamp: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
518
|
+
}, z.core.$strict>>;
|
|
519
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
520
|
+
}, z.core.$strict>;
|
|
521
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
522
|
+
run: z.ZodNumber;
|
|
523
|
+
source: z.ZodEnum<{
|
|
524
|
+
mcp: "mcp";
|
|
525
|
+
script: "script";
|
|
526
|
+
session: "session";
|
|
527
|
+
}>;
|
|
528
|
+
orderId: z.ZodString;
|
|
529
|
+
type: z.ZodLiteral<"job_commitment_checked">;
|
|
530
|
+
reference: z.ZodObject<{
|
|
531
|
+
kind: z.ZodLiteral<"commitment">;
|
|
532
|
+
chainId: z.ZodNumber;
|
|
533
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
534
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
535
|
+
side: z.ZodEnum<{
|
|
536
|
+
buyer: "buyer";
|
|
537
|
+
supplier: "supplier";
|
|
538
|
+
}>;
|
|
539
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
540
|
+
}, z.core.$strict>;
|
|
541
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
542
|
+
charges: z.ZodArray<z.ZodObject<{
|
|
543
|
+
kind: z.ZodEnum<{
|
|
544
|
+
lateCancellation: "lateCancellation";
|
|
545
|
+
noShow: "noShow";
|
|
546
|
+
}>;
|
|
547
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
548
|
+
}, z.core.$strict>>;
|
|
549
|
+
releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
550
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
551
|
+
on: z.ZodObject<{
|
|
552
|
+
kind: z.ZodLiteral<"commitment">;
|
|
553
|
+
chainId: z.ZodNumber;
|
|
554
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
555
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
556
|
+
side: z.ZodEnum<{
|
|
557
|
+
buyer: "buyer";
|
|
558
|
+
supplier: "supplier";
|
|
559
|
+
}>;
|
|
560
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
561
|
+
}, z.core.$strict>;
|
|
562
|
+
block: z.ZodObject<{
|
|
563
|
+
number: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
564
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
565
|
+
timestamp: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
566
|
+
}, z.core.$strict>;
|
|
567
|
+
}, z.core.$strict>>;
|
|
568
|
+
acceptedIn: z.ZodNullable<z.ZodObject<{
|
|
569
|
+
transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
570
|
+
blockNumber: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
571
|
+
}, z.core.$strict>>;
|
|
572
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
573
|
+
run: z.ZodNumber;
|
|
574
|
+
source: z.ZodEnum<{
|
|
575
|
+
mcp: "mcp";
|
|
576
|
+
script: "script";
|
|
577
|
+
session: "session";
|
|
578
|
+
}>;
|
|
579
|
+
orderId: z.ZodString;
|
|
580
|
+
type: z.ZodLiteral<"job_commitment_refused">;
|
|
581
|
+
code: z.ZodEnum<{
|
|
582
|
+
"administrator.no_authority": "administrator.no_authority";
|
|
583
|
+
"agent.key_mismatch": "agent.key_mismatch";
|
|
584
|
+
"agent.revoked": "agent.revoked";
|
|
585
|
+
"agreement.parties_mismatch": "agreement.parties_mismatch";
|
|
586
|
+
"approval.charges_mismatch": "approval.charges_mismatch";
|
|
587
|
+
"approval.commitment_mismatch": "approval.commitment_mismatch";
|
|
588
|
+
"approval.dispute_mismatch": "approval.dispute_mismatch";
|
|
589
|
+
"approval.human_invalid": "approval.human_invalid";
|
|
590
|
+
"approval.human_required": "approval.human_required";
|
|
591
|
+
"approval.mandate_mismatch": "approval.mandate_mismatch";
|
|
592
|
+
"approval.parties_mismatch": "approval.parties_mismatch";
|
|
593
|
+
"approval.terms_mismatch": "approval.terms_mismatch";
|
|
594
|
+
approved: "approved";
|
|
595
|
+
"authorization.accept_by_passed": "authorization.accept_by_passed";
|
|
596
|
+
"authorization.buyer_mismatch": "authorization.buyer_mismatch";
|
|
597
|
+
"authorization.commitment_mismatch": "authorization.commitment_mismatch";
|
|
598
|
+
"authorization.mandate_mismatch": "authorization.mandate_mismatch";
|
|
599
|
+
"authorization.payee_mismatch": "authorization.payee_mismatch";
|
|
600
|
+
"authorization.terms_mismatch": "authorization.terms_mismatch";
|
|
601
|
+
"authorization.token_not_accepted": "authorization.token_not_accepted";
|
|
602
|
+
"business.test_data": "business.test_data";
|
|
603
|
+
"business.unknown": "business.unknown";
|
|
604
|
+
"business.unverified": "business.unverified";
|
|
605
|
+
"chain.acceptance_reverted": "chain.acceptance_reverted";
|
|
606
|
+
"chain.agent_key_inactive": "chain.agent_key_inactive";
|
|
607
|
+
"chain.approval_mismatch": "chain.approval_mismatch";
|
|
608
|
+
"chain.cancel_reverted": "chain.cancel_reverted";
|
|
609
|
+
"chain.lock_timing_unexpected": "chain.lock_timing_unexpected";
|
|
610
|
+
"chain.lock_unknown": "chain.lock_unknown";
|
|
611
|
+
"chain.mandate_mismatch": "chain.mandate_mismatch";
|
|
612
|
+
"chain.report_reverted": "chain.report_reverted";
|
|
613
|
+
"chain.reserve_accepted": "chain.reserve_accepted";
|
|
614
|
+
"chain.reserve_mismatch": "chain.reserve_mismatch";
|
|
615
|
+
"chain.reserve_missing": "chain.reserve_missing";
|
|
616
|
+
"chain.supplier_mismatch": "chain.supplier_mismatch";
|
|
617
|
+
"commitment.cancel_closed": "commitment.cancel_closed";
|
|
618
|
+
"commitment.cancel_on_lock": "commitment.cancel_on_lock";
|
|
619
|
+
"commitment.ended": "commitment.ended";
|
|
620
|
+
"commitment.unknown": "commitment.unknown";
|
|
621
|
+
"consent.count_out_of_range": "consent.count_out_of_range";
|
|
622
|
+
"consent.count_passed": "consent.count_passed";
|
|
623
|
+
"consent.not_releasable": "consent.not_releasable";
|
|
624
|
+
"contest.already_contested": "contest.already_contested";
|
|
625
|
+
"contest.not_contestable": "contest.not_contestable";
|
|
626
|
+
"contest.not_on_chain": "contest.not_on_chain";
|
|
627
|
+
"contest.reason_not_for_charge": "contest.reason_not_for_charge";
|
|
628
|
+
"contest.statement_invalid": "contest.statement_invalid";
|
|
629
|
+
"contest.statement_mismatch": "contest.statement_mismatch";
|
|
630
|
+
"contest.window_closed": "contest.window_closed";
|
|
631
|
+
"dependency.cancellable": "dependency.cancellable";
|
|
632
|
+
"dependency.charge_pending": "dependency.charge_pending";
|
|
633
|
+
"dependency.disclosure_invalid": "dependency.disclosure_invalid";
|
|
634
|
+
"dependency.does_not_fit": "dependency.does_not_fit";
|
|
635
|
+
"dependency.elided": "dependency.elided";
|
|
636
|
+
"dependency.ended": "dependency.ended";
|
|
637
|
+
"dependency.lock_unknown": "dependency.lock_unknown";
|
|
638
|
+
"dependency.not_accepted": "dependency.not_accepted";
|
|
639
|
+
"dependency.not_found": "dependency.not_found";
|
|
640
|
+
"dependency.not_owned": "dependency.not_owned";
|
|
641
|
+
"dependency.required": "dependency.required";
|
|
642
|
+
"dependency.self_supplied": "dependency.self_supplied";
|
|
643
|
+
"dependency.stale": "dependency.stale";
|
|
644
|
+
"dependency.terms_mismatch": "dependency.terms_mismatch";
|
|
645
|
+
"dependency.unreadable": "dependency.unreadable";
|
|
646
|
+
"dependency.unrecorded": "dependency.unrecorded";
|
|
647
|
+
"keychain.over_daily_limit": "keychain.over_daily_limit";
|
|
648
|
+
"mandate.action_not_permitted": "mandate.action_not_permitted";
|
|
649
|
+
"mandate.ap2_mismatch": "mandate.ap2_mismatch";
|
|
650
|
+
"mandate.category_not_allowed": "mandate.category_not_allowed";
|
|
651
|
+
"mandate.currency_not_allowed": "mandate.currency_not_allowed";
|
|
652
|
+
"mandate.ends_before_window": "mandate.ends_before_window";
|
|
653
|
+
"mandate.expired": "mandate.expired";
|
|
654
|
+
"mandate.invalid": "mandate.invalid";
|
|
655
|
+
"mandate.missing": "mandate.missing";
|
|
656
|
+
"mandate.over_commitment_cap": "mandate.over_commitment_cap";
|
|
657
|
+
"mandate.over_open_reserves_cap": "mandate.over_open_reserves_cap";
|
|
658
|
+
"mandate.over_payment_limit": "mandate.over_payment_limit";
|
|
659
|
+
"mandate.revoked": "mandate.revoked";
|
|
660
|
+
"mandate.signature_invalid": "mandate.signature_invalid";
|
|
661
|
+
"mandate.supplier_not_allowed": "mandate.supplier_not_allowed";
|
|
662
|
+
"mandate.token_not_allowed": "mandate.token_not_allowed";
|
|
663
|
+
"message.expired": "message.expired";
|
|
664
|
+
"message.invalid": "message.invalid";
|
|
665
|
+
"message.replayed": "message.replayed";
|
|
666
|
+
"message.schema_unknown": "message.schema_unknown";
|
|
667
|
+
"message.signature_invalid": "message.signature_invalid";
|
|
668
|
+
"message.signer_unknown": "message.signer_unknown";
|
|
669
|
+
"message.validity_too_long": "message.validity_too_long";
|
|
670
|
+
"message.wrong_chain": "message.wrong_chain";
|
|
671
|
+
"message.wrong_contract": "message.wrong_contract";
|
|
672
|
+
"order.commitment_mismatch": "order.commitment_mismatch";
|
|
673
|
+
"order.limit_reached": "order.limit_reached";
|
|
674
|
+
"order.out_of_step": "order.out_of_step";
|
|
675
|
+
"order.supplier_mismatch": "order.supplier_mismatch";
|
|
676
|
+
"order.terms_changed": "order.terms_changed";
|
|
677
|
+
"order.unknown": "order.unknown";
|
|
678
|
+
"payment.amount_mismatch": "payment.amount_mismatch";
|
|
679
|
+
"payment.attributed_twice": "payment.attributed_twice";
|
|
680
|
+
"payment.failed": "payment.failed";
|
|
681
|
+
"payment.memo_mismatch": "payment.memo_mismatch";
|
|
682
|
+
"payment.not_final": "payment.not_final";
|
|
683
|
+
"payment.not_found": "payment.not_found";
|
|
684
|
+
"payment.not_memo_transfer": "payment.not_memo_transfer";
|
|
685
|
+
"payment.recipient_mismatch": "payment.recipient_mismatch";
|
|
686
|
+
"payment.sender_mismatch": "payment.sender_mismatch";
|
|
687
|
+
"payment.token_mismatch": "payment.token_mismatch";
|
|
688
|
+
"payment.token_not_accepted": "payment.token_not_accepted";
|
|
689
|
+
"reference.commitment_mismatch": "reference.commitment_mismatch";
|
|
690
|
+
"reference.unreadable": "reference.unreadable";
|
|
691
|
+
"report.amount_invalid": "report.amount_invalid";
|
|
692
|
+
"report.kind_not_allowed": "report.kind_not_allowed";
|
|
693
|
+
"report.limit_reached": "report.limit_reached";
|
|
694
|
+
"report.not_reportable": "report.not_reportable";
|
|
695
|
+
"report.open": "report.open";
|
|
696
|
+
"report.too_early": "report.too_early";
|
|
697
|
+
"request.id_reused": "request.id_reused";
|
|
698
|
+
"request.in_progress": "request.in_progress";
|
|
699
|
+
"request.invalid": "request.invalid";
|
|
700
|
+
"request.signer_unknown": "request.signer_unknown";
|
|
701
|
+
"request.unsigned": "request.unsigned";
|
|
702
|
+
"sandbox.budget_spent": "sandbox.budget_spent";
|
|
703
|
+
"sandbox.closed": "sandbox.closed";
|
|
704
|
+
"sandbox.event_too_large": "sandbox.event_too_large";
|
|
705
|
+
"sandbox.faucet_fees_low": "sandbox.faucet_fees_low";
|
|
706
|
+
"sandbox.limit_reached": "sandbox.limit_reached";
|
|
707
|
+
"sandbox.pool_empty": "sandbox.pool_empty";
|
|
708
|
+
"sandbox.session_expired": "sandbox.session_expired";
|
|
709
|
+
"sandbox.session_full": "sandbox.session_full";
|
|
710
|
+
"sandbox.session_rate": "sandbox.session_rate";
|
|
711
|
+
"sandbox.session_taken": "sandbox.session_taken";
|
|
712
|
+
"sandbox.taken": "sandbox.taken";
|
|
713
|
+
"service.booking_required": "service.booking_required";
|
|
714
|
+
"service.cancel_declined": "service.cancel_declined";
|
|
715
|
+
"service.cancel_late": "service.cancel_late";
|
|
716
|
+
"service.check_failed": "service.check_failed";
|
|
717
|
+
"service.compute_off": "service.compute_off";
|
|
718
|
+
"service.over_budget": "service.over_budget";
|
|
719
|
+
"service.quantity_unavailable": "service.quantity_unavailable";
|
|
720
|
+
"service.unavailable": "service.unavailable";
|
|
721
|
+
"service.unknown_booking": "service.unknown_booking";
|
|
722
|
+
"service.unknown_offer": "service.unknown_offer";
|
|
723
|
+
"sponsorship.altered": "sponsorship.altered";
|
|
724
|
+
"sponsorship.budget_spent": "sponsorship.budget_spent";
|
|
725
|
+
"sponsorship.over_cap": "sponsorship.over_cap";
|
|
726
|
+
"sponsorship.rate_limited": "sponsorship.rate_limited";
|
|
727
|
+
"sponsorship.refused": "sponsorship.refused";
|
|
728
|
+
"sponsorship.simulation_failed": "sponsorship.simulation_failed";
|
|
729
|
+
"supplier.declined": "supplier.declined";
|
|
730
|
+
"supplier.not_accepted": "supplier.not_accepted";
|
|
731
|
+
"supplier.unknown": "supplier.unknown";
|
|
732
|
+
"terms.backing_unsupported": "terms.backing_unsupported";
|
|
733
|
+
"terms.category_mismatch": "terms.category_mismatch";
|
|
734
|
+
"terms.charges_invalid": "terms.charges_invalid";
|
|
735
|
+
"terms.contest_window_short": "terms.contest_window_short";
|
|
736
|
+
"terms.currency_mismatch": "terms.currency_mismatch";
|
|
737
|
+
"terms.deadlines_out_of_order": "terms.deadlines_out_of_order";
|
|
738
|
+
"terms.dispute_invalid": "terms.dispute_invalid";
|
|
739
|
+
"terms.hash_mismatch": "terms.hash_mismatch";
|
|
740
|
+
"terms.incomplete": "terms.incomplete";
|
|
741
|
+
"terms.invalid": "terms.invalid";
|
|
742
|
+
"terms.reserve_mismatch": "terms.reserve_mismatch";
|
|
743
|
+
"terms.template_invalid": "terms.template_invalid";
|
|
744
|
+
"terms.template_unknown": "terms.template_unknown";
|
|
745
|
+
"terms.version_unknown": "terms.version_unknown";
|
|
746
|
+
}>;
|
|
747
|
+
layer: z.ZodEnum<{
|
|
748
|
+
avow: "avow";
|
|
749
|
+
lock: "lock";
|
|
750
|
+
relay: "relay";
|
|
751
|
+
service: "service";
|
|
752
|
+
}>;
|
|
753
|
+
block: z.ZodNullable<z.ZodObject<{
|
|
754
|
+
number: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
755
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
756
|
+
timestamp: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
757
|
+
}, z.core.$strict>>;
|
|
758
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
759
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
760
|
+
run: z.ZodNumber;
|
|
761
|
+
source: z.ZodEnum<{
|
|
762
|
+
mcp: "mcp";
|
|
763
|
+
script: "script";
|
|
764
|
+
session: "session";
|
|
765
|
+
}>;
|
|
766
|
+
orderId: z.ZodString;
|
|
767
|
+
type: z.ZodLiteral<"job_work_started">;
|
|
768
|
+
reference: z.ZodObject<{
|
|
769
|
+
kind: z.ZodLiteral<"commitment">;
|
|
770
|
+
chainId: z.ZodNumber;
|
|
771
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
772
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
773
|
+
side: z.ZodEnum<{
|
|
774
|
+
buyer: "buyer";
|
|
775
|
+
supplier: "supplier";
|
|
776
|
+
}>;
|
|
777
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
778
|
+
}, z.core.$strict>;
|
|
779
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
780
|
+
run: z.ZodNumber;
|
|
781
|
+
source: z.ZodEnum<{
|
|
782
|
+
mcp: "mcp";
|
|
783
|
+
script: "script";
|
|
784
|
+
session: "session";
|
|
785
|
+
}>;
|
|
786
|
+
orderId: z.ZodString;
|
|
787
|
+
type: z.ZodLiteral<"job_delivered">;
|
|
788
|
+
reference: z.ZodObject<{
|
|
789
|
+
kind: z.ZodLiteral<"commitment">;
|
|
790
|
+
chainId: z.ZodNumber;
|
|
791
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
792
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
793
|
+
side: z.ZodEnum<{
|
|
794
|
+
buyer: "buyer";
|
|
795
|
+
supplier: "supplier";
|
|
796
|
+
}>;
|
|
797
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
798
|
+
}, z.core.$strict>;
|
|
799
|
+
result: z.ZodObject<{
|
|
800
|
+
label: z.ZodLiteral<"Simulated fine-tuning result, a placeholder, since no model was trained">;
|
|
801
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
802
|
+
}, z.core.$strict>;
|
|
803
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
804
|
+
run: z.ZodNumber;
|
|
805
|
+
source: z.ZodEnum<{
|
|
806
|
+
mcp: "mcp";
|
|
807
|
+
script: "script";
|
|
808
|
+
session: "session";
|
|
809
|
+
}>;
|
|
810
|
+
orderId: z.ZodString;
|
|
811
|
+
type: z.ZodLiteral<"job_paid">;
|
|
812
|
+
payment: z.ZodObject<{
|
|
813
|
+
kind: z.ZodLiteral<"payment">;
|
|
814
|
+
chainId: z.ZodNumber;
|
|
815
|
+
transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
816
|
+
logIndex: z.ZodNumber;
|
|
817
|
+
token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
818
|
+
from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
819
|
+
to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
820
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
821
|
+
memo: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
822
|
+
}, z.core.$strict>;
|
|
823
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
824
|
+
run: z.ZodNumber;
|
|
825
|
+
source: z.ZodEnum<{
|
|
826
|
+
mcp: "mcp";
|
|
827
|
+
script: "script";
|
|
828
|
+
session: "session";
|
|
829
|
+
}>;
|
|
830
|
+
orderId: z.ZodString;
|
|
831
|
+
type: z.ZodLiteral<"job_customer_cancelled">;
|
|
832
|
+
reference: z.ZodObject<{
|
|
833
|
+
kind: z.ZodLiteral<"commitment">;
|
|
834
|
+
chainId: z.ZodNumber;
|
|
835
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
836
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
837
|
+
side: z.ZodEnum<{
|
|
838
|
+
buyer: "buyer";
|
|
839
|
+
supplier: "supplier";
|
|
840
|
+
}>;
|
|
841
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
842
|
+
}, z.core.$strict>;
|
|
843
|
+
cancelledAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
844
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
845
|
+
run: z.ZodNumber;
|
|
846
|
+
source: z.ZodEnum<{
|
|
847
|
+
mcp: "mcp";
|
|
848
|
+
script: "script";
|
|
849
|
+
session: "session";
|
|
850
|
+
}>;
|
|
851
|
+
orderId: z.ZodString;
|
|
852
|
+
type: z.ZodLiteral<"job_charge_reported">;
|
|
853
|
+
reference: z.ZodObject<{
|
|
854
|
+
kind: z.ZodLiteral<"commitment">;
|
|
855
|
+
chainId: z.ZodNumber;
|
|
856
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
857
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
858
|
+
side: z.ZodEnum<{
|
|
859
|
+
buyer: "buyer";
|
|
860
|
+
supplier: "supplier";
|
|
861
|
+
}>;
|
|
862
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
863
|
+
}, z.core.$strict>;
|
|
864
|
+
kind: z.ZodEnum<{
|
|
865
|
+
lateCancellation: "lateCancellation";
|
|
866
|
+
noShow: "noShow";
|
|
867
|
+
}>;
|
|
868
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
869
|
+
reportNumber: z.ZodNumber;
|
|
870
|
+
transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
871
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
872
|
+
run: z.ZodNumber;
|
|
873
|
+
source: z.ZodEnum<{
|
|
874
|
+
mcp: "mcp";
|
|
875
|
+
script: "script";
|
|
876
|
+
session: "session";
|
|
877
|
+
}>;
|
|
878
|
+
orderId: z.ZodString;
|
|
879
|
+
type: z.ZodLiteral<"job_charge_confirmed">;
|
|
880
|
+
reference: z.ZodObject<{
|
|
881
|
+
kind: z.ZodLiteral<"commitment">;
|
|
882
|
+
chainId: z.ZodNumber;
|
|
883
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
884
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
885
|
+
side: z.ZodEnum<{
|
|
886
|
+
buyer: "buyer";
|
|
887
|
+
supplier: "supplier";
|
|
888
|
+
}>;
|
|
889
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
890
|
+
}, z.core.$strict>;
|
|
891
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
892
|
+
contestableUntil: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
893
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
894
|
+
run: z.ZodNumber;
|
|
895
|
+
source: z.ZodEnum<{
|
|
896
|
+
mcp: "mcp";
|
|
897
|
+
script: "script";
|
|
898
|
+
session: "session";
|
|
899
|
+
}>;
|
|
900
|
+
orderId: z.ZodString;
|
|
901
|
+
type: z.ZodLiteral<"job_charge_paused">;
|
|
902
|
+
reference: z.ZodObject<{
|
|
903
|
+
kind: z.ZodLiteral<"commitment">;
|
|
904
|
+
chainId: z.ZodNumber;
|
|
905
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
906
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
907
|
+
side: z.ZodEnum<{
|
|
908
|
+
buyer: "buyer";
|
|
909
|
+
supplier: "supplier";
|
|
910
|
+
}>;
|
|
911
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
912
|
+
}, z.core.$strict>;
|
|
913
|
+
cause: z.ZodEnum<{
|
|
914
|
+
contested: "contested";
|
|
915
|
+
referred: "referred";
|
|
916
|
+
unanswered: "unanswered";
|
|
917
|
+
}>;
|
|
918
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
919
|
+
run: z.ZodNumber;
|
|
920
|
+
source: z.ZodEnum<{
|
|
921
|
+
mcp: "mcp";
|
|
922
|
+
script: "script";
|
|
923
|
+
session: "session";
|
|
924
|
+
}>;
|
|
925
|
+
orderId: z.ZodString;
|
|
926
|
+
type: z.ZodLiteral<"job_charge_paid">;
|
|
927
|
+
reference: z.ZodObject<{
|
|
928
|
+
kind: z.ZodLiteral<"commitment">;
|
|
929
|
+
chainId: z.ZodNumber;
|
|
930
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
931
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
932
|
+
side: z.ZodEnum<{
|
|
933
|
+
buyer: "buyer";
|
|
934
|
+
supplier: "supplier";
|
|
935
|
+
}>;
|
|
936
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
937
|
+
}, z.core.$strict>;
|
|
938
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
939
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
940
|
+
run: z.ZodNumber;
|
|
941
|
+
source: z.ZodEnum<{
|
|
942
|
+
mcp: "mcp";
|
|
943
|
+
script: "script";
|
|
944
|
+
session: "session";
|
|
945
|
+
}>;
|
|
946
|
+
orderId: z.ZodString;
|
|
947
|
+
type: z.ZodLiteral<"job_reserve_released">;
|
|
948
|
+
role: z.ZodEnum<{
|
|
949
|
+
compute: "compute";
|
|
950
|
+
job: "job";
|
|
951
|
+
}>;
|
|
952
|
+
reference: z.ZodObject<{
|
|
953
|
+
kind: z.ZodLiteral<"commitment">;
|
|
954
|
+
chainId: z.ZodNumber;
|
|
955
|
+
lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
956
|
+
commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
957
|
+
side: z.ZodEnum<{
|
|
958
|
+
buyer: "buyer";
|
|
959
|
+
supplier: "supplier";
|
|
960
|
+
}>;
|
|
961
|
+
termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
962
|
+
}, z.core.$strict>;
|
|
963
|
+
release: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
964
|
+
way: z.ZodLiteral<"consent">;
|
|
965
|
+
reason: z.ZodEnum<{
|
|
966
|
+
kept: "kept";
|
|
967
|
+
supplierFailed: "supplierFailed";
|
|
968
|
+
}>;
|
|
969
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
970
|
+
way: z.ZodLiteral<"free_cancellation">;
|
|
971
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
972
|
+
way: z.ZodLiteral<"release_date">;
|
|
973
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
974
|
+
way: z.ZodLiteral<"unaccepted">;
|
|
975
|
+
}, z.core.$strict>], "way">;
|
|
976
|
+
transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
977
|
+
}, z.core.$strict>];
|
|
978
|
+
/** Every job event type, in the order a job that runs to the end posts them. */
|
|
979
|
+
export declare const JOB_EVENT_TYPES: readonly ["job_order_received", "job_compute_secured", "job_quote_sent", "job_customer_verifying", "job_customer_verified", "job_customer_refused", "job_commitment_checked", "job_commitment_refused", "job_work_started", "job_delivered", "job_paid", "job_customer_cancelled", "job_charge_reported", "job_charge_confirmed", "job_charge_paused", "job_charge_paid", "job_reserve_released"];
|
|
980
|
+
export {};
|
|
981
|
+
//# sourceMappingURL=job-session.d.ts.map
|