@sequenceholdings/managed-functions 0.4.0 → 0.4.2

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.
Files changed (92) hide show
  1. package/README.md +444 -2
  2. package/dist/abrigo-contract.d.ts +92 -0
  3. package/dist/abrigo-contract.js +55 -0
  4. package/dist/abrigo-response.d.ts +6 -0
  5. package/dist/abrigo-response.js +27 -0
  6. package/dist/abrigo.d.ts +14 -0
  7. package/dist/abrigo.js +150 -0
  8. package/dist/agent-evidence.d.ts +9 -0
  9. package/dist/agent-evidence.js +84 -0
  10. package/dist/agent-source-evidence-contract.d.ts +1197 -0
  11. package/dist/agent-source-evidence-contract.js +96 -0
  12. package/dist/agents-contract.d.ts +99 -0
  13. package/dist/agents-contract.js +69 -0
  14. package/dist/agents.d.ts +15 -0
  15. package/dist/agents.js +121 -0
  16. package/dist/capabilities.d.ts +165 -0
  17. package/dist/capabilities.js +61 -1
  18. package/dist/config.d.ts +18 -2
  19. package/dist/config.js +62 -1
  20. package/dist/deployed-policy.js +102 -0
  21. package/dist/directory-config.d.ts +23 -0
  22. package/dist/directory-config.js +22 -0
  23. package/dist/directory-contract.d.ts +68 -0
  24. package/dist/directory-contract.js +57 -0
  25. package/dist/directory-manifest.d.ts +5 -0
  26. package/dist/directory-manifest.js +10 -0
  27. package/dist/directory.d.ts +15 -0
  28. package/dist/directory.js +65 -0
  29. package/dist/http-tracing.js +3 -0
  30. package/dist/immutable-release-contract.d.ts +3 -0
  31. package/dist/immutable-release-contract.js +12 -0
  32. package/dist/index.d.ts +40 -1
  33. package/dist/index.js +75 -1
  34. package/dist/invocation-client.d.ts +45 -0
  35. package/dist/invocation-client.js +90 -0
  36. package/dist/invocation-contract.d.ts +36 -0
  37. package/dist/invocation-contract.js +48 -0
  38. package/dist/invocation.d.ts +8 -0
  39. package/dist/invocation.js +134 -0
  40. package/dist/lattice-capability.d.ts +5 -0
  41. package/dist/lattice-capability.js +16 -0
  42. package/dist/lattice-provenance-contract.d.ts +519 -0
  43. package/dist/lattice-provenance-contract.js +148 -0
  44. package/dist/lattice-provenance.d.ts +16 -0
  45. package/dist/lattice-provenance.js +167 -0
  46. package/dist/monitoring-annotations.d.ts +53 -0
  47. package/dist/monitoring-annotations.js +54 -0
  48. package/dist/monitoring-contract.d.ts +463 -0
  49. package/dist/monitoring-contract.js +89 -0
  50. package/dist/monitoring-events.d.ts +257 -0
  51. package/dist/monitoring-events.js +136 -0
  52. package/dist/monitoring.d.ts +14 -0
  53. package/dist/monitoring.js +78 -0
  54. package/dist/orm-contract.d.ts +1 -0
  55. package/dist/orm-contract.js +4 -0
  56. package/dist/orm.d.ts +19 -3
  57. package/dist/orm.js +93 -13
  58. package/dist/preflight-abrigo.d.ts +10 -0
  59. package/dist/preflight-abrigo.js +26 -0
  60. package/dist/preflight-agents.d.ts +10 -0
  61. package/dist/preflight-agents.js +51 -0
  62. package/dist/preflight-directory.d.ts +10 -0
  63. package/dist/preflight-directory.js +36 -0
  64. package/dist/preflight-immutable-release.d.ts +10 -0
  65. package/dist/preflight-immutable-release.js +34 -0
  66. package/dist/preflight-invocation.d.ts +10 -0
  67. package/dist/preflight-invocation.js +40 -0
  68. package/dist/preflight-lattice.d.ts +10 -0
  69. package/dist/preflight-lattice.js +40 -0
  70. package/dist/preflight-monitoring.d.ts +10 -0
  71. package/dist/preflight-monitoring.js +46 -0
  72. package/dist/preflight-service-directory.d.ts +10 -0
  73. package/dist/preflight-service-directory.js +26 -0
  74. package/dist/preflight-workflows.d.ts +10 -0
  75. package/dist/preflight-workflows.js +38 -0
  76. package/dist/preflight.js +50 -2
  77. package/dist/processes-contract.d.ts +20 -0
  78. package/dist/processes-contract.js +8 -1
  79. package/dist/processes.d.ts +4 -8
  80. package/dist/processes.js +52 -83
  81. package/dist/runtime.cjs +3387 -259
  82. package/dist/sdk-range.d.ts +1 -0
  83. package/dist/sdk-range.js +25 -0
  84. package/dist/service-directory.d.ts +12 -0
  85. package/dist/service-directory.js +72 -0
  86. package/dist/workflow-scopes-contract.d.ts +8 -0
  87. package/dist/workflow-scopes-contract.js +29 -0
  88. package/dist/workflow-source-contract.d.ts +524 -0
  89. package/dist/workflow-source-contract.js +59 -0
  90. package/dist/workflow-source.d.ts +12 -0
  91. package/dist/workflow-source.js +93 -0
  92. package/package.json +2 -2
@@ -0,0 +1,1197 @@
1
+ import { z } from 'zod';
2
+ export { functionAgentEvidenceScopesSchema } from './agents-contract';
3
+ export declare const FUNCTION_AGENT_EVIDENCE_TOKEN_HEADER = "x-sequence-agent-evidence-token";
4
+ export declare const FUNCTION_AGENT_EVIDENCE_PATH = "/api/managed-functions/agents/evidence";
5
+ export declare const AGENT_SOURCE_RESPONSE_MAX_BYTES: number;
6
+ export declare const AGENT_SOURCE_VERIFY_MAX_BYTES: number;
7
+ export declare const functionSourceJobAdmissionSchema: z.ZodObject<{
8
+ idempotencyKey: z.ZodString;
9
+ requestHash: z.ZodString;
10
+ kind: z.ZodEnum<{
11
+ workflow: "workflow";
12
+ agent: "agent";
13
+ }>;
14
+ resourceId: z.ZodString;
15
+ actorSub: z.ZodString;
16
+ runId: z.ZodString;
17
+ executionSnapshotId: z.ZodUUID;
18
+ }, z.core.$strict>;
19
+ export type FunctionSourceJobAdmission = z.infer<typeof functionSourceJobAdmissionSchema>;
20
+ export declare const functionAgentSourceExecutionSchema: z.ZodObject<{
21
+ run: z.ZodObject<{
22
+ id: z.ZodString;
23
+ processId: z.ZodString;
24
+ processVersion: z.ZodString;
25
+ bundleHash: z.ZodString;
26
+ entity: z.ZodNullable<z.ZodObject<{
27
+ type: z.ZodString;
28
+ id: z.ZodString;
29
+ }, z.core.$strict>>;
30
+ }, z.core.$strict>;
31
+ step: z.ZodObject<{
32
+ id: z.ZodString;
33
+ nodeId: z.ZodString;
34
+ attempt: z.ZodNumber;
35
+ }, z.core.$strict>;
36
+ agent: z.ZodObject<{
37
+ id: z.ZodString;
38
+ runId: z.ZodString;
39
+ threadId: z.ZodString;
40
+ identity: z.ZodObject<{
41
+ id: z.ZodString;
42
+ version: z.ZodString;
43
+ definitionSha256: z.ZodString;
44
+ }, z.core.$strict>;
45
+ }, z.core.$strict>;
46
+ }, z.core.$strict>;
47
+ export type FunctionAgentSourceExecution = z.infer<typeof functionAgentSourceExecutionSchema>;
48
+ export declare function readFunctionAgentEvidenceScopes(manifest: unknown): string[];
49
+ export declare const functionAgentConversationResponseSchema: z.ZodObject<{
50
+ runId: z.ZodString;
51
+ agent: z.ZodString;
52
+ threadId: z.ZodString;
53
+ status: z.ZodLiteral<"completed">;
54
+ output: z.ZodJSONSchema;
55
+ messages: z.ZodArray<z.ZodObject<{
56
+ id: z.ZodString;
57
+ role: z.ZodLiteral<"assistant">;
58
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
59
+ type: z.ZodLiteral<"text">;
60
+ text: z.ZodString;
61
+ }, z.core.$strict>, z.ZodObject<{
62
+ type: z.ZodLiteral<"dynamic-tool">;
63
+ output: z.ZodObject<{
64
+ content: z.ZodArray<z.ZodObject<{
65
+ type: z.ZodLiteral<"resource">;
66
+ resource: z.ZodObject<{
67
+ uri: z.ZodString;
68
+ text: z.ZodString;
69
+ }, z.core.$strict>;
70
+ }, z.core.$strict>>;
71
+ }, z.core.$strict>;
72
+ }, z.core.$strict>]>>;
73
+ metadata: z.ZodOptional<z.ZodObject<{
74
+ citations: z.ZodArray<z.ZodJSONSchema>;
75
+ }, z.core.$strict>>;
76
+ }, z.core.$strict>>;
77
+ conversation: z.ZodOptional<z.ZodObject<{
78
+ messageCount: z.ZodNumber;
79
+ userMessageCount: z.ZodNumber;
80
+ assistantMessageCount: z.ZodNumber;
81
+ messages: z.ZodArray<z.ZodObject<{
82
+ id: z.ZodString;
83
+ role: z.ZodEnum<{
84
+ assistant: "assistant";
85
+ user: "user";
86
+ }>;
87
+ textParts: z.ZodArray<z.ZodString>;
88
+ tools: z.ZodArray<z.ZodObject<{
89
+ partType: z.ZodString;
90
+ toolName: z.ZodNullable<z.ZodString>;
91
+ state: z.ZodNullable<z.ZodString>;
92
+ outputTruthy: z.ZodBoolean;
93
+ }, z.core.$strict>>;
94
+ }, z.core.$strict>>;
95
+ }, z.core.$strict>>;
96
+ context: z.ZodObject<{
97
+ messages: z.ZodArray<z.ZodObject<{
98
+ id: z.ZodString;
99
+ role: z.ZodEnum<{
100
+ assistant: "assistant";
101
+ user: "user";
102
+ }>;
103
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
104
+ type: z.ZodLiteral<"text">;
105
+ text: z.ZodString;
106
+ }, z.core.$strict>, z.ZodObject<{
107
+ type: z.ZodString;
108
+ toolName: z.ZodOptional<z.ZodString>;
109
+ name: z.ZodOptional<z.ZodString>;
110
+ toolCallId: z.ZodOptional<z.ZodString>;
111
+ state: z.ZodOptional<z.ZodString>;
112
+ input: z.ZodOptional<z.ZodJSONSchema>;
113
+ output: z.ZodOptional<z.ZodJSONSchema>;
114
+ }, z.core.$strict>]>>;
115
+ metadata: z.ZodOptional<z.ZodObject<{
116
+ citations: z.ZodArray<z.ZodJSONSchema>;
117
+ }, z.core.$strict>>;
118
+ }, z.core.$strict>>;
119
+ compactionSummary: z.ZodNullable<z.ZodString>;
120
+ }, z.core.$strict>;
121
+ }, z.core.$strict>;
122
+ export type FunctionAgentConversationResponse = z.infer<typeof functionAgentConversationResponseSchema>;
123
+ export declare const functionAgentSourceResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
124
+ runId: z.ZodString;
125
+ agent: z.ZodString;
126
+ threadId: z.ZodString;
127
+ status: z.ZodLiteral<"completed">;
128
+ output: z.ZodJSONSchema;
129
+ messages: z.ZodArray<z.ZodObject<{
130
+ id: z.ZodString;
131
+ role: z.ZodLiteral<"assistant">;
132
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
133
+ type: z.ZodLiteral<"text">;
134
+ text: z.ZodString;
135
+ }, z.core.$strict>, z.ZodObject<{
136
+ type: z.ZodLiteral<"dynamic-tool">;
137
+ output: z.ZodObject<{
138
+ content: z.ZodArray<z.ZodObject<{
139
+ type: z.ZodLiteral<"resource">;
140
+ resource: z.ZodObject<{
141
+ uri: z.ZodString;
142
+ text: z.ZodString;
143
+ }, z.core.$strict>;
144
+ }, z.core.$strict>>;
145
+ }, z.core.$strict>;
146
+ }, z.core.$strict>]>>;
147
+ metadata: z.ZodOptional<z.ZodObject<{
148
+ citations: z.ZodArray<z.ZodJSONSchema>;
149
+ }, z.core.$strict>>;
150
+ }, z.core.$strict>>;
151
+ conversation: z.ZodOptional<z.ZodObject<{
152
+ messageCount: z.ZodNumber;
153
+ userMessageCount: z.ZodNumber;
154
+ assistantMessageCount: z.ZodNumber;
155
+ messages: z.ZodArray<z.ZodObject<{
156
+ id: z.ZodString;
157
+ role: z.ZodEnum<{
158
+ assistant: "assistant";
159
+ user: "user";
160
+ }>;
161
+ textParts: z.ZodArray<z.ZodString>;
162
+ tools: z.ZodArray<z.ZodObject<{
163
+ partType: z.ZodString;
164
+ toolName: z.ZodNullable<z.ZodString>;
165
+ state: z.ZodNullable<z.ZodString>;
166
+ outputTruthy: z.ZodBoolean;
167
+ }, z.core.$strict>>;
168
+ }, z.core.$strict>>;
169
+ }, z.core.$strict>>;
170
+ }, z.core.$strict>, z.ZodObject<{
171
+ runId: z.ZodString;
172
+ agent: z.ZodString;
173
+ threadId: z.ZodString;
174
+ status: z.ZodLiteral<"completed">;
175
+ output: z.ZodJSONSchema;
176
+ messages: z.ZodArray<z.ZodObject<{
177
+ id: z.ZodString;
178
+ role: z.ZodLiteral<"assistant">;
179
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
180
+ type: z.ZodLiteral<"text">;
181
+ text: z.ZodString;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ type: z.ZodLiteral<"dynamic-tool">;
184
+ output: z.ZodObject<{
185
+ content: z.ZodArray<z.ZodObject<{
186
+ type: z.ZodLiteral<"resource">;
187
+ resource: z.ZodObject<{
188
+ uri: z.ZodString;
189
+ text: z.ZodString;
190
+ }, z.core.$strict>;
191
+ }, z.core.$strict>>;
192
+ }, z.core.$strict>;
193
+ }, z.core.$strict>]>>;
194
+ metadata: z.ZodOptional<z.ZodObject<{
195
+ citations: z.ZodArray<z.ZodJSONSchema>;
196
+ }, z.core.$strict>>;
197
+ }, z.core.$strict>>;
198
+ conversation: z.ZodOptional<z.ZodObject<{
199
+ messageCount: z.ZodNumber;
200
+ userMessageCount: z.ZodNumber;
201
+ assistantMessageCount: z.ZodNumber;
202
+ messages: z.ZodArray<z.ZodObject<{
203
+ id: z.ZodString;
204
+ role: z.ZodEnum<{
205
+ assistant: "assistant";
206
+ user: "user";
207
+ }>;
208
+ textParts: z.ZodArray<z.ZodString>;
209
+ tools: z.ZodArray<z.ZodObject<{
210
+ partType: z.ZodString;
211
+ toolName: z.ZodNullable<z.ZodString>;
212
+ state: z.ZodNullable<z.ZodString>;
213
+ outputTruthy: z.ZodBoolean;
214
+ }, z.core.$strict>>;
215
+ }, z.core.$strict>>;
216
+ }, z.core.$strict>>;
217
+ context: z.ZodObject<{
218
+ messages: z.ZodArray<z.ZodObject<{
219
+ id: z.ZodString;
220
+ role: z.ZodEnum<{
221
+ assistant: "assistant";
222
+ user: "user";
223
+ }>;
224
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
225
+ type: z.ZodLiteral<"text">;
226
+ text: z.ZodString;
227
+ }, z.core.$strict>, z.ZodObject<{
228
+ type: z.ZodString;
229
+ toolName: z.ZodOptional<z.ZodString>;
230
+ name: z.ZodOptional<z.ZodString>;
231
+ toolCallId: z.ZodOptional<z.ZodString>;
232
+ state: z.ZodOptional<z.ZodString>;
233
+ input: z.ZodOptional<z.ZodJSONSchema>;
234
+ output: z.ZodOptional<z.ZodJSONSchema>;
235
+ }, z.core.$strict>]>>;
236
+ metadata: z.ZodOptional<z.ZodObject<{
237
+ citations: z.ZodArray<z.ZodJSONSchema>;
238
+ }, z.core.$strict>>;
239
+ }, z.core.$strict>>;
240
+ compactionSummary: z.ZodNullable<z.ZodString>;
241
+ }, z.core.$strict>;
242
+ }, z.core.$strict>]>;
243
+ export declare const functionAgentSourceEvidenceCaptureSchema: z.ZodObject<{
244
+ response: z.ZodUnion<readonly [z.ZodObject<{
245
+ runId: z.ZodString;
246
+ agent: z.ZodString;
247
+ threadId: z.ZodString;
248
+ status: z.ZodLiteral<"completed">;
249
+ output: z.ZodJSONSchema;
250
+ messages: z.ZodArray<z.ZodObject<{
251
+ id: z.ZodString;
252
+ role: z.ZodLiteral<"assistant">;
253
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
254
+ type: z.ZodLiteral<"text">;
255
+ text: z.ZodString;
256
+ }, z.core.$strict>, z.ZodObject<{
257
+ type: z.ZodLiteral<"dynamic-tool">;
258
+ output: z.ZodObject<{
259
+ content: z.ZodArray<z.ZodObject<{
260
+ type: z.ZodLiteral<"resource">;
261
+ resource: z.ZodObject<{
262
+ uri: z.ZodString;
263
+ text: z.ZodString;
264
+ }, z.core.$strict>;
265
+ }, z.core.$strict>>;
266
+ }, z.core.$strict>;
267
+ }, z.core.$strict>]>>;
268
+ metadata: z.ZodOptional<z.ZodObject<{
269
+ citations: z.ZodArray<z.ZodJSONSchema>;
270
+ }, z.core.$strict>>;
271
+ }, z.core.$strict>>;
272
+ conversation: z.ZodOptional<z.ZodObject<{
273
+ messageCount: z.ZodNumber;
274
+ userMessageCount: z.ZodNumber;
275
+ assistantMessageCount: z.ZodNumber;
276
+ messages: z.ZodArray<z.ZodObject<{
277
+ id: z.ZodString;
278
+ role: z.ZodEnum<{
279
+ assistant: "assistant";
280
+ user: "user";
281
+ }>;
282
+ textParts: z.ZodArray<z.ZodString>;
283
+ tools: z.ZodArray<z.ZodObject<{
284
+ partType: z.ZodString;
285
+ toolName: z.ZodNullable<z.ZodString>;
286
+ state: z.ZodNullable<z.ZodString>;
287
+ outputTruthy: z.ZodBoolean;
288
+ }, z.core.$strict>>;
289
+ }, z.core.$strict>>;
290
+ }, z.core.$strict>>;
291
+ }, z.core.$strict>, z.ZodObject<{
292
+ runId: z.ZodString;
293
+ agent: z.ZodString;
294
+ threadId: z.ZodString;
295
+ status: z.ZodLiteral<"completed">;
296
+ output: z.ZodJSONSchema;
297
+ messages: z.ZodArray<z.ZodObject<{
298
+ id: z.ZodString;
299
+ role: z.ZodLiteral<"assistant">;
300
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
301
+ type: z.ZodLiteral<"text">;
302
+ text: z.ZodString;
303
+ }, z.core.$strict>, z.ZodObject<{
304
+ type: z.ZodLiteral<"dynamic-tool">;
305
+ output: z.ZodObject<{
306
+ content: z.ZodArray<z.ZodObject<{
307
+ type: z.ZodLiteral<"resource">;
308
+ resource: z.ZodObject<{
309
+ uri: z.ZodString;
310
+ text: z.ZodString;
311
+ }, z.core.$strict>;
312
+ }, z.core.$strict>>;
313
+ }, z.core.$strict>;
314
+ }, z.core.$strict>]>>;
315
+ metadata: z.ZodOptional<z.ZodObject<{
316
+ citations: z.ZodArray<z.ZodJSONSchema>;
317
+ }, z.core.$strict>>;
318
+ }, z.core.$strict>>;
319
+ conversation: z.ZodOptional<z.ZodObject<{
320
+ messageCount: z.ZodNumber;
321
+ userMessageCount: z.ZodNumber;
322
+ assistantMessageCount: z.ZodNumber;
323
+ messages: z.ZodArray<z.ZodObject<{
324
+ id: z.ZodString;
325
+ role: z.ZodEnum<{
326
+ assistant: "assistant";
327
+ user: "user";
328
+ }>;
329
+ textParts: z.ZodArray<z.ZodString>;
330
+ tools: z.ZodArray<z.ZodObject<{
331
+ partType: z.ZodString;
332
+ toolName: z.ZodNullable<z.ZodString>;
333
+ state: z.ZodNullable<z.ZodString>;
334
+ outputTruthy: z.ZodBoolean;
335
+ }, z.core.$strict>>;
336
+ }, z.core.$strict>>;
337
+ }, z.core.$strict>>;
338
+ context: z.ZodObject<{
339
+ messages: z.ZodArray<z.ZodObject<{
340
+ id: z.ZodString;
341
+ role: z.ZodEnum<{
342
+ assistant: "assistant";
343
+ user: "user";
344
+ }>;
345
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
346
+ type: z.ZodLiteral<"text">;
347
+ text: z.ZodString;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ type: z.ZodString;
350
+ toolName: z.ZodOptional<z.ZodString>;
351
+ name: z.ZodOptional<z.ZodString>;
352
+ toolCallId: z.ZodOptional<z.ZodString>;
353
+ state: z.ZodOptional<z.ZodString>;
354
+ input: z.ZodOptional<z.ZodJSONSchema>;
355
+ output: z.ZodOptional<z.ZodJSONSchema>;
356
+ }, z.core.$strict>]>>;
357
+ metadata: z.ZodOptional<z.ZodObject<{
358
+ citations: z.ZodArray<z.ZodJSONSchema>;
359
+ }, z.core.$strict>>;
360
+ }, z.core.$strict>>;
361
+ compactionSummary: z.ZodNullable<z.ZodString>;
362
+ }, z.core.$strict>;
363
+ }, z.core.$strict>]>;
364
+ responseHash: z.ZodString;
365
+ sourceReceipt: z.ZodString;
366
+ }, z.core.$strict>;
367
+ export type FunctionAgentSourceEvidenceCapture = z.infer<typeof functionAgentSourceEvidenceCaptureSchema>;
368
+ export declare const functionAgentConversationEvidenceResponseSchema: z.ZodObject<{
369
+ agent: z.ZodString;
370
+ threadId: z.ZodString;
371
+ revision: z.ZodNumber;
372
+ cutoffAt: z.ZodISODateTime;
373
+ context: z.ZodObject<{
374
+ messages: z.ZodArray<z.ZodObject<{
375
+ id: z.ZodString;
376
+ role: z.ZodEnum<{
377
+ assistant: "assistant";
378
+ user: "user";
379
+ }>;
380
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
381
+ type: z.ZodLiteral<"text">;
382
+ text: z.ZodString;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ type: z.ZodString;
385
+ toolName: z.ZodOptional<z.ZodString>;
386
+ name: z.ZodOptional<z.ZodString>;
387
+ toolCallId: z.ZodOptional<z.ZodString>;
388
+ state: z.ZodOptional<z.ZodString>;
389
+ input: z.ZodOptional<z.ZodJSONSchema>;
390
+ output: z.ZodOptional<z.ZodJSONSchema>;
391
+ }, z.core.$strict>]>>;
392
+ metadata: z.ZodOptional<z.ZodObject<{
393
+ citations: z.ZodArray<z.ZodJSONSchema>;
394
+ }, z.core.$strict>>;
395
+ }, z.core.$strict>>;
396
+ compactionSummary: z.ZodNull;
397
+ }, z.core.$strict>;
398
+ conversation: z.ZodObject<{
399
+ messageCount: z.ZodNumber;
400
+ userMessageCount: z.ZodNumber;
401
+ assistantMessageCount: z.ZodNumber;
402
+ messages: z.ZodArray<z.ZodObject<{
403
+ id: z.ZodString;
404
+ role: z.ZodEnum<{
405
+ assistant: "assistant";
406
+ user: "user";
407
+ }>;
408
+ textParts: z.ZodArray<z.ZodString>;
409
+ tools: z.ZodArray<z.ZodObject<{
410
+ partType: z.ZodString;
411
+ toolName: z.ZodNullable<z.ZodString>;
412
+ state: z.ZodNullable<z.ZodString>;
413
+ outputTruthy: z.ZodBoolean;
414
+ }, z.core.$strict>>;
415
+ }, z.core.$strict>>;
416
+ }, z.core.$strict>;
417
+ }, z.core.$strict>;
418
+ export type FunctionAgentConversationEvidenceResponse = z.infer<typeof functionAgentConversationEvidenceResponseSchema>;
419
+ export declare const functionAgentConversationEvidenceCaptureSchema: z.ZodObject<{
420
+ response: z.ZodObject<{
421
+ agent: z.ZodString;
422
+ threadId: z.ZodString;
423
+ revision: z.ZodNumber;
424
+ cutoffAt: z.ZodISODateTime;
425
+ context: z.ZodObject<{
426
+ messages: z.ZodArray<z.ZodObject<{
427
+ id: z.ZodString;
428
+ role: z.ZodEnum<{
429
+ assistant: "assistant";
430
+ user: "user";
431
+ }>;
432
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
433
+ type: z.ZodLiteral<"text">;
434
+ text: z.ZodString;
435
+ }, z.core.$strict>, z.ZodObject<{
436
+ type: z.ZodString;
437
+ toolName: z.ZodOptional<z.ZodString>;
438
+ name: z.ZodOptional<z.ZodString>;
439
+ toolCallId: z.ZodOptional<z.ZodString>;
440
+ state: z.ZodOptional<z.ZodString>;
441
+ input: z.ZodOptional<z.ZodJSONSchema>;
442
+ output: z.ZodOptional<z.ZodJSONSchema>;
443
+ }, z.core.$strict>]>>;
444
+ metadata: z.ZodOptional<z.ZodObject<{
445
+ citations: z.ZodArray<z.ZodJSONSchema>;
446
+ }, z.core.$strict>>;
447
+ }, z.core.$strict>>;
448
+ compactionSummary: z.ZodNull;
449
+ }, z.core.$strict>;
450
+ conversation: z.ZodObject<{
451
+ messageCount: z.ZodNumber;
452
+ userMessageCount: z.ZodNumber;
453
+ assistantMessageCount: z.ZodNumber;
454
+ messages: z.ZodArray<z.ZodObject<{
455
+ id: z.ZodString;
456
+ role: z.ZodEnum<{
457
+ assistant: "assistant";
458
+ user: "user";
459
+ }>;
460
+ textParts: z.ZodArray<z.ZodString>;
461
+ tools: z.ZodArray<z.ZodObject<{
462
+ partType: z.ZodString;
463
+ toolName: z.ZodNullable<z.ZodString>;
464
+ state: z.ZodNullable<z.ZodString>;
465
+ outputTruthy: z.ZodBoolean;
466
+ }, z.core.$strict>>;
467
+ }, z.core.$strict>>;
468
+ }, z.core.$strict>;
469
+ }, z.core.$strict>;
470
+ responseHash: z.ZodString;
471
+ sourceReceipt: z.ZodString;
472
+ }, z.core.$strict>;
473
+ export type FunctionAgentConversationEvidenceCapture = z.infer<typeof functionAgentConversationEvidenceCaptureSchema>;
474
+ export declare const functionAgentConversationEvidenceQuerySchema: z.ZodObject<{
475
+ agent: z.ZodString;
476
+ threadId: z.ZodString;
477
+ }, z.core.$strict>;
478
+ export type FunctionAgentConversationEvidenceQuery = z.infer<typeof functionAgentConversationEvidenceQuerySchema>;
479
+ export declare const functionAgentConversationEvidenceRequestSchema: z.ZodObject<{
480
+ agent: z.ZodString;
481
+ threadId: z.ZodString;
482
+ operation: z.ZodLiteral<"verifyConversationEvidence">;
483
+ response: z.ZodObject<{
484
+ agent: z.ZodString;
485
+ threadId: z.ZodString;
486
+ revision: z.ZodNumber;
487
+ cutoffAt: z.ZodISODateTime;
488
+ context: z.ZodObject<{
489
+ messages: z.ZodArray<z.ZodObject<{
490
+ id: z.ZodString;
491
+ role: z.ZodEnum<{
492
+ assistant: "assistant";
493
+ user: "user";
494
+ }>;
495
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
496
+ type: z.ZodLiteral<"text">;
497
+ text: z.ZodString;
498
+ }, z.core.$strict>, z.ZodObject<{
499
+ type: z.ZodString;
500
+ toolName: z.ZodOptional<z.ZodString>;
501
+ name: z.ZodOptional<z.ZodString>;
502
+ toolCallId: z.ZodOptional<z.ZodString>;
503
+ state: z.ZodOptional<z.ZodString>;
504
+ input: z.ZodOptional<z.ZodJSONSchema>;
505
+ output: z.ZodOptional<z.ZodJSONSchema>;
506
+ }, z.core.$strict>]>>;
507
+ metadata: z.ZodOptional<z.ZodObject<{
508
+ citations: z.ZodArray<z.ZodJSONSchema>;
509
+ }, z.core.$strict>>;
510
+ }, z.core.$strict>>;
511
+ compactionSummary: z.ZodNull;
512
+ }, z.core.$strict>;
513
+ conversation: z.ZodObject<{
514
+ messageCount: z.ZodNumber;
515
+ userMessageCount: z.ZodNumber;
516
+ assistantMessageCount: z.ZodNumber;
517
+ messages: z.ZodArray<z.ZodObject<{
518
+ id: z.ZodString;
519
+ role: z.ZodEnum<{
520
+ assistant: "assistant";
521
+ user: "user";
522
+ }>;
523
+ textParts: z.ZodArray<z.ZodString>;
524
+ tools: z.ZodArray<z.ZodObject<{
525
+ partType: z.ZodString;
526
+ toolName: z.ZodNullable<z.ZodString>;
527
+ state: z.ZodNullable<z.ZodString>;
528
+ outputTruthy: z.ZodBoolean;
529
+ }, z.core.$strict>>;
530
+ }, z.core.$strict>>;
531
+ }, z.core.$strict>;
532
+ }, z.core.$strict>;
533
+ responseHash: z.ZodString;
534
+ sourceReceipt: z.ZodString;
535
+ }, z.core.$strict>;
536
+ export type FunctionAgentConversationEvidenceRequest = z.infer<typeof functionAgentConversationEvidenceRequestSchema>;
537
+ export declare const functionAgentHumanSourceEvidenceClaimsSchema: z.ZodObject<{
538
+ sourceKind: z.ZodLiteral<"human">;
539
+ audience: z.ZodLiteral<"atlas-agent-source-evidence">;
540
+ actualUserSub: z.ZodString;
541
+ projection: z.ZodEnum<{
542
+ "completed-v1": "completed-v1";
543
+ "conversation-v1": "conversation-v1";
544
+ }>;
545
+ environment: z.ZodString;
546
+ org: z.ZodString;
547
+ agentId: z.ZodString;
548
+ runId: z.ZodString;
549
+ threadId: z.ZodString;
550
+ familyRunIds: z.ZodArray<z.ZodString>;
551
+ cutoffAt: z.ZodISODateTime;
552
+ responseHash: z.ZodString;
553
+ sourceExecution: z.ZodNullable<z.ZodObject<{
554
+ run: z.ZodObject<{
555
+ id: z.ZodString;
556
+ processId: z.ZodString;
557
+ processVersion: z.ZodString;
558
+ bundleHash: z.ZodString;
559
+ entity: z.ZodNullable<z.ZodObject<{
560
+ type: z.ZodString;
561
+ id: z.ZodString;
562
+ }, z.core.$strict>>;
563
+ }, z.core.$strict>;
564
+ step: z.ZodObject<{
565
+ id: z.ZodString;
566
+ nodeId: z.ZodString;
567
+ attempt: z.ZodNumber;
568
+ }, z.core.$strict>;
569
+ agent: z.ZodObject<{
570
+ id: z.ZodString;
571
+ runId: z.ZodString;
572
+ threadId: z.ZodString;
573
+ identity: z.ZodObject<{
574
+ id: z.ZodString;
575
+ version: z.ZodString;
576
+ definitionSha256: z.ZodString;
577
+ }, z.core.$strict>;
578
+ }, z.core.$strict>;
579
+ }, z.core.$strict>>;
580
+ jobAdmission: z.ZodNullable<z.ZodObject<{
581
+ idempotencyKey: z.ZodString;
582
+ requestHash: z.ZodString;
583
+ kind: z.ZodEnum<{
584
+ workflow: "workflow";
585
+ agent: "agent";
586
+ }>;
587
+ resourceId: z.ZodString;
588
+ actorSub: z.ZodString;
589
+ runId: z.ZodString;
590
+ executionSnapshotId: z.ZodUUID;
591
+ }, z.core.$strict>>;
592
+ }, z.core.$strict>;
593
+ export declare const functionAgentManagedFunctionSourceEvidenceClaimsSchema: z.ZodObject<{
594
+ sourceKind: z.ZodLiteral<"managed_function">;
595
+ audience: z.ZodLiteral<"atlas-managed-function-source-evidence">;
596
+ actualServiceAccountSub: z.ZodString;
597
+ projection: z.ZodLiteral<"completed-v1">;
598
+ sourceReceiver: z.ZodObject<{
599
+ functionId: z.ZodUUID;
600
+ versionId: z.ZodUUID;
601
+ invocationId: z.ZodUUID;
602
+ serviceAccountId: z.ZodUUID;
603
+ org: z.ZodString;
604
+ }, z.core.$strict>;
605
+ environment: z.ZodString;
606
+ org: z.ZodString;
607
+ agentId: z.ZodString;
608
+ runId: z.ZodString;
609
+ threadId: z.ZodString;
610
+ familyRunIds: z.ZodArray<z.ZodString>;
611
+ cutoffAt: z.ZodISODateTime;
612
+ responseHash: z.ZodString;
613
+ sourceExecution: z.ZodNullable<z.ZodObject<{
614
+ run: z.ZodObject<{
615
+ id: z.ZodString;
616
+ processId: z.ZodString;
617
+ processVersion: z.ZodString;
618
+ bundleHash: z.ZodString;
619
+ entity: z.ZodNullable<z.ZodObject<{
620
+ type: z.ZodString;
621
+ id: z.ZodString;
622
+ }, z.core.$strict>>;
623
+ }, z.core.$strict>;
624
+ step: z.ZodObject<{
625
+ id: z.ZodString;
626
+ nodeId: z.ZodString;
627
+ attempt: z.ZodNumber;
628
+ }, z.core.$strict>;
629
+ agent: z.ZodObject<{
630
+ id: z.ZodString;
631
+ runId: z.ZodString;
632
+ threadId: z.ZodString;
633
+ identity: z.ZodObject<{
634
+ id: z.ZodString;
635
+ version: z.ZodString;
636
+ definitionSha256: z.ZodString;
637
+ }, z.core.$strict>;
638
+ }, z.core.$strict>;
639
+ }, z.core.$strict>>;
640
+ jobAdmission: z.ZodNullable<z.ZodObject<{
641
+ idempotencyKey: z.ZodString;
642
+ requestHash: z.ZodString;
643
+ kind: z.ZodEnum<{
644
+ workflow: "workflow";
645
+ agent: "agent";
646
+ }>;
647
+ resourceId: z.ZodString;
648
+ actorSub: z.ZodString;
649
+ runId: z.ZodString;
650
+ executionSnapshotId: z.ZodUUID;
651
+ }, z.core.$strict>>;
652
+ }, z.core.$strict>;
653
+ export declare const functionAgentRunSourceEvidenceClaimsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
654
+ sourceKind: z.ZodLiteral<"human">;
655
+ audience: z.ZodLiteral<"atlas-agent-source-evidence">;
656
+ actualUserSub: z.ZodString;
657
+ projection: z.ZodEnum<{
658
+ "completed-v1": "completed-v1";
659
+ "conversation-v1": "conversation-v1";
660
+ }>;
661
+ environment: z.ZodString;
662
+ org: z.ZodString;
663
+ agentId: z.ZodString;
664
+ runId: z.ZodString;
665
+ threadId: z.ZodString;
666
+ familyRunIds: z.ZodArray<z.ZodString>;
667
+ cutoffAt: z.ZodISODateTime;
668
+ responseHash: z.ZodString;
669
+ sourceExecution: z.ZodNullable<z.ZodObject<{
670
+ run: z.ZodObject<{
671
+ id: z.ZodString;
672
+ processId: z.ZodString;
673
+ processVersion: z.ZodString;
674
+ bundleHash: z.ZodString;
675
+ entity: z.ZodNullable<z.ZodObject<{
676
+ type: z.ZodString;
677
+ id: z.ZodString;
678
+ }, z.core.$strict>>;
679
+ }, z.core.$strict>;
680
+ step: z.ZodObject<{
681
+ id: z.ZodString;
682
+ nodeId: z.ZodString;
683
+ attempt: z.ZodNumber;
684
+ }, z.core.$strict>;
685
+ agent: z.ZodObject<{
686
+ id: z.ZodString;
687
+ runId: z.ZodString;
688
+ threadId: z.ZodString;
689
+ identity: z.ZodObject<{
690
+ id: z.ZodString;
691
+ version: z.ZodString;
692
+ definitionSha256: z.ZodString;
693
+ }, z.core.$strict>;
694
+ }, z.core.$strict>;
695
+ }, z.core.$strict>>;
696
+ jobAdmission: z.ZodNullable<z.ZodObject<{
697
+ idempotencyKey: z.ZodString;
698
+ requestHash: z.ZodString;
699
+ kind: z.ZodEnum<{
700
+ workflow: "workflow";
701
+ agent: "agent";
702
+ }>;
703
+ resourceId: z.ZodString;
704
+ actorSub: z.ZodString;
705
+ runId: z.ZodString;
706
+ executionSnapshotId: z.ZodUUID;
707
+ }, z.core.$strict>>;
708
+ }, z.core.$strict>, z.ZodObject<{
709
+ sourceKind: z.ZodLiteral<"managed_function">;
710
+ audience: z.ZodLiteral<"atlas-managed-function-source-evidence">;
711
+ actualServiceAccountSub: z.ZodString;
712
+ projection: z.ZodLiteral<"completed-v1">;
713
+ sourceReceiver: z.ZodObject<{
714
+ functionId: z.ZodUUID;
715
+ versionId: z.ZodUUID;
716
+ invocationId: z.ZodUUID;
717
+ serviceAccountId: z.ZodUUID;
718
+ org: z.ZodString;
719
+ }, z.core.$strict>;
720
+ environment: z.ZodString;
721
+ org: z.ZodString;
722
+ agentId: z.ZodString;
723
+ runId: z.ZodString;
724
+ threadId: z.ZodString;
725
+ familyRunIds: z.ZodArray<z.ZodString>;
726
+ cutoffAt: z.ZodISODateTime;
727
+ responseHash: z.ZodString;
728
+ sourceExecution: z.ZodNullable<z.ZodObject<{
729
+ run: z.ZodObject<{
730
+ id: z.ZodString;
731
+ processId: z.ZodString;
732
+ processVersion: z.ZodString;
733
+ bundleHash: z.ZodString;
734
+ entity: z.ZodNullable<z.ZodObject<{
735
+ type: z.ZodString;
736
+ id: z.ZodString;
737
+ }, z.core.$strict>>;
738
+ }, z.core.$strict>;
739
+ step: z.ZodObject<{
740
+ id: z.ZodString;
741
+ nodeId: z.ZodString;
742
+ attempt: z.ZodNumber;
743
+ }, z.core.$strict>;
744
+ agent: z.ZodObject<{
745
+ id: z.ZodString;
746
+ runId: z.ZodString;
747
+ threadId: z.ZodString;
748
+ identity: z.ZodObject<{
749
+ id: z.ZodString;
750
+ version: z.ZodString;
751
+ definitionSha256: z.ZodString;
752
+ }, z.core.$strict>;
753
+ }, z.core.$strict>;
754
+ }, z.core.$strict>>;
755
+ jobAdmission: z.ZodNullable<z.ZodObject<{
756
+ idempotencyKey: z.ZodString;
757
+ requestHash: z.ZodString;
758
+ kind: z.ZodEnum<{
759
+ workflow: "workflow";
760
+ agent: "agent";
761
+ }>;
762
+ resourceId: z.ZodString;
763
+ actorSub: z.ZodString;
764
+ runId: z.ZodString;
765
+ executionSnapshotId: z.ZodUUID;
766
+ }, z.core.$strict>>;
767
+ }, z.core.$strict>], "sourceKind">;
768
+ export declare const functionAgentHumanConversationEvidenceClaimsSchema: z.ZodObject<{
769
+ sourceKind: z.ZodLiteral<"human">;
770
+ projection: z.ZodLiteral<"thread-conversation-v1">;
771
+ audience: z.ZodLiteral<"atlas-agent-source-evidence">;
772
+ actualUserSub: z.ZodString;
773
+ environment: z.ZodString;
774
+ org: z.ZodString;
775
+ agentId: z.ZodString;
776
+ threadId: z.ZodString;
777
+ revision: z.ZodNumber;
778
+ cutoffAt: z.ZodISODateTime;
779
+ responseHash: z.ZodString;
780
+ }, z.core.$strict>;
781
+ export declare const functionAgentSourceEvidenceClaimsSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
782
+ sourceKind: z.ZodLiteral<"human">;
783
+ audience: z.ZodLiteral<"atlas-agent-source-evidence">;
784
+ actualUserSub: z.ZodString;
785
+ projection: z.ZodEnum<{
786
+ "completed-v1": "completed-v1";
787
+ "conversation-v1": "conversation-v1";
788
+ }>;
789
+ environment: z.ZodString;
790
+ org: z.ZodString;
791
+ agentId: z.ZodString;
792
+ runId: z.ZodString;
793
+ threadId: z.ZodString;
794
+ familyRunIds: z.ZodArray<z.ZodString>;
795
+ cutoffAt: z.ZodISODateTime;
796
+ responseHash: z.ZodString;
797
+ sourceExecution: z.ZodNullable<z.ZodObject<{
798
+ run: z.ZodObject<{
799
+ id: z.ZodString;
800
+ processId: z.ZodString;
801
+ processVersion: z.ZodString;
802
+ bundleHash: z.ZodString;
803
+ entity: z.ZodNullable<z.ZodObject<{
804
+ type: z.ZodString;
805
+ id: z.ZodString;
806
+ }, z.core.$strict>>;
807
+ }, z.core.$strict>;
808
+ step: z.ZodObject<{
809
+ id: z.ZodString;
810
+ nodeId: z.ZodString;
811
+ attempt: z.ZodNumber;
812
+ }, z.core.$strict>;
813
+ agent: z.ZodObject<{
814
+ id: z.ZodString;
815
+ runId: z.ZodString;
816
+ threadId: z.ZodString;
817
+ identity: z.ZodObject<{
818
+ id: z.ZodString;
819
+ version: z.ZodString;
820
+ definitionSha256: z.ZodString;
821
+ }, z.core.$strict>;
822
+ }, z.core.$strict>;
823
+ }, z.core.$strict>>;
824
+ jobAdmission: z.ZodNullable<z.ZodObject<{
825
+ idempotencyKey: z.ZodString;
826
+ requestHash: z.ZodString;
827
+ kind: z.ZodEnum<{
828
+ workflow: "workflow";
829
+ agent: "agent";
830
+ }>;
831
+ resourceId: z.ZodString;
832
+ actorSub: z.ZodString;
833
+ runId: z.ZodString;
834
+ executionSnapshotId: z.ZodUUID;
835
+ }, z.core.$strict>>;
836
+ }, z.core.$strict>, z.ZodObject<{
837
+ sourceKind: z.ZodLiteral<"managed_function">;
838
+ audience: z.ZodLiteral<"atlas-managed-function-source-evidence">;
839
+ actualServiceAccountSub: z.ZodString;
840
+ projection: z.ZodLiteral<"completed-v1">;
841
+ sourceReceiver: z.ZodObject<{
842
+ functionId: z.ZodUUID;
843
+ versionId: z.ZodUUID;
844
+ invocationId: z.ZodUUID;
845
+ serviceAccountId: z.ZodUUID;
846
+ org: z.ZodString;
847
+ }, z.core.$strict>;
848
+ environment: z.ZodString;
849
+ org: z.ZodString;
850
+ agentId: z.ZodString;
851
+ runId: z.ZodString;
852
+ threadId: z.ZodString;
853
+ familyRunIds: z.ZodArray<z.ZodString>;
854
+ cutoffAt: z.ZodISODateTime;
855
+ responseHash: z.ZodString;
856
+ sourceExecution: z.ZodNullable<z.ZodObject<{
857
+ run: z.ZodObject<{
858
+ id: z.ZodString;
859
+ processId: z.ZodString;
860
+ processVersion: z.ZodString;
861
+ bundleHash: z.ZodString;
862
+ entity: z.ZodNullable<z.ZodObject<{
863
+ type: z.ZodString;
864
+ id: z.ZodString;
865
+ }, z.core.$strict>>;
866
+ }, z.core.$strict>;
867
+ step: z.ZodObject<{
868
+ id: z.ZodString;
869
+ nodeId: z.ZodString;
870
+ attempt: z.ZodNumber;
871
+ }, z.core.$strict>;
872
+ agent: z.ZodObject<{
873
+ id: z.ZodString;
874
+ runId: z.ZodString;
875
+ threadId: z.ZodString;
876
+ identity: z.ZodObject<{
877
+ id: z.ZodString;
878
+ version: z.ZodString;
879
+ definitionSha256: z.ZodString;
880
+ }, z.core.$strict>;
881
+ }, z.core.$strict>;
882
+ }, z.core.$strict>>;
883
+ jobAdmission: z.ZodNullable<z.ZodObject<{
884
+ idempotencyKey: z.ZodString;
885
+ requestHash: z.ZodString;
886
+ kind: z.ZodEnum<{
887
+ workflow: "workflow";
888
+ agent: "agent";
889
+ }>;
890
+ resourceId: z.ZodString;
891
+ actorSub: z.ZodString;
892
+ runId: z.ZodString;
893
+ executionSnapshotId: z.ZodUUID;
894
+ }, z.core.$strict>>;
895
+ }, z.core.$strict>], "sourceKind">, z.ZodObject<{
896
+ sourceKind: z.ZodLiteral<"human">;
897
+ projection: z.ZodLiteral<"thread-conversation-v1">;
898
+ audience: z.ZodLiteral<"atlas-agent-source-evidence">;
899
+ actualUserSub: z.ZodString;
900
+ environment: z.ZodString;
901
+ org: z.ZodString;
902
+ agentId: z.ZodString;
903
+ threadId: z.ZodString;
904
+ revision: z.ZodNumber;
905
+ cutoffAt: z.ZodISODateTime;
906
+ responseHash: z.ZodString;
907
+ }, z.core.$strict>]>;
908
+ export type FunctionAgentSourceEvidenceClaims = z.infer<typeof functionAgentSourceEvidenceClaimsSchema>;
909
+ export declare const functionAgentSourceEvidenceRequestSchema: z.ZodObject<{
910
+ operation: z.ZodLiteral<"verifySourceEvidence">;
911
+ agent: z.ZodString;
912
+ runId: z.ZodString;
913
+ response: z.ZodUnion<readonly [z.ZodObject<{
914
+ runId: z.ZodString;
915
+ agent: z.ZodString;
916
+ threadId: z.ZodString;
917
+ status: z.ZodLiteral<"completed">;
918
+ output: z.ZodJSONSchema;
919
+ messages: z.ZodArray<z.ZodObject<{
920
+ id: z.ZodString;
921
+ role: z.ZodLiteral<"assistant">;
922
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
923
+ type: z.ZodLiteral<"text">;
924
+ text: z.ZodString;
925
+ }, z.core.$strict>, z.ZodObject<{
926
+ type: z.ZodLiteral<"dynamic-tool">;
927
+ output: z.ZodObject<{
928
+ content: z.ZodArray<z.ZodObject<{
929
+ type: z.ZodLiteral<"resource">;
930
+ resource: z.ZodObject<{
931
+ uri: z.ZodString;
932
+ text: z.ZodString;
933
+ }, z.core.$strict>;
934
+ }, z.core.$strict>>;
935
+ }, z.core.$strict>;
936
+ }, z.core.$strict>]>>;
937
+ metadata: z.ZodOptional<z.ZodObject<{
938
+ citations: z.ZodArray<z.ZodJSONSchema>;
939
+ }, z.core.$strict>>;
940
+ }, z.core.$strict>>;
941
+ conversation: z.ZodOptional<z.ZodObject<{
942
+ messageCount: z.ZodNumber;
943
+ userMessageCount: z.ZodNumber;
944
+ assistantMessageCount: z.ZodNumber;
945
+ messages: z.ZodArray<z.ZodObject<{
946
+ id: z.ZodString;
947
+ role: z.ZodEnum<{
948
+ assistant: "assistant";
949
+ user: "user";
950
+ }>;
951
+ textParts: z.ZodArray<z.ZodString>;
952
+ tools: z.ZodArray<z.ZodObject<{
953
+ partType: z.ZodString;
954
+ toolName: z.ZodNullable<z.ZodString>;
955
+ state: z.ZodNullable<z.ZodString>;
956
+ outputTruthy: z.ZodBoolean;
957
+ }, z.core.$strict>>;
958
+ }, z.core.$strict>>;
959
+ }, z.core.$strict>>;
960
+ }, z.core.$strict>, z.ZodObject<{
961
+ runId: z.ZodString;
962
+ agent: z.ZodString;
963
+ threadId: z.ZodString;
964
+ status: z.ZodLiteral<"completed">;
965
+ output: z.ZodJSONSchema;
966
+ messages: z.ZodArray<z.ZodObject<{
967
+ id: z.ZodString;
968
+ role: z.ZodLiteral<"assistant">;
969
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
970
+ type: z.ZodLiteral<"text">;
971
+ text: z.ZodString;
972
+ }, z.core.$strict>, z.ZodObject<{
973
+ type: z.ZodLiteral<"dynamic-tool">;
974
+ output: z.ZodObject<{
975
+ content: z.ZodArray<z.ZodObject<{
976
+ type: z.ZodLiteral<"resource">;
977
+ resource: z.ZodObject<{
978
+ uri: z.ZodString;
979
+ text: z.ZodString;
980
+ }, z.core.$strict>;
981
+ }, z.core.$strict>>;
982
+ }, z.core.$strict>;
983
+ }, z.core.$strict>]>>;
984
+ metadata: z.ZodOptional<z.ZodObject<{
985
+ citations: z.ZodArray<z.ZodJSONSchema>;
986
+ }, z.core.$strict>>;
987
+ }, z.core.$strict>>;
988
+ conversation: z.ZodOptional<z.ZodObject<{
989
+ messageCount: z.ZodNumber;
990
+ userMessageCount: z.ZodNumber;
991
+ assistantMessageCount: z.ZodNumber;
992
+ messages: z.ZodArray<z.ZodObject<{
993
+ id: z.ZodString;
994
+ role: z.ZodEnum<{
995
+ assistant: "assistant";
996
+ user: "user";
997
+ }>;
998
+ textParts: z.ZodArray<z.ZodString>;
999
+ tools: z.ZodArray<z.ZodObject<{
1000
+ partType: z.ZodString;
1001
+ toolName: z.ZodNullable<z.ZodString>;
1002
+ state: z.ZodNullable<z.ZodString>;
1003
+ outputTruthy: z.ZodBoolean;
1004
+ }, z.core.$strict>>;
1005
+ }, z.core.$strict>>;
1006
+ }, z.core.$strict>>;
1007
+ context: z.ZodObject<{
1008
+ messages: z.ZodArray<z.ZodObject<{
1009
+ id: z.ZodString;
1010
+ role: z.ZodEnum<{
1011
+ assistant: "assistant";
1012
+ user: "user";
1013
+ }>;
1014
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1015
+ type: z.ZodLiteral<"text">;
1016
+ text: z.ZodString;
1017
+ }, z.core.$strict>, z.ZodObject<{
1018
+ type: z.ZodString;
1019
+ toolName: z.ZodOptional<z.ZodString>;
1020
+ name: z.ZodOptional<z.ZodString>;
1021
+ toolCallId: z.ZodOptional<z.ZodString>;
1022
+ state: z.ZodOptional<z.ZodString>;
1023
+ input: z.ZodOptional<z.ZodJSONSchema>;
1024
+ output: z.ZodOptional<z.ZodJSONSchema>;
1025
+ }, z.core.$strict>]>>;
1026
+ metadata: z.ZodOptional<z.ZodObject<{
1027
+ citations: z.ZodArray<z.ZodJSONSchema>;
1028
+ }, z.core.$strict>>;
1029
+ }, z.core.$strict>>;
1030
+ compactionSummary: z.ZodNullable<z.ZodString>;
1031
+ }, z.core.$strict>;
1032
+ }, z.core.$strict>]>;
1033
+ responseHash: z.ZodString;
1034
+ sourceReceipt: z.ZodString;
1035
+ }, z.core.$strict>;
1036
+ export type FunctionAgentSourceEvidenceRequest = z.infer<typeof functionAgentSourceEvidenceRequestSchema>;
1037
+ export declare const functionAgentSourceEvidenceVerificationSchema: z.ZodObject<{
1038
+ source: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1039
+ sourceKind: z.ZodLiteral<"human">;
1040
+ audience: z.ZodLiteral<"atlas-agent-source-evidence">;
1041
+ actualUserSub: z.ZodString;
1042
+ projection: z.ZodEnum<{
1043
+ "completed-v1": "completed-v1";
1044
+ "conversation-v1": "conversation-v1";
1045
+ }>;
1046
+ environment: z.ZodString;
1047
+ org: z.ZodString;
1048
+ agentId: z.ZodString;
1049
+ runId: z.ZodString;
1050
+ threadId: z.ZodString;
1051
+ familyRunIds: z.ZodArray<z.ZodString>;
1052
+ cutoffAt: z.ZodISODateTime;
1053
+ responseHash: z.ZodString;
1054
+ sourceExecution: z.ZodNullable<z.ZodObject<{
1055
+ run: z.ZodObject<{
1056
+ id: z.ZodString;
1057
+ processId: z.ZodString;
1058
+ processVersion: z.ZodString;
1059
+ bundleHash: z.ZodString;
1060
+ entity: z.ZodNullable<z.ZodObject<{
1061
+ type: z.ZodString;
1062
+ id: z.ZodString;
1063
+ }, z.core.$strict>>;
1064
+ }, z.core.$strict>;
1065
+ step: z.ZodObject<{
1066
+ id: z.ZodString;
1067
+ nodeId: z.ZodString;
1068
+ attempt: z.ZodNumber;
1069
+ }, z.core.$strict>;
1070
+ agent: z.ZodObject<{
1071
+ id: z.ZodString;
1072
+ runId: z.ZodString;
1073
+ threadId: z.ZodString;
1074
+ identity: z.ZodObject<{
1075
+ id: z.ZodString;
1076
+ version: z.ZodString;
1077
+ definitionSha256: z.ZodString;
1078
+ }, z.core.$strict>;
1079
+ }, z.core.$strict>;
1080
+ }, z.core.$strict>>;
1081
+ jobAdmission: z.ZodNullable<z.ZodObject<{
1082
+ idempotencyKey: z.ZodString;
1083
+ requestHash: z.ZodString;
1084
+ kind: z.ZodEnum<{
1085
+ workflow: "workflow";
1086
+ agent: "agent";
1087
+ }>;
1088
+ resourceId: z.ZodString;
1089
+ actorSub: z.ZodString;
1090
+ runId: z.ZodString;
1091
+ executionSnapshotId: z.ZodUUID;
1092
+ }, z.core.$strict>>;
1093
+ }, z.core.$strict>, z.ZodObject<{
1094
+ sourceKind: z.ZodLiteral<"managed_function">;
1095
+ audience: z.ZodLiteral<"atlas-managed-function-source-evidence">;
1096
+ actualServiceAccountSub: z.ZodString;
1097
+ projection: z.ZodLiteral<"completed-v1">;
1098
+ sourceReceiver: z.ZodObject<{
1099
+ functionId: z.ZodUUID;
1100
+ versionId: z.ZodUUID;
1101
+ invocationId: z.ZodUUID;
1102
+ serviceAccountId: z.ZodUUID;
1103
+ org: z.ZodString;
1104
+ }, z.core.$strict>;
1105
+ environment: z.ZodString;
1106
+ org: z.ZodString;
1107
+ agentId: z.ZodString;
1108
+ runId: z.ZodString;
1109
+ threadId: z.ZodString;
1110
+ familyRunIds: z.ZodArray<z.ZodString>;
1111
+ cutoffAt: z.ZodISODateTime;
1112
+ responseHash: z.ZodString;
1113
+ sourceExecution: z.ZodNullable<z.ZodObject<{
1114
+ run: z.ZodObject<{
1115
+ id: z.ZodString;
1116
+ processId: z.ZodString;
1117
+ processVersion: z.ZodString;
1118
+ bundleHash: z.ZodString;
1119
+ entity: z.ZodNullable<z.ZodObject<{
1120
+ type: z.ZodString;
1121
+ id: z.ZodString;
1122
+ }, z.core.$strict>>;
1123
+ }, z.core.$strict>;
1124
+ step: z.ZodObject<{
1125
+ id: z.ZodString;
1126
+ nodeId: z.ZodString;
1127
+ attempt: z.ZodNumber;
1128
+ }, z.core.$strict>;
1129
+ agent: z.ZodObject<{
1130
+ id: z.ZodString;
1131
+ runId: z.ZodString;
1132
+ threadId: z.ZodString;
1133
+ identity: z.ZodObject<{
1134
+ id: z.ZodString;
1135
+ version: z.ZodString;
1136
+ definitionSha256: z.ZodString;
1137
+ }, z.core.$strict>;
1138
+ }, z.core.$strict>;
1139
+ }, z.core.$strict>>;
1140
+ jobAdmission: z.ZodNullable<z.ZodObject<{
1141
+ idempotencyKey: z.ZodString;
1142
+ requestHash: z.ZodString;
1143
+ kind: z.ZodEnum<{
1144
+ workflow: "workflow";
1145
+ agent: "agent";
1146
+ }>;
1147
+ resourceId: z.ZodString;
1148
+ actorSub: z.ZodString;
1149
+ runId: z.ZodString;
1150
+ executionSnapshotId: z.ZodUUID;
1151
+ }, z.core.$strict>>;
1152
+ }, z.core.$strict>], "sourceKind">, z.ZodObject<{
1153
+ sourceKind: z.ZodLiteral<"human">;
1154
+ projection: z.ZodLiteral<"thread-conversation-v1">;
1155
+ audience: z.ZodLiteral<"atlas-agent-source-evidence">;
1156
+ actualUserSub: z.ZodString;
1157
+ environment: z.ZodString;
1158
+ org: z.ZodString;
1159
+ agentId: z.ZodString;
1160
+ threadId: z.ZodString;
1161
+ revision: z.ZodNumber;
1162
+ cutoffAt: z.ZodISODateTime;
1163
+ responseHash: z.ZodString;
1164
+ }, z.core.$strict>]>;
1165
+ receiver: z.ZodObject<{
1166
+ functionId: z.ZodString;
1167
+ versionId: z.ZodString;
1168
+ invocationId: z.ZodString;
1169
+ serviceAccountId: z.ZodString;
1170
+ org: z.ZodString;
1171
+ }, z.core.$strict>;
1172
+ lattice: z.ZodNullable<z.ZodObject<{
1173
+ receiverFunctionOrgId: z.ZodString;
1174
+ run: z.ZodObject<{
1175
+ id: z.ZodString;
1176
+ processId: z.ZodString;
1177
+ processVersion: z.ZodString;
1178
+ bundleHash: z.ZodString;
1179
+ entity: z.ZodNullable<z.ZodObject<{
1180
+ type: z.ZodString;
1181
+ id: z.ZodString;
1182
+ }, z.core.$strict>>;
1183
+ }, z.core.$strict>;
1184
+ step: z.ZodObject<{
1185
+ id: z.ZodString;
1186
+ nodeId: z.ZodString;
1187
+ attempt: z.ZodNumber;
1188
+ runAsServiceAccount: z.ZodNullable<z.ZodString>;
1189
+ }, z.core.$strict>;
1190
+ receiver: z.ZodObject<{
1191
+ functionId: z.ZodString;
1192
+ versionId: z.ZodString;
1193
+ invocationId: z.ZodString;
1194
+ }, z.core.$strict>;
1195
+ }, z.core.$strict>>;
1196
+ }, z.core.$strict>;
1197
+ export type FunctionAgentSourceEvidenceVerification = z.infer<typeof functionAgentSourceEvidenceVerificationSchema>;