@adea-ai/runtime-sdk 1.13.0 → 1.14.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.
@@ -0,0 +1,1232 @@
1
+ import { z } from 'zod';
2
+ export declare const PiDurableLeadPreparationRefSchema: z.ZodString;
3
+ export declare const PiDurableLeadCommandEnvelopeSchema: z.ZodObject<{
4
+ contractVersion: z.ZodObject<{
5
+ major: z.ZodNumber;
6
+ minor: z.ZodNumber;
7
+ }, z.core.$strict>;
8
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
9
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
10
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
11
+ commandId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>;
12
+ idempotencyKey: z.ZodString;
13
+ payloadHash: z.ZodString;
14
+ operation: z.ZodString;
15
+ issuedAt: z.ZodISODateTime;
16
+ payload: z.ZodUnknown;
17
+ caller: z.ZodObject<{
18
+ servicePrincipalId: z.ZodString;
19
+ }, z.core.$strict>;
20
+ correlation: z.ZodObject<{
21
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
22
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
23
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
24
+ }, z.core.$strict>;
25
+ }, z.core.$strict>;
26
+ export declare const PiDurableLeadReadEnvelopeSchema: z.ZodObject<{
27
+ contractVersion: z.ZodObject<{
28
+ major: z.ZodNumber;
29
+ minor: z.ZodNumber;
30
+ }, z.core.$strict>;
31
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
32
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
33
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
34
+ operation: z.ZodString;
35
+ requestedAt: z.ZodISODateTime;
36
+ parameters: z.ZodUnknown;
37
+ caller: z.ZodObject<{
38
+ servicePrincipalId: z.ZodString;
39
+ }, z.core.$strict>;
40
+ correlation: z.ZodObject<{
41
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
42
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
43
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
44
+ }, z.core.$strict>;
45
+ }, z.core.$strict>;
46
+ export declare const PiDurableLeadPrepareRequestSchema: z.ZodObject<{
47
+ contractVersion: z.ZodObject<{
48
+ major: z.ZodNumber;
49
+ minor: z.ZodNumber;
50
+ }, z.core.$strict>;
51
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
52
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
53
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
54
+ commandId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>;
55
+ idempotencyKey: z.ZodString;
56
+ payloadHash: z.ZodString;
57
+ issuedAt: z.ZodISODateTime;
58
+ caller: z.ZodObject<{
59
+ servicePrincipalId: z.ZodString;
60
+ }, z.core.$strict>;
61
+ correlation: z.ZodObject<{
62
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
63
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
64
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
65
+ }, z.core.$strict>;
66
+ operation: z.ZodLiteral<"pi-durable.lead.prepare">;
67
+ payload: z.ZodObject<{
68
+ intentId: z.ZodUUID;
69
+ }, z.core.$strict>;
70
+ }, z.core.$strict>;
71
+ export declare const PiDurableLeadDispatchRequestSchema: z.ZodObject<{
72
+ contractVersion: z.ZodObject<{
73
+ major: z.ZodNumber;
74
+ minor: z.ZodNumber;
75
+ }, z.core.$strict>;
76
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
77
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
78
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
79
+ commandId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>;
80
+ idempotencyKey: z.ZodString;
81
+ payloadHash: z.ZodString;
82
+ issuedAt: z.ZodISODateTime;
83
+ caller: z.ZodObject<{
84
+ servicePrincipalId: z.ZodString;
85
+ }, z.core.$strict>;
86
+ correlation: z.ZodObject<{
87
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
88
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
89
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
90
+ }, z.core.$strict>;
91
+ operation: z.ZodLiteral<"pi-durable.lead.dispatch">;
92
+ payload: z.ZodObject<{
93
+ intentId: z.ZodUUID;
94
+ preparationRef: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strict>;
96
+ }, z.core.$strict>;
97
+ export declare const PiDurableLeadStatusRequestSchema: z.ZodObject<{
98
+ contractVersion: z.ZodObject<{
99
+ major: z.ZodNumber;
100
+ minor: z.ZodNumber;
101
+ }, z.core.$strict>;
102
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
103
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
104
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
105
+ requestedAt: z.ZodISODateTime;
106
+ caller: z.ZodObject<{
107
+ servicePrincipalId: z.ZodString;
108
+ }, z.core.$strict>;
109
+ correlation: z.ZodObject<{
110
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
111
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
112
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
113
+ }, z.core.$strict>;
114
+ operation: z.ZodLiteral<"pi-durable.lead.status">;
115
+ parameters: z.ZodObject<{
116
+ dispatchId: z.ZodString;
117
+ }, z.core.$strict>;
118
+ }, z.core.$strict>;
119
+ export declare const PiDurableLeadLookupRequestSchema: z.ZodObject<{
120
+ contractVersion: z.ZodObject<{
121
+ major: z.ZodNumber;
122
+ minor: z.ZodNumber;
123
+ }, z.core.$strict>;
124
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
125
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
126
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
127
+ requestedAt: z.ZodISODateTime;
128
+ caller: z.ZodObject<{
129
+ servicePrincipalId: z.ZodString;
130
+ }, z.core.$strict>;
131
+ correlation: z.ZodObject<{
132
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
133
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
134
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
135
+ }, z.core.$strict>;
136
+ operation: z.ZodLiteral<"pi-durable.lead.lookup">;
137
+ parameters: z.ZodObject<{
138
+ intentId: z.ZodUUID;
139
+ }, z.core.$strict>;
140
+ }, z.core.$strict>;
141
+ export declare const PiDurableLeadProgressRequestSchema: z.ZodObject<{
142
+ contractVersion: z.ZodObject<{
143
+ major: z.ZodNumber;
144
+ minor: z.ZodNumber;
145
+ }, z.core.$strict>;
146
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
147
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
148
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
149
+ requestedAt: z.ZodISODateTime;
150
+ caller: z.ZodObject<{
151
+ servicePrincipalId: z.ZodString;
152
+ }, z.core.$strict>;
153
+ correlation: z.ZodObject<{
154
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
155
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
156
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
157
+ }, z.core.$strict>;
158
+ operation: z.ZodLiteral<"pi-durable.lead.progress">;
159
+ parameters: z.ZodObject<{
160
+ dispatchId: z.ZodString;
161
+ afterSequence: z.ZodOptional<z.ZodNumber>;
162
+ }, z.core.$strict>;
163
+ }, z.core.$strict>;
164
+ export declare const PiDurableLeadCancelRequestSchema: z.ZodObject<{
165
+ contractVersion: z.ZodObject<{
166
+ major: z.ZodNumber;
167
+ minor: z.ZodNumber;
168
+ }, z.core.$strict>;
169
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
170
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
171
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
172
+ commandId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>;
173
+ idempotencyKey: z.ZodString;
174
+ payloadHash: z.ZodString;
175
+ issuedAt: z.ZodISODateTime;
176
+ caller: z.ZodObject<{
177
+ servicePrincipalId: z.ZodString;
178
+ }, z.core.$strict>;
179
+ correlation: z.ZodObject<{
180
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
181
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
182
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
183
+ }, z.core.$strict>;
184
+ operation: z.ZodLiteral<"pi-durable.lead.cancel">;
185
+ payload: z.ZodObject<{
186
+ dispatchId: z.ZodString;
187
+ }, z.core.$strict>;
188
+ }, z.core.$strict>;
189
+ export declare const PiDurableLeadReceiptResponseSchema: z.ZodObject<{
190
+ schemaVersion: z.ZodLiteral<"pi-lead-dispatch/v1">;
191
+ dispatchId: z.ZodString;
192
+ intentId: z.ZodUUID;
193
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
194
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
195
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
196
+ }, z.core.$strict>;
197
+ /** Disclosure bound to a prepared canonical attempt; never a spending or runtime capability. */
198
+ export declare const PiDurableLeadPreparationSchema: z.ZodObject<{
199
+ schemaVersion: z.ZodLiteral<"pi-lead-preparation/v1">;
200
+ preparationRef: z.ZodString;
201
+ intentId: z.ZodUUID;
202
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
203
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
204
+ selectionRef: z.ZodString;
205
+ selectionRevision: z.ZodNumber;
206
+ funding: z.ZodObject<{
207
+ schemaVersion: z.ZodLiteral<"model-funding-display/v1">;
208
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
209
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
210
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
211
+ selectionRef: z.ZodString;
212
+ selectionRevision: z.ZodNumber;
213
+ state: z.ZodLiteral<"ready">;
214
+ provider: z.ZodString;
215
+ providerModel: z.ZodString;
216
+ accountRef: z.ZodString;
217
+ authKind: z.ZodEnum<{
218
+ api_key: "api_key";
219
+ local_runtime: "local_runtime";
220
+ provider_subscription: "provider_subscription";
221
+ }>;
222
+ fundingSource: z.ZodEnum<{
223
+ byo_api: "byo_api";
224
+ external_subscription: "external_subscription";
225
+ hq_managed: "hq_managed";
226
+ }>;
227
+ fundingOwner: z.ZodObject<{
228
+ ownerRef: z.ZodString;
229
+ kind: z.ZodEnum<{
230
+ adea_account: "adea_account";
231
+ provider_account: "provider_account";
232
+ workspace_account: "workspace_account";
233
+ }>;
234
+ displayName: z.ZodString;
235
+ revision: z.ZodNumber;
236
+ evidenceRef: z.ZodString;
237
+ }, z.core.$strict>;
238
+ authorizationRef: z.ZodString;
239
+ authorityRevision: z.ZodNumber;
240
+ expiresAt: z.ZodISODateTime;
241
+ }, z.core.$strict>;
242
+ expiresAt: z.ZodISODateTime;
243
+ replayed: z.ZodBoolean;
244
+ }, z.core.$strict>;
245
+ export declare const PiDurableLeadPrepareResponseSchema: z.ZodObject<{
246
+ contractVersion: z.ZodObject<{
247
+ major: z.ZodNumber;
248
+ minor: z.ZodNumber;
249
+ }, z.core.$strict>;
250
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
251
+ correlation: z.ZodObject<{
252
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
253
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
254
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
255
+ }, z.core.$strict>;
256
+ data: z.ZodObject<{
257
+ schemaVersion: z.ZodLiteral<"pi-lead-preparation/v1">;
258
+ preparationRef: z.ZodString;
259
+ intentId: z.ZodUUID;
260
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
261
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
262
+ selectionRef: z.ZodString;
263
+ selectionRevision: z.ZodNumber;
264
+ funding: z.ZodObject<{
265
+ schemaVersion: z.ZodLiteral<"model-funding-display/v1">;
266
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
267
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
268
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
269
+ selectionRef: z.ZodString;
270
+ selectionRevision: z.ZodNumber;
271
+ state: z.ZodLiteral<"ready">;
272
+ provider: z.ZodString;
273
+ providerModel: z.ZodString;
274
+ accountRef: z.ZodString;
275
+ authKind: z.ZodEnum<{
276
+ api_key: "api_key";
277
+ local_runtime: "local_runtime";
278
+ provider_subscription: "provider_subscription";
279
+ }>;
280
+ fundingSource: z.ZodEnum<{
281
+ byo_api: "byo_api";
282
+ external_subscription: "external_subscription";
283
+ hq_managed: "hq_managed";
284
+ }>;
285
+ fundingOwner: z.ZodObject<{
286
+ ownerRef: z.ZodString;
287
+ kind: z.ZodEnum<{
288
+ adea_account: "adea_account";
289
+ provider_account: "provider_account";
290
+ workspace_account: "workspace_account";
291
+ }>;
292
+ displayName: z.ZodString;
293
+ revision: z.ZodNumber;
294
+ evidenceRef: z.ZodString;
295
+ }, z.core.$strict>;
296
+ authorizationRef: z.ZodString;
297
+ authorityRevision: z.ZodNumber;
298
+ expiresAt: z.ZodISODateTime;
299
+ }, z.core.$strict>;
300
+ expiresAt: z.ZodISODateTime;
301
+ replayed: z.ZodBoolean;
302
+ }, z.core.$strict>;
303
+ }, z.core.$strict>;
304
+ /** Stored dispatch metadata; lookup never creates an execution or runtime session. */
305
+ export declare const PiDurableLeadLookupResponseSchema: z.ZodObject<{
306
+ contractVersion: z.ZodObject<{
307
+ major: z.ZodNumber;
308
+ minor: z.ZodNumber;
309
+ }, z.core.$strict>;
310
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
311
+ correlation: z.ZodObject<{
312
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
313
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
314
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
315
+ }, z.core.$strict>;
316
+ data: z.ZodObject<{
317
+ schemaVersion: z.ZodLiteral<"pi-lead-lookup/v1">;
318
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
319
+ intentId: z.ZodUUID;
320
+ receipt: z.ZodNullable<z.ZodObject<{
321
+ dispatchId: z.ZodString;
322
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
323
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
324
+ state: z.ZodEnum<{
325
+ dispatched: "dispatched";
326
+ dispatching: "dispatching";
327
+ reconciliation_required: "reconciliation_required";
328
+ }>;
329
+ runtimeSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>>;
330
+ }, z.core.$strict>>;
331
+ }, z.core.$strict>;
332
+ }, z.core.$strict>;
333
+ export declare const PiDurableLeadDispatchResponseSchema: z.ZodObject<{
334
+ contractVersion: z.ZodObject<{
335
+ major: z.ZodNumber;
336
+ minor: z.ZodNumber;
337
+ }, z.core.$strict>;
338
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
339
+ correlation: z.ZodObject<{
340
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
341
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
342
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
343
+ }, z.core.$strict>;
344
+ data: z.ZodObject<{
345
+ schemaVersion: z.ZodLiteral<"pi-lead-dispatch/v1">;
346
+ dispatchId: z.ZodString;
347
+ intentId: z.ZodUUID;
348
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
349
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
350
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
351
+ state: z.ZodEnum<{
352
+ awaiting_input: "awaiting_input";
353
+ cancelled: "cancelled";
354
+ cancelling: "cancelling";
355
+ completed: "completed";
356
+ failed: "failed";
357
+ running: "running";
358
+ starting: "starting";
359
+ timed_out: "timed_out";
360
+ unknown: "unknown";
361
+ }>;
362
+ replayed: z.ZodBoolean;
363
+ }, z.core.$strict>;
364
+ }, z.core.$strict>;
365
+ export declare const PiDurableLeadStatusResponseSchema: z.ZodObject<{
366
+ contractVersion: z.ZodObject<{
367
+ major: z.ZodNumber;
368
+ minor: z.ZodNumber;
369
+ }, z.core.$strict>;
370
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
371
+ correlation: z.ZodObject<{
372
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
373
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
374
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
375
+ }, z.core.$strict>;
376
+ data: z.ZodObject<{
377
+ schemaVersion: z.ZodLiteral<"pi-lead-dispatch/v1">;
378
+ dispatchId: z.ZodString;
379
+ intentId: z.ZodUUID;
380
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
381
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
382
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
383
+ state: z.ZodEnum<{
384
+ awaiting_input: "awaiting_input";
385
+ cancelled: "cancelled";
386
+ cancelling: "cancelling";
387
+ completed: "completed";
388
+ failed: "failed";
389
+ running: "running";
390
+ starting: "starting";
391
+ timed_out: "timed_out";
392
+ unknown: "unknown";
393
+ }>;
394
+ status: z.ZodObject<{
395
+ handle: z.ZodObject<{
396
+ handleId: z.ZodString;
397
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
398
+ externalSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>>;
399
+ startedAt: z.ZodISODateTime;
400
+ }, z.core.$strict>;
401
+ state: z.ZodEnum<{
402
+ awaiting_input: "awaiting_input";
403
+ cancelled: "cancelled";
404
+ cancelling: "cancelling";
405
+ completed: "completed";
406
+ failed: "failed";
407
+ running: "running";
408
+ starting: "starting";
409
+ timed_out: "timed_out";
410
+ unknown: "unknown";
411
+ }>;
412
+ observedAt: z.ZodISODateTime;
413
+ result: z.ZodOptional<z.ZodObject<{
414
+ outcome: z.ZodLiteral<"completed">;
415
+ output: z.ZodOptional<z.ZodJSONSchema>;
416
+ usage: z.ZodObject<{
417
+ inputTokens: z.ZodNumber;
418
+ outputTokens: z.ZodNumber;
419
+ durationMs: z.ZodNumber;
420
+ cost: z.ZodOptional<z.ZodObject<{
421
+ amount: z.ZodString;
422
+ currency: z.ZodString;
423
+ }, z.core.$strict>>;
424
+ accounting: z.ZodOptional<z.ZodObject<{
425
+ schemaVersion: z.ZodLiteral<1>;
426
+ sourceId: z.ZodString;
427
+ fundingSource: z.ZodEnum<{
428
+ byo_api: "byo_api";
429
+ external_subscription: "external_subscription";
430
+ hq_managed: "hq_managed";
431
+ }>;
432
+ currency: z.ZodLiteral<"USD">;
433
+ chargedMicrounits: z.ZodNumber;
434
+ costExact: z.ZodLiteral<true>;
435
+ }, z.core.$strict>>;
436
+ }, z.core.$strict>;
437
+ artifacts: z.ZodArray<z.ZodObject<{
438
+ artifactId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"Artifact reference ID">, string>>;
439
+ version: z.ZodNumber;
440
+ mediaType: z.ZodString;
441
+ digest: z.ZodString;
442
+ sizeBytes: z.ZodNumber;
443
+ locator: z.ZodString;
444
+ }, z.core.$strip>>;
445
+ }, z.core.$strict>>;
446
+ terminalUsage: z.ZodOptional<z.ZodObject<{
447
+ inputTokens: z.ZodNumber;
448
+ outputTokens: z.ZodNumber;
449
+ durationMs: z.ZodNumber;
450
+ cost: z.ZodOptional<z.ZodObject<{
451
+ amount: z.ZodString;
452
+ currency: z.ZodString;
453
+ }, z.core.$strict>>;
454
+ accounting: z.ZodOptional<z.ZodObject<{
455
+ schemaVersion: z.ZodLiteral<1>;
456
+ sourceId: z.ZodString;
457
+ fundingSource: z.ZodEnum<{
458
+ byo_api: "byo_api";
459
+ external_subscription: "external_subscription";
460
+ hq_managed: "hq_managed";
461
+ }>;
462
+ currency: z.ZodLiteral<"USD">;
463
+ chargedMicrounits: z.ZodNumber;
464
+ costExact: z.ZodLiteral<true>;
465
+ }, z.core.$strict>>;
466
+ }, z.core.$strict>>;
467
+ error: z.ZodOptional<z.ZodObject<{
468
+ code: z.ZodString;
469
+ classification: z.ZodEnum<{
470
+ cancelled: "cancelled";
471
+ conflict: "conflict";
472
+ infrastructure: "infrastructure";
473
+ runtime: "runtime";
474
+ timeout: "timeout";
475
+ unavailable: "unavailable";
476
+ unknown: "unknown";
477
+ unsupported: "unsupported";
478
+ validation: "validation";
479
+ }>;
480
+ message: z.ZodString;
481
+ retryable: z.ZodBoolean;
482
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
483
+ }, z.core.$strict>>;
484
+ }, z.core.$strict>;
485
+ }, z.core.$strict>;
486
+ }, z.core.$strict>;
487
+ export declare const PiDurableLeadProgressResponseSchema: z.ZodObject<{
488
+ contractVersion: z.ZodObject<{
489
+ major: z.ZodNumber;
490
+ minor: z.ZodNumber;
491
+ }, z.core.$strict>;
492
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
493
+ correlation: z.ZodObject<{
494
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
495
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
496
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
497
+ }, z.core.$strict>;
498
+ data: z.ZodObject<{
499
+ schemaVersion: z.ZodLiteral<"pi-lead-dispatch/v1">;
500
+ dispatchId: z.ZodString;
501
+ intentId: z.ZodUUID;
502
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
503
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
504
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
505
+ events: z.ZodArray<z.ZodObject<{
506
+ handleId: z.ZodString;
507
+ sequence: z.ZodNumber;
508
+ occurredAt: z.ZodISODateTime;
509
+ type: z.ZodEnum<{
510
+ artifact: "artifact";
511
+ interaction: "interaction";
512
+ output: "output";
513
+ status: "status";
514
+ usage: "usage";
515
+ }>;
516
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
517
+ }, z.core.$strict>>;
518
+ nextSequence: z.ZodNumber;
519
+ }, z.core.$strict>;
520
+ }, z.core.$strict>;
521
+ export declare const PiDurableLeadCancelResponseSchema: z.ZodObject<{
522
+ contractVersion: z.ZodObject<{
523
+ major: z.ZodNumber;
524
+ minor: z.ZodNumber;
525
+ }, z.core.$strict>;
526
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
527
+ correlation: z.ZodObject<{
528
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
529
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
530
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
531
+ }, z.core.$strict>;
532
+ data: z.ZodObject<{
533
+ schemaVersion: z.ZodLiteral<"pi-lead-dispatch/v1">;
534
+ dispatchId: z.ZodString;
535
+ intentId: z.ZodUUID;
536
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
537
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
538
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
539
+ state: z.ZodEnum<{
540
+ awaiting_input: "awaiting_input";
541
+ cancelled: "cancelled";
542
+ cancelling: "cancelling";
543
+ completed: "completed";
544
+ failed: "failed";
545
+ running: "running";
546
+ starting: "starting";
547
+ timed_out: "timed_out";
548
+ unknown: "unknown";
549
+ }>;
550
+ status: z.ZodObject<{
551
+ handle: z.ZodObject<{
552
+ handleId: z.ZodString;
553
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
554
+ externalSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>>;
555
+ startedAt: z.ZodISODateTime;
556
+ }, z.core.$strict>;
557
+ state: z.ZodEnum<{
558
+ awaiting_input: "awaiting_input";
559
+ cancelled: "cancelled";
560
+ cancelling: "cancelling";
561
+ completed: "completed";
562
+ failed: "failed";
563
+ running: "running";
564
+ starting: "starting";
565
+ timed_out: "timed_out";
566
+ unknown: "unknown";
567
+ }>;
568
+ observedAt: z.ZodISODateTime;
569
+ result: z.ZodOptional<z.ZodObject<{
570
+ outcome: z.ZodLiteral<"completed">;
571
+ output: z.ZodOptional<z.ZodJSONSchema>;
572
+ usage: z.ZodObject<{
573
+ inputTokens: z.ZodNumber;
574
+ outputTokens: z.ZodNumber;
575
+ durationMs: z.ZodNumber;
576
+ cost: z.ZodOptional<z.ZodObject<{
577
+ amount: z.ZodString;
578
+ currency: z.ZodString;
579
+ }, z.core.$strict>>;
580
+ accounting: z.ZodOptional<z.ZodObject<{
581
+ schemaVersion: z.ZodLiteral<1>;
582
+ sourceId: z.ZodString;
583
+ fundingSource: z.ZodEnum<{
584
+ byo_api: "byo_api";
585
+ external_subscription: "external_subscription";
586
+ hq_managed: "hq_managed";
587
+ }>;
588
+ currency: z.ZodLiteral<"USD">;
589
+ chargedMicrounits: z.ZodNumber;
590
+ costExact: z.ZodLiteral<true>;
591
+ }, z.core.$strict>>;
592
+ }, z.core.$strict>;
593
+ artifacts: z.ZodArray<z.ZodObject<{
594
+ artifactId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"Artifact reference ID">, string>>;
595
+ version: z.ZodNumber;
596
+ mediaType: z.ZodString;
597
+ digest: z.ZodString;
598
+ sizeBytes: z.ZodNumber;
599
+ locator: z.ZodString;
600
+ }, z.core.$strip>>;
601
+ }, z.core.$strict>>;
602
+ terminalUsage: z.ZodOptional<z.ZodObject<{
603
+ inputTokens: z.ZodNumber;
604
+ outputTokens: z.ZodNumber;
605
+ durationMs: z.ZodNumber;
606
+ cost: z.ZodOptional<z.ZodObject<{
607
+ amount: z.ZodString;
608
+ currency: z.ZodString;
609
+ }, z.core.$strict>>;
610
+ accounting: z.ZodOptional<z.ZodObject<{
611
+ schemaVersion: z.ZodLiteral<1>;
612
+ sourceId: z.ZodString;
613
+ fundingSource: z.ZodEnum<{
614
+ byo_api: "byo_api";
615
+ external_subscription: "external_subscription";
616
+ hq_managed: "hq_managed";
617
+ }>;
618
+ currency: z.ZodLiteral<"USD">;
619
+ chargedMicrounits: z.ZodNumber;
620
+ costExact: z.ZodLiteral<true>;
621
+ }, z.core.$strict>>;
622
+ }, z.core.$strict>>;
623
+ error: z.ZodOptional<z.ZodObject<{
624
+ code: z.ZodString;
625
+ classification: z.ZodEnum<{
626
+ cancelled: "cancelled";
627
+ conflict: "conflict";
628
+ infrastructure: "infrastructure";
629
+ runtime: "runtime";
630
+ timeout: "timeout";
631
+ unavailable: "unavailable";
632
+ unknown: "unknown";
633
+ unsupported: "unsupported";
634
+ validation: "validation";
635
+ }>;
636
+ message: z.ZodString;
637
+ retryable: z.ZodBoolean;
638
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
639
+ }, z.core.$strict>>;
640
+ }, z.core.$strict>;
641
+ }, z.core.$strict>;
642
+ }, z.core.$strict>;
643
+ /** Existing versioned authenticated envelopes; payloads contain opaque references only. */
644
+ export declare const PiDurableLeadHttpContract: Readonly<{
645
+ schemaVersion: "pi-lead-dispatch/v1";
646
+ basePath: "/v3/pi-durable/lead-dispatches";
647
+ method: "POST";
648
+ prepare: Readonly<{
649
+ route: "prepare";
650
+ operation: "pi-durable.lead.prepare";
651
+ scope: "execution:accept";
652
+ requestSchema: z.ZodObject<{
653
+ contractVersion: z.ZodObject<{
654
+ major: z.ZodNumber;
655
+ minor: z.ZodNumber;
656
+ }, z.core.$strict>;
657
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
658
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
659
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
660
+ commandId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>;
661
+ idempotencyKey: z.ZodString;
662
+ payloadHash: z.ZodString;
663
+ issuedAt: z.ZodISODateTime;
664
+ caller: z.ZodObject<{
665
+ servicePrincipalId: z.ZodString;
666
+ }, z.core.$strict>;
667
+ correlation: z.ZodObject<{
668
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
669
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
670
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
671
+ }, z.core.$strict>;
672
+ operation: z.ZodLiteral<"pi-durable.lead.prepare">;
673
+ payload: z.ZodObject<{
674
+ intentId: z.ZodUUID;
675
+ }, z.core.$strict>;
676
+ }, z.core.$strict>;
677
+ responseSchema: z.ZodObject<{
678
+ contractVersion: z.ZodObject<{
679
+ major: z.ZodNumber;
680
+ minor: z.ZodNumber;
681
+ }, z.core.$strict>;
682
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
683
+ correlation: z.ZodObject<{
684
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
685
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
686
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
687
+ }, z.core.$strict>;
688
+ data: z.ZodObject<{
689
+ schemaVersion: z.ZodLiteral<"pi-lead-preparation/v1">;
690
+ preparationRef: z.ZodString;
691
+ intentId: z.ZodUUID;
692
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
693
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
694
+ selectionRef: z.ZodString;
695
+ selectionRevision: z.ZodNumber;
696
+ funding: z.ZodObject<{
697
+ schemaVersion: z.ZodLiteral<"model-funding-display/v1">;
698
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
699
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
700
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
701
+ selectionRef: z.ZodString;
702
+ selectionRevision: z.ZodNumber;
703
+ state: z.ZodLiteral<"ready">;
704
+ provider: z.ZodString;
705
+ providerModel: z.ZodString;
706
+ accountRef: z.ZodString;
707
+ authKind: z.ZodEnum<{
708
+ api_key: "api_key";
709
+ local_runtime: "local_runtime";
710
+ provider_subscription: "provider_subscription";
711
+ }>;
712
+ fundingSource: z.ZodEnum<{
713
+ byo_api: "byo_api";
714
+ external_subscription: "external_subscription";
715
+ hq_managed: "hq_managed";
716
+ }>;
717
+ fundingOwner: z.ZodObject<{
718
+ ownerRef: z.ZodString;
719
+ kind: z.ZodEnum<{
720
+ adea_account: "adea_account";
721
+ provider_account: "provider_account";
722
+ workspace_account: "workspace_account";
723
+ }>;
724
+ displayName: z.ZodString;
725
+ revision: z.ZodNumber;
726
+ evidenceRef: z.ZodString;
727
+ }, z.core.$strict>;
728
+ authorizationRef: z.ZodString;
729
+ authorityRevision: z.ZodNumber;
730
+ expiresAt: z.ZodISODateTime;
731
+ }, z.core.$strict>;
732
+ expiresAt: z.ZodISODateTime;
733
+ replayed: z.ZodBoolean;
734
+ }, z.core.$strict>;
735
+ }, z.core.$strict>;
736
+ }>;
737
+ dispatch: Readonly<{
738
+ route: "dispatch";
739
+ operation: "pi-durable.lead.dispatch";
740
+ scope: "execution:accept";
741
+ requestSchema: z.ZodObject<{
742
+ contractVersion: z.ZodObject<{
743
+ major: z.ZodNumber;
744
+ minor: z.ZodNumber;
745
+ }, z.core.$strict>;
746
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
747
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
748
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
749
+ commandId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>;
750
+ idempotencyKey: z.ZodString;
751
+ payloadHash: z.ZodString;
752
+ issuedAt: z.ZodISODateTime;
753
+ caller: z.ZodObject<{
754
+ servicePrincipalId: z.ZodString;
755
+ }, z.core.$strict>;
756
+ correlation: z.ZodObject<{
757
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
758
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
759
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
760
+ }, z.core.$strict>;
761
+ operation: z.ZodLiteral<"pi-durable.lead.dispatch">;
762
+ payload: z.ZodObject<{
763
+ intentId: z.ZodUUID;
764
+ preparationRef: z.ZodOptional<z.ZodString>;
765
+ }, z.core.$strict>;
766
+ }, z.core.$strict>;
767
+ responseSchema: z.ZodObject<{
768
+ contractVersion: z.ZodObject<{
769
+ major: z.ZodNumber;
770
+ minor: z.ZodNumber;
771
+ }, z.core.$strict>;
772
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
773
+ correlation: z.ZodObject<{
774
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
775
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
776
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
777
+ }, z.core.$strict>;
778
+ data: z.ZodObject<{
779
+ schemaVersion: z.ZodLiteral<"pi-lead-dispatch/v1">;
780
+ dispatchId: z.ZodString;
781
+ intentId: z.ZodUUID;
782
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
783
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
784
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
785
+ state: z.ZodEnum<{
786
+ awaiting_input: "awaiting_input";
787
+ cancelled: "cancelled";
788
+ cancelling: "cancelling";
789
+ completed: "completed";
790
+ failed: "failed";
791
+ running: "running";
792
+ starting: "starting";
793
+ timed_out: "timed_out";
794
+ unknown: "unknown";
795
+ }>;
796
+ replayed: z.ZodBoolean;
797
+ }, z.core.$strict>;
798
+ }, z.core.$strict>;
799
+ }>;
800
+ lookup: Readonly<{
801
+ route: "lookup";
802
+ operation: "pi-durable.lead.lookup";
803
+ scope: "execution:read";
804
+ requestSchema: z.ZodObject<{
805
+ contractVersion: z.ZodObject<{
806
+ major: z.ZodNumber;
807
+ minor: z.ZodNumber;
808
+ }, z.core.$strict>;
809
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
810
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
811
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
812
+ requestedAt: z.ZodISODateTime;
813
+ caller: z.ZodObject<{
814
+ servicePrincipalId: z.ZodString;
815
+ }, z.core.$strict>;
816
+ correlation: z.ZodObject<{
817
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
818
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
819
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
820
+ }, z.core.$strict>;
821
+ operation: z.ZodLiteral<"pi-durable.lead.lookup">;
822
+ parameters: z.ZodObject<{
823
+ intentId: z.ZodUUID;
824
+ }, z.core.$strict>;
825
+ }, z.core.$strict>;
826
+ responseSchema: z.ZodObject<{
827
+ contractVersion: z.ZodObject<{
828
+ major: z.ZodNumber;
829
+ minor: z.ZodNumber;
830
+ }, z.core.$strict>;
831
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
832
+ correlation: z.ZodObject<{
833
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
834
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
835
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
836
+ }, z.core.$strict>;
837
+ data: z.ZodObject<{
838
+ schemaVersion: z.ZodLiteral<"pi-lead-lookup/v1">;
839
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
840
+ intentId: z.ZodUUID;
841
+ receipt: z.ZodNullable<z.ZodObject<{
842
+ dispatchId: z.ZodString;
843
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
844
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
845
+ state: z.ZodEnum<{
846
+ dispatched: "dispatched";
847
+ dispatching: "dispatching";
848
+ reconciliation_required: "reconciliation_required";
849
+ }>;
850
+ runtimeSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>>;
851
+ }, z.core.$strict>>;
852
+ }, z.core.$strict>;
853
+ }, z.core.$strict>;
854
+ }>;
855
+ status: Readonly<{
856
+ route: "status";
857
+ operation: "pi-durable.lead.status";
858
+ scope: "execution:read";
859
+ requestSchema: z.ZodObject<{
860
+ contractVersion: z.ZodObject<{
861
+ major: z.ZodNumber;
862
+ minor: z.ZodNumber;
863
+ }, z.core.$strict>;
864
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
865
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
866
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
867
+ requestedAt: z.ZodISODateTime;
868
+ caller: z.ZodObject<{
869
+ servicePrincipalId: z.ZodString;
870
+ }, z.core.$strict>;
871
+ correlation: z.ZodObject<{
872
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
873
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
874
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
875
+ }, z.core.$strict>;
876
+ operation: z.ZodLiteral<"pi-durable.lead.status">;
877
+ parameters: z.ZodObject<{
878
+ dispatchId: z.ZodString;
879
+ }, z.core.$strict>;
880
+ }, z.core.$strict>;
881
+ responseSchema: z.ZodObject<{
882
+ contractVersion: z.ZodObject<{
883
+ major: z.ZodNumber;
884
+ minor: z.ZodNumber;
885
+ }, z.core.$strict>;
886
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
887
+ correlation: z.ZodObject<{
888
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
889
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
890
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
891
+ }, z.core.$strict>;
892
+ data: z.ZodObject<{
893
+ schemaVersion: z.ZodLiteral<"pi-lead-dispatch/v1">;
894
+ dispatchId: z.ZodString;
895
+ intentId: z.ZodUUID;
896
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
897
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
898
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
899
+ state: z.ZodEnum<{
900
+ awaiting_input: "awaiting_input";
901
+ cancelled: "cancelled";
902
+ cancelling: "cancelling";
903
+ completed: "completed";
904
+ failed: "failed";
905
+ running: "running";
906
+ starting: "starting";
907
+ timed_out: "timed_out";
908
+ unknown: "unknown";
909
+ }>;
910
+ status: z.ZodObject<{
911
+ handle: z.ZodObject<{
912
+ handleId: z.ZodString;
913
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
914
+ externalSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>>;
915
+ startedAt: z.ZodISODateTime;
916
+ }, z.core.$strict>;
917
+ state: z.ZodEnum<{
918
+ awaiting_input: "awaiting_input";
919
+ cancelled: "cancelled";
920
+ cancelling: "cancelling";
921
+ completed: "completed";
922
+ failed: "failed";
923
+ running: "running";
924
+ starting: "starting";
925
+ timed_out: "timed_out";
926
+ unknown: "unknown";
927
+ }>;
928
+ observedAt: z.ZodISODateTime;
929
+ result: z.ZodOptional<z.ZodObject<{
930
+ outcome: z.ZodLiteral<"completed">;
931
+ output: z.ZodOptional<z.ZodJSONSchema>;
932
+ usage: z.ZodObject<{
933
+ inputTokens: z.ZodNumber;
934
+ outputTokens: z.ZodNumber;
935
+ durationMs: z.ZodNumber;
936
+ cost: z.ZodOptional<z.ZodObject<{
937
+ amount: z.ZodString;
938
+ currency: z.ZodString;
939
+ }, z.core.$strict>>;
940
+ accounting: z.ZodOptional<z.ZodObject<{
941
+ schemaVersion: z.ZodLiteral<1>;
942
+ sourceId: z.ZodString;
943
+ fundingSource: z.ZodEnum<{
944
+ byo_api: "byo_api";
945
+ external_subscription: "external_subscription";
946
+ hq_managed: "hq_managed";
947
+ }>;
948
+ currency: z.ZodLiteral<"USD">;
949
+ chargedMicrounits: z.ZodNumber;
950
+ costExact: z.ZodLiteral<true>;
951
+ }, z.core.$strict>>;
952
+ }, z.core.$strict>;
953
+ artifacts: z.ZodArray<z.ZodObject<{
954
+ artifactId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"Artifact reference ID">, string>>;
955
+ version: z.ZodNumber;
956
+ mediaType: z.ZodString;
957
+ digest: z.ZodString;
958
+ sizeBytes: z.ZodNumber;
959
+ locator: z.ZodString;
960
+ }, z.core.$strip>>;
961
+ }, z.core.$strict>>;
962
+ terminalUsage: z.ZodOptional<z.ZodObject<{
963
+ inputTokens: z.ZodNumber;
964
+ outputTokens: z.ZodNumber;
965
+ durationMs: z.ZodNumber;
966
+ cost: z.ZodOptional<z.ZodObject<{
967
+ amount: z.ZodString;
968
+ currency: z.ZodString;
969
+ }, z.core.$strict>>;
970
+ accounting: z.ZodOptional<z.ZodObject<{
971
+ schemaVersion: z.ZodLiteral<1>;
972
+ sourceId: z.ZodString;
973
+ fundingSource: z.ZodEnum<{
974
+ byo_api: "byo_api";
975
+ external_subscription: "external_subscription";
976
+ hq_managed: "hq_managed";
977
+ }>;
978
+ currency: z.ZodLiteral<"USD">;
979
+ chargedMicrounits: z.ZodNumber;
980
+ costExact: z.ZodLiteral<true>;
981
+ }, z.core.$strict>>;
982
+ }, z.core.$strict>>;
983
+ error: z.ZodOptional<z.ZodObject<{
984
+ code: z.ZodString;
985
+ classification: z.ZodEnum<{
986
+ cancelled: "cancelled";
987
+ conflict: "conflict";
988
+ infrastructure: "infrastructure";
989
+ runtime: "runtime";
990
+ timeout: "timeout";
991
+ unavailable: "unavailable";
992
+ unknown: "unknown";
993
+ unsupported: "unsupported";
994
+ validation: "validation";
995
+ }>;
996
+ message: z.ZodString;
997
+ retryable: z.ZodBoolean;
998
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
999
+ }, z.core.$strict>>;
1000
+ }, z.core.$strict>;
1001
+ }, z.core.$strict>;
1002
+ }, z.core.$strict>;
1003
+ }>;
1004
+ progress: Readonly<{
1005
+ route: "progress";
1006
+ operation: "pi-durable.lead.progress";
1007
+ scope: "execution:read";
1008
+ requestSchema: z.ZodObject<{
1009
+ contractVersion: z.ZodObject<{
1010
+ major: z.ZodNumber;
1011
+ minor: z.ZodNumber;
1012
+ }, z.core.$strict>;
1013
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
1014
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
1015
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
1016
+ requestedAt: z.ZodISODateTime;
1017
+ caller: z.ZodObject<{
1018
+ servicePrincipalId: z.ZodString;
1019
+ }, z.core.$strict>;
1020
+ correlation: z.ZodObject<{
1021
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
1022
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
1023
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
1024
+ }, z.core.$strict>;
1025
+ operation: z.ZodLiteral<"pi-durable.lead.progress">;
1026
+ parameters: z.ZodObject<{
1027
+ dispatchId: z.ZodString;
1028
+ afterSequence: z.ZodOptional<z.ZodNumber>;
1029
+ }, z.core.$strict>;
1030
+ }, z.core.$strict>;
1031
+ responseSchema: z.ZodObject<{
1032
+ contractVersion: z.ZodObject<{
1033
+ major: z.ZodNumber;
1034
+ minor: z.ZodNumber;
1035
+ }, z.core.$strict>;
1036
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
1037
+ correlation: z.ZodObject<{
1038
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
1039
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
1040
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
1041
+ }, z.core.$strict>;
1042
+ data: z.ZodObject<{
1043
+ schemaVersion: z.ZodLiteral<"pi-lead-dispatch/v1">;
1044
+ dispatchId: z.ZodString;
1045
+ intentId: z.ZodUUID;
1046
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
1047
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
1048
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
1049
+ events: z.ZodArray<z.ZodObject<{
1050
+ handleId: z.ZodString;
1051
+ sequence: z.ZodNumber;
1052
+ occurredAt: z.ZodISODateTime;
1053
+ type: z.ZodEnum<{
1054
+ artifact: "artifact";
1055
+ interaction: "interaction";
1056
+ output: "output";
1057
+ status: "status";
1058
+ usage: "usage";
1059
+ }>;
1060
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1061
+ }, z.core.$strict>>;
1062
+ nextSequence: z.ZodNumber;
1063
+ }, z.core.$strict>;
1064
+ }, z.core.$strict>;
1065
+ }>;
1066
+ cancel: Readonly<{
1067
+ route: "cancel";
1068
+ operation: "pi-durable.lead.cancel";
1069
+ scope: "execution:cancel";
1070
+ requestSchema: z.ZodObject<{
1071
+ contractVersion: z.ZodObject<{
1072
+ major: z.ZodNumber;
1073
+ minor: z.ZodNumber;
1074
+ }, z.core.$strict>;
1075
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
1076
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
1077
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"project ID">, string>>>;
1078
+ commandId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>;
1079
+ idempotencyKey: z.ZodString;
1080
+ payloadHash: z.ZodString;
1081
+ issuedAt: z.ZodISODateTime;
1082
+ caller: z.ZodObject<{
1083
+ servicePrincipalId: z.ZodString;
1084
+ }, z.core.$strict>;
1085
+ correlation: z.ZodObject<{
1086
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
1087
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
1088
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
1089
+ }, z.core.$strict>;
1090
+ operation: z.ZodLiteral<"pi-durable.lead.cancel">;
1091
+ payload: z.ZodObject<{
1092
+ dispatchId: z.ZodString;
1093
+ }, z.core.$strict>;
1094
+ }, z.core.$strict>;
1095
+ responseSchema: z.ZodObject<{
1096
+ contractVersion: z.ZodObject<{
1097
+ major: z.ZodNumber;
1098
+ minor: z.ZodNumber;
1099
+ }, z.core.$strict>;
1100
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"request ID">, string>>;
1101
+ correlation: z.ZodObject<{
1102
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"trace ID">, string>>;
1103
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"command ID">, string>>>;
1104
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"event ID">, string>>>;
1105
+ }, z.core.$strict>;
1106
+ data: z.ZodObject<{
1107
+ schemaVersion: z.ZodLiteral<"pi-lead-dispatch/v1">;
1108
+ dispatchId: z.ZodString;
1109
+ intentId: z.ZodUUID;
1110
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
1111
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
1112
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
1113
+ state: z.ZodEnum<{
1114
+ awaiting_input: "awaiting_input";
1115
+ cancelled: "cancelled";
1116
+ cancelling: "cancelling";
1117
+ completed: "completed";
1118
+ failed: "failed";
1119
+ running: "running";
1120
+ starting: "starting";
1121
+ timed_out: "timed_out";
1122
+ unknown: "unknown";
1123
+ }>;
1124
+ status: z.ZodObject<{
1125
+ handle: z.ZodObject<{
1126
+ handleId: z.ZodString;
1127
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
1128
+ externalSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>>;
1129
+ startedAt: z.ZodISODateTime;
1130
+ }, z.core.$strict>;
1131
+ state: z.ZodEnum<{
1132
+ awaiting_input: "awaiting_input";
1133
+ cancelled: "cancelled";
1134
+ cancelling: "cancelling";
1135
+ completed: "completed";
1136
+ failed: "failed";
1137
+ running: "running";
1138
+ starting: "starting";
1139
+ timed_out: "timed_out";
1140
+ unknown: "unknown";
1141
+ }>;
1142
+ observedAt: z.ZodISODateTime;
1143
+ result: z.ZodOptional<z.ZodObject<{
1144
+ outcome: z.ZodLiteral<"completed">;
1145
+ output: z.ZodOptional<z.ZodJSONSchema>;
1146
+ usage: z.ZodObject<{
1147
+ inputTokens: z.ZodNumber;
1148
+ outputTokens: z.ZodNumber;
1149
+ durationMs: z.ZodNumber;
1150
+ cost: z.ZodOptional<z.ZodObject<{
1151
+ amount: z.ZodString;
1152
+ currency: z.ZodString;
1153
+ }, z.core.$strict>>;
1154
+ accounting: z.ZodOptional<z.ZodObject<{
1155
+ schemaVersion: z.ZodLiteral<1>;
1156
+ sourceId: z.ZodString;
1157
+ fundingSource: z.ZodEnum<{
1158
+ byo_api: "byo_api";
1159
+ external_subscription: "external_subscription";
1160
+ hq_managed: "hq_managed";
1161
+ }>;
1162
+ currency: z.ZodLiteral<"USD">;
1163
+ chargedMicrounits: z.ZodNumber;
1164
+ costExact: z.ZodLiteral<true>;
1165
+ }, z.core.$strict>>;
1166
+ }, z.core.$strict>;
1167
+ artifacts: z.ZodArray<z.ZodObject<{
1168
+ artifactId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"Artifact reference ID">, string>>;
1169
+ version: z.ZodNumber;
1170
+ mediaType: z.ZodString;
1171
+ digest: z.ZodString;
1172
+ sizeBytes: z.ZodNumber;
1173
+ locator: z.ZodString;
1174
+ }, z.core.$strip>>;
1175
+ }, z.core.$strict>>;
1176
+ terminalUsage: z.ZodOptional<z.ZodObject<{
1177
+ inputTokens: z.ZodNumber;
1178
+ outputTokens: z.ZodNumber;
1179
+ durationMs: z.ZodNumber;
1180
+ cost: z.ZodOptional<z.ZodObject<{
1181
+ amount: z.ZodString;
1182
+ currency: z.ZodString;
1183
+ }, z.core.$strict>>;
1184
+ accounting: z.ZodOptional<z.ZodObject<{
1185
+ schemaVersion: z.ZodLiteral<1>;
1186
+ sourceId: z.ZodString;
1187
+ fundingSource: z.ZodEnum<{
1188
+ byo_api: "byo_api";
1189
+ external_subscription: "external_subscription";
1190
+ hq_managed: "hq_managed";
1191
+ }>;
1192
+ currency: z.ZodLiteral<"USD">;
1193
+ chargedMicrounits: z.ZodNumber;
1194
+ costExact: z.ZodLiteral<true>;
1195
+ }, z.core.$strict>>;
1196
+ }, z.core.$strict>>;
1197
+ error: z.ZodOptional<z.ZodObject<{
1198
+ code: z.ZodString;
1199
+ classification: z.ZodEnum<{
1200
+ cancelled: "cancelled";
1201
+ conflict: "conflict";
1202
+ infrastructure: "infrastructure";
1203
+ runtime: "runtime";
1204
+ timeout: "timeout";
1205
+ unavailable: "unavailable";
1206
+ unknown: "unknown";
1207
+ unsupported: "unsupported";
1208
+ validation: "validation";
1209
+ }>;
1210
+ message: z.ZodString;
1211
+ retryable: z.ZodBoolean;
1212
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1213
+ }, z.core.$strict>>;
1214
+ }, z.core.$strict>;
1215
+ }, z.core.$strict>;
1216
+ }, z.core.$strict>;
1217
+ }>;
1218
+ }>;
1219
+ export type PiDurableLeadPrepareRequest = z.output<typeof PiDurableLeadPrepareRequestSchema>;
1220
+ export type PiDurableLeadPrepareResponse = z.output<typeof PiDurableLeadPrepareResponseSchema>;
1221
+ export type PiDurableLeadPreparation = z.output<typeof PiDurableLeadPreparationSchema>;
1222
+ export type PiDurableLeadLookupRequest = z.output<typeof PiDurableLeadLookupRequestSchema>;
1223
+ export type PiDurableLeadLookupResponse = z.output<typeof PiDurableLeadLookupResponseSchema>;
1224
+ export type PiDurableLeadDispatchRequest = z.output<typeof PiDurableLeadDispatchRequestSchema>;
1225
+ export type PiDurableLeadDispatchResponse = z.output<typeof PiDurableLeadDispatchResponseSchema>;
1226
+ export type PiDurableLeadStatusRequest = z.output<typeof PiDurableLeadStatusRequestSchema>;
1227
+ export type PiDurableLeadStatusResponse = z.output<typeof PiDurableLeadStatusResponseSchema>;
1228
+ export type PiDurableLeadProgressRequest = z.output<typeof PiDurableLeadProgressRequestSchema>;
1229
+ export type PiDurableLeadProgressResponse = z.output<typeof PiDurableLeadProgressResponseSchema>;
1230
+ export type PiDurableLeadCancelRequest = z.output<typeof PiDurableLeadCancelRequestSchema>;
1231
+ export type PiDurableLeadCancelResponse = z.output<typeof PiDurableLeadCancelResponseSchema>;
1232
+ //# sourceMappingURL=pi-durable-lead.d.ts.map