@peac/schema 0.10.13 → 0.11.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/dist/agent-identity.d.ts +62 -416
- package/dist/agent-identity.d.ts.map +1 -1
- package/dist/attestation-receipt.d.ts +5 -39
- package/dist/attestation-receipt.d.ts.map +1 -1
- package/dist/attribution.cjs +4 -2
- package/dist/attribution.cjs.map +1 -1
- package/dist/attribution.d.ts +69 -448
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.mjs +4 -2
- package/dist/attribution.mjs.map +1 -1
- package/dist/constraints.d.ts +68 -0
- package/dist/constraints.d.ts.map +1 -0
- package/dist/dispute.d.ts +262 -780
- package/dist/dispute.d.ts.map +1 -1
- package/dist/errors.d.ts +13 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.cjs +125 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +123 -11
- package/dist/index.mjs.map +1 -1
- package/dist/interaction.cjs +1 -1
- package/dist/interaction.cjs.map +1 -1
- package/dist/interaction.d.ts +104 -596
- package/dist/interaction.d.ts.map +1 -1
- package/dist/interaction.mjs +1 -1
- package/dist/interaction.mjs.map +1 -1
- package/dist/json.d.ts +4 -3
- package/dist/json.d.ts.map +1 -1
- package/dist/obligations.d.ts +39 -139
- package/dist/obligations.d.ts.map +1 -1
- package/dist/receipt-parser.cjs +4 -2
- package/dist/receipt-parser.cjs.map +1 -1
- package/dist/receipt-parser.mjs +4 -2
- package/dist/receipt-parser.mjs.map +1 -1
- package/dist/validators.d.ts +200 -659
- package/dist/validators.d.ts.map +1 -1
- package/dist/workflow.d.ts +32 -345
- package/dist/workflow.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/validators.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../src/validators.ts"],"names":[],"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;GAkBG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,kBAAkB,GAC1B,wBAAwB,CAW1B"}
|
package/dist/workflow.d.ts
CHANGED
|
@@ -95,7 +95,12 @@ export declare const StepIdSchema: z.ZodString;
|
|
|
95
95
|
/**
|
|
96
96
|
* Workflow status schema
|
|
97
97
|
*/
|
|
98
|
-
export declare const WorkflowStatusSchema: z.ZodEnum<
|
|
98
|
+
export declare const WorkflowStatusSchema: z.ZodEnum<{
|
|
99
|
+
in_progress: "in_progress";
|
|
100
|
+
completed: "completed";
|
|
101
|
+
failed: "failed";
|
|
102
|
+
cancelled: "cancelled";
|
|
103
|
+
}>;
|
|
99
104
|
/**
|
|
100
105
|
* Orchestration framework schema
|
|
101
106
|
*
|
|
@@ -113,404 +118,86 @@ export declare const OrchestrationFrameworkSchema: z.ZodString;
|
|
|
113
118
|
* Place in auth.extensions['org.peacprotocol/workflow']
|
|
114
119
|
*/
|
|
115
120
|
export declare const WorkflowContextSchema: z.ZodObject<{
|
|
116
|
-
/** Globally unique workflow/run ID */
|
|
117
121
|
workflow_id: z.ZodString;
|
|
118
|
-
/** This step's unique ID */
|
|
119
122
|
step_id: z.ZodString;
|
|
120
|
-
|
|
121
|
-
parent_step_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
122
|
-
/** Agent identity ref of the orchestrator (optional) */
|
|
123
|
+
parent_step_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
123
124
|
orchestrator_id: z.ZodOptional<z.ZodString>;
|
|
124
|
-
/** Receipt ID that initiated this workflow (optional) */
|
|
125
125
|
orchestrator_receipt_ref: z.ZodOptional<z.ZodString>;
|
|
126
|
-
/** 0-based position in sequential runs (optional) */
|
|
127
126
|
step_index: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
/** Total steps if known upfront (optional) */
|
|
129
127
|
step_total: z.ZodOptional<z.ZodNumber>;
|
|
130
|
-
/** Tool or skill name (MCP tool, A2A skill, etc.) */
|
|
131
128
|
tool_name: z.ZodOptional<z.ZodString>;
|
|
132
|
-
/** Orchestration framework */
|
|
133
129
|
framework: z.ZodOptional<z.ZodString>;
|
|
134
|
-
/** SHA-256 hash of previous receipt in chain (for ordering) */
|
|
135
130
|
prev_receipt_hash: z.ZodOptional<z.ZodString>;
|
|
136
|
-
},
|
|
137
|
-
workflow_id: string;
|
|
138
|
-
step_id: string;
|
|
139
|
-
parent_step_ids: string[];
|
|
140
|
-
orchestrator_id?: string | undefined;
|
|
141
|
-
orchestrator_receipt_ref?: string | undefined;
|
|
142
|
-
step_index?: number | undefined;
|
|
143
|
-
step_total?: number | undefined;
|
|
144
|
-
tool_name?: string | undefined;
|
|
145
|
-
framework?: string | undefined;
|
|
146
|
-
prev_receipt_hash?: string | undefined;
|
|
147
|
-
}, {
|
|
148
|
-
workflow_id: string;
|
|
149
|
-
step_id: string;
|
|
150
|
-
parent_step_ids?: string[] | undefined;
|
|
151
|
-
orchestrator_id?: string | undefined;
|
|
152
|
-
orchestrator_receipt_ref?: string | undefined;
|
|
153
|
-
step_index?: number | undefined;
|
|
154
|
-
step_total?: number | undefined;
|
|
155
|
-
tool_name?: string | undefined;
|
|
156
|
-
framework?: string | undefined;
|
|
157
|
-
prev_receipt_hash?: string | undefined;
|
|
158
|
-
}>;
|
|
131
|
+
}, z.core.$strict>;
|
|
159
132
|
/**
|
|
160
133
|
* Error context for failed workflows
|
|
161
134
|
*/
|
|
162
135
|
export declare const WorkflowErrorContextSchema: z.ZodObject<{
|
|
163
|
-
/** Step ID where failure occurred */
|
|
164
136
|
failed_step_id: z.ZodString;
|
|
165
|
-
/** Error code (E_* format preferred) */
|
|
166
137
|
error_code: z.ZodString;
|
|
167
|
-
/** Human-readable error message */
|
|
168
138
|
error_message: z.ZodString;
|
|
169
|
-
},
|
|
170
|
-
failed_step_id: string;
|
|
171
|
-
error_code: string;
|
|
172
|
-
error_message: string;
|
|
173
|
-
}, {
|
|
174
|
-
failed_step_id: string;
|
|
175
|
-
error_code: string;
|
|
176
|
-
error_message: string;
|
|
177
|
-
}>;
|
|
139
|
+
}, z.core.$strict>;
|
|
178
140
|
/**
|
|
179
141
|
* Workflow summary evidence - the "proof of run" artifact
|
|
180
142
|
*
|
|
181
143
|
* Used in peac/workflow-summary attestations.
|
|
182
144
|
* This is the single handle auditors use to verify an entire workflow.
|
|
183
145
|
*/
|
|
184
|
-
export declare const WorkflowSummaryEvidenceSchema: z.
|
|
185
|
-
/** Workflow ID this summary describes */
|
|
146
|
+
export declare const WorkflowSummaryEvidenceSchema: z.ZodObject<{
|
|
186
147
|
workflow_id: z.ZodString;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
148
|
+
status: z.ZodEnum<{
|
|
149
|
+
in_progress: "in_progress";
|
|
150
|
+
completed: "completed";
|
|
151
|
+
failed: "failed";
|
|
152
|
+
cancelled: "cancelled";
|
|
153
|
+
}>;
|
|
190
154
|
started_at: z.ZodString;
|
|
191
|
-
/** When the workflow completed (ISO 8601, undefined if in_progress) */
|
|
192
155
|
completed_at: z.ZodOptional<z.ZodString>;
|
|
193
|
-
|
|
194
|
-
receipt_refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
195
|
-
/** Merkle root of receipt digests (for large workflows, RFC 6962 style) */
|
|
156
|
+
receipt_refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
196
157
|
receipt_merkle_root: z.ZodOptional<z.ZodString>;
|
|
197
|
-
/** Total receipt count (required if using Merkle root) */
|
|
198
158
|
receipt_count: z.ZodOptional<z.ZodNumber>;
|
|
199
|
-
/** Agent identity ref of the orchestrator */
|
|
200
159
|
orchestrator_id: z.ZodString;
|
|
201
|
-
|
|
202
|
-
agents_involved: z.ZodArray<z.ZodString, "many">;
|
|
203
|
-
/** SHA-256 hash of final output artifact (optional) */
|
|
160
|
+
agents_involved: z.ZodArray<z.ZodString>;
|
|
204
161
|
final_result_hash: z.ZodOptional<z.ZodString>;
|
|
205
|
-
/** Error context if workflow failed */
|
|
206
162
|
error_context: z.ZodOptional<z.ZodObject<{
|
|
207
|
-
/** Step ID where failure occurred */
|
|
208
163
|
failed_step_id: z.ZodString;
|
|
209
|
-
/** Error code (E_* format preferred) */
|
|
210
164
|
error_code: z.ZodString;
|
|
211
|
-
/** Human-readable error message */
|
|
212
165
|
error_message: z.ZodString;
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
error_code: string;
|
|
216
|
-
error_message: string;
|
|
217
|
-
}, {
|
|
218
|
-
failed_step_id: string;
|
|
219
|
-
error_code: string;
|
|
220
|
-
error_message: string;
|
|
221
|
-
}>>;
|
|
222
|
-
}, "strict", z.ZodTypeAny, {
|
|
223
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
224
|
-
workflow_id: string;
|
|
225
|
-
orchestrator_id: string;
|
|
226
|
-
started_at: string;
|
|
227
|
-
agents_involved: string[];
|
|
228
|
-
completed_at?: string | undefined;
|
|
229
|
-
receipt_refs?: string[] | undefined;
|
|
230
|
-
receipt_merkle_root?: string | undefined;
|
|
231
|
-
receipt_count?: number | undefined;
|
|
232
|
-
final_result_hash?: string | undefined;
|
|
233
|
-
error_context?: {
|
|
234
|
-
failed_step_id: string;
|
|
235
|
-
error_code: string;
|
|
236
|
-
error_message: string;
|
|
237
|
-
} | undefined;
|
|
238
|
-
}, {
|
|
239
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
240
|
-
workflow_id: string;
|
|
241
|
-
orchestrator_id: string;
|
|
242
|
-
started_at: string;
|
|
243
|
-
agents_involved: string[];
|
|
244
|
-
completed_at?: string | undefined;
|
|
245
|
-
receipt_refs?: string[] | undefined;
|
|
246
|
-
receipt_merkle_root?: string | undefined;
|
|
247
|
-
receipt_count?: number | undefined;
|
|
248
|
-
final_result_hash?: string | undefined;
|
|
249
|
-
error_context?: {
|
|
250
|
-
failed_step_id: string;
|
|
251
|
-
error_code: string;
|
|
252
|
-
error_message: string;
|
|
253
|
-
} | undefined;
|
|
254
|
-
}>, {
|
|
255
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
256
|
-
workflow_id: string;
|
|
257
|
-
orchestrator_id: string;
|
|
258
|
-
started_at: string;
|
|
259
|
-
agents_involved: string[];
|
|
260
|
-
completed_at?: string | undefined;
|
|
261
|
-
receipt_refs?: string[] | undefined;
|
|
262
|
-
receipt_merkle_root?: string | undefined;
|
|
263
|
-
receipt_count?: number | undefined;
|
|
264
|
-
final_result_hash?: string | undefined;
|
|
265
|
-
error_context?: {
|
|
266
|
-
failed_step_id: string;
|
|
267
|
-
error_code: string;
|
|
268
|
-
error_message: string;
|
|
269
|
-
} | undefined;
|
|
270
|
-
}, {
|
|
271
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
272
|
-
workflow_id: string;
|
|
273
|
-
orchestrator_id: string;
|
|
274
|
-
started_at: string;
|
|
275
|
-
agents_involved: string[];
|
|
276
|
-
completed_at?: string | undefined;
|
|
277
|
-
receipt_refs?: string[] | undefined;
|
|
278
|
-
receipt_merkle_root?: string | undefined;
|
|
279
|
-
receipt_count?: number | undefined;
|
|
280
|
-
final_result_hash?: string | undefined;
|
|
281
|
-
error_context?: {
|
|
282
|
-
failed_step_id: string;
|
|
283
|
-
error_code: string;
|
|
284
|
-
error_message: string;
|
|
285
|
-
} | undefined;
|
|
286
|
-
}>, {
|
|
287
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
288
|
-
workflow_id: string;
|
|
289
|
-
orchestrator_id: string;
|
|
290
|
-
started_at: string;
|
|
291
|
-
agents_involved: string[];
|
|
292
|
-
completed_at?: string | undefined;
|
|
293
|
-
receipt_refs?: string[] | undefined;
|
|
294
|
-
receipt_merkle_root?: string | undefined;
|
|
295
|
-
receipt_count?: number | undefined;
|
|
296
|
-
final_result_hash?: string | undefined;
|
|
297
|
-
error_context?: {
|
|
298
|
-
failed_step_id: string;
|
|
299
|
-
error_code: string;
|
|
300
|
-
error_message: string;
|
|
301
|
-
} | undefined;
|
|
302
|
-
}, {
|
|
303
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
304
|
-
workflow_id: string;
|
|
305
|
-
orchestrator_id: string;
|
|
306
|
-
started_at: string;
|
|
307
|
-
agents_involved: string[];
|
|
308
|
-
completed_at?: string | undefined;
|
|
309
|
-
receipt_refs?: string[] | undefined;
|
|
310
|
-
receipt_merkle_root?: string | undefined;
|
|
311
|
-
receipt_count?: number | undefined;
|
|
312
|
-
final_result_hash?: string | undefined;
|
|
313
|
-
error_context?: {
|
|
314
|
-
failed_step_id: string;
|
|
315
|
-
error_code: string;
|
|
316
|
-
error_message: string;
|
|
317
|
-
} | undefined;
|
|
318
|
-
}>;
|
|
166
|
+
}, z.core.$strict>>;
|
|
167
|
+
}, z.core.$strict>;
|
|
319
168
|
/**
|
|
320
169
|
* Workflow summary attestation schema
|
|
321
170
|
*
|
|
322
171
|
* A signed attestation containing the workflow summary evidence.
|
|
323
172
|
*/
|
|
324
173
|
export declare const WorkflowSummaryAttestationSchema: z.ZodObject<{
|
|
325
|
-
/** Attestation type (must be 'peac/workflow-summary') */
|
|
326
174
|
type: z.ZodLiteral<"peac/workflow-summary">;
|
|
327
|
-
/** Who issued this attestation (HTTPS URL) */
|
|
328
175
|
issuer: z.ZodString;
|
|
329
|
-
/** When this attestation was issued (ISO 8601) */
|
|
330
176
|
issued_at: z.ZodString;
|
|
331
|
-
/** When this attestation expires (ISO 8601, optional) */
|
|
332
177
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
333
|
-
|
|
334
|
-
evidence: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
335
|
-
/** Workflow ID this summary describes */
|
|
178
|
+
evidence: z.ZodObject<{
|
|
336
179
|
workflow_id: z.ZodString;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
180
|
+
status: z.ZodEnum<{
|
|
181
|
+
in_progress: "in_progress";
|
|
182
|
+
completed: "completed";
|
|
183
|
+
failed: "failed";
|
|
184
|
+
cancelled: "cancelled";
|
|
185
|
+
}>;
|
|
340
186
|
started_at: z.ZodString;
|
|
341
|
-
/** When the workflow completed (ISO 8601, undefined if in_progress) */
|
|
342
187
|
completed_at: z.ZodOptional<z.ZodString>;
|
|
343
|
-
|
|
344
|
-
receipt_refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
345
|
-
/** Merkle root of receipt digests (for large workflows, RFC 6962 style) */
|
|
188
|
+
receipt_refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
346
189
|
receipt_merkle_root: z.ZodOptional<z.ZodString>;
|
|
347
|
-
/** Total receipt count (required if using Merkle root) */
|
|
348
190
|
receipt_count: z.ZodOptional<z.ZodNumber>;
|
|
349
|
-
/** Agent identity ref of the orchestrator */
|
|
350
191
|
orchestrator_id: z.ZodString;
|
|
351
|
-
|
|
352
|
-
agents_involved: z.ZodArray<z.ZodString, "many">;
|
|
353
|
-
/** SHA-256 hash of final output artifact (optional) */
|
|
192
|
+
agents_involved: z.ZodArray<z.ZodString>;
|
|
354
193
|
final_result_hash: z.ZodOptional<z.ZodString>;
|
|
355
|
-
/** Error context if workflow failed */
|
|
356
194
|
error_context: z.ZodOptional<z.ZodObject<{
|
|
357
|
-
/** Step ID where failure occurred */
|
|
358
195
|
failed_step_id: z.ZodString;
|
|
359
|
-
/** Error code (E_* format preferred) */
|
|
360
196
|
error_code: z.ZodString;
|
|
361
|
-
/** Human-readable error message */
|
|
362
197
|
error_message: z.ZodString;
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
error_message: string;
|
|
367
|
-
}, {
|
|
368
|
-
failed_step_id: string;
|
|
369
|
-
error_code: string;
|
|
370
|
-
error_message: string;
|
|
371
|
-
}>>;
|
|
372
|
-
}, "strict", z.ZodTypeAny, {
|
|
373
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
374
|
-
workflow_id: string;
|
|
375
|
-
orchestrator_id: string;
|
|
376
|
-
started_at: string;
|
|
377
|
-
agents_involved: string[];
|
|
378
|
-
completed_at?: string | undefined;
|
|
379
|
-
receipt_refs?: string[] | undefined;
|
|
380
|
-
receipt_merkle_root?: string | undefined;
|
|
381
|
-
receipt_count?: number | undefined;
|
|
382
|
-
final_result_hash?: string | undefined;
|
|
383
|
-
error_context?: {
|
|
384
|
-
failed_step_id: string;
|
|
385
|
-
error_code: string;
|
|
386
|
-
error_message: string;
|
|
387
|
-
} | undefined;
|
|
388
|
-
}, {
|
|
389
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
390
|
-
workflow_id: string;
|
|
391
|
-
orchestrator_id: string;
|
|
392
|
-
started_at: string;
|
|
393
|
-
agents_involved: string[];
|
|
394
|
-
completed_at?: string | undefined;
|
|
395
|
-
receipt_refs?: string[] | undefined;
|
|
396
|
-
receipt_merkle_root?: string | undefined;
|
|
397
|
-
receipt_count?: number | undefined;
|
|
398
|
-
final_result_hash?: string | undefined;
|
|
399
|
-
error_context?: {
|
|
400
|
-
failed_step_id: string;
|
|
401
|
-
error_code: string;
|
|
402
|
-
error_message: string;
|
|
403
|
-
} | undefined;
|
|
404
|
-
}>, {
|
|
405
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
406
|
-
workflow_id: string;
|
|
407
|
-
orchestrator_id: string;
|
|
408
|
-
started_at: string;
|
|
409
|
-
agents_involved: string[];
|
|
410
|
-
completed_at?: string | undefined;
|
|
411
|
-
receipt_refs?: string[] | undefined;
|
|
412
|
-
receipt_merkle_root?: string | undefined;
|
|
413
|
-
receipt_count?: number | undefined;
|
|
414
|
-
final_result_hash?: string | undefined;
|
|
415
|
-
error_context?: {
|
|
416
|
-
failed_step_id: string;
|
|
417
|
-
error_code: string;
|
|
418
|
-
error_message: string;
|
|
419
|
-
} | undefined;
|
|
420
|
-
}, {
|
|
421
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
422
|
-
workflow_id: string;
|
|
423
|
-
orchestrator_id: string;
|
|
424
|
-
started_at: string;
|
|
425
|
-
agents_involved: string[];
|
|
426
|
-
completed_at?: string | undefined;
|
|
427
|
-
receipt_refs?: string[] | undefined;
|
|
428
|
-
receipt_merkle_root?: string | undefined;
|
|
429
|
-
receipt_count?: number | undefined;
|
|
430
|
-
final_result_hash?: string | undefined;
|
|
431
|
-
error_context?: {
|
|
432
|
-
failed_step_id: string;
|
|
433
|
-
error_code: string;
|
|
434
|
-
error_message: string;
|
|
435
|
-
} | undefined;
|
|
436
|
-
}>, {
|
|
437
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
438
|
-
workflow_id: string;
|
|
439
|
-
orchestrator_id: string;
|
|
440
|
-
started_at: string;
|
|
441
|
-
agents_involved: string[];
|
|
442
|
-
completed_at?: string | undefined;
|
|
443
|
-
receipt_refs?: string[] | undefined;
|
|
444
|
-
receipt_merkle_root?: string | undefined;
|
|
445
|
-
receipt_count?: number | undefined;
|
|
446
|
-
final_result_hash?: string | undefined;
|
|
447
|
-
error_context?: {
|
|
448
|
-
failed_step_id: string;
|
|
449
|
-
error_code: string;
|
|
450
|
-
error_message: string;
|
|
451
|
-
} | undefined;
|
|
452
|
-
}, {
|
|
453
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
454
|
-
workflow_id: string;
|
|
455
|
-
orchestrator_id: string;
|
|
456
|
-
started_at: string;
|
|
457
|
-
agents_involved: string[];
|
|
458
|
-
completed_at?: string | undefined;
|
|
459
|
-
receipt_refs?: string[] | undefined;
|
|
460
|
-
receipt_merkle_root?: string | undefined;
|
|
461
|
-
receipt_count?: number | undefined;
|
|
462
|
-
final_result_hash?: string | undefined;
|
|
463
|
-
error_context?: {
|
|
464
|
-
failed_step_id: string;
|
|
465
|
-
error_code: string;
|
|
466
|
-
error_message: string;
|
|
467
|
-
} | undefined;
|
|
468
|
-
}>;
|
|
469
|
-
}, "strict", z.ZodTypeAny, {
|
|
470
|
-
type: "peac/workflow-summary";
|
|
471
|
-
issuer: string;
|
|
472
|
-
issued_at: string;
|
|
473
|
-
evidence: {
|
|
474
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
475
|
-
workflow_id: string;
|
|
476
|
-
orchestrator_id: string;
|
|
477
|
-
started_at: string;
|
|
478
|
-
agents_involved: string[];
|
|
479
|
-
completed_at?: string | undefined;
|
|
480
|
-
receipt_refs?: string[] | undefined;
|
|
481
|
-
receipt_merkle_root?: string | undefined;
|
|
482
|
-
receipt_count?: number | undefined;
|
|
483
|
-
final_result_hash?: string | undefined;
|
|
484
|
-
error_context?: {
|
|
485
|
-
failed_step_id: string;
|
|
486
|
-
error_code: string;
|
|
487
|
-
error_message: string;
|
|
488
|
-
} | undefined;
|
|
489
|
-
};
|
|
490
|
-
expires_at?: string | undefined;
|
|
491
|
-
}, {
|
|
492
|
-
type: "peac/workflow-summary";
|
|
493
|
-
issuer: string;
|
|
494
|
-
issued_at: string;
|
|
495
|
-
evidence: {
|
|
496
|
-
status: "in_progress" | "completed" | "failed" | "cancelled";
|
|
497
|
-
workflow_id: string;
|
|
498
|
-
orchestrator_id: string;
|
|
499
|
-
started_at: string;
|
|
500
|
-
agents_involved: string[];
|
|
501
|
-
completed_at?: string | undefined;
|
|
502
|
-
receipt_refs?: string[] | undefined;
|
|
503
|
-
receipt_merkle_root?: string | undefined;
|
|
504
|
-
receipt_count?: number | undefined;
|
|
505
|
-
final_result_hash?: string | undefined;
|
|
506
|
-
error_context?: {
|
|
507
|
-
failed_step_id: string;
|
|
508
|
-
error_code: string;
|
|
509
|
-
error_message: string;
|
|
510
|
-
} | undefined;
|
|
511
|
-
};
|
|
512
|
-
expires_at?: string | undefined;
|
|
513
|
-
}>;
|
|
198
|
+
}, z.core.$strict>>;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
}, z.core.$strict>;
|
|
514
201
|
export type WorkflowId = z.infer<typeof WorkflowIdSchema>;
|
|
515
202
|
export type StepId = z.infer<typeof StepIdSchema>;
|
|
516
203
|
export type WorkflowStatus = z.infer<typeof WorkflowStatusSchema>;
|
package/dist/workflow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAG,uBAAgC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,iBAAiB,8DAA+D,CAAC;AAE9F;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,qEAOxB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,wBAAwB,qEAAwB,CAAC;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,QAAuB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,eAAe;IAC1B,iDAAiD;;IAEjD,iCAAiC;;IAEjC,6BAA6B;;IAE7B,+BAA+B;;IAE/B,0CAA0C;;IAE1C,2CAA2C;;IAE3C,iDAAiD;;IAEjD,mCAAmC;;CAE3B,CAAC;AAMX;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,QAA8B,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QAAgC,CAAC;AAM7D;;GAEG;AACH,eAAO,MAAM,gBAAgB,aAGc,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,YAAY,aAGc,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,qBAAqB,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AKG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,2BAA2B,GAClC,0BAA0B,CAsB5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peac/schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "PEAC Protocol JSON schemas, OpenAPI specs, and TypeScript types",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"zod": "^3.
|
|
66
|
-
"@peac/kernel": "0.
|
|
65
|
+
"zod": "^4.3.6",
|
|
66
|
+
"@peac/kernel": "0.11.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@types/node": "^
|
|
69
|
+
"@types/node": "^22.19.11",
|
|
70
70
|
"typescript": "^5.3.3",
|
|
71
71
|
"vitest": "^4.0.0",
|
|
72
72
|
"tsup": "^8.0.0"
|