@sequenceholdings/managed-functions 0.4.5 → 0.5.1

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 (71) hide show
  1. package/README.md +147 -12
  2. package/dist/abrigo-contract.d.ts +2 -92
  3. package/dist/abrigo-contract.js +12 -53
  4. package/dist/abrigo-response.d.ts +1 -6
  5. package/dist/abrigo-response.js +3 -25
  6. package/dist/abrigo.d.ts +5 -5
  7. package/dist/abrigo.js +66 -92
  8. package/dist/agent-evidence.d.ts +5 -5
  9. package/dist/agent-evidence.js +58 -48
  10. package/dist/agent-source-evidence-contract.d.ts +2 -1197
  11. package/dist/agent-source-evidence-contract.js +24 -94
  12. package/dist/agents-contract.d.ts +2 -99
  13. package/dist/agents-contract.js +13 -67
  14. package/dist/agents.d.ts +5 -5
  15. package/dist/agents.js +79 -44
  16. package/dist/capabilities.d.ts +1 -1
  17. package/dist/capabilities.js +1 -1
  18. package/dist/config.d.ts +1 -0
  19. package/dist/config.js +4 -1
  20. package/dist/directory-config.d.ts +1 -23
  21. package/dist/directory-config.js +8 -20
  22. package/dist/directory-contract.d.ts +2 -68
  23. package/dist/directory-contract.js +13 -55
  24. package/dist/directory-roster-contract.d.ts +2 -22
  25. package/dist/directory-roster-contract.js +7 -22
  26. package/dist/directory.d.ts +4 -8
  27. package/dist/directory.js +15 -33
  28. package/dist/group-roster-access.d.ts +7 -0
  29. package/dist/group-roster-access.js +8 -0
  30. package/dist/index.d.ts +49 -46
  31. package/dist/index.js +8 -1
  32. package/dist/invocation-client.d.ts +4 -4
  33. package/dist/invocation-client.js +32 -60
  34. package/dist/invocation-contract.d.ts +2 -59
  35. package/dist/invocation-contract.js +10 -61
  36. package/dist/invocation.d.ts +4 -4
  37. package/dist/invocation.js +42 -63
  38. package/dist/lattice-provenance-contract.d.ts +2 -607
  39. package/dist/lattice-provenance-contract.js +14 -154
  40. package/dist/lattice-provenance.d.ts +3 -3
  41. package/dist/lattice-provenance.js +46 -97
  42. package/dist/monitoring-annotations.d.ts +2 -53
  43. package/dist/monitoring-annotations.js +2 -51
  44. package/dist/monitoring-contract.d.ts +5 -460
  45. package/dist/monitoring-contract.js +37 -77
  46. package/dist/monitoring-events.d.ts +2 -252
  47. package/dist/monitoring-events.js +15 -125
  48. package/dist/monitoring.d.ts +3 -3
  49. package/dist/monitoring.js +41 -41
  50. package/dist/orm.d.ts +10 -1
  51. package/dist/orm.js +27 -7
  52. package/dist/platform-client.d.ts +27 -0
  53. package/dist/platform-client.js +79 -0
  54. package/dist/platform-domains.d.ts +1671 -0
  55. package/dist/platform-domains.js +77 -0
  56. package/dist/processes-contract.d.ts +2 -149
  57. package/dist/processes-contract.js +17 -100
  58. package/dist/processes.d.ts +3 -3
  59. package/dist/processes.js +64 -49
  60. package/dist/runtime.cjs +4251 -1666
  61. package/dist/service-directory-roster.d.ts +12 -3
  62. package/dist/service-directory-roster.js +11 -17
  63. package/dist/service-directory.d.ts +4 -8
  64. package/dist/service-directory.js +16 -67
  65. package/dist/storage.d.ts +36 -35
  66. package/dist/storage.js +12 -5
  67. package/dist/workflow-source-contract.d.ts +2 -524
  68. package/dist/workflow-source-contract.js +16 -56
  69. package/dist/workflow-source.d.ts +3 -3
  70. package/dist/workflow-source.js +106 -43
  71. package/package.json +4 -3
@@ -1,607 +1,2 @@
1
- import { z } from 'zod';
2
- export declare const FUNCTION_LATTICE_EXECUTION_TOKEN_HEADER = "x-sequence-lattice-execution-token";
3
- export declare const FUNCTION_LATTICE_CONTEXT_PATH = "/api/managed-functions/lattice/context";
4
- export declare const functionLatticeStartProvenanceSchema: z.ZodObject<{
5
- version: z.ZodLiteral<1>;
6
- issuer: z.ZodString;
7
- runId: z.ZodString;
8
- processId: z.ZodString;
9
- processVersion: z.ZodString;
10
- bundleHash: z.ZodString;
11
- actorSub: z.ZodString;
12
- startedBy: z.ZodNullable<z.ZodString>;
13
- mode: z.ZodEnum<{
14
- system: "system";
15
- manual: "manual";
16
- trigger: "trigger";
17
- schedule: "schedule";
18
- subprocess: "subprocess";
19
- intervention: "intervention";
20
- }>;
21
- basis: z.ZodEnum<{
22
- fga_invoker: "fga_invoker";
23
- trusted_trigger: "trusted_trigger";
24
- schedule_author: "schedule_author";
25
- schedule_no_author: "schedule_no_author";
26
- trusted_service: "trusted_service";
27
- subprocess_spawn_gate: "subprocess_spawn_gate";
28
- subprocess_parent_starter: "subprocess_parent_starter";
29
- subprocess_existing_child: "subprocess_existing_child";
30
- intervention_actor: "intervention_actor";
31
- }>;
32
- authorizedAt: z.ZodISODateTime;
33
- schedule: z.ZodNullable<z.ZodObject<{
34
- scheduleId: z.ZodString;
35
- scheduledAt: z.ZodISODateTime;
36
- }, z.core.$strict>>;
37
- }, z.core.$strict>;
38
- export type FunctionLatticeStartProvenance = z.infer<typeof functionLatticeStartProvenanceSchema>;
39
- export declare const functionLatticeHumanCompletionQuerySchema: z.ZodObject<{
40
- nodeId: z.ZodString;
41
- stepId: z.ZodOptional<z.ZodString>;
42
- ancestorNodeId: z.ZodOptional<z.ZodString>;
43
- }, z.core.$strict>;
44
- export type FunctionLatticeHumanCompletionQuery = z.infer<typeof functionLatticeHumanCompletionQuerySchema>;
45
- export declare const functionLatticeHumanCompletionsQuerySchema: z.ZodObject<{
46
- nodeId: z.ZodString;
47
- ancestorNodeId: z.ZodOptional<z.ZodString>;
48
- }, z.core.$strict>;
49
- export type FunctionLatticeHumanCompletionsQuery = z.infer<typeof functionLatticeHumanCompletionsQuerySchema>;
50
- export declare const functionLatticeParallelSnapshotQuerySchema: z.ZodObject<{
51
- nodeId: z.ZodString;
52
- ancestorNodeId: z.ZodString;
53
- }, z.core.$strict>;
54
- export type FunctionLatticeParallelSnapshotQuery = z.infer<typeof functionLatticeParallelSnapshotQuerySchema>;
55
- export declare const functionLatticeContextRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
56
- operation: z.ZodLiteral<"getExecutionContext">;
57
- }, z.core.$strict>, z.ZodObject<{
58
- operation: z.ZodLiteral<"getRunCreatorAccess">;
59
- }, z.core.$strict>, z.ZodObject<{
60
- nodeId: z.ZodString;
61
- stepId: z.ZodOptional<z.ZodString>;
62
- ancestorNodeId: z.ZodOptional<z.ZodString>;
63
- operation: z.ZodLiteral<"getHumanCompletion">;
64
- }, z.core.$strict>, z.ZodObject<{
65
- nodeId: z.ZodString;
66
- ancestorNodeId: z.ZodOptional<z.ZodString>;
67
- operation: z.ZodLiteral<"getHumanCompletions">;
68
- }, z.core.$strict>, z.ZodObject<{
69
- nodeId: z.ZodString;
70
- ancestorNodeId: z.ZodString;
71
- operation: z.ZodLiteral<"getParallelSnapshot">;
72
- }, z.core.$strict>], "operation">;
73
- export type FunctionLatticeContextRequest = z.infer<typeof functionLatticeContextRequestSchema>;
74
- export declare const functionLatticeRunCreatorAccessSchema: z.ZodObject<{
75
- receiverFunctionOrgId: z.ZodString;
76
- parent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
- runId: z.ZodString;
78
- processId: z.ZodString;
79
- processVersion: z.ZodString;
80
- bundleHash: z.ZodString;
81
- stepId: z.ZodString;
82
- nodeId: z.ZodString;
83
- attempt: z.ZodNumber;
84
- input: z.ZodUnknown;
85
- branch: z.ZodNullable<z.ZodObject<{
86
- id: z.ZodString;
87
- index: z.ZodNumber;
88
- item: z.ZodUnknown;
89
- }, z.core.$strip>>;
90
- }, z.core.$strip>>>;
91
- run: z.ZodObject<{
92
- id: z.ZodString;
93
- processId: z.ZodString;
94
- processVersion: z.ZodString;
95
- bundleHash: z.ZodString;
96
- entity: z.ZodNullable<z.ZodObject<{
97
- type: z.ZodString;
98
- id: z.ZodString;
99
- }, z.core.$strip>>;
100
- startProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
101
- version: z.ZodLiteral<1>;
102
- issuer: z.ZodString;
103
- runId: z.ZodString;
104
- processId: z.ZodString;
105
- processVersion: z.ZodString;
106
- bundleHash: z.ZodString;
107
- actorSub: z.ZodString;
108
- startedBy: z.ZodNullable<z.ZodString>;
109
- mode: z.ZodEnum<{
110
- system: "system";
111
- manual: "manual";
112
- trigger: "trigger";
113
- schedule: "schedule";
114
- subprocess: "subprocess";
115
- intervention: "intervention";
116
- }>;
117
- basis: z.ZodEnum<{
118
- fga_invoker: "fga_invoker";
119
- trusted_trigger: "trusted_trigger";
120
- schedule_author: "schedule_author";
121
- schedule_no_author: "schedule_no_author";
122
- trusted_service: "trusted_service";
123
- subprocess_spawn_gate: "subprocess_spawn_gate";
124
- subprocess_parent_starter: "subprocess_parent_starter";
125
- subprocess_existing_child: "subprocess_existing_child";
126
- intervention_actor: "intervention_actor";
127
- }>;
128
- authorizedAt: z.ZodISODateTime;
129
- schedule: z.ZodNullable<z.ZodObject<{
130
- scheduleId: z.ZodString;
131
- scheduledAt: z.ZodISODateTime;
132
- }, z.core.$strict>>;
133
- }, z.core.$strict>>>;
134
- }, z.core.$strip>;
135
- step: z.ZodObject<{
136
- id: z.ZodString;
137
- nodeId: z.ZodString;
138
- attempt: z.ZodNumber;
139
- runAsServiceAccount: z.ZodNullable<z.ZodString>;
140
- }, z.core.$strip>;
141
- receiver: z.ZodObject<{
142
- functionId: z.ZodString;
143
- versionId: z.ZodString;
144
- invocationId: z.ZodString;
145
- invoker: z.ZodObject<{
146
- sub: z.ZodString;
147
- kind: z.ZodString;
148
- authenticationMethod: z.ZodString;
149
- }, z.core.$strip>;
150
- attachedServiceAccountSub: z.ZodString;
151
- }, z.core.$strip>;
152
- creator: z.ZodNullable<z.ZodObject<{
153
- sub: z.ZodString;
154
- tenant: z.ZodNullable<z.ZodString>;
155
- platformOperator: z.ZodBoolean;
156
- }, z.core.$strict>>;
157
- observedAt: z.ZodISODateTime;
158
- }, z.core.$strip>;
159
- export type FunctionLatticeRunCreatorAccess = z.infer<typeof functionLatticeRunCreatorAccessSchema>;
160
- export declare const functionLatticeExecutionContextSchema: z.ZodObject<{
161
- receiverFunctionOrgId: z.ZodString;
162
- parent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
163
- runId: z.ZodString;
164
- processId: z.ZodString;
165
- processVersion: z.ZodString;
166
- bundleHash: z.ZodString;
167
- stepId: z.ZodString;
168
- nodeId: z.ZodString;
169
- attempt: z.ZodNumber;
170
- input: z.ZodUnknown;
171
- branch: z.ZodNullable<z.ZodObject<{
172
- id: z.ZodString;
173
- index: z.ZodNumber;
174
- item: z.ZodUnknown;
175
- }, z.core.$strip>>;
176
- }, z.core.$strip>>>;
177
- run: z.ZodObject<{
178
- id: z.ZodString;
179
- processId: z.ZodString;
180
- processVersion: z.ZodString;
181
- bundleHash: z.ZodString;
182
- entity: z.ZodNullable<z.ZodObject<{
183
- type: z.ZodString;
184
- id: z.ZodString;
185
- }, z.core.$strip>>;
186
- startProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
187
- version: z.ZodLiteral<1>;
188
- issuer: z.ZodString;
189
- runId: z.ZodString;
190
- processId: z.ZodString;
191
- processVersion: z.ZodString;
192
- bundleHash: z.ZodString;
193
- actorSub: z.ZodString;
194
- startedBy: z.ZodNullable<z.ZodString>;
195
- mode: z.ZodEnum<{
196
- system: "system";
197
- manual: "manual";
198
- trigger: "trigger";
199
- schedule: "schedule";
200
- subprocess: "subprocess";
201
- intervention: "intervention";
202
- }>;
203
- basis: z.ZodEnum<{
204
- fga_invoker: "fga_invoker";
205
- trusted_trigger: "trusted_trigger";
206
- schedule_author: "schedule_author";
207
- schedule_no_author: "schedule_no_author";
208
- trusted_service: "trusted_service";
209
- subprocess_spawn_gate: "subprocess_spawn_gate";
210
- subprocess_parent_starter: "subprocess_parent_starter";
211
- subprocess_existing_child: "subprocess_existing_child";
212
- intervention_actor: "intervention_actor";
213
- }>;
214
- authorizedAt: z.ZodISODateTime;
215
- schedule: z.ZodNullable<z.ZodObject<{
216
- scheduleId: z.ZodString;
217
- scheduledAt: z.ZodISODateTime;
218
- }, z.core.$strict>>;
219
- }, z.core.$strict>>>;
220
- }, z.core.$strip>;
221
- step: z.ZodObject<{
222
- id: z.ZodString;
223
- nodeId: z.ZodString;
224
- attempt: z.ZodNumber;
225
- runAsServiceAccount: z.ZodNullable<z.ZodString>;
226
- }, z.core.$strip>;
227
- receiver: z.ZodObject<{
228
- functionId: z.ZodString;
229
- versionId: z.ZodString;
230
- invocationId: z.ZodString;
231
- invoker: z.ZodObject<{
232
- sub: z.ZodString;
233
- kind: z.ZodString;
234
- authenticationMethod: z.ZodString;
235
- }, z.core.$strip>;
236
- attachedServiceAccountSub: z.ZodString;
237
- }, z.core.$strip>;
238
- input: z.ZodUnknown;
239
- ctxSnapshot: z.ZodObject<{
240
- entity: z.ZodUnknown;
241
- upstream: z.ZodRecord<z.ZodString, z.ZodUnknown>;
242
- state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
243
- run: z.ZodObject<{
244
- id: z.ZodString;
245
- process_id: z.ZodString;
246
- version: z.ZodString;
247
- started_at: z.ZodISODateTime;
248
- started_by: z.ZodNullable<z.ZodString>;
249
- metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
250
- trigger_reason: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
251
- }, z.core.$strip>;
252
- branch: z.ZodOptional<z.ZodObject<{
253
- id: z.ZodString;
254
- index: z.ZodNumber;
255
- item: z.ZodUnknown;
256
- }, z.core.$strip>>;
257
- }, z.core.$strip>;
258
- }, z.core.$strip>;
259
- export type FunctionLatticeExecutionContext = z.infer<typeof functionLatticeExecutionContextSchema>;
260
- export declare const functionLatticeHumanCompletionSchema: z.ZodObject<{
261
- receiverFunctionOrgId: z.ZodString;
262
- parent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
263
- runId: z.ZodString;
264
- processId: z.ZodString;
265
- processVersion: z.ZodString;
266
- bundleHash: z.ZodString;
267
- stepId: z.ZodString;
268
- nodeId: z.ZodString;
269
- attempt: z.ZodNumber;
270
- input: z.ZodUnknown;
271
- branch: z.ZodNullable<z.ZodObject<{
272
- id: z.ZodString;
273
- index: z.ZodNumber;
274
- item: z.ZodUnknown;
275
- }, z.core.$strip>>;
276
- }, z.core.$strip>>>;
277
- run: z.ZodObject<{
278
- id: z.ZodString;
279
- processId: z.ZodString;
280
- processVersion: z.ZodString;
281
- bundleHash: z.ZodString;
282
- entity: z.ZodNullable<z.ZodObject<{
283
- type: z.ZodString;
284
- id: z.ZodString;
285
- }, z.core.$strip>>;
286
- startProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
287
- version: z.ZodLiteral<1>;
288
- issuer: z.ZodString;
289
- runId: z.ZodString;
290
- processId: z.ZodString;
291
- processVersion: z.ZodString;
292
- bundleHash: z.ZodString;
293
- actorSub: z.ZodString;
294
- startedBy: z.ZodNullable<z.ZodString>;
295
- mode: z.ZodEnum<{
296
- system: "system";
297
- manual: "manual";
298
- trigger: "trigger";
299
- schedule: "schedule";
300
- subprocess: "subprocess";
301
- intervention: "intervention";
302
- }>;
303
- basis: z.ZodEnum<{
304
- fga_invoker: "fga_invoker";
305
- trusted_trigger: "trusted_trigger";
306
- schedule_author: "schedule_author";
307
- schedule_no_author: "schedule_no_author";
308
- trusted_service: "trusted_service";
309
- subprocess_spawn_gate: "subprocess_spawn_gate";
310
- subprocess_parent_starter: "subprocess_parent_starter";
311
- subprocess_existing_child: "subprocess_existing_child";
312
- intervention_actor: "intervention_actor";
313
- }>;
314
- authorizedAt: z.ZodISODateTime;
315
- schedule: z.ZodNullable<z.ZodObject<{
316
- scheduleId: z.ZodString;
317
- scheduledAt: z.ZodISODateTime;
318
- }, z.core.$strict>>;
319
- }, z.core.$strict>>>;
320
- }, z.core.$strip>;
321
- step: z.ZodObject<{
322
- id: z.ZodString;
323
- nodeId: z.ZodString;
324
- attempt: z.ZodNumber;
325
- runAsServiceAccount: z.ZodNullable<z.ZodString>;
326
- }, z.core.$strip>;
327
- receiver: z.ZodObject<{
328
- functionId: z.ZodString;
329
- versionId: z.ZodString;
330
- invocationId: z.ZodString;
331
- invoker: z.ZodObject<{
332
- sub: z.ZodString;
333
- kind: z.ZodString;
334
- authenticationMethod: z.ZodString;
335
- }, z.core.$strip>;
336
- attachedServiceAccountSub: z.ZodString;
337
- }, z.core.$strip>;
338
- human: z.ZodObject<{
339
- receipt: z.ZodString;
340
- runId: z.ZodString;
341
- processId: z.ZodString;
342
- bundleHash: z.ZodString;
343
- actorSub: z.ZodString;
344
- receiptId: z.ZodString;
345
- stepId: z.ZodString;
346
- nodeId: z.ZodString;
347
- attempt: z.ZodNumber;
348
- edgeId: z.ZodNullable<z.ZodString>;
349
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
350
- completedAt: z.ZodISODateTime;
351
- ancestor: z.ZodOptional<z.ZodObject<{
352
- runId: z.ZodString;
353
- processId: z.ZodString;
354
- bundleHash: z.ZodString;
355
- stepId: z.ZodString;
356
- nodeId: z.ZodString;
357
- attempt: z.ZodNumber;
358
- }, z.core.$strip>>;
359
- }, z.core.$strip>;
360
- }, z.core.$strip>;
361
- export type FunctionLatticeHumanCompletion = z.infer<typeof functionLatticeHumanCompletionSchema>;
362
- export declare const functionLatticeHumanCompletionsPageSchema: z.ZodObject<{
363
- completions: z.ZodArray<z.ZodObject<{
364
- receiverFunctionOrgId: z.ZodString;
365
- parent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
366
- runId: z.ZodString;
367
- processId: z.ZodString;
368
- processVersion: z.ZodString;
369
- bundleHash: z.ZodString;
370
- stepId: z.ZodString;
371
- nodeId: z.ZodString;
372
- attempt: z.ZodNumber;
373
- input: z.ZodUnknown;
374
- branch: z.ZodNullable<z.ZodObject<{
375
- id: z.ZodString;
376
- index: z.ZodNumber;
377
- item: z.ZodUnknown;
378
- }, z.core.$strip>>;
379
- }, z.core.$strip>>>;
380
- run: z.ZodObject<{
381
- id: z.ZodString;
382
- processId: z.ZodString;
383
- processVersion: z.ZodString;
384
- bundleHash: z.ZodString;
385
- entity: z.ZodNullable<z.ZodObject<{
386
- type: z.ZodString;
387
- id: z.ZodString;
388
- }, z.core.$strip>>;
389
- startProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
390
- version: z.ZodLiteral<1>;
391
- issuer: z.ZodString;
392
- runId: z.ZodString;
393
- processId: z.ZodString;
394
- processVersion: z.ZodString;
395
- bundleHash: z.ZodString;
396
- actorSub: z.ZodString;
397
- startedBy: z.ZodNullable<z.ZodString>;
398
- mode: z.ZodEnum<{
399
- system: "system";
400
- manual: "manual";
401
- trigger: "trigger";
402
- schedule: "schedule";
403
- subprocess: "subprocess";
404
- intervention: "intervention";
405
- }>;
406
- basis: z.ZodEnum<{
407
- fga_invoker: "fga_invoker";
408
- trusted_trigger: "trusted_trigger";
409
- schedule_author: "schedule_author";
410
- schedule_no_author: "schedule_no_author";
411
- trusted_service: "trusted_service";
412
- subprocess_spawn_gate: "subprocess_spawn_gate";
413
- subprocess_parent_starter: "subprocess_parent_starter";
414
- subprocess_existing_child: "subprocess_existing_child";
415
- intervention_actor: "intervention_actor";
416
- }>;
417
- authorizedAt: z.ZodISODateTime;
418
- schedule: z.ZodNullable<z.ZodObject<{
419
- scheduleId: z.ZodString;
420
- scheduledAt: z.ZodISODateTime;
421
- }, z.core.$strict>>;
422
- }, z.core.$strict>>>;
423
- }, z.core.$strip>;
424
- step: z.ZodObject<{
425
- id: z.ZodString;
426
- nodeId: z.ZodString;
427
- attempt: z.ZodNumber;
428
- runAsServiceAccount: z.ZodNullable<z.ZodString>;
429
- }, z.core.$strip>;
430
- receiver: z.ZodObject<{
431
- functionId: z.ZodString;
432
- versionId: z.ZodString;
433
- invocationId: z.ZodString;
434
- invoker: z.ZodObject<{
435
- sub: z.ZodString;
436
- kind: z.ZodString;
437
- authenticationMethod: z.ZodString;
438
- }, z.core.$strip>;
439
- attachedServiceAccountSub: z.ZodString;
440
- }, z.core.$strip>;
441
- human: z.ZodObject<{
442
- receipt: z.ZodString;
443
- runId: z.ZodString;
444
- processId: z.ZodString;
445
- bundleHash: z.ZodString;
446
- actorSub: z.ZodString;
447
- receiptId: z.ZodString;
448
- stepId: z.ZodString;
449
- nodeId: z.ZodString;
450
- attempt: z.ZodNumber;
451
- edgeId: z.ZodNullable<z.ZodString>;
452
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
453
- completedAt: z.ZodISODateTime;
454
- ancestor: z.ZodOptional<z.ZodObject<{
455
- runId: z.ZodString;
456
- processId: z.ZodString;
457
- bundleHash: z.ZodString;
458
- stepId: z.ZodString;
459
- nodeId: z.ZodString;
460
- attempt: z.ZodNumber;
461
- }, z.core.$strip>>;
462
- }, z.core.$strip>;
463
- }, z.core.$strip>>;
464
- }, z.core.$strip>;
465
- export type FunctionLatticeHumanCompletionsPage = z.infer<typeof functionLatticeHumanCompletionsPageSchema>;
466
- export declare const functionLatticeParallelSnapshotSchema: z.ZodObject<{
467
- receiverFunctionOrgId: z.ZodString;
468
- parent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
469
- runId: z.ZodString;
470
- processId: z.ZodString;
471
- processVersion: z.ZodString;
472
- bundleHash: z.ZodString;
473
- stepId: z.ZodString;
474
- nodeId: z.ZodString;
475
- attempt: z.ZodNumber;
476
- input: z.ZodUnknown;
477
- branch: z.ZodNullable<z.ZodObject<{
478
- id: z.ZodString;
479
- index: z.ZodNumber;
480
- item: z.ZodUnknown;
481
- }, z.core.$strip>>;
482
- }, z.core.$strip>>>;
483
- run: z.ZodObject<{
484
- id: z.ZodString;
485
- processId: z.ZodString;
486
- processVersion: z.ZodString;
487
- bundleHash: z.ZodString;
488
- entity: z.ZodNullable<z.ZodObject<{
489
- type: z.ZodString;
490
- id: z.ZodString;
491
- }, z.core.$strip>>;
492
- startProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
493
- version: z.ZodLiteral<1>;
494
- issuer: z.ZodString;
495
- runId: z.ZodString;
496
- processId: z.ZodString;
497
- processVersion: z.ZodString;
498
- bundleHash: z.ZodString;
499
- actorSub: z.ZodString;
500
- startedBy: z.ZodNullable<z.ZodString>;
501
- mode: z.ZodEnum<{
502
- system: "system";
503
- manual: "manual";
504
- trigger: "trigger";
505
- schedule: "schedule";
506
- subprocess: "subprocess";
507
- intervention: "intervention";
508
- }>;
509
- basis: z.ZodEnum<{
510
- fga_invoker: "fga_invoker";
511
- trusted_trigger: "trusted_trigger";
512
- schedule_author: "schedule_author";
513
- schedule_no_author: "schedule_no_author";
514
- trusted_service: "trusted_service";
515
- subprocess_spawn_gate: "subprocess_spawn_gate";
516
- subprocess_parent_starter: "subprocess_parent_starter";
517
- subprocess_existing_child: "subprocess_existing_child";
518
- intervention_actor: "intervention_actor";
519
- }>;
520
- authorizedAt: z.ZodISODateTime;
521
- schedule: z.ZodNullable<z.ZodObject<{
522
- scheduleId: z.ZodString;
523
- scheduledAt: z.ZodISODateTime;
524
- }, z.core.$strict>>;
525
- }, z.core.$strict>>>;
526
- }, z.core.$strip>;
527
- step: z.ZodObject<{
528
- id: z.ZodString;
529
- nodeId: z.ZodString;
530
- attempt: z.ZodNumber;
531
- runAsServiceAccount: z.ZodNullable<z.ZodString>;
532
- }, z.core.$strip>;
533
- receiver: z.ZodObject<{
534
- functionId: z.ZodString;
535
- versionId: z.ZodString;
536
- invocationId: z.ZodString;
537
- invoker: z.ZodObject<{
538
- sub: z.ZodString;
539
- kind: z.ZodString;
540
- authenticationMethod: z.ZodString;
541
- }, z.core.$strip>;
542
- attachedServiceAccountSub: z.ZodString;
543
- }, z.core.$strip>;
544
- parallel: z.ZodObject<{
545
- runId: z.ZodString;
546
- processId: z.ZodString;
547
- processVersion: z.ZodString;
548
- bundleHash: z.ZodString;
549
- entity: z.ZodNullable<z.ZodObject<{
550
- type: z.ZodString;
551
- id: z.ZodString;
552
- }, z.core.$strip>>;
553
- stepId: z.ZodString;
554
- nodeId: z.ZodString;
555
- attempt: z.ZodNumber;
556
- status: z.ZodLiteral<"completed">;
557
- observedAt: z.ZodISODateTime;
558
- proof: z.ZodString;
559
- ancestor: z.ZodObject<{
560
- runId: z.ZodString;
561
- processId: z.ZodString;
562
- bundleHash: z.ZodString;
563
- stepId: z.ZodString;
564
- nodeId: z.ZodString;
565
- attempt: z.ZodNumber;
566
- receipt: z.ZodString;
567
- receiptId: z.ZodString;
568
- }, z.core.$strip>;
569
- branches: z.ZodArray<z.ZodObject<{
570
- branchId: z.ZodString;
571
- branchIndex: z.ZodNumber;
572
- item: z.ZodUnknown;
573
- stepId: z.ZodString;
574
- nodeId: z.ZodString;
575
- attempt: z.ZodNumber;
576
- status: z.ZodEnum<{
577
- pending: "pending";
578
- running: "running";
579
- completed: "completed";
580
- failed: "failed";
581
- cancelled: "cancelled";
582
- timed_out: "timed_out";
583
- }>;
584
- joinStatus: z.ZodEnum<{
585
- pending: "pending";
586
- completed: "completed";
587
- failed: "failed";
588
- cancelled: "cancelled";
589
- timed_out: "timed_out";
590
- }>;
591
- humanStep: z.ZodNullable<z.ZodObject<{
592
- runId: z.ZodString;
593
- stepId: z.ZodString;
594
- nodeId: z.ZodString;
595
- attempt: z.ZodNumber;
596
- receiptId: z.ZodString;
597
- }, z.core.$strip>>;
598
- }, z.core.$strip>>;
599
- }, z.core.$strip>;
600
- }, z.core.$strip>;
601
- export type FunctionLatticeParallelSnapshot = z.infer<typeof functionLatticeParallelSnapshotSchema>;
602
- export declare class FunctionLatticeContextError extends Error {
603
- readonly status: number;
604
- readonly code: string;
605
- readonly name = "FunctionLatticeContextError";
606
- constructor(status: number, code: string, message: string);
607
- }
1
+ export { FUNCTION_LATTICE_EXECUTION_TOKEN_HEADER, FUNCTION_LATTICE_CONTEXT_PATH, functionLatticeStartProvenanceSchema, functionLatticeHumanCompletionQuerySchema, functionLatticeHumanCompletionsQuerySchema, functionLatticeParallelSnapshotQuerySchema, functionLatticeContextRequestSchema, functionLatticeRunCreatorAccessSchema, functionLatticeExecutionContextSchema, functionLatticeHumanCompletionSchema, functionLatticeHumanCompletionsPageSchema, functionLatticeParallelSnapshotSchema, FunctionLatticeContextError, } from "@sequenceholdings/platform/contracts";
2
+ export type { FunctionLatticeStartProvenance, FunctionLatticeHumanCompletionQuery, FunctionLatticeHumanCompletionsQuery, FunctionLatticeParallelSnapshotQuery, FunctionLatticeContextRequest, FunctionLatticeRunCreatorAccess, FunctionLatticeExecutionContext, FunctionLatticeHumanCompletion, FunctionLatticeHumanCompletionsPage, FunctionLatticeParallelSnapshot, } from "@sequenceholdings/platform/contracts";