@lssm/lib.work-spec 3.0.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 (55) hide show
  1. package/README.md +66 -0
  2. package/dist/browser/capabilities.js +1 -0
  3. package/dist/browser/common.js +1 -0
  4. package/dist/browser/entities.js +1 -0
  5. package/dist/browser/events.js +1 -0
  6. package/dist/browser/index.js +1 -0
  7. package/dist/browser/models.js +1 -0
  8. package/dist/browser/object-read.js +1 -0
  9. package/dist/browser/operations.js +1 -0
  10. package/dist/browser/sync.js +1 -0
  11. package/dist/browser/task-status.js +1 -0
  12. package/dist/browser/taxonomy.js +1 -0
  13. package/dist/browser/work-spec.feature.js +1 -0
  14. package/dist/browser/workspace-revision.js +1 -0
  15. package/dist/capabilities.d.ts +42 -0
  16. package/dist/capabilities.js +2 -0
  17. package/dist/common.d.ts +115 -0
  18. package/dist/common.js +2 -0
  19. package/dist/entities.d.ts +1143 -0
  20. package/dist/entities.js +2 -0
  21. package/dist/events.d.ts +10057 -0
  22. package/dist/events.js +2 -0
  23. package/dist/index.d.ts +12 -0
  24. package/dist/index.js +2 -0
  25. package/dist/models.d.ts +1080 -0
  26. package/dist/models.js +2 -0
  27. package/dist/node/capabilities.js +1 -0
  28. package/dist/node/common.js +1 -0
  29. package/dist/node/entities.js +1 -0
  30. package/dist/node/events.js +1 -0
  31. package/dist/node/index.js +1 -0
  32. package/dist/node/models.js +1 -0
  33. package/dist/node/object-read.js +1 -0
  34. package/dist/node/operations.js +1 -0
  35. package/dist/node/sync.js +1 -0
  36. package/dist/node/task-status.js +1 -0
  37. package/dist/node/taxonomy.js +1 -0
  38. package/dist/node/work-spec.feature.js +1 -0
  39. package/dist/node/workspace-revision.js +1 -0
  40. package/dist/object-read.d.ts +644 -0
  41. package/dist/object-read.js +2 -0
  42. package/dist/operations.d.ts +165 -0
  43. package/dist/operations.js +2 -0
  44. package/dist/sync.d.ts +545 -0
  45. package/dist/sync.js +2 -0
  46. package/dist/task-status.d.ts +3369 -0
  47. package/dist/task-status.js +2 -0
  48. package/dist/taxonomy.d.ts +84 -0
  49. package/dist/taxonomy.js +2 -0
  50. package/dist/work-spec.feature.d.ts +11 -0
  51. package/dist/work-spec.feature.js +2 -0
  52. package/dist/work-spec.test.d.ts +1 -0
  53. package/dist/workspace-revision.d.ts +19 -0
  54. package/dist/workspace-revision.js +2 -0
  55. package/package.json +343 -0
@@ -0,0 +1,3369 @@
1
+ import { z } from 'zod';
2
+ export declare const WorkTaskStatusRequestSchema: z.ZodObject<{
3
+ objectId: z.ZodString;
4
+ expectedRevision: z.ZodNumber;
5
+ statusCategory: z.ZodEnum<{
6
+ backlog: "backlog";
7
+ cancelled: "cancelled";
8
+ completed: "completed";
9
+ started: "started";
10
+ unstarted: "unstarted";
11
+ }>;
12
+ idempotencyKey: z.ZodString;
13
+ }, z.core.$strict>;
14
+ export declare const WorkTaskStatusBodySchema: z.ZodObject<{
15
+ expectedRevision: z.ZodNumber;
16
+ statusCategory: z.ZodEnum<{
17
+ backlog: "backlog";
18
+ cancelled: "cancelled";
19
+ completed: "completed";
20
+ started: "started";
21
+ unstarted: "unstarted";
22
+ }>;
23
+ idempotencyKey: z.ZodString;
24
+ }, z.core.$strict>;
25
+ export declare const WorkTaskStatusResponseSchema: z.ZodObject<{
26
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
+ eventId: z.ZodString;
28
+ eventVersion: z.ZodLiteral<"2.0.0">;
29
+ aggregate: z.ZodObject<{
30
+ id: z.ZodString;
31
+ kind: z.ZodEnum<{
32
+ activity: "activity";
33
+ agent_reference: "agent_reference";
34
+ approval_reference: "approval_reference";
35
+ attachment: "attachment";
36
+ automation_reference: "automation_reference";
37
+ bug: "bug";
38
+ canvas_reference: "canvas_reference";
39
+ capture_reference: "capture_reference";
40
+ collection: "collection";
41
+ comment: "comment";
42
+ contractor: "contractor";
43
+ cross_organization_acl_grant: "cross_organization_acl_grant";
44
+ custom_field_definition: "custom_field_definition";
45
+ custom_field_value: "custom_field_value";
46
+ cycle: "cycle";
47
+ dependency: "dependency";
48
+ document_reference: "document_reference";
49
+ epic: "epic";
50
+ estimate: "estimate";
51
+ evidence_reference: "evidence_reference";
52
+ external_binding: "external_binding";
53
+ focus_policy: "focus_policy";
54
+ folder_projection: "folder_projection";
55
+ form: "form";
56
+ guest: "guest";
57
+ habit: "habit";
58
+ inbox_item: "inbox_item";
59
+ initiative: "initiative";
60
+ issue: "issue";
61
+ key_result: "key_result";
62
+ list: "list";
63
+ member: "member";
64
+ mention: "mention";
65
+ milestone: "milestone";
66
+ objective: "objective";
67
+ occurrence: "occurrence";
68
+ organization: "organization";
69
+ planning_intent: "planning_intent";
70
+ portfolio: "portfolio";
71
+ program: "program";
72
+ project: "project";
73
+ proofing_request: "proofing_request";
74
+ reaction: "reaction";
75
+ recurrence_template: "recurrence_template";
76
+ relationship: "relationship";
77
+ roadmap: "roadmap";
78
+ saved_view: "saved_view";
79
+ schedule_binding_reference: "schedule_binding_reference";
80
+ service_principal: "service_principal";
81
+ status_workflow: "status_workflow";
82
+ story: "story";
83
+ subtask: "subtask";
84
+ sync_conflict: "sync_conflict";
85
+ sync_cursor: "sync_cursor";
86
+ task: "task";
87
+ team: "team";
88
+ template: "template";
89
+ time_entry: "time_entry";
90
+ tombstone: "tombstone";
91
+ workspace: "workspace";
92
+ }>;
93
+ }, z.core.$strip>;
94
+ aggregateRevision: z.ZodNumber;
95
+ scope: z.ZodObject<{
96
+ tenantId: z.ZodString;
97
+ organizationId: z.ZodString;
98
+ workspaceId: z.ZodString;
99
+ }, z.core.$strip>;
100
+ actor: z.ZodObject<{
101
+ principalId: z.ZodString;
102
+ principalKind: z.ZodEnum<{
103
+ contractor: "contractor";
104
+ guest: "guest";
105
+ member: "member";
106
+ service_principal: "service_principal";
107
+ }>;
108
+ }, z.core.$strip>;
109
+ occurredAt: z.ZodString;
110
+ idempotencyKey: z.ZodString;
111
+ correlationId: z.ZodString;
112
+ causationId: z.ZodOptional<z.ZodString>;
113
+ evidenceRef: z.ZodString;
114
+ eventType: z.ZodLiteral<"work.object.created">;
115
+ payload: z.ZodObject<{
116
+ object: z.ZodObject<{
117
+ id: z.ZodString;
118
+ kind: z.ZodEnum<{
119
+ activity: "activity";
120
+ agent_reference: "agent_reference";
121
+ approval_reference: "approval_reference";
122
+ attachment: "attachment";
123
+ automation_reference: "automation_reference";
124
+ bug: "bug";
125
+ canvas_reference: "canvas_reference";
126
+ capture_reference: "capture_reference";
127
+ collection: "collection";
128
+ comment: "comment";
129
+ contractor: "contractor";
130
+ cross_organization_acl_grant: "cross_organization_acl_grant";
131
+ custom_field_definition: "custom_field_definition";
132
+ custom_field_value: "custom_field_value";
133
+ cycle: "cycle";
134
+ dependency: "dependency";
135
+ document_reference: "document_reference";
136
+ epic: "epic";
137
+ estimate: "estimate";
138
+ evidence_reference: "evidence_reference";
139
+ external_binding: "external_binding";
140
+ focus_policy: "focus_policy";
141
+ folder_projection: "folder_projection";
142
+ form: "form";
143
+ guest: "guest";
144
+ habit: "habit";
145
+ inbox_item: "inbox_item";
146
+ initiative: "initiative";
147
+ issue: "issue";
148
+ key_result: "key_result";
149
+ list: "list";
150
+ member: "member";
151
+ mention: "mention";
152
+ milestone: "milestone";
153
+ objective: "objective";
154
+ occurrence: "occurrence";
155
+ organization: "organization";
156
+ planning_intent: "planning_intent";
157
+ portfolio: "portfolio";
158
+ program: "program";
159
+ project: "project";
160
+ proofing_request: "proofing_request";
161
+ reaction: "reaction";
162
+ recurrence_template: "recurrence_template";
163
+ relationship: "relationship";
164
+ roadmap: "roadmap";
165
+ saved_view: "saved_view";
166
+ schedule_binding_reference: "schedule_binding_reference";
167
+ service_principal: "service_principal";
168
+ status_workflow: "status_workflow";
169
+ story: "story";
170
+ subtask: "subtask";
171
+ sync_conflict: "sync_conflict";
172
+ sync_cursor: "sync_cursor";
173
+ task: "task";
174
+ team: "team";
175
+ template: "template";
176
+ time_entry: "time_entry";
177
+ tombstone: "tombstone";
178
+ workspace: "workspace";
179
+ }>;
180
+ title: z.ZodString;
181
+ description: z.ZodOptional<z.ZodString>;
182
+ metadata: z.ZodObject<{
183
+ scope: z.ZodObject<{
184
+ tenantId: z.ZodString;
185
+ organizationId: z.ZodString;
186
+ workspaceId: z.ZodString;
187
+ }, z.core.$strip>;
188
+ createdAt: z.ZodString;
189
+ createdBy: z.ZodObject<{
190
+ principalId: z.ZodString;
191
+ principalKind: z.ZodEnum<{
192
+ contractor: "contractor";
193
+ guest: "guest";
194
+ member: "member";
195
+ service_principal: "service_principal";
196
+ }>;
197
+ }, z.core.$strip>;
198
+ updatedAt: z.ZodString;
199
+ updatedBy: z.ZodObject<{
200
+ principalId: z.ZodString;
201
+ principalKind: z.ZodEnum<{
202
+ contractor: "contractor";
203
+ guest: "guest";
204
+ member: "member";
205
+ service_principal: "service_principal";
206
+ }>;
207
+ }, z.core.$strip>;
208
+ revision: z.ZodNumber;
209
+ }, z.core.$strip>;
210
+ parentRef: z.ZodOptional<z.ZodObject<{
211
+ id: z.ZodString;
212
+ kind: z.ZodEnum<{
213
+ activity: "activity";
214
+ agent_reference: "agent_reference";
215
+ approval_reference: "approval_reference";
216
+ attachment: "attachment";
217
+ automation_reference: "automation_reference";
218
+ bug: "bug";
219
+ canvas_reference: "canvas_reference";
220
+ capture_reference: "capture_reference";
221
+ collection: "collection";
222
+ comment: "comment";
223
+ contractor: "contractor";
224
+ cross_organization_acl_grant: "cross_organization_acl_grant";
225
+ custom_field_definition: "custom_field_definition";
226
+ custom_field_value: "custom_field_value";
227
+ cycle: "cycle";
228
+ dependency: "dependency";
229
+ document_reference: "document_reference";
230
+ epic: "epic";
231
+ estimate: "estimate";
232
+ evidence_reference: "evidence_reference";
233
+ external_binding: "external_binding";
234
+ focus_policy: "focus_policy";
235
+ folder_projection: "folder_projection";
236
+ form: "form";
237
+ guest: "guest";
238
+ habit: "habit";
239
+ inbox_item: "inbox_item";
240
+ initiative: "initiative";
241
+ issue: "issue";
242
+ key_result: "key_result";
243
+ list: "list";
244
+ member: "member";
245
+ mention: "mention";
246
+ milestone: "milestone";
247
+ objective: "objective";
248
+ occurrence: "occurrence";
249
+ organization: "organization";
250
+ planning_intent: "planning_intent";
251
+ portfolio: "portfolio";
252
+ program: "program";
253
+ project: "project";
254
+ proofing_request: "proofing_request";
255
+ reaction: "reaction";
256
+ recurrence_template: "recurrence_template";
257
+ relationship: "relationship";
258
+ roadmap: "roadmap";
259
+ saved_view: "saved_view";
260
+ schedule_binding_reference: "schedule_binding_reference";
261
+ service_principal: "service_principal";
262
+ status_workflow: "status_workflow";
263
+ story: "story";
264
+ subtask: "subtask";
265
+ sync_conflict: "sync_conflict";
266
+ sync_cursor: "sync_cursor";
267
+ task: "task";
268
+ team: "team";
269
+ template: "template";
270
+ time_entry: "time_entry";
271
+ tombstone: "tombstone";
272
+ workspace: "workspace";
273
+ }>;
274
+ }, z.core.$strip>>;
275
+ ownerRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
276
+ id: z.ZodString;
277
+ kind: z.ZodEnum<{
278
+ activity: "activity";
279
+ agent_reference: "agent_reference";
280
+ approval_reference: "approval_reference";
281
+ attachment: "attachment";
282
+ automation_reference: "automation_reference";
283
+ bug: "bug";
284
+ canvas_reference: "canvas_reference";
285
+ capture_reference: "capture_reference";
286
+ collection: "collection";
287
+ comment: "comment";
288
+ contractor: "contractor";
289
+ cross_organization_acl_grant: "cross_organization_acl_grant";
290
+ custom_field_definition: "custom_field_definition";
291
+ custom_field_value: "custom_field_value";
292
+ cycle: "cycle";
293
+ dependency: "dependency";
294
+ document_reference: "document_reference";
295
+ epic: "epic";
296
+ estimate: "estimate";
297
+ evidence_reference: "evidence_reference";
298
+ external_binding: "external_binding";
299
+ focus_policy: "focus_policy";
300
+ folder_projection: "folder_projection";
301
+ form: "form";
302
+ guest: "guest";
303
+ habit: "habit";
304
+ inbox_item: "inbox_item";
305
+ initiative: "initiative";
306
+ issue: "issue";
307
+ key_result: "key_result";
308
+ list: "list";
309
+ member: "member";
310
+ mention: "mention";
311
+ milestone: "milestone";
312
+ objective: "objective";
313
+ occurrence: "occurrence";
314
+ organization: "organization";
315
+ planning_intent: "planning_intent";
316
+ portfolio: "portfolio";
317
+ program: "program";
318
+ project: "project";
319
+ proofing_request: "proofing_request";
320
+ reaction: "reaction";
321
+ recurrence_template: "recurrence_template";
322
+ relationship: "relationship";
323
+ roadmap: "roadmap";
324
+ saved_view: "saved_view";
325
+ schedule_binding_reference: "schedule_binding_reference";
326
+ service_principal: "service_principal";
327
+ status_workflow: "status_workflow";
328
+ story: "story";
329
+ subtask: "subtask";
330
+ sync_conflict: "sync_conflict";
331
+ sync_cursor: "sync_cursor";
332
+ task: "task";
333
+ team: "team";
334
+ template: "template";
335
+ time_entry: "time_entry";
336
+ tombstone: "tombstone";
337
+ workspace: "workspace";
338
+ }>;
339
+ }, z.core.$strip>>>;
340
+ assigneeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
341
+ id: z.ZodString;
342
+ kind: z.ZodEnum<{
343
+ activity: "activity";
344
+ agent_reference: "agent_reference";
345
+ approval_reference: "approval_reference";
346
+ attachment: "attachment";
347
+ automation_reference: "automation_reference";
348
+ bug: "bug";
349
+ canvas_reference: "canvas_reference";
350
+ capture_reference: "capture_reference";
351
+ collection: "collection";
352
+ comment: "comment";
353
+ contractor: "contractor";
354
+ cross_organization_acl_grant: "cross_organization_acl_grant";
355
+ custom_field_definition: "custom_field_definition";
356
+ custom_field_value: "custom_field_value";
357
+ cycle: "cycle";
358
+ dependency: "dependency";
359
+ document_reference: "document_reference";
360
+ epic: "epic";
361
+ estimate: "estimate";
362
+ evidence_reference: "evidence_reference";
363
+ external_binding: "external_binding";
364
+ focus_policy: "focus_policy";
365
+ folder_projection: "folder_projection";
366
+ form: "form";
367
+ guest: "guest";
368
+ habit: "habit";
369
+ inbox_item: "inbox_item";
370
+ initiative: "initiative";
371
+ issue: "issue";
372
+ key_result: "key_result";
373
+ list: "list";
374
+ member: "member";
375
+ mention: "mention";
376
+ milestone: "milestone";
377
+ objective: "objective";
378
+ occurrence: "occurrence";
379
+ organization: "organization";
380
+ planning_intent: "planning_intent";
381
+ portfolio: "portfolio";
382
+ program: "program";
383
+ project: "project";
384
+ proofing_request: "proofing_request";
385
+ reaction: "reaction";
386
+ recurrence_template: "recurrence_template";
387
+ relationship: "relationship";
388
+ roadmap: "roadmap";
389
+ saved_view: "saved_view";
390
+ schedule_binding_reference: "schedule_binding_reference";
391
+ service_principal: "service_principal";
392
+ status_workflow: "status_workflow";
393
+ story: "story";
394
+ subtask: "subtask";
395
+ sync_conflict: "sync_conflict";
396
+ sync_cursor: "sync_cursor";
397
+ task: "task";
398
+ team: "team";
399
+ template: "template";
400
+ time_entry: "time_entry";
401
+ tombstone: "tombstone";
402
+ workspace: "workspace";
403
+ }>;
404
+ }, z.core.$strip>>>;
405
+ statusId: z.ZodOptional<z.ZodString>;
406
+ statusCategory: z.ZodOptional<z.ZodEnum<{
407
+ backlog: "backlog";
408
+ cancelled: "cancelled";
409
+ completed: "completed";
410
+ started: "started";
411
+ unstarted: "unstarted";
412
+ }>>;
413
+ priority: z.ZodOptional<z.ZodNumber>;
414
+ estimateMinutes: z.ZodOptional<z.ZodNumber>;
415
+ desiredStartAt: z.ZodOptional<z.ZodString>;
416
+ dueAt: z.ZodOptional<z.ZodString>;
417
+ completedAt: z.ZodOptional<z.ZodString>;
418
+ recurrenceTemplateRef: z.ZodOptional<z.ZodObject<{
419
+ id: z.ZodString;
420
+ kind: z.ZodEnum<{
421
+ activity: "activity";
422
+ agent_reference: "agent_reference";
423
+ approval_reference: "approval_reference";
424
+ attachment: "attachment";
425
+ automation_reference: "automation_reference";
426
+ bug: "bug";
427
+ canvas_reference: "canvas_reference";
428
+ capture_reference: "capture_reference";
429
+ collection: "collection";
430
+ comment: "comment";
431
+ contractor: "contractor";
432
+ cross_organization_acl_grant: "cross_organization_acl_grant";
433
+ custom_field_definition: "custom_field_definition";
434
+ custom_field_value: "custom_field_value";
435
+ cycle: "cycle";
436
+ dependency: "dependency";
437
+ document_reference: "document_reference";
438
+ epic: "epic";
439
+ estimate: "estimate";
440
+ evidence_reference: "evidence_reference";
441
+ external_binding: "external_binding";
442
+ focus_policy: "focus_policy";
443
+ folder_projection: "folder_projection";
444
+ form: "form";
445
+ guest: "guest";
446
+ habit: "habit";
447
+ inbox_item: "inbox_item";
448
+ initiative: "initiative";
449
+ issue: "issue";
450
+ key_result: "key_result";
451
+ list: "list";
452
+ member: "member";
453
+ mention: "mention";
454
+ milestone: "milestone";
455
+ objective: "objective";
456
+ occurrence: "occurrence";
457
+ organization: "organization";
458
+ planning_intent: "planning_intent";
459
+ portfolio: "portfolio";
460
+ program: "program";
461
+ project: "project";
462
+ proofing_request: "proofing_request";
463
+ reaction: "reaction";
464
+ recurrence_template: "recurrence_template";
465
+ relationship: "relationship";
466
+ roadmap: "roadmap";
467
+ saved_view: "saved_view";
468
+ schedule_binding_reference: "schedule_binding_reference";
469
+ service_principal: "service_principal";
470
+ status_workflow: "status_workflow";
471
+ story: "story";
472
+ subtask: "subtask";
473
+ sync_conflict: "sync_conflict";
474
+ sync_cursor: "sync_cursor";
475
+ task: "task";
476
+ team: "team";
477
+ template: "template";
478
+ time_entry: "time_entry";
479
+ tombstone: "tombstone";
480
+ workspace: "workspace";
481
+ }>;
482
+ }, z.core.$strip>>;
483
+ captureRef: z.ZodOptional<z.ZodObject<{
484
+ id: z.ZodString;
485
+ kind: z.ZodEnum<{
486
+ activity: "activity";
487
+ agent_reference: "agent_reference";
488
+ approval_reference: "approval_reference";
489
+ attachment: "attachment";
490
+ automation_reference: "automation_reference";
491
+ bug: "bug";
492
+ canvas_reference: "canvas_reference";
493
+ capture_reference: "capture_reference";
494
+ collection: "collection";
495
+ comment: "comment";
496
+ contractor: "contractor";
497
+ cross_organization_acl_grant: "cross_organization_acl_grant";
498
+ custom_field_definition: "custom_field_definition";
499
+ custom_field_value: "custom_field_value";
500
+ cycle: "cycle";
501
+ dependency: "dependency";
502
+ document_reference: "document_reference";
503
+ epic: "epic";
504
+ estimate: "estimate";
505
+ evidence_reference: "evidence_reference";
506
+ external_binding: "external_binding";
507
+ focus_policy: "focus_policy";
508
+ folder_projection: "folder_projection";
509
+ form: "form";
510
+ guest: "guest";
511
+ habit: "habit";
512
+ inbox_item: "inbox_item";
513
+ initiative: "initiative";
514
+ issue: "issue";
515
+ key_result: "key_result";
516
+ list: "list";
517
+ member: "member";
518
+ mention: "mention";
519
+ milestone: "milestone";
520
+ objective: "objective";
521
+ occurrence: "occurrence";
522
+ organization: "organization";
523
+ planning_intent: "planning_intent";
524
+ portfolio: "portfolio";
525
+ program: "program";
526
+ project: "project";
527
+ proofing_request: "proofing_request";
528
+ reaction: "reaction";
529
+ recurrence_template: "recurrence_template";
530
+ relationship: "relationship";
531
+ roadmap: "roadmap";
532
+ saved_view: "saved_view";
533
+ schedule_binding_reference: "schedule_binding_reference";
534
+ service_principal: "service_principal";
535
+ status_workflow: "status_workflow";
536
+ story: "story";
537
+ subtask: "subtask";
538
+ sync_conflict: "sync_conflict";
539
+ sync_cursor: "sync_cursor";
540
+ task: "task";
541
+ team: "team";
542
+ template: "template";
543
+ time_entry: "time_entry";
544
+ tombstone: "tombstone";
545
+ workspace: "workspace";
546
+ }>;
547
+ }, z.core.$strip>>;
548
+ customFieldValueRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
549
+ id: z.ZodString;
550
+ kind: z.ZodEnum<{
551
+ activity: "activity";
552
+ agent_reference: "agent_reference";
553
+ approval_reference: "approval_reference";
554
+ attachment: "attachment";
555
+ automation_reference: "automation_reference";
556
+ bug: "bug";
557
+ canvas_reference: "canvas_reference";
558
+ capture_reference: "capture_reference";
559
+ collection: "collection";
560
+ comment: "comment";
561
+ contractor: "contractor";
562
+ cross_organization_acl_grant: "cross_organization_acl_grant";
563
+ custom_field_definition: "custom_field_definition";
564
+ custom_field_value: "custom_field_value";
565
+ cycle: "cycle";
566
+ dependency: "dependency";
567
+ document_reference: "document_reference";
568
+ epic: "epic";
569
+ estimate: "estimate";
570
+ evidence_reference: "evidence_reference";
571
+ external_binding: "external_binding";
572
+ focus_policy: "focus_policy";
573
+ folder_projection: "folder_projection";
574
+ form: "form";
575
+ guest: "guest";
576
+ habit: "habit";
577
+ inbox_item: "inbox_item";
578
+ initiative: "initiative";
579
+ issue: "issue";
580
+ key_result: "key_result";
581
+ list: "list";
582
+ member: "member";
583
+ mention: "mention";
584
+ milestone: "milestone";
585
+ objective: "objective";
586
+ occurrence: "occurrence";
587
+ organization: "organization";
588
+ planning_intent: "planning_intent";
589
+ portfolio: "portfolio";
590
+ program: "program";
591
+ project: "project";
592
+ proofing_request: "proofing_request";
593
+ reaction: "reaction";
594
+ recurrence_template: "recurrence_template";
595
+ relationship: "relationship";
596
+ roadmap: "roadmap";
597
+ saved_view: "saved_view";
598
+ schedule_binding_reference: "schedule_binding_reference";
599
+ service_principal: "service_principal";
600
+ status_workflow: "status_workflow";
601
+ story: "story";
602
+ subtask: "subtask";
603
+ sync_conflict: "sync_conflict";
604
+ sync_cursor: "sync_cursor";
605
+ task: "task";
606
+ team: "team";
607
+ template: "template";
608
+ time_entry: "time_entry";
609
+ tombstone: "tombstone";
610
+ workspace: "workspace";
611
+ }>;
612
+ }, z.core.$strip>>>;
613
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
614
+ id: z.ZodString;
615
+ kind: z.ZodEnum<{
616
+ activity: "activity";
617
+ agent_reference: "agent_reference";
618
+ approval_reference: "approval_reference";
619
+ attachment: "attachment";
620
+ automation_reference: "automation_reference";
621
+ bug: "bug";
622
+ canvas_reference: "canvas_reference";
623
+ capture_reference: "capture_reference";
624
+ collection: "collection";
625
+ comment: "comment";
626
+ contractor: "contractor";
627
+ cross_organization_acl_grant: "cross_organization_acl_grant";
628
+ custom_field_definition: "custom_field_definition";
629
+ custom_field_value: "custom_field_value";
630
+ cycle: "cycle";
631
+ dependency: "dependency";
632
+ document_reference: "document_reference";
633
+ epic: "epic";
634
+ estimate: "estimate";
635
+ evidence_reference: "evidence_reference";
636
+ external_binding: "external_binding";
637
+ focus_policy: "focus_policy";
638
+ folder_projection: "folder_projection";
639
+ form: "form";
640
+ guest: "guest";
641
+ habit: "habit";
642
+ inbox_item: "inbox_item";
643
+ initiative: "initiative";
644
+ issue: "issue";
645
+ key_result: "key_result";
646
+ list: "list";
647
+ member: "member";
648
+ mention: "mention";
649
+ milestone: "milestone";
650
+ objective: "objective";
651
+ occurrence: "occurrence";
652
+ organization: "organization";
653
+ planning_intent: "planning_intent";
654
+ portfolio: "portfolio";
655
+ program: "program";
656
+ project: "project";
657
+ proofing_request: "proofing_request";
658
+ reaction: "reaction";
659
+ recurrence_template: "recurrence_template";
660
+ relationship: "relationship";
661
+ roadmap: "roadmap";
662
+ saved_view: "saved_view";
663
+ schedule_binding_reference: "schedule_binding_reference";
664
+ service_principal: "service_principal";
665
+ status_workflow: "status_workflow";
666
+ story: "story";
667
+ subtask: "subtask";
668
+ sync_conflict: "sync_conflict";
669
+ sync_cursor: "sync_cursor";
670
+ task: "task";
671
+ team: "team";
672
+ template: "template";
673
+ time_entry: "time_entry";
674
+ tombstone: "tombstone";
675
+ workspace: "workspace";
676
+ }>;
677
+ }, z.core.$strip>>>;
678
+ externalBindingRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
679
+ id: z.ZodString;
680
+ kind: z.ZodEnum<{
681
+ activity: "activity";
682
+ agent_reference: "agent_reference";
683
+ approval_reference: "approval_reference";
684
+ attachment: "attachment";
685
+ automation_reference: "automation_reference";
686
+ bug: "bug";
687
+ canvas_reference: "canvas_reference";
688
+ capture_reference: "capture_reference";
689
+ collection: "collection";
690
+ comment: "comment";
691
+ contractor: "contractor";
692
+ cross_organization_acl_grant: "cross_organization_acl_grant";
693
+ custom_field_definition: "custom_field_definition";
694
+ custom_field_value: "custom_field_value";
695
+ cycle: "cycle";
696
+ dependency: "dependency";
697
+ document_reference: "document_reference";
698
+ epic: "epic";
699
+ estimate: "estimate";
700
+ evidence_reference: "evidence_reference";
701
+ external_binding: "external_binding";
702
+ focus_policy: "focus_policy";
703
+ folder_projection: "folder_projection";
704
+ form: "form";
705
+ guest: "guest";
706
+ habit: "habit";
707
+ inbox_item: "inbox_item";
708
+ initiative: "initiative";
709
+ issue: "issue";
710
+ key_result: "key_result";
711
+ list: "list";
712
+ member: "member";
713
+ mention: "mention";
714
+ milestone: "milestone";
715
+ objective: "objective";
716
+ occurrence: "occurrence";
717
+ organization: "organization";
718
+ planning_intent: "planning_intent";
719
+ portfolio: "portfolio";
720
+ program: "program";
721
+ project: "project";
722
+ proofing_request: "proofing_request";
723
+ reaction: "reaction";
724
+ recurrence_template: "recurrence_template";
725
+ relationship: "relationship";
726
+ roadmap: "roadmap";
727
+ saved_view: "saved_view";
728
+ schedule_binding_reference: "schedule_binding_reference";
729
+ service_principal: "service_principal";
730
+ status_workflow: "status_workflow";
731
+ story: "story";
732
+ subtask: "subtask";
733
+ sync_conflict: "sync_conflict";
734
+ sync_cursor: "sync_cursor";
735
+ task: "task";
736
+ team: "team";
737
+ template: "template";
738
+ time_entry: "time_entry";
739
+ tombstone: "tombstone";
740
+ workspace: "workspace";
741
+ }>;
742
+ }, z.core.$strip>>>;
743
+ archivedAt: z.ZodOptional<z.ZodString>;
744
+ }, z.core.$strip>;
745
+ }, z.core.$strip>;
746
+ }, z.core.$strip>, z.ZodObject<{
747
+ eventId: z.ZodString;
748
+ eventVersion: z.ZodLiteral<"2.0.0">;
749
+ aggregate: z.ZodObject<{
750
+ id: z.ZodString;
751
+ kind: z.ZodEnum<{
752
+ activity: "activity";
753
+ agent_reference: "agent_reference";
754
+ approval_reference: "approval_reference";
755
+ attachment: "attachment";
756
+ automation_reference: "automation_reference";
757
+ bug: "bug";
758
+ canvas_reference: "canvas_reference";
759
+ capture_reference: "capture_reference";
760
+ collection: "collection";
761
+ comment: "comment";
762
+ contractor: "contractor";
763
+ cross_organization_acl_grant: "cross_organization_acl_grant";
764
+ custom_field_definition: "custom_field_definition";
765
+ custom_field_value: "custom_field_value";
766
+ cycle: "cycle";
767
+ dependency: "dependency";
768
+ document_reference: "document_reference";
769
+ epic: "epic";
770
+ estimate: "estimate";
771
+ evidence_reference: "evidence_reference";
772
+ external_binding: "external_binding";
773
+ focus_policy: "focus_policy";
774
+ folder_projection: "folder_projection";
775
+ form: "form";
776
+ guest: "guest";
777
+ habit: "habit";
778
+ inbox_item: "inbox_item";
779
+ initiative: "initiative";
780
+ issue: "issue";
781
+ key_result: "key_result";
782
+ list: "list";
783
+ member: "member";
784
+ mention: "mention";
785
+ milestone: "milestone";
786
+ objective: "objective";
787
+ occurrence: "occurrence";
788
+ organization: "organization";
789
+ planning_intent: "planning_intent";
790
+ portfolio: "portfolio";
791
+ program: "program";
792
+ project: "project";
793
+ proofing_request: "proofing_request";
794
+ reaction: "reaction";
795
+ recurrence_template: "recurrence_template";
796
+ relationship: "relationship";
797
+ roadmap: "roadmap";
798
+ saved_view: "saved_view";
799
+ schedule_binding_reference: "schedule_binding_reference";
800
+ service_principal: "service_principal";
801
+ status_workflow: "status_workflow";
802
+ story: "story";
803
+ subtask: "subtask";
804
+ sync_conflict: "sync_conflict";
805
+ sync_cursor: "sync_cursor";
806
+ task: "task";
807
+ team: "team";
808
+ template: "template";
809
+ time_entry: "time_entry";
810
+ tombstone: "tombstone";
811
+ workspace: "workspace";
812
+ }>;
813
+ }, z.core.$strip>;
814
+ aggregateRevision: z.ZodNumber;
815
+ scope: z.ZodObject<{
816
+ tenantId: z.ZodString;
817
+ organizationId: z.ZodString;
818
+ workspaceId: z.ZodString;
819
+ }, z.core.$strip>;
820
+ actor: z.ZodObject<{
821
+ principalId: z.ZodString;
822
+ principalKind: z.ZodEnum<{
823
+ contractor: "contractor";
824
+ guest: "guest";
825
+ member: "member";
826
+ service_principal: "service_principal";
827
+ }>;
828
+ }, z.core.$strip>;
829
+ occurredAt: z.ZodString;
830
+ idempotencyKey: z.ZodString;
831
+ correlationId: z.ZodString;
832
+ causationId: z.ZodOptional<z.ZodString>;
833
+ evidenceRef: z.ZodString;
834
+ eventType: z.ZodLiteral<"work.object.updated">;
835
+ payload: z.ZodObject<{
836
+ object: z.ZodObject<{
837
+ id: z.ZodString;
838
+ kind: z.ZodEnum<{
839
+ activity: "activity";
840
+ agent_reference: "agent_reference";
841
+ approval_reference: "approval_reference";
842
+ attachment: "attachment";
843
+ automation_reference: "automation_reference";
844
+ bug: "bug";
845
+ canvas_reference: "canvas_reference";
846
+ capture_reference: "capture_reference";
847
+ collection: "collection";
848
+ comment: "comment";
849
+ contractor: "contractor";
850
+ cross_organization_acl_grant: "cross_organization_acl_grant";
851
+ custom_field_definition: "custom_field_definition";
852
+ custom_field_value: "custom_field_value";
853
+ cycle: "cycle";
854
+ dependency: "dependency";
855
+ document_reference: "document_reference";
856
+ epic: "epic";
857
+ estimate: "estimate";
858
+ evidence_reference: "evidence_reference";
859
+ external_binding: "external_binding";
860
+ focus_policy: "focus_policy";
861
+ folder_projection: "folder_projection";
862
+ form: "form";
863
+ guest: "guest";
864
+ habit: "habit";
865
+ inbox_item: "inbox_item";
866
+ initiative: "initiative";
867
+ issue: "issue";
868
+ key_result: "key_result";
869
+ list: "list";
870
+ member: "member";
871
+ mention: "mention";
872
+ milestone: "milestone";
873
+ objective: "objective";
874
+ occurrence: "occurrence";
875
+ organization: "organization";
876
+ planning_intent: "planning_intent";
877
+ portfolio: "portfolio";
878
+ program: "program";
879
+ project: "project";
880
+ proofing_request: "proofing_request";
881
+ reaction: "reaction";
882
+ recurrence_template: "recurrence_template";
883
+ relationship: "relationship";
884
+ roadmap: "roadmap";
885
+ saved_view: "saved_view";
886
+ schedule_binding_reference: "schedule_binding_reference";
887
+ service_principal: "service_principal";
888
+ status_workflow: "status_workflow";
889
+ story: "story";
890
+ subtask: "subtask";
891
+ sync_conflict: "sync_conflict";
892
+ sync_cursor: "sync_cursor";
893
+ task: "task";
894
+ team: "team";
895
+ template: "template";
896
+ time_entry: "time_entry";
897
+ tombstone: "tombstone";
898
+ workspace: "workspace";
899
+ }>;
900
+ title: z.ZodString;
901
+ description: z.ZodOptional<z.ZodString>;
902
+ metadata: z.ZodObject<{
903
+ scope: z.ZodObject<{
904
+ tenantId: z.ZodString;
905
+ organizationId: z.ZodString;
906
+ workspaceId: z.ZodString;
907
+ }, z.core.$strip>;
908
+ createdAt: z.ZodString;
909
+ createdBy: z.ZodObject<{
910
+ principalId: z.ZodString;
911
+ principalKind: z.ZodEnum<{
912
+ contractor: "contractor";
913
+ guest: "guest";
914
+ member: "member";
915
+ service_principal: "service_principal";
916
+ }>;
917
+ }, z.core.$strip>;
918
+ updatedAt: z.ZodString;
919
+ updatedBy: z.ZodObject<{
920
+ principalId: z.ZodString;
921
+ principalKind: z.ZodEnum<{
922
+ contractor: "contractor";
923
+ guest: "guest";
924
+ member: "member";
925
+ service_principal: "service_principal";
926
+ }>;
927
+ }, z.core.$strip>;
928
+ revision: z.ZodNumber;
929
+ }, z.core.$strip>;
930
+ parentRef: z.ZodOptional<z.ZodObject<{
931
+ id: z.ZodString;
932
+ kind: z.ZodEnum<{
933
+ activity: "activity";
934
+ agent_reference: "agent_reference";
935
+ approval_reference: "approval_reference";
936
+ attachment: "attachment";
937
+ automation_reference: "automation_reference";
938
+ bug: "bug";
939
+ canvas_reference: "canvas_reference";
940
+ capture_reference: "capture_reference";
941
+ collection: "collection";
942
+ comment: "comment";
943
+ contractor: "contractor";
944
+ cross_organization_acl_grant: "cross_organization_acl_grant";
945
+ custom_field_definition: "custom_field_definition";
946
+ custom_field_value: "custom_field_value";
947
+ cycle: "cycle";
948
+ dependency: "dependency";
949
+ document_reference: "document_reference";
950
+ epic: "epic";
951
+ estimate: "estimate";
952
+ evidence_reference: "evidence_reference";
953
+ external_binding: "external_binding";
954
+ focus_policy: "focus_policy";
955
+ folder_projection: "folder_projection";
956
+ form: "form";
957
+ guest: "guest";
958
+ habit: "habit";
959
+ inbox_item: "inbox_item";
960
+ initiative: "initiative";
961
+ issue: "issue";
962
+ key_result: "key_result";
963
+ list: "list";
964
+ member: "member";
965
+ mention: "mention";
966
+ milestone: "milestone";
967
+ objective: "objective";
968
+ occurrence: "occurrence";
969
+ organization: "organization";
970
+ planning_intent: "planning_intent";
971
+ portfolio: "portfolio";
972
+ program: "program";
973
+ project: "project";
974
+ proofing_request: "proofing_request";
975
+ reaction: "reaction";
976
+ recurrence_template: "recurrence_template";
977
+ relationship: "relationship";
978
+ roadmap: "roadmap";
979
+ saved_view: "saved_view";
980
+ schedule_binding_reference: "schedule_binding_reference";
981
+ service_principal: "service_principal";
982
+ status_workflow: "status_workflow";
983
+ story: "story";
984
+ subtask: "subtask";
985
+ sync_conflict: "sync_conflict";
986
+ sync_cursor: "sync_cursor";
987
+ task: "task";
988
+ team: "team";
989
+ template: "template";
990
+ time_entry: "time_entry";
991
+ tombstone: "tombstone";
992
+ workspace: "workspace";
993
+ }>;
994
+ }, z.core.$strip>>;
995
+ ownerRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
996
+ id: z.ZodString;
997
+ kind: z.ZodEnum<{
998
+ activity: "activity";
999
+ agent_reference: "agent_reference";
1000
+ approval_reference: "approval_reference";
1001
+ attachment: "attachment";
1002
+ automation_reference: "automation_reference";
1003
+ bug: "bug";
1004
+ canvas_reference: "canvas_reference";
1005
+ capture_reference: "capture_reference";
1006
+ collection: "collection";
1007
+ comment: "comment";
1008
+ contractor: "contractor";
1009
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1010
+ custom_field_definition: "custom_field_definition";
1011
+ custom_field_value: "custom_field_value";
1012
+ cycle: "cycle";
1013
+ dependency: "dependency";
1014
+ document_reference: "document_reference";
1015
+ epic: "epic";
1016
+ estimate: "estimate";
1017
+ evidence_reference: "evidence_reference";
1018
+ external_binding: "external_binding";
1019
+ focus_policy: "focus_policy";
1020
+ folder_projection: "folder_projection";
1021
+ form: "form";
1022
+ guest: "guest";
1023
+ habit: "habit";
1024
+ inbox_item: "inbox_item";
1025
+ initiative: "initiative";
1026
+ issue: "issue";
1027
+ key_result: "key_result";
1028
+ list: "list";
1029
+ member: "member";
1030
+ mention: "mention";
1031
+ milestone: "milestone";
1032
+ objective: "objective";
1033
+ occurrence: "occurrence";
1034
+ organization: "organization";
1035
+ planning_intent: "planning_intent";
1036
+ portfolio: "portfolio";
1037
+ program: "program";
1038
+ project: "project";
1039
+ proofing_request: "proofing_request";
1040
+ reaction: "reaction";
1041
+ recurrence_template: "recurrence_template";
1042
+ relationship: "relationship";
1043
+ roadmap: "roadmap";
1044
+ saved_view: "saved_view";
1045
+ schedule_binding_reference: "schedule_binding_reference";
1046
+ service_principal: "service_principal";
1047
+ status_workflow: "status_workflow";
1048
+ story: "story";
1049
+ subtask: "subtask";
1050
+ sync_conflict: "sync_conflict";
1051
+ sync_cursor: "sync_cursor";
1052
+ task: "task";
1053
+ team: "team";
1054
+ template: "template";
1055
+ time_entry: "time_entry";
1056
+ tombstone: "tombstone";
1057
+ workspace: "workspace";
1058
+ }>;
1059
+ }, z.core.$strip>>>;
1060
+ assigneeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1061
+ id: z.ZodString;
1062
+ kind: z.ZodEnum<{
1063
+ activity: "activity";
1064
+ agent_reference: "agent_reference";
1065
+ approval_reference: "approval_reference";
1066
+ attachment: "attachment";
1067
+ automation_reference: "automation_reference";
1068
+ bug: "bug";
1069
+ canvas_reference: "canvas_reference";
1070
+ capture_reference: "capture_reference";
1071
+ collection: "collection";
1072
+ comment: "comment";
1073
+ contractor: "contractor";
1074
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1075
+ custom_field_definition: "custom_field_definition";
1076
+ custom_field_value: "custom_field_value";
1077
+ cycle: "cycle";
1078
+ dependency: "dependency";
1079
+ document_reference: "document_reference";
1080
+ epic: "epic";
1081
+ estimate: "estimate";
1082
+ evidence_reference: "evidence_reference";
1083
+ external_binding: "external_binding";
1084
+ focus_policy: "focus_policy";
1085
+ folder_projection: "folder_projection";
1086
+ form: "form";
1087
+ guest: "guest";
1088
+ habit: "habit";
1089
+ inbox_item: "inbox_item";
1090
+ initiative: "initiative";
1091
+ issue: "issue";
1092
+ key_result: "key_result";
1093
+ list: "list";
1094
+ member: "member";
1095
+ mention: "mention";
1096
+ milestone: "milestone";
1097
+ objective: "objective";
1098
+ occurrence: "occurrence";
1099
+ organization: "organization";
1100
+ planning_intent: "planning_intent";
1101
+ portfolio: "portfolio";
1102
+ program: "program";
1103
+ project: "project";
1104
+ proofing_request: "proofing_request";
1105
+ reaction: "reaction";
1106
+ recurrence_template: "recurrence_template";
1107
+ relationship: "relationship";
1108
+ roadmap: "roadmap";
1109
+ saved_view: "saved_view";
1110
+ schedule_binding_reference: "schedule_binding_reference";
1111
+ service_principal: "service_principal";
1112
+ status_workflow: "status_workflow";
1113
+ story: "story";
1114
+ subtask: "subtask";
1115
+ sync_conflict: "sync_conflict";
1116
+ sync_cursor: "sync_cursor";
1117
+ task: "task";
1118
+ team: "team";
1119
+ template: "template";
1120
+ time_entry: "time_entry";
1121
+ tombstone: "tombstone";
1122
+ workspace: "workspace";
1123
+ }>;
1124
+ }, z.core.$strip>>>;
1125
+ statusId: z.ZodOptional<z.ZodString>;
1126
+ statusCategory: z.ZodOptional<z.ZodEnum<{
1127
+ backlog: "backlog";
1128
+ cancelled: "cancelled";
1129
+ completed: "completed";
1130
+ started: "started";
1131
+ unstarted: "unstarted";
1132
+ }>>;
1133
+ priority: z.ZodOptional<z.ZodNumber>;
1134
+ estimateMinutes: z.ZodOptional<z.ZodNumber>;
1135
+ desiredStartAt: z.ZodOptional<z.ZodString>;
1136
+ dueAt: z.ZodOptional<z.ZodString>;
1137
+ completedAt: z.ZodOptional<z.ZodString>;
1138
+ recurrenceTemplateRef: z.ZodOptional<z.ZodObject<{
1139
+ id: z.ZodString;
1140
+ kind: z.ZodEnum<{
1141
+ activity: "activity";
1142
+ agent_reference: "agent_reference";
1143
+ approval_reference: "approval_reference";
1144
+ attachment: "attachment";
1145
+ automation_reference: "automation_reference";
1146
+ bug: "bug";
1147
+ canvas_reference: "canvas_reference";
1148
+ capture_reference: "capture_reference";
1149
+ collection: "collection";
1150
+ comment: "comment";
1151
+ contractor: "contractor";
1152
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1153
+ custom_field_definition: "custom_field_definition";
1154
+ custom_field_value: "custom_field_value";
1155
+ cycle: "cycle";
1156
+ dependency: "dependency";
1157
+ document_reference: "document_reference";
1158
+ epic: "epic";
1159
+ estimate: "estimate";
1160
+ evidence_reference: "evidence_reference";
1161
+ external_binding: "external_binding";
1162
+ focus_policy: "focus_policy";
1163
+ folder_projection: "folder_projection";
1164
+ form: "form";
1165
+ guest: "guest";
1166
+ habit: "habit";
1167
+ inbox_item: "inbox_item";
1168
+ initiative: "initiative";
1169
+ issue: "issue";
1170
+ key_result: "key_result";
1171
+ list: "list";
1172
+ member: "member";
1173
+ mention: "mention";
1174
+ milestone: "milestone";
1175
+ objective: "objective";
1176
+ occurrence: "occurrence";
1177
+ organization: "organization";
1178
+ planning_intent: "planning_intent";
1179
+ portfolio: "portfolio";
1180
+ program: "program";
1181
+ project: "project";
1182
+ proofing_request: "proofing_request";
1183
+ reaction: "reaction";
1184
+ recurrence_template: "recurrence_template";
1185
+ relationship: "relationship";
1186
+ roadmap: "roadmap";
1187
+ saved_view: "saved_view";
1188
+ schedule_binding_reference: "schedule_binding_reference";
1189
+ service_principal: "service_principal";
1190
+ status_workflow: "status_workflow";
1191
+ story: "story";
1192
+ subtask: "subtask";
1193
+ sync_conflict: "sync_conflict";
1194
+ sync_cursor: "sync_cursor";
1195
+ task: "task";
1196
+ team: "team";
1197
+ template: "template";
1198
+ time_entry: "time_entry";
1199
+ tombstone: "tombstone";
1200
+ workspace: "workspace";
1201
+ }>;
1202
+ }, z.core.$strip>>;
1203
+ captureRef: z.ZodOptional<z.ZodObject<{
1204
+ id: z.ZodString;
1205
+ kind: z.ZodEnum<{
1206
+ activity: "activity";
1207
+ agent_reference: "agent_reference";
1208
+ approval_reference: "approval_reference";
1209
+ attachment: "attachment";
1210
+ automation_reference: "automation_reference";
1211
+ bug: "bug";
1212
+ canvas_reference: "canvas_reference";
1213
+ capture_reference: "capture_reference";
1214
+ collection: "collection";
1215
+ comment: "comment";
1216
+ contractor: "contractor";
1217
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1218
+ custom_field_definition: "custom_field_definition";
1219
+ custom_field_value: "custom_field_value";
1220
+ cycle: "cycle";
1221
+ dependency: "dependency";
1222
+ document_reference: "document_reference";
1223
+ epic: "epic";
1224
+ estimate: "estimate";
1225
+ evidence_reference: "evidence_reference";
1226
+ external_binding: "external_binding";
1227
+ focus_policy: "focus_policy";
1228
+ folder_projection: "folder_projection";
1229
+ form: "form";
1230
+ guest: "guest";
1231
+ habit: "habit";
1232
+ inbox_item: "inbox_item";
1233
+ initiative: "initiative";
1234
+ issue: "issue";
1235
+ key_result: "key_result";
1236
+ list: "list";
1237
+ member: "member";
1238
+ mention: "mention";
1239
+ milestone: "milestone";
1240
+ objective: "objective";
1241
+ occurrence: "occurrence";
1242
+ organization: "organization";
1243
+ planning_intent: "planning_intent";
1244
+ portfolio: "portfolio";
1245
+ program: "program";
1246
+ project: "project";
1247
+ proofing_request: "proofing_request";
1248
+ reaction: "reaction";
1249
+ recurrence_template: "recurrence_template";
1250
+ relationship: "relationship";
1251
+ roadmap: "roadmap";
1252
+ saved_view: "saved_view";
1253
+ schedule_binding_reference: "schedule_binding_reference";
1254
+ service_principal: "service_principal";
1255
+ status_workflow: "status_workflow";
1256
+ story: "story";
1257
+ subtask: "subtask";
1258
+ sync_conflict: "sync_conflict";
1259
+ sync_cursor: "sync_cursor";
1260
+ task: "task";
1261
+ team: "team";
1262
+ template: "template";
1263
+ time_entry: "time_entry";
1264
+ tombstone: "tombstone";
1265
+ workspace: "workspace";
1266
+ }>;
1267
+ }, z.core.$strip>>;
1268
+ customFieldValueRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1269
+ id: z.ZodString;
1270
+ kind: z.ZodEnum<{
1271
+ activity: "activity";
1272
+ agent_reference: "agent_reference";
1273
+ approval_reference: "approval_reference";
1274
+ attachment: "attachment";
1275
+ automation_reference: "automation_reference";
1276
+ bug: "bug";
1277
+ canvas_reference: "canvas_reference";
1278
+ capture_reference: "capture_reference";
1279
+ collection: "collection";
1280
+ comment: "comment";
1281
+ contractor: "contractor";
1282
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1283
+ custom_field_definition: "custom_field_definition";
1284
+ custom_field_value: "custom_field_value";
1285
+ cycle: "cycle";
1286
+ dependency: "dependency";
1287
+ document_reference: "document_reference";
1288
+ epic: "epic";
1289
+ estimate: "estimate";
1290
+ evidence_reference: "evidence_reference";
1291
+ external_binding: "external_binding";
1292
+ focus_policy: "focus_policy";
1293
+ folder_projection: "folder_projection";
1294
+ form: "form";
1295
+ guest: "guest";
1296
+ habit: "habit";
1297
+ inbox_item: "inbox_item";
1298
+ initiative: "initiative";
1299
+ issue: "issue";
1300
+ key_result: "key_result";
1301
+ list: "list";
1302
+ member: "member";
1303
+ mention: "mention";
1304
+ milestone: "milestone";
1305
+ objective: "objective";
1306
+ occurrence: "occurrence";
1307
+ organization: "organization";
1308
+ planning_intent: "planning_intent";
1309
+ portfolio: "portfolio";
1310
+ program: "program";
1311
+ project: "project";
1312
+ proofing_request: "proofing_request";
1313
+ reaction: "reaction";
1314
+ recurrence_template: "recurrence_template";
1315
+ relationship: "relationship";
1316
+ roadmap: "roadmap";
1317
+ saved_view: "saved_view";
1318
+ schedule_binding_reference: "schedule_binding_reference";
1319
+ service_principal: "service_principal";
1320
+ status_workflow: "status_workflow";
1321
+ story: "story";
1322
+ subtask: "subtask";
1323
+ sync_conflict: "sync_conflict";
1324
+ sync_cursor: "sync_cursor";
1325
+ task: "task";
1326
+ team: "team";
1327
+ template: "template";
1328
+ time_entry: "time_entry";
1329
+ tombstone: "tombstone";
1330
+ workspace: "workspace";
1331
+ }>;
1332
+ }, z.core.$strip>>>;
1333
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1334
+ id: z.ZodString;
1335
+ kind: z.ZodEnum<{
1336
+ activity: "activity";
1337
+ agent_reference: "agent_reference";
1338
+ approval_reference: "approval_reference";
1339
+ attachment: "attachment";
1340
+ automation_reference: "automation_reference";
1341
+ bug: "bug";
1342
+ canvas_reference: "canvas_reference";
1343
+ capture_reference: "capture_reference";
1344
+ collection: "collection";
1345
+ comment: "comment";
1346
+ contractor: "contractor";
1347
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1348
+ custom_field_definition: "custom_field_definition";
1349
+ custom_field_value: "custom_field_value";
1350
+ cycle: "cycle";
1351
+ dependency: "dependency";
1352
+ document_reference: "document_reference";
1353
+ epic: "epic";
1354
+ estimate: "estimate";
1355
+ evidence_reference: "evidence_reference";
1356
+ external_binding: "external_binding";
1357
+ focus_policy: "focus_policy";
1358
+ folder_projection: "folder_projection";
1359
+ form: "form";
1360
+ guest: "guest";
1361
+ habit: "habit";
1362
+ inbox_item: "inbox_item";
1363
+ initiative: "initiative";
1364
+ issue: "issue";
1365
+ key_result: "key_result";
1366
+ list: "list";
1367
+ member: "member";
1368
+ mention: "mention";
1369
+ milestone: "milestone";
1370
+ objective: "objective";
1371
+ occurrence: "occurrence";
1372
+ organization: "organization";
1373
+ planning_intent: "planning_intent";
1374
+ portfolio: "portfolio";
1375
+ program: "program";
1376
+ project: "project";
1377
+ proofing_request: "proofing_request";
1378
+ reaction: "reaction";
1379
+ recurrence_template: "recurrence_template";
1380
+ relationship: "relationship";
1381
+ roadmap: "roadmap";
1382
+ saved_view: "saved_view";
1383
+ schedule_binding_reference: "schedule_binding_reference";
1384
+ service_principal: "service_principal";
1385
+ status_workflow: "status_workflow";
1386
+ story: "story";
1387
+ subtask: "subtask";
1388
+ sync_conflict: "sync_conflict";
1389
+ sync_cursor: "sync_cursor";
1390
+ task: "task";
1391
+ team: "team";
1392
+ template: "template";
1393
+ time_entry: "time_entry";
1394
+ tombstone: "tombstone";
1395
+ workspace: "workspace";
1396
+ }>;
1397
+ }, z.core.$strip>>>;
1398
+ externalBindingRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1399
+ id: z.ZodString;
1400
+ kind: z.ZodEnum<{
1401
+ activity: "activity";
1402
+ agent_reference: "agent_reference";
1403
+ approval_reference: "approval_reference";
1404
+ attachment: "attachment";
1405
+ automation_reference: "automation_reference";
1406
+ bug: "bug";
1407
+ canvas_reference: "canvas_reference";
1408
+ capture_reference: "capture_reference";
1409
+ collection: "collection";
1410
+ comment: "comment";
1411
+ contractor: "contractor";
1412
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1413
+ custom_field_definition: "custom_field_definition";
1414
+ custom_field_value: "custom_field_value";
1415
+ cycle: "cycle";
1416
+ dependency: "dependency";
1417
+ document_reference: "document_reference";
1418
+ epic: "epic";
1419
+ estimate: "estimate";
1420
+ evidence_reference: "evidence_reference";
1421
+ external_binding: "external_binding";
1422
+ focus_policy: "focus_policy";
1423
+ folder_projection: "folder_projection";
1424
+ form: "form";
1425
+ guest: "guest";
1426
+ habit: "habit";
1427
+ inbox_item: "inbox_item";
1428
+ initiative: "initiative";
1429
+ issue: "issue";
1430
+ key_result: "key_result";
1431
+ list: "list";
1432
+ member: "member";
1433
+ mention: "mention";
1434
+ milestone: "milestone";
1435
+ objective: "objective";
1436
+ occurrence: "occurrence";
1437
+ organization: "organization";
1438
+ planning_intent: "planning_intent";
1439
+ portfolio: "portfolio";
1440
+ program: "program";
1441
+ project: "project";
1442
+ proofing_request: "proofing_request";
1443
+ reaction: "reaction";
1444
+ recurrence_template: "recurrence_template";
1445
+ relationship: "relationship";
1446
+ roadmap: "roadmap";
1447
+ saved_view: "saved_view";
1448
+ schedule_binding_reference: "schedule_binding_reference";
1449
+ service_principal: "service_principal";
1450
+ status_workflow: "status_workflow";
1451
+ story: "story";
1452
+ subtask: "subtask";
1453
+ sync_conflict: "sync_conflict";
1454
+ sync_cursor: "sync_cursor";
1455
+ task: "task";
1456
+ team: "team";
1457
+ template: "template";
1458
+ time_entry: "time_entry";
1459
+ tombstone: "tombstone";
1460
+ workspace: "workspace";
1461
+ }>;
1462
+ }, z.core.$strip>>>;
1463
+ archivedAt: z.ZodOptional<z.ZodString>;
1464
+ }, z.core.$strip>;
1465
+ }, z.core.$strip>;
1466
+ }, z.core.$strip>, z.ZodObject<{
1467
+ eventId: z.ZodString;
1468
+ eventVersion: z.ZodLiteral<"2.0.0">;
1469
+ aggregate: z.ZodObject<{
1470
+ id: z.ZodString;
1471
+ kind: z.ZodEnum<{
1472
+ activity: "activity";
1473
+ agent_reference: "agent_reference";
1474
+ approval_reference: "approval_reference";
1475
+ attachment: "attachment";
1476
+ automation_reference: "automation_reference";
1477
+ bug: "bug";
1478
+ canvas_reference: "canvas_reference";
1479
+ capture_reference: "capture_reference";
1480
+ collection: "collection";
1481
+ comment: "comment";
1482
+ contractor: "contractor";
1483
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1484
+ custom_field_definition: "custom_field_definition";
1485
+ custom_field_value: "custom_field_value";
1486
+ cycle: "cycle";
1487
+ dependency: "dependency";
1488
+ document_reference: "document_reference";
1489
+ epic: "epic";
1490
+ estimate: "estimate";
1491
+ evidence_reference: "evidence_reference";
1492
+ external_binding: "external_binding";
1493
+ focus_policy: "focus_policy";
1494
+ folder_projection: "folder_projection";
1495
+ form: "form";
1496
+ guest: "guest";
1497
+ habit: "habit";
1498
+ inbox_item: "inbox_item";
1499
+ initiative: "initiative";
1500
+ issue: "issue";
1501
+ key_result: "key_result";
1502
+ list: "list";
1503
+ member: "member";
1504
+ mention: "mention";
1505
+ milestone: "milestone";
1506
+ objective: "objective";
1507
+ occurrence: "occurrence";
1508
+ organization: "organization";
1509
+ planning_intent: "planning_intent";
1510
+ portfolio: "portfolio";
1511
+ program: "program";
1512
+ project: "project";
1513
+ proofing_request: "proofing_request";
1514
+ reaction: "reaction";
1515
+ recurrence_template: "recurrence_template";
1516
+ relationship: "relationship";
1517
+ roadmap: "roadmap";
1518
+ saved_view: "saved_view";
1519
+ schedule_binding_reference: "schedule_binding_reference";
1520
+ service_principal: "service_principal";
1521
+ status_workflow: "status_workflow";
1522
+ story: "story";
1523
+ subtask: "subtask";
1524
+ sync_conflict: "sync_conflict";
1525
+ sync_cursor: "sync_cursor";
1526
+ task: "task";
1527
+ team: "team";
1528
+ template: "template";
1529
+ time_entry: "time_entry";
1530
+ tombstone: "tombstone";
1531
+ workspace: "workspace";
1532
+ }>;
1533
+ }, z.core.$strip>;
1534
+ aggregateRevision: z.ZodNumber;
1535
+ scope: z.ZodObject<{
1536
+ tenantId: z.ZodString;
1537
+ organizationId: z.ZodString;
1538
+ workspaceId: z.ZodString;
1539
+ }, z.core.$strip>;
1540
+ actor: z.ZodObject<{
1541
+ principalId: z.ZodString;
1542
+ principalKind: z.ZodEnum<{
1543
+ contractor: "contractor";
1544
+ guest: "guest";
1545
+ member: "member";
1546
+ service_principal: "service_principal";
1547
+ }>;
1548
+ }, z.core.$strip>;
1549
+ occurredAt: z.ZodString;
1550
+ idempotencyKey: z.ZodString;
1551
+ correlationId: z.ZodString;
1552
+ causationId: z.ZodOptional<z.ZodString>;
1553
+ evidenceRef: z.ZodString;
1554
+ eventType: z.ZodLiteral<"work.object.archived">;
1555
+ payload: z.ZodObject<{}, z.core.$strict>;
1556
+ }, z.core.$strip>, z.ZodObject<{
1557
+ eventId: z.ZodString;
1558
+ eventVersion: z.ZodLiteral<"2.0.0">;
1559
+ aggregate: z.ZodObject<{
1560
+ id: z.ZodString;
1561
+ kind: z.ZodEnum<{
1562
+ activity: "activity";
1563
+ agent_reference: "agent_reference";
1564
+ approval_reference: "approval_reference";
1565
+ attachment: "attachment";
1566
+ automation_reference: "automation_reference";
1567
+ bug: "bug";
1568
+ canvas_reference: "canvas_reference";
1569
+ capture_reference: "capture_reference";
1570
+ collection: "collection";
1571
+ comment: "comment";
1572
+ contractor: "contractor";
1573
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1574
+ custom_field_definition: "custom_field_definition";
1575
+ custom_field_value: "custom_field_value";
1576
+ cycle: "cycle";
1577
+ dependency: "dependency";
1578
+ document_reference: "document_reference";
1579
+ epic: "epic";
1580
+ estimate: "estimate";
1581
+ evidence_reference: "evidence_reference";
1582
+ external_binding: "external_binding";
1583
+ focus_policy: "focus_policy";
1584
+ folder_projection: "folder_projection";
1585
+ form: "form";
1586
+ guest: "guest";
1587
+ habit: "habit";
1588
+ inbox_item: "inbox_item";
1589
+ initiative: "initiative";
1590
+ issue: "issue";
1591
+ key_result: "key_result";
1592
+ list: "list";
1593
+ member: "member";
1594
+ mention: "mention";
1595
+ milestone: "milestone";
1596
+ objective: "objective";
1597
+ occurrence: "occurrence";
1598
+ organization: "organization";
1599
+ planning_intent: "planning_intent";
1600
+ portfolio: "portfolio";
1601
+ program: "program";
1602
+ project: "project";
1603
+ proofing_request: "proofing_request";
1604
+ reaction: "reaction";
1605
+ recurrence_template: "recurrence_template";
1606
+ relationship: "relationship";
1607
+ roadmap: "roadmap";
1608
+ saved_view: "saved_view";
1609
+ schedule_binding_reference: "schedule_binding_reference";
1610
+ service_principal: "service_principal";
1611
+ status_workflow: "status_workflow";
1612
+ story: "story";
1613
+ subtask: "subtask";
1614
+ sync_conflict: "sync_conflict";
1615
+ sync_cursor: "sync_cursor";
1616
+ task: "task";
1617
+ team: "team";
1618
+ template: "template";
1619
+ time_entry: "time_entry";
1620
+ tombstone: "tombstone";
1621
+ workspace: "workspace";
1622
+ }>;
1623
+ }, z.core.$strip>;
1624
+ aggregateRevision: z.ZodNumber;
1625
+ scope: z.ZodObject<{
1626
+ tenantId: z.ZodString;
1627
+ organizationId: z.ZodString;
1628
+ workspaceId: z.ZodString;
1629
+ }, z.core.$strip>;
1630
+ actor: z.ZodObject<{
1631
+ principalId: z.ZodString;
1632
+ principalKind: z.ZodEnum<{
1633
+ contractor: "contractor";
1634
+ guest: "guest";
1635
+ member: "member";
1636
+ service_principal: "service_principal";
1637
+ }>;
1638
+ }, z.core.$strip>;
1639
+ occurredAt: z.ZodString;
1640
+ idempotencyKey: z.ZodString;
1641
+ correlationId: z.ZodString;
1642
+ causationId: z.ZodOptional<z.ZodString>;
1643
+ evidenceRef: z.ZodString;
1644
+ eventType: z.ZodLiteral<"work.object.restored">;
1645
+ payload: z.ZodObject<{}, z.core.$strict>;
1646
+ }, z.core.$strip>, z.ZodObject<{
1647
+ eventId: z.ZodString;
1648
+ eventVersion: z.ZodLiteral<"2.0.0">;
1649
+ aggregate: z.ZodObject<{
1650
+ id: z.ZodString;
1651
+ kind: z.ZodEnum<{
1652
+ activity: "activity";
1653
+ agent_reference: "agent_reference";
1654
+ approval_reference: "approval_reference";
1655
+ attachment: "attachment";
1656
+ automation_reference: "automation_reference";
1657
+ bug: "bug";
1658
+ canvas_reference: "canvas_reference";
1659
+ capture_reference: "capture_reference";
1660
+ collection: "collection";
1661
+ comment: "comment";
1662
+ contractor: "contractor";
1663
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1664
+ custom_field_definition: "custom_field_definition";
1665
+ custom_field_value: "custom_field_value";
1666
+ cycle: "cycle";
1667
+ dependency: "dependency";
1668
+ document_reference: "document_reference";
1669
+ epic: "epic";
1670
+ estimate: "estimate";
1671
+ evidence_reference: "evidence_reference";
1672
+ external_binding: "external_binding";
1673
+ focus_policy: "focus_policy";
1674
+ folder_projection: "folder_projection";
1675
+ form: "form";
1676
+ guest: "guest";
1677
+ habit: "habit";
1678
+ inbox_item: "inbox_item";
1679
+ initiative: "initiative";
1680
+ issue: "issue";
1681
+ key_result: "key_result";
1682
+ list: "list";
1683
+ member: "member";
1684
+ mention: "mention";
1685
+ milestone: "milestone";
1686
+ objective: "objective";
1687
+ occurrence: "occurrence";
1688
+ organization: "organization";
1689
+ planning_intent: "planning_intent";
1690
+ portfolio: "portfolio";
1691
+ program: "program";
1692
+ project: "project";
1693
+ proofing_request: "proofing_request";
1694
+ reaction: "reaction";
1695
+ recurrence_template: "recurrence_template";
1696
+ relationship: "relationship";
1697
+ roadmap: "roadmap";
1698
+ saved_view: "saved_view";
1699
+ schedule_binding_reference: "schedule_binding_reference";
1700
+ service_principal: "service_principal";
1701
+ status_workflow: "status_workflow";
1702
+ story: "story";
1703
+ subtask: "subtask";
1704
+ sync_conflict: "sync_conflict";
1705
+ sync_cursor: "sync_cursor";
1706
+ task: "task";
1707
+ team: "team";
1708
+ template: "template";
1709
+ time_entry: "time_entry";
1710
+ tombstone: "tombstone";
1711
+ workspace: "workspace";
1712
+ }>;
1713
+ }, z.core.$strip>;
1714
+ aggregateRevision: z.ZodNumber;
1715
+ scope: z.ZodObject<{
1716
+ tenantId: z.ZodString;
1717
+ organizationId: z.ZodString;
1718
+ workspaceId: z.ZodString;
1719
+ }, z.core.$strip>;
1720
+ actor: z.ZodObject<{
1721
+ principalId: z.ZodString;
1722
+ principalKind: z.ZodEnum<{
1723
+ contractor: "contractor";
1724
+ guest: "guest";
1725
+ member: "member";
1726
+ service_principal: "service_principal";
1727
+ }>;
1728
+ }, z.core.$strip>;
1729
+ occurredAt: z.ZodString;
1730
+ idempotencyKey: z.ZodString;
1731
+ correlationId: z.ZodString;
1732
+ causationId: z.ZodOptional<z.ZodString>;
1733
+ evidenceRef: z.ZodString;
1734
+ eventType: z.ZodLiteral<"work.recurrence.set">;
1735
+ payload: z.ZodObject<{
1736
+ recurrence: z.ZodObject<{
1737
+ id: z.ZodString;
1738
+ metadata: z.ZodObject<{
1739
+ scope: z.ZodObject<{
1740
+ tenantId: z.ZodString;
1741
+ organizationId: z.ZodString;
1742
+ workspaceId: z.ZodString;
1743
+ }, z.core.$strip>;
1744
+ createdAt: z.ZodString;
1745
+ createdBy: z.ZodObject<{
1746
+ principalId: z.ZodString;
1747
+ principalKind: z.ZodEnum<{
1748
+ contractor: "contractor";
1749
+ guest: "guest";
1750
+ member: "member";
1751
+ service_principal: "service_principal";
1752
+ }>;
1753
+ }, z.core.$strip>;
1754
+ updatedAt: z.ZodString;
1755
+ updatedBy: z.ZodObject<{
1756
+ principalId: z.ZodString;
1757
+ principalKind: z.ZodEnum<{
1758
+ contractor: "contractor";
1759
+ guest: "guest";
1760
+ member: "member";
1761
+ service_principal: "service_principal";
1762
+ }>;
1763
+ }, z.core.$strip>;
1764
+ revision: z.ZodNumber;
1765
+ }, z.core.$strip>;
1766
+ templateRef: z.ZodObject<{
1767
+ id: z.ZodString;
1768
+ kind: z.ZodEnum<{
1769
+ activity: "activity";
1770
+ agent_reference: "agent_reference";
1771
+ approval_reference: "approval_reference";
1772
+ attachment: "attachment";
1773
+ automation_reference: "automation_reference";
1774
+ bug: "bug";
1775
+ canvas_reference: "canvas_reference";
1776
+ capture_reference: "capture_reference";
1777
+ collection: "collection";
1778
+ comment: "comment";
1779
+ contractor: "contractor";
1780
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1781
+ custom_field_definition: "custom_field_definition";
1782
+ custom_field_value: "custom_field_value";
1783
+ cycle: "cycle";
1784
+ dependency: "dependency";
1785
+ document_reference: "document_reference";
1786
+ epic: "epic";
1787
+ estimate: "estimate";
1788
+ evidence_reference: "evidence_reference";
1789
+ external_binding: "external_binding";
1790
+ focus_policy: "focus_policy";
1791
+ folder_projection: "folder_projection";
1792
+ form: "form";
1793
+ guest: "guest";
1794
+ habit: "habit";
1795
+ inbox_item: "inbox_item";
1796
+ initiative: "initiative";
1797
+ issue: "issue";
1798
+ key_result: "key_result";
1799
+ list: "list";
1800
+ member: "member";
1801
+ mention: "mention";
1802
+ milestone: "milestone";
1803
+ objective: "objective";
1804
+ occurrence: "occurrence";
1805
+ organization: "organization";
1806
+ planning_intent: "planning_intent";
1807
+ portfolio: "portfolio";
1808
+ program: "program";
1809
+ project: "project";
1810
+ proofing_request: "proofing_request";
1811
+ reaction: "reaction";
1812
+ recurrence_template: "recurrence_template";
1813
+ relationship: "relationship";
1814
+ roadmap: "roadmap";
1815
+ saved_view: "saved_view";
1816
+ schedule_binding_reference: "schedule_binding_reference";
1817
+ service_principal: "service_principal";
1818
+ status_workflow: "status_workflow";
1819
+ story: "story";
1820
+ subtask: "subtask";
1821
+ sync_conflict: "sync_conflict";
1822
+ sync_cursor: "sync_cursor";
1823
+ task: "task";
1824
+ team: "team";
1825
+ template: "template";
1826
+ time_entry: "time_entry";
1827
+ tombstone: "tombstone";
1828
+ workspace: "workspace";
1829
+ }>;
1830
+ }, z.core.$strip>;
1831
+ rule: z.ZodObject<{
1832
+ frequency: z.ZodEnum<{
1833
+ daily: "daily";
1834
+ monthly: "monthly";
1835
+ weekly: "weekly";
1836
+ yearly: "yearly";
1837
+ }>;
1838
+ interval: z.ZodDefault<z.ZodNumber>;
1839
+ timeZone: z.ZodString;
1840
+ startsAt: z.ZodString;
1841
+ endsAt: z.ZodOptional<z.ZodString>;
1842
+ count: z.ZodOptional<z.ZodNumber>;
1843
+ }, z.core.$strip>;
1844
+ }, z.core.$strip>;
1845
+ }, z.core.$strip>;
1846
+ }, z.core.$strip>, z.ZodObject<{
1847
+ eventId: z.ZodString;
1848
+ eventVersion: z.ZodLiteral<"2.0.0">;
1849
+ aggregate: z.ZodObject<{
1850
+ id: z.ZodString;
1851
+ kind: z.ZodEnum<{
1852
+ activity: "activity";
1853
+ agent_reference: "agent_reference";
1854
+ approval_reference: "approval_reference";
1855
+ attachment: "attachment";
1856
+ automation_reference: "automation_reference";
1857
+ bug: "bug";
1858
+ canvas_reference: "canvas_reference";
1859
+ capture_reference: "capture_reference";
1860
+ collection: "collection";
1861
+ comment: "comment";
1862
+ contractor: "contractor";
1863
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1864
+ custom_field_definition: "custom_field_definition";
1865
+ custom_field_value: "custom_field_value";
1866
+ cycle: "cycle";
1867
+ dependency: "dependency";
1868
+ document_reference: "document_reference";
1869
+ epic: "epic";
1870
+ estimate: "estimate";
1871
+ evidence_reference: "evidence_reference";
1872
+ external_binding: "external_binding";
1873
+ focus_policy: "focus_policy";
1874
+ folder_projection: "folder_projection";
1875
+ form: "form";
1876
+ guest: "guest";
1877
+ habit: "habit";
1878
+ inbox_item: "inbox_item";
1879
+ initiative: "initiative";
1880
+ issue: "issue";
1881
+ key_result: "key_result";
1882
+ list: "list";
1883
+ member: "member";
1884
+ mention: "mention";
1885
+ milestone: "milestone";
1886
+ objective: "objective";
1887
+ occurrence: "occurrence";
1888
+ organization: "organization";
1889
+ planning_intent: "planning_intent";
1890
+ portfolio: "portfolio";
1891
+ program: "program";
1892
+ project: "project";
1893
+ proofing_request: "proofing_request";
1894
+ reaction: "reaction";
1895
+ recurrence_template: "recurrence_template";
1896
+ relationship: "relationship";
1897
+ roadmap: "roadmap";
1898
+ saved_view: "saved_view";
1899
+ schedule_binding_reference: "schedule_binding_reference";
1900
+ service_principal: "service_principal";
1901
+ status_workflow: "status_workflow";
1902
+ story: "story";
1903
+ subtask: "subtask";
1904
+ sync_conflict: "sync_conflict";
1905
+ sync_cursor: "sync_cursor";
1906
+ task: "task";
1907
+ team: "team";
1908
+ template: "template";
1909
+ time_entry: "time_entry";
1910
+ tombstone: "tombstone";
1911
+ workspace: "workspace";
1912
+ }>;
1913
+ }, z.core.$strip>;
1914
+ aggregateRevision: z.ZodNumber;
1915
+ scope: z.ZodObject<{
1916
+ tenantId: z.ZodString;
1917
+ organizationId: z.ZodString;
1918
+ workspaceId: z.ZodString;
1919
+ }, z.core.$strip>;
1920
+ actor: z.ZodObject<{
1921
+ principalId: z.ZodString;
1922
+ principalKind: z.ZodEnum<{
1923
+ contractor: "contractor";
1924
+ guest: "guest";
1925
+ member: "member";
1926
+ service_principal: "service_principal";
1927
+ }>;
1928
+ }, z.core.$strip>;
1929
+ occurredAt: z.ZodString;
1930
+ idempotencyKey: z.ZodString;
1931
+ correlationId: z.ZodString;
1932
+ causationId: z.ZodOptional<z.ZodString>;
1933
+ evidenceRef: z.ZodString;
1934
+ eventType: z.ZodLiteral<"work.time.started">;
1935
+ payload: z.ZodObject<{
1936
+ timeEntry: z.ZodObject<{
1937
+ id: z.ZodString;
1938
+ metadata: z.ZodObject<{
1939
+ scope: z.ZodObject<{
1940
+ tenantId: z.ZodString;
1941
+ organizationId: z.ZodString;
1942
+ workspaceId: z.ZodString;
1943
+ }, z.core.$strip>;
1944
+ createdAt: z.ZodString;
1945
+ createdBy: z.ZodObject<{
1946
+ principalId: z.ZodString;
1947
+ principalKind: z.ZodEnum<{
1948
+ contractor: "contractor";
1949
+ guest: "guest";
1950
+ member: "member";
1951
+ service_principal: "service_principal";
1952
+ }>;
1953
+ }, z.core.$strip>;
1954
+ updatedAt: z.ZodString;
1955
+ updatedBy: z.ZodObject<{
1956
+ principalId: z.ZodString;
1957
+ principalKind: z.ZodEnum<{
1958
+ contractor: "contractor";
1959
+ guest: "guest";
1960
+ member: "member";
1961
+ service_principal: "service_principal";
1962
+ }>;
1963
+ }, z.core.$strip>;
1964
+ revision: z.ZodNumber;
1965
+ }, z.core.$strip>;
1966
+ workRef: z.ZodObject<{
1967
+ id: z.ZodString;
1968
+ kind: z.ZodEnum<{
1969
+ activity: "activity";
1970
+ agent_reference: "agent_reference";
1971
+ approval_reference: "approval_reference";
1972
+ attachment: "attachment";
1973
+ automation_reference: "automation_reference";
1974
+ bug: "bug";
1975
+ canvas_reference: "canvas_reference";
1976
+ capture_reference: "capture_reference";
1977
+ collection: "collection";
1978
+ comment: "comment";
1979
+ contractor: "contractor";
1980
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1981
+ custom_field_definition: "custom_field_definition";
1982
+ custom_field_value: "custom_field_value";
1983
+ cycle: "cycle";
1984
+ dependency: "dependency";
1985
+ document_reference: "document_reference";
1986
+ epic: "epic";
1987
+ estimate: "estimate";
1988
+ evidence_reference: "evidence_reference";
1989
+ external_binding: "external_binding";
1990
+ focus_policy: "focus_policy";
1991
+ folder_projection: "folder_projection";
1992
+ form: "form";
1993
+ guest: "guest";
1994
+ habit: "habit";
1995
+ inbox_item: "inbox_item";
1996
+ initiative: "initiative";
1997
+ issue: "issue";
1998
+ key_result: "key_result";
1999
+ list: "list";
2000
+ member: "member";
2001
+ mention: "mention";
2002
+ milestone: "milestone";
2003
+ objective: "objective";
2004
+ occurrence: "occurrence";
2005
+ organization: "organization";
2006
+ planning_intent: "planning_intent";
2007
+ portfolio: "portfolio";
2008
+ program: "program";
2009
+ project: "project";
2010
+ proofing_request: "proofing_request";
2011
+ reaction: "reaction";
2012
+ recurrence_template: "recurrence_template";
2013
+ relationship: "relationship";
2014
+ roadmap: "roadmap";
2015
+ saved_view: "saved_view";
2016
+ schedule_binding_reference: "schedule_binding_reference";
2017
+ service_principal: "service_principal";
2018
+ status_workflow: "status_workflow";
2019
+ story: "story";
2020
+ subtask: "subtask";
2021
+ sync_conflict: "sync_conflict";
2022
+ sync_cursor: "sync_cursor";
2023
+ task: "task";
2024
+ team: "team";
2025
+ template: "template";
2026
+ time_entry: "time_entry";
2027
+ tombstone: "tombstone";
2028
+ workspace: "workspace";
2029
+ }>;
2030
+ }, z.core.$strip>;
2031
+ memberRef: z.ZodObject<{
2032
+ id: z.ZodString;
2033
+ kind: z.ZodEnum<{
2034
+ activity: "activity";
2035
+ agent_reference: "agent_reference";
2036
+ approval_reference: "approval_reference";
2037
+ attachment: "attachment";
2038
+ automation_reference: "automation_reference";
2039
+ bug: "bug";
2040
+ canvas_reference: "canvas_reference";
2041
+ capture_reference: "capture_reference";
2042
+ collection: "collection";
2043
+ comment: "comment";
2044
+ contractor: "contractor";
2045
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2046
+ custom_field_definition: "custom_field_definition";
2047
+ custom_field_value: "custom_field_value";
2048
+ cycle: "cycle";
2049
+ dependency: "dependency";
2050
+ document_reference: "document_reference";
2051
+ epic: "epic";
2052
+ estimate: "estimate";
2053
+ evidence_reference: "evidence_reference";
2054
+ external_binding: "external_binding";
2055
+ focus_policy: "focus_policy";
2056
+ folder_projection: "folder_projection";
2057
+ form: "form";
2058
+ guest: "guest";
2059
+ habit: "habit";
2060
+ inbox_item: "inbox_item";
2061
+ initiative: "initiative";
2062
+ issue: "issue";
2063
+ key_result: "key_result";
2064
+ list: "list";
2065
+ member: "member";
2066
+ mention: "mention";
2067
+ milestone: "milestone";
2068
+ objective: "objective";
2069
+ occurrence: "occurrence";
2070
+ organization: "organization";
2071
+ planning_intent: "planning_intent";
2072
+ portfolio: "portfolio";
2073
+ program: "program";
2074
+ project: "project";
2075
+ proofing_request: "proofing_request";
2076
+ reaction: "reaction";
2077
+ recurrence_template: "recurrence_template";
2078
+ relationship: "relationship";
2079
+ roadmap: "roadmap";
2080
+ saved_view: "saved_view";
2081
+ schedule_binding_reference: "schedule_binding_reference";
2082
+ service_principal: "service_principal";
2083
+ status_workflow: "status_workflow";
2084
+ story: "story";
2085
+ subtask: "subtask";
2086
+ sync_conflict: "sync_conflict";
2087
+ sync_cursor: "sync_cursor";
2088
+ task: "task";
2089
+ team: "team";
2090
+ template: "template";
2091
+ time_entry: "time_entry";
2092
+ tombstone: "tombstone";
2093
+ workspace: "workspace";
2094
+ }>;
2095
+ }, z.core.$strip>;
2096
+ startedAt: z.ZodString;
2097
+ endedAt: z.ZodOptional<z.ZodString>;
2098
+ durationMinutes: z.ZodNumber;
2099
+ note: z.ZodOptional<z.ZodString>;
2100
+ }, z.core.$strip>;
2101
+ }, z.core.$strip>;
2102
+ }, z.core.$strip>, z.ZodObject<{
2103
+ eventId: z.ZodString;
2104
+ eventVersion: z.ZodLiteral<"2.0.0">;
2105
+ aggregate: z.ZodObject<{
2106
+ id: z.ZodString;
2107
+ kind: z.ZodEnum<{
2108
+ activity: "activity";
2109
+ agent_reference: "agent_reference";
2110
+ approval_reference: "approval_reference";
2111
+ attachment: "attachment";
2112
+ automation_reference: "automation_reference";
2113
+ bug: "bug";
2114
+ canvas_reference: "canvas_reference";
2115
+ capture_reference: "capture_reference";
2116
+ collection: "collection";
2117
+ comment: "comment";
2118
+ contractor: "contractor";
2119
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2120
+ custom_field_definition: "custom_field_definition";
2121
+ custom_field_value: "custom_field_value";
2122
+ cycle: "cycle";
2123
+ dependency: "dependency";
2124
+ document_reference: "document_reference";
2125
+ epic: "epic";
2126
+ estimate: "estimate";
2127
+ evidence_reference: "evidence_reference";
2128
+ external_binding: "external_binding";
2129
+ focus_policy: "focus_policy";
2130
+ folder_projection: "folder_projection";
2131
+ form: "form";
2132
+ guest: "guest";
2133
+ habit: "habit";
2134
+ inbox_item: "inbox_item";
2135
+ initiative: "initiative";
2136
+ issue: "issue";
2137
+ key_result: "key_result";
2138
+ list: "list";
2139
+ member: "member";
2140
+ mention: "mention";
2141
+ milestone: "milestone";
2142
+ objective: "objective";
2143
+ occurrence: "occurrence";
2144
+ organization: "organization";
2145
+ planning_intent: "planning_intent";
2146
+ portfolio: "portfolio";
2147
+ program: "program";
2148
+ project: "project";
2149
+ proofing_request: "proofing_request";
2150
+ reaction: "reaction";
2151
+ recurrence_template: "recurrence_template";
2152
+ relationship: "relationship";
2153
+ roadmap: "roadmap";
2154
+ saved_view: "saved_view";
2155
+ schedule_binding_reference: "schedule_binding_reference";
2156
+ service_principal: "service_principal";
2157
+ status_workflow: "status_workflow";
2158
+ story: "story";
2159
+ subtask: "subtask";
2160
+ sync_conflict: "sync_conflict";
2161
+ sync_cursor: "sync_cursor";
2162
+ task: "task";
2163
+ team: "team";
2164
+ template: "template";
2165
+ time_entry: "time_entry";
2166
+ tombstone: "tombstone";
2167
+ workspace: "workspace";
2168
+ }>;
2169
+ }, z.core.$strip>;
2170
+ aggregateRevision: z.ZodNumber;
2171
+ scope: z.ZodObject<{
2172
+ tenantId: z.ZodString;
2173
+ organizationId: z.ZodString;
2174
+ workspaceId: z.ZodString;
2175
+ }, z.core.$strip>;
2176
+ actor: z.ZodObject<{
2177
+ principalId: z.ZodString;
2178
+ principalKind: z.ZodEnum<{
2179
+ contractor: "contractor";
2180
+ guest: "guest";
2181
+ member: "member";
2182
+ service_principal: "service_principal";
2183
+ }>;
2184
+ }, z.core.$strip>;
2185
+ occurredAt: z.ZodString;
2186
+ idempotencyKey: z.ZodString;
2187
+ correlationId: z.ZodString;
2188
+ causationId: z.ZodOptional<z.ZodString>;
2189
+ evidenceRef: z.ZodString;
2190
+ eventType: z.ZodLiteral<"work.time.stopped">;
2191
+ payload: z.ZodObject<{
2192
+ timeEntry: z.ZodObject<{
2193
+ id: z.ZodString;
2194
+ metadata: z.ZodObject<{
2195
+ scope: z.ZodObject<{
2196
+ tenantId: z.ZodString;
2197
+ organizationId: z.ZodString;
2198
+ workspaceId: z.ZodString;
2199
+ }, z.core.$strip>;
2200
+ createdAt: z.ZodString;
2201
+ createdBy: z.ZodObject<{
2202
+ principalId: z.ZodString;
2203
+ principalKind: z.ZodEnum<{
2204
+ contractor: "contractor";
2205
+ guest: "guest";
2206
+ member: "member";
2207
+ service_principal: "service_principal";
2208
+ }>;
2209
+ }, z.core.$strip>;
2210
+ updatedAt: z.ZodString;
2211
+ updatedBy: z.ZodObject<{
2212
+ principalId: z.ZodString;
2213
+ principalKind: z.ZodEnum<{
2214
+ contractor: "contractor";
2215
+ guest: "guest";
2216
+ member: "member";
2217
+ service_principal: "service_principal";
2218
+ }>;
2219
+ }, z.core.$strip>;
2220
+ revision: z.ZodNumber;
2221
+ }, z.core.$strip>;
2222
+ workRef: z.ZodObject<{
2223
+ id: z.ZodString;
2224
+ kind: z.ZodEnum<{
2225
+ activity: "activity";
2226
+ agent_reference: "agent_reference";
2227
+ approval_reference: "approval_reference";
2228
+ attachment: "attachment";
2229
+ automation_reference: "automation_reference";
2230
+ bug: "bug";
2231
+ canvas_reference: "canvas_reference";
2232
+ capture_reference: "capture_reference";
2233
+ collection: "collection";
2234
+ comment: "comment";
2235
+ contractor: "contractor";
2236
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2237
+ custom_field_definition: "custom_field_definition";
2238
+ custom_field_value: "custom_field_value";
2239
+ cycle: "cycle";
2240
+ dependency: "dependency";
2241
+ document_reference: "document_reference";
2242
+ epic: "epic";
2243
+ estimate: "estimate";
2244
+ evidence_reference: "evidence_reference";
2245
+ external_binding: "external_binding";
2246
+ focus_policy: "focus_policy";
2247
+ folder_projection: "folder_projection";
2248
+ form: "form";
2249
+ guest: "guest";
2250
+ habit: "habit";
2251
+ inbox_item: "inbox_item";
2252
+ initiative: "initiative";
2253
+ issue: "issue";
2254
+ key_result: "key_result";
2255
+ list: "list";
2256
+ member: "member";
2257
+ mention: "mention";
2258
+ milestone: "milestone";
2259
+ objective: "objective";
2260
+ occurrence: "occurrence";
2261
+ organization: "organization";
2262
+ planning_intent: "planning_intent";
2263
+ portfolio: "portfolio";
2264
+ program: "program";
2265
+ project: "project";
2266
+ proofing_request: "proofing_request";
2267
+ reaction: "reaction";
2268
+ recurrence_template: "recurrence_template";
2269
+ relationship: "relationship";
2270
+ roadmap: "roadmap";
2271
+ saved_view: "saved_view";
2272
+ schedule_binding_reference: "schedule_binding_reference";
2273
+ service_principal: "service_principal";
2274
+ status_workflow: "status_workflow";
2275
+ story: "story";
2276
+ subtask: "subtask";
2277
+ sync_conflict: "sync_conflict";
2278
+ sync_cursor: "sync_cursor";
2279
+ task: "task";
2280
+ team: "team";
2281
+ template: "template";
2282
+ time_entry: "time_entry";
2283
+ tombstone: "tombstone";
2284
+ workspace: "workspace";
2285
+ }>;
2286
+ }, z.core.$strip>;
2287
+ memberRef: z.ZodObject<{
2288
+ id: z.ZodString;
2289
+ kind: z.ZodEnum<{
2290
+ activity: "activity";
2291
+ agent_reference: "agent_reference";
2292
+ approval_reference: "approval_reference";
2293
+ attachment: "attachment";
2294
+ automation_reference: "automation_reference";
2295
+ bug: "bug";
2296
+ canvas_reference: "canvas_reference";
2297
+ capture_reference: "capture_reference";
2298
+ collection: "collection";
2299
+ comment: "comment";
2300
+ contractor: "contractor";
2301
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2302
+ custom_field_definition: "custom_field_definition";
2303
+ custom_field_value: "custom_field_value";
2304
+ cycle: "cycle";
2305
+ dependency: "dependency";
2306
+ document_reference: "document_reference";
2307
+ epic: "epic";
2308
+ estimate: "estimate";
2309
+ evidence_reference: "evidence_reference";
2310
+ external_binding: "external_binding";
2311
+ focus_policy: "focus_policy";
2312
+ folder_projection: "folder_projection";
2313
+ form: "form";
2314
+ guest: "guest";
2315
+ habit: "habit";
2316
+ inbox_item: "inbox_item";
2317
+ initiative: "initiative";
2318
+ issue: "issue";
2319
+ key_result: "key_result";
2320
+ list: "list";
2321
+ member: "member";
2322
+ mention: "mention";
2323
+ milestone: "milestone";
2324
+ objective: "objective";
2325
+ occurrence: "occurrence";
2326
+ organization: "organization";
2327
+ planning_intent: "planning_intent";
2328
+ portfolio: "portfolio";
2329
+ program: "program";
2330
+ project: "project";
2331
+ proofing_request: "proofing_request";
2332
+ reaction: "reaction";
2333
+ recurrence_template: "recurrence_template";
2334
+ relationship: "relationship";
2335
+ roadmap: "roadmap";
2336
+ saved_view: "saved_view";
2337
+ schedule_binding_reference: "schedule_binding_reference";
2338
+ service_principal: "service_principal";
2339
+ status_workflow: "status_workflow";
2340
+ story: "story";
2341
+ subtask: "subtask";
2342
+ sync_conflict: "sync_conflict";
2343
+ sync_cursor: "sync_cursor";
2344
+ task: "task";
2345
+ team: "team";
2346
+ template: "template";
2347
+ time_entry: "time_entry";
2348
+ tombstone: "tombstone";
2349
+ workspace: "workspace";
2350
+ }>;
2351
+ }, z.core.$strip>;
2352
+ startedAt: z.ZodString;
2353
+ endedAt: z.ZodOptional<z.ZodString>;
2354
+ durationMinutes: z.ZodNumber;
2355
+ note: z.ZodOptional<z.ZodString>;
2356
+ }, z.core.$strip>;
2357
+ }, z.core.$strip>;
2358
+ }, z.core.$strip>, z.ZodObject<{
2359
+ eventId: z.ZodString;
2360
+ eventVersion: z.ZodLiteral<"2.0.0">;
2361
+ aggregate: z.ZodObject<{
2362
+ id: z.ZodString;
2363
+ kind: z.ZodEnum<{
2364
+ activity: "activity";
2365
+ agent_reference: "agent_reference";
2366
+ approval_reference: "approval_reference";
2367
+ attachment: "attachment";
2368
+ automation_reference: "automation_reference";
2369
+ bug: "bug";
2370
+ canvas_reference: "canvas_reference";
2371
+ capture_reference: "capture_reference";
2372
+ collection: "collection";
2373
+ comment: "comment";
2374
+ contractor: "contractor";
2375
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2376
+ custom_field_definition: "custom_field_definition";
2377
+ custom_field_value: "custom_field_value";
2378
+ cycle: "cycle";
2379
+ dependency: "dependency";
2380
+ document_reference: "document_reference";
2381
+ epic: "epic";
2382
+ estimate: "estimate";
2383
+ evidence_reference: "evidence_reference";
2384
+ external_binding: "external_binding";
2385
+ focus_policy: "focus_policy";
2386
+ folder_projection: "folder_projection";
2387
+ form: "form";
2388
+ guest: "guest";
2389
+ habit: "habit";
2390
+ inbox_item: "inbox_item";
2391
+ initiative: "initiative";
2392
+ issue: "issue";
2393
+ key_result: "key_result";
2394
+ list: "list";
2395
+ member: "member";
2396
+ mention: "mention";
2397
+ milestone: "milestone";
2398
+ objective: "objective";
2399
+ occurrence: "occurrence";
2400
+ organization: "organization";
2401
+ planning_intent: "planning_intent";
2402
+ portfolio: "portfolio";
2403
+ program: "program";
2404
+ project: "project";
2405
+ proofing_request: "proofing_request";
2406
+ reaction: "reaction";
2407
+ recurrence_template: "recurrence_template";
2408
+ relationship: "relationship";
2409
+ roadmap: "roadmap";
2410
+ saved_view: "saved_view";
2411
+ schedule_binding_reference: "schedule_binding_reference";
2412
+ service_principal: "service_principal";
2413
+ status_workflow: "status_workflow";
2414
+ story: "story";
2415
+ subtask: "subtask";
2416
+ sync_conflict: "sync_conflict";
2417
+ sync_cursor: "sync_cursor";
2418
+ task: "task";
2419
+ team: "team";
2420
+ template: "template";
2421
+ time_entry: "time_entry";
2422
+ tombstone: "tombstone";
2423
+ workspace: "workspace";
2424
+ }>;
2425
+ }, z.core.$strip>;
2426
+ aggregateRevision: z.ZodNumber;
2427
+ scope: z.ZodObject<{
2428
+ tenantId: z.ZodString;
2429
+ organizationId: z.ZodString;
2430
+ workspaceId: z.ZodString;
2431
+ }, z.core.$strip>;
2432
+ actor: z.ZodObject<{
2433
+ principalId: z.ZodString;
2434
+ principalKind: z.ZodEnum<{
2435
+ contractor: "contractor";
2436
+ guest: "guest";
2437
+ member: "member";
2438
+ service_principal: "service_principal";
2439
+ }>;
2440
+ }, z.core.$strip>;
2441
+ occurredAt: z.ZodString;
2442
+ idempotencyKey: z.ZodString;
2443
+ correlationId: z.ZodString;
2444
+ causationId: z.ZodOptional<z.ZodString>;
2445
+ evidenceRef: z.ZodString;
2446
+ eventType: z.ZodLiteral<"work.relationship.set">;
2447
+ payload: z.ZodObject<{
2448
+ edge: z.ZodIntersection<z.ZodObject<{
2449
+ id: z.ZodString;
2450
+ metadata: z.ZodObject<{
2451
+ scope: z.ZodObject<{
2452
+ tenantId: z.ZodString;
2453
+ organizationId: z.ZodString;
2454
+ workspaceId: z.ZodString;
2455
+ }, z.core.$strip>;
2456
+ createdAt: z.ZodString;
2457
+ createdBy: z.ZodObject<{
2458
+ principalId: z.ZodString;
2459
+ principalKind: z.ZodEnum<{
2460
+ contractor: "contractor";
2461
+ guest: "guest";
2462
+ member: "member";
2463
+ service_principal: "service_principal";
2464
+ }>;
2465
+ }, z.core.$strip>;
2466
+ updatedAt: z.ZodString;
2467
+ updatedBy: z.ZodObject<{
2468
+ principalId: z.ZodString;
2469
+ principalKind: z.ZodEnum<{
2470
+ contractor: "contractor";
2471
+ guest: "guest";
2472
+ member: "member";
2473
+ service_principal: "service_principal";
2474
+ }>;
2475
+ }, z.core.$strip>;
2476
+ revision: z.ZodNumber;
2477
+ }, z.core.$strip>;
2478
+ kind: z.ZodEnum<{
2479
+ blocked_by: "blocked_by";
2480
+ blocks: "blocks";
2481
+ child: "child";
2482
+ duplicated_by: "duplicated_by";
2483
+ duplicates: "duplicates";
2484
+ multi_homed_in: "multi_homed_in";
2485
+ parent: "parent";
2486
+ relates_to: "relates_to";
2487
+ supersedes: "supersedes";
2488
+ }>;
2489
+ }, z.core.$strip>, z.ZodObject<{
2490
+ from: z.ZodObject<{
2491
+ id: z.ZodString;
2492
+ kind: z.ZodEnum<{
2493
+ activity: "activity";
2494
+ agent_reference: "agent_reference";
2495
+ approval_reference: "approval_reference";
2496
+ attachment: "attachment";
2497
+ automation_reference: "automation_reference";
2498
+ bug: "bug";
2499
+ canvas_reference: "canvas_reference";
2500
+ capture_reference: "capture_reference";
2501
+ collection: "collection";
2502
+ comment: "comment";
2503
+ contractor: "contractor";
2504
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2505
+ custom_field_definition: "custom_field_definition";
2506
+ custom_field_value: "custom_field_value";
2507
+ cycle: "cycle";
2508
+ dependency: "dependency";
2509
+ document_reference: "document_reference";
2510
+ epic: "epic";
2511
+ estimate: "estimate";
2512
+ evidence_reference: "evidence_reference";
2513
+ external_binding: "external_binding";
2514
+ focus_policy: "focus_policy";
2515
+ folder_projection: "folder_projection";
2516
+ form: "form";
2517
+ guest: "guest";
2518
+ habit: "habit";
2519
+ inbox_item: "inbox_item";
2520
+ initiative: "initiative";
2521
+ issue: "issue";
2522
+ key_result: "key_result";
2523
+ list: "list";
2524
+ member: "member";
2525
+ mention: "mention";
2526
+ milestone: "milestone";
2527
+ objective: "objective";
2528
+ occurrence: "occurrence";
2529
+ organization: "organization";
2530
+ planning_intent: "planning_intent";
2531
+ portfolio: "portfolio";
2532
+ program: "program";
2533
+ project: "project";
2534
+ proofing_request: "proofing_request";
2535
+ reaction: "reaction";
2536
+ recurrence_template: "recurrence_template";
2537
+ relationship: "relationship";
2538
+ roadmap: "roadmap";
2539
+ saved_view: "saved_view";
2540
+ schedule_binding_reference: "schedule_binding_reference";
2541
+ service_principal: "service_principal";
2542
+ status_workflow: "status_workflow";
2543
+ story: "story";
2544
+ subtask: "subtask";
2545
+ sync_conflict: "sync_conflict";
2546
+ sync_cursor: "sync_cursor";
2547
+ task: "task";
2548
+ team: "team";
2549
+ template: "template";
2550
+ time_entry: "time_entry";
2551
+ tombstone: "tombstone";
2552
+ workspace: "workspace";
2553
+ }>;
2554
+ }, z.core.$strip>;
2555
+ to: z.ZodObject<{
2556
+ id: z.ZodString;
2557
+ kind: z.ZodEnum<{
2558
+ activity: "activity";
2559
+ agent_reference: "agent_reference";
2560
+ approval_reference: "approval_reference";
2561
+ attachment: "attachment";
2562
+ automation_reference: "automation_reference";
2563
+ bug: "bug";
2564
+ canvas_reference: "canvas_reference";
2565
+ capture_reference: "capture_reference";
2566
+ collection: "collection";
2567
+ comment: "comment";
2568
+ contractor: "contractor";
2569
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2570
+ custom_field_definition: "custom_field_definition";
2571
+ custom_field_value: "custom_field_value";
2572
+ cycle: "cycle";
2573
+ dependency: "dependency";
2574
+ document_reference: "document_reference";
2575
+ epic: "epic";
2576
+ estimate: "estimate";
2577
+ evidence_reference: "evidence_reference";
2578
+ external_binding: "external_binding";
2579
+ focus_policy: "focus_policy";
2580
+ folder_projection: "folder_projection";
2581
+ form: "form";
2582
+ guest: "guest";
2583
+ habit: "habit";
2584
+ inbox_item: "inbox_item";
2585
+ initiative: "initiative";
2586
+ issue: "issue";
2587
+ key_result: "key_result";
2588
+ list: "list";
2589
+ member: "member";
2590
+ mention: "mention";
2591
+ milestone: "milestone";
2592
+ objective: "objective";
2593
+ occurrence: "occurrence";
2594
+ organization: "organization";
2595
+ planning_intent: "planning_intent";
2596
+ portfolio: "portfolio";
2597
+ program: "program";
2598
+ project: "project";
2599
+ proofing_request: "proofing_request";
2600
+ reaction: "reaction";
2601
+ recurrence_template: "recurrence_template";
2602
+ relationship: "relationship";
2603
+ roadmap: "roadmap";
2604
+ saved_view: "saved_view";
2605
+ schedule_binding_reference: "schedule_binding_reference";
2606
+ service_principal: "service_principal";
2607
+ status_workflow: "status_workflow";
2608
+ story: "story";
2609
+ subtask: "subtask";
2610
+ sync_conflict: "sync_conflict";
2611
+ sync_cursor: "sync_cursor";
2612
+ task: "task";
2613
+ team: "team";
2614
+ template: "template";
2615
+ time_entry: "time_entry";
2616
+ tombstone: "tombstone";
2617
+ workspace: "workspace";
2618
+ }>;
2619
+ }, z.core.$strip>;
2620
+ }, z.core.$strip>>;
2621
+ }, z.core.$strip>;
2622
+ }, z.core.$strip>, z.ZodObject<{
2623
+ eventId: z.ZodString;
2624
+ eventVersion: z.ZodLiteral<"2.0.0">;
2625
+ aggregate: z.ZodObject<{
2626
+ id: z.ZodString;
2627
+ kind: z.ZodEnum<{
2628
+ activity: "activity";
2629
+ agent_reference: "agent_reference";
2630
+ approval_reference: "approval_reference";
2631
+ attachment: "attachment";
2632
+ automation_reference: "automation_reference";
2633
+ bug: "bug";
2634
+ canvas_reference: "canvas_reference";
2635
+ capture_reference: "capture_reference";
2636
+ collection: "collection";
2637
+ comment: "comment";
2638
+ contractor: "contractor";
2639
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2640
+ custom_field_definition: "custom_field_definition";
2641
+ custom_field_value: "custom_field_value";
2642
+ cycle: "cycle";
2643
+ dependency: "dependency";
2644
+ document_reference: "document_reference";
2645
+ epic: "epic";
2646
+ estimate: "estimate";
2647
+ evidence_reference: "evidence_reference";
2648
+ external_binding: "external_binding";
2649
+ focus_policy: "focus_policy";
2650
+ folder_projection: "folder_projection";
2651
+ form: "form";
2652
+ guest: "guest";
2653
+ habit: "habit";
2654
+ inbox_item: "inbox_item";
2655
+ initiative: "initiative";
2656
+ issue: "issue";
2657
+ key_result: "key_result";
2658
+ list: "list";
2659
+ member: "member";
2660
+ mention: "mention";
2661
+ milestone: "milestone";
2662
+ objective: "objective";
2663
+ occurrence: "occurrence";
2664
+ organization: "organization";
2665
+ planning_intent: "planning_intent";
2666
+ portfolio: "portfolio";
2667
+ program: "program";
2668
+ project: "project";
2669
+ proofing_request: "proofing_request";
2670
+ reaction: "reaction";
2671
+ recurrence_template: "recurrence_template";
2672
+ relationship: "relationship";
2673
+ roadmap: "roadmap";
2674
+ saved_view: "saved_view";
2675
+ schedule_binding_reference: "schedule_binding_reference";
2676
+ service_principal: "service_principal";
2677
+ status_workflow: "status_workflow";
2678
+ story: "story";
2679
+ subtask: "subtask";
2680
+ sync_conflict: "sync_conflict";
2681
+ sync_cursor: "sync_cursor";
2682
+ task: "task";
2683
+ team: "team";
2684
+ template: "template";
2685
+ time_entry: "time_entry";
2686
+ tombstone: "tombstone";
2687
+ workspace: "workspace";
2688
+ }>;
2689
+ }, z.core.$strip>;
2690
+ aggregateRevision: z.ZodNumber;
2691
+ scope: z.ZodObject<{
2692
+ tenantId: z.ZodString;
2693
+ organizationId: z.ZodString;
2694
+ workspaceId: z.ZodString;
2695
+ }, z.core.$strip>;
2696
+ actor: z.ZodObject<{
2697
+ principalId: z.ZodString;
2698
+ principalKind: z.ZodEnum<{
2699
+ contractor: "contractor";
2700
+ guest: "guest";
2701
+ member: "member";
2702
+ service_principal: "service_principal";
2703
+ }>;
2704
+ }, z.core.$strip>;
2705
+ occurredAt: z.ZodString;
2706
+ idempotencyKey: z.ZodString;
2707
+ correlationId: z.ZodString;
2708
+ causationId: z.ZodOptional<z.ZodString>;
2709
+ evidenceRef: z.ZodString;
2710
+ eventType: z.ZodLiteral<"work.comment.created">;
2711
+ payload: z.ZodObject<{
2712
+ comment: z.ZodObject<{
2713
+ id: z.ZodString;
2714
+ metadata: z.ZodObject<{
2715
+ scope: z.ZodObject<{
2716
+ tenantId: z.ZodString;
2717
+ organizationId: z.ZodString;
2718
+ workspaceId: z.ZodString;
2719
+ }, z.core.$strip>;
2720
+ createdAt: z.ZodString;
2721
+ createdBy: z.ZodObject<{
2722
+ principalId: z.ZodString;
2723
+ principalKind: z.ZodEnum<{
2724
+ contractor: "contractor";
2725
+ guest: "guest";
2726
+ member: "member";
2727
+ service_principal: "service_principal";
2728
+ }>;
2729
+ }, z.core.$strip>;
2730
+ updatedAt: z.ZodString;
2731
+ updatedBy: z.ZodObject<{
2732
+ principalId: z.ZodString;
2733
+ principalKind: z.ZodEnum<{
2734
+ contractor: "contractor";
2735
+ guest: "guest";
2736
+ member: "member";
2737
+ service_principal: "service_principal";
2738
+ }>;
2739
+ }, z.core.$strip>;
2740
+ revision: z.ZodNumber;
2741
+ }, z.core.$strip>;
2742
+ workRef: z.ZodObject<{
2743
+ id: z.ZodString;
2744
+ kind: z.ZodEnum<{
2745
+ activity: "activity";
2746
+ agent_reference: "agent_reference";
2747
+ approval_reference: "approval_reference";
2748
+ attachment: "attachment";
2749
+ automation_reference: "automation_reference";
2750
+ bug: "bug";
2751
+ canvas_reference: "canvas_reference";
2752
+ capture_reference: "capture_reference";
2753
+ collection: "collection";
2754
+ comment: "comment";
2755
+ contractor: "contractor";
2756
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2757
+ custom_field_definition: "custom_field_definition";
2758
+ custom_field_value: "custom_field_value";
2759
+ cycle: "cycle";
2760
+ dependency: "dependency";
2761
+ document_reference: "document_reference";
2762
+ epic: "epic";
2763
+ estimate: "estimate";
2764
+ evidence_reference: "evidence_reference";
2765
+ external_binding: "external_binding";
2766
+ focus_policy: "focus_policy";
2767
+ folder_projection: "folder_projection";
2768
+ form: "form";
2769
+ guest: "guest";
2770
+ habit: "habit";
2771
+ inbox_item: "inbox_item";
2772
+ initiative: "initiative";
2773
+ issue: "issue";
2774
+ key_result: "key_result";
2775
+ list: "list";
2776
+ member: "member";
2777
+ mention: "mention";
2778
+ milestone: "milestone";
2779
+ objective: "objective";
2780
+ occurrence: "occurrence";
2781
+ organization: "organization";
2782
+ planning_intent: "planning_intent";
2783
+ portfolio: "portfolio";
2784
+ program: "program";
2785
+ project: "project";
2786
+ proofing_request: "proofing_request";
2787
+ reaction: "reaction";
2788
+ recurrence_template: "recurrence_template";
2789
+ relationship: "relationship";
2790
+ roadmap: "roadmap";
2791
+ saved_view: "saved_view";
2792
+ schedule_binding_reference: "schedule_binding_reference";
2793
+ service_principal: "service_principal";
2794
+ status_workflow: "status_workflow";
2795
+ story: "story";
2796
+ subtask: "subtask";
2797
+ sync_conflict: "sync_conflict";
2798
+ sync_cursor: "sync_cursor";
2799
+ task: "task";
2800
+ team: "team";
2801
+ template: "template";
2802
+ time_entry: "time_entry";
2803
+ tombstone: "tombstone";
2804
+ workspace: "workspace";
2805
+ }>;
2806
+ }, z.core.$strip>;
2807
+ body: z.ZodString;
2808
+ mentionedPrincipalIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2809
+ attachmentRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2810
+ id: z.ZodString;
2811
+ kind: z.ZodEnum<{
2812
+ activity: "activity";
2813
+ agent_reference: "agent_reference";
2814
+ approval_reference: "approval_reference";
2815
+ attachment: "attachment";
2816
+ automation_reference: "automation_reference";
2817
+ bug: "bug";
2818
+ canvas_reference: "canvas_reference";
2819
+ capture_reference: "capture_reference";
2820
+ collection: "collection";
2821
+ comment: "comment";
2822
+ contractor: "contractor";
2823
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2824
+ custom_field_definition: "custom_field_definition";
2825
+ custom_field_value: "custom_field_value";
2826
+ cycle: "cycle";
2827
+ dependency: "dependency";
2828
+ document_reference: "document_reference";
2829
+ epic: "epic";
2830
+ estimate: "estimate";
2831
+ evidence_reference: "evidence_reference";
2832
+ external_binding: "external_binding";
2833
+ focus_policy: "focus_policy";
2834
+ folder_projection: "folder_projection";
2835
+ form: "form";
2836
+ guest: "guest";
2837
+ habit: "habit";
2838
+ inbox_item: "inbox_item";
2839
+ initiative: "initiative";
2840
+ issue: "issue";
2841
+ key_result: "key_result";
2842
+ list: "list";
2843
+ member: "member";
2844
+ mention: "mention";
2845
+ milestone: "milestone";
2846
+ objective: "objective";
2847
+ occurrence: "occurrence";
2848
+ organization: "organization";
2849
+ planning_intent: "planning_intent";
2850
+ portfolio: "portfolio";
2851
+ program: "program";
2852
+ project: "project";
2853
+ proofing_request: "proofing_request";
2854
+ reaction: "reaction";
2855
+ recurrence_template: "recurrence_template";
2856
+ relationship: "relationship";
2857
+ roadmap: "roadmap";
2858
+ saved_view: "saved_view";
2859
+ schedule_binding_reference: "schedule_binding_reference";
2860
+ service_principal: "service_principal";
2861
+ status_workflow: "status_workflow";
2862
+ story: "story";
2863
+ subtask: "subtask";
2864
+ sync_conflict: "sync_conflict";
2865
+ sync_cursor: "sync_cursor";
2866
+ task: "task";
2867
+ team: "team";
2868
+ template: "template";
2869
+ time_entry: "time_entry";
2870
+ tombstone: "tombstone";
2871
+ workspace: "workspace";
2872
+ }>;
2873
+ }, z.core.$strip>>>;
2874
+ parentCommentRef: z.ZodOptional<z.ZodObject<{
2875
+ id: z.ZodString;
2876
+ kind: z.ZodEnum<{
2877
+ activity: "activity";
2878
+ agent_reference: "agent_reference";
2879
+ approval_reference: "approval_reference";
2880
+ attachment: "attachment";
2881
+ automation_reference: "automation_reference";
2882
+ bug: "bug";
2883
+ canvas_reference: "canvas_reference";
2884
+ capture_reference: "capture_reference";
2885
+ collection: "collection";
2886
+ comment: "comment";
2887
+ contractor: "contractor";
2888
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2889
+ custom_field_definition: "custom_field_definition";
2890
+ custom_field_value: "custom_field_value";
2891
+ cycle: "cycle";
2892
+ dependency: "dependency";
2893
+ document_reference: "document_reference";
2894
+ epic: "epic";
2895
+ estimate: "estimate";
2896
+ evidence_reference: "evidence_reference";
2897
+ external_binding: "external_binding";
2898
+ focus_policy: "focus_policy";
2899
+ folder_projection: "folder_projection";
2900
+ form: "form";
2901
+ guest: "guest";
2902
+ habit: "habit";
2903
+ inbox_item: "inbox_item";
2904
+ initiative: "initiative";
2905
+ issue: "issue";
2906
+ key_result: "key_result";
2907
+ list: "list";
2908
+ member: "member";
2909
+ mention: "mention";
2910
+ milestone: "milestone";
2911
+ objective: "objective";
2912
+ occurrence: "occurrence";
2913
+ organization: "organization";
2914
+ planning_intent: "planning_intent";
2915
+ portfolio: "portfolio";
2916
+ program: "program";
2917
+ project: "project";
2918
+ proofing_request: "proofing_request";
2919
+ reaction: "reaction";
2920
+ recurrence_template: "recurrence_template";
2921
+ relationship: "relationship";
2922
+ roadmap: "roadmap";
2923
+ saved_view: "saved_view";
2924
+ schedule_binding_reference: "schedule_binding_reference";
2925
+ service_principal: "service_principal";
2926
+ status_workflow: "status_workflow";
2927
+ story: "story";
2928
+ subtask: "subtask";
2929
+ sync_conflict: "sync_conflict";
2930
+ sync_cursor: "sync_cursor";
2931
+ task: "task";
2932
+ team: "team";
2933
+ template: "template";
2934
+ time_entry: "time_entry";
2935
+ tombstone: "tombstone";
2936
+ workspace: "workspace";
2937
+ }>;
2938
+ }, z.core.$strip>>;
2939
+ resolvedAt: z.ZodOptional<z.ZodString>;
2940
+ resolvedBy: z.ZodOptional<z.ZodObject<{
2941
+ principalId: z.ZodString;
2942
+ principalKind: z.ZodEnum<{
2943
+ contractor: "contractor";
2944
+ guest: "guest";
2945
+ member: "member";
2946
+ service_principal: "service_principal";
2947
+ }>;
2948
+ }, z.core.$strip>>;
2949
+ }, z.core.$strip>;
2950
+ }, z.core.$strip>;
2951
+ }, z.core.$strip>, z.ZodObject<{
2952
+ eventId: z.ZodString;
2953
+ eventVersion: z.ZodLiteral<"2.0.0">;
2954
+ aggregate: z.ZodObject<{
2955
+ id: z.ZodString;
2956
+ kind: z.ZodEnum<{
2957
+ activity: "activity";
2958
+ agent_reference: "agent_reference";
2959
+ approval_reference: "approval_reference";
2960
+ attachment: "attachment";
2961
+ automation_reference: "automation_reference";
2962
+ bug: "bug";
2963
+ canvas_reference: "canvas_reference";
2964
+ capture_reference: "capture_reference";
2965
+ collection: "collection";
2966
+ comment: "comment";
2967
+ contractor: "contractor";
2968
+ cross_organization_acl_grant: "cross_organization_acl_grant";
2969
+ custom_field_definition: "custom_field_definition";
2970
+ custom_field_value: "custom_field_value";
2971
+ cycle: "cycle";
2972
+ dependency: "dependency";
2973
+ document_reference: "document_reference";
2974
+ epic: "epic";
2975
+ estimate: "estimate";
2976
+ evidence_reference: "evidence_reference";
2977
+ external_binding: "external_binding";
2978
+ focus_policy: "focus_policy";
2979
+ folder_projection: "folder_projection";
2980
+ form: "form";
2981
+ guest: "guest";
2982
+ habit: "habit";
2983
+ inbox_item: "inbox_item";
2984
+ initiative: "initiative";
2985
+ issue: "issue";
2986
+ key_result: "key_result";
2987
+ list: "list";
2988
+ member: "member";
2989
+ mention: "mention";
2990
+ milestone: "milestone";
2991
+ objective: "objective";
2992
+ occurrence: "occurrence";
2993
+ organization: "organization";
2994
+ planning_intent: "planning_intent";
2995
+ portfolio: "portfolio";
2996
+ program: "program";
2997
+ project: "project";
2998
+ proofing_request: "proofing_request";
2999
+ reaction: "reaction";
3000
+ recurrence_template: "recurrence_template";
3001
+ relationship: "relationship";
3002
+ roadmap: "roadmap";
3003
+ saved_view: "saved_view";
3004
+ schedule_binding_reference: "schedule_binding_reference";
3005
+ service_principal: "service_principal";
3006
+ status_workflow: "status_workflow";
3007
+ story: "story";
3008
+ subtask: "subtask";
3009
+ sync_conflict: "sync_conflict";
3010
+ sync_cursor: "sync_cursor";
3011
+ task: "task";
3012
+ team: "team";
3013
+ template: "template";
3014
+ time_entry: "time_entry";
3015
+ tombstone: "tombstone";
3016
+ workspace: "workspace";
3017
+ }>;
3018
+ }, z.core.$strip>;
3019
+ aggregateRevision: z.ZodNumber;
3020
+ scope: z.ZodObject<{
3021
+ tenantId: z.ZodString;
3022
+ organizationId: z.ZodString;
3023
+ workspaceId: z.ZodString;
3024
+ }, z.core.$strip>;
3025
+ actor: z.ZodObject<{
3026
+ principalId: z.ZodString;
3027
+ principalKind: z.ZodEnum<{
3028
+ contractor: "contractor";
3029
+ guest: "guest";
3030
+ member: "member";
3031
+ service_principal: "service_principal";
3032
+ }>;
3033
+ }, z.core.$strip>;
3034
+ occurredAt: z.ZodString;
3035
+ idempotencyKey: z.ZodString;
3036
+ correlationId: z.ZodString;
3037
+ causationId: z.ZodOptional<z.ZodString>;
3038
+ evidenceRef: z.ZodString;
3039
+ eventType: z.ZodLiteral<"work.attachment.linked">;
3040
+ payload: z.ZodObject<{
3041
+ attachmentRef: z.ZodObject<{
3042
+ id: z.ZodString;
3043
+ kind: z.ZodEnum<{
3044
+ activity: "activity";
3045
+ agent_reference: "agent_reference";
3046
+ approval_reference: "approval_reference";
3047
+ attachment: "attachment";
3048
+ automation_reference: "automation_reference";
3049
+ bug: "bug";
3050
+ canvas_reference: "canvas_reference";
3051
+ capture_reference: "capture_reference";
3052
+ collection: "collection";
3053
+ comment: "comment";
3054
+ contractor: "contractor";
3055
+ cross_organization_acl_grant: "cross_organization_acl_grant";
3056
+ custom_field_definition: "custom_field_definition";
3057
+ custom_field_value: "custom_field_value";
3058
+ cycle: "cycle";
3059
+ dependency: "dependency";
3060
+ document_reference: "document_reference";
3061
+ epic: "epic";
3062
+ estimate: "estimate";
3063
+ evidence_reference: "evidence_reference";
3064
+ external_binding: "external_binding";
3065
+ focus_policy: "focus_policy";
3066
+ folder_projection: "folder_projection";
3067
+ form: "form";
3068
+ guest: "guest";
3069
+ habit: "habit";
3070
+ inbox_item: "inbox_item";
3071
+ initiative: "initiative";
3072
+ issue: "issue";
3073
+ key_result: "key_result";
3074
+ list: "list";
3075
+ member: "member";
3076
+ mention: "mention";
3077
+ milestone: "milestone";
3078
+ objective: "objective";
3079
+ occurrence: "occurrence";
3080
+ organization: "organization";
3081
+ planning_intent: "planning_intent";
3082
+ portfolio: "portfolio";
3083
+ program: "program";
3084
+ project: "project";
3085
+ proofing_request: "proofing_request";
3086
+ reaction: "reaction";
3087
+ recurrence_template: "recurrence_template";
3088
+ relationship: "relationship";
3089
+ roadmap: "roadmap";
3090
+ saved_view: "saved_view";
3091
+ schedule_binding_reference: "schedule_binding_reference";
3092
+ service_principal: "service_principal";
3093
+ status_workflow: "status_workflow";
3094
+ story: "story";
3095
+ subtask: "subtask";
3096
+ sync_conflict: "sync_conflict";
3097
+ sync_cursor: "sync_cursor";
3098
+ task: "task";
3099
+ team: "team";
3100
+ template: "template";
3101
+ time_entry: "time_entry";
3102
+ tombstone: "tombstone";
3103
+ workspace: "workspace";
3104
+ }>;
3105
+ }, z.core.$strip>;
3106
+ }, z.core.$strip>;
3107
+ }, z.core.$strip>, z.ZodObject<{
3108
+ eventId: z.ZodString;
3109
+ eventVersion: z.ZodLiteral<"2.0.0">;
3110
+ aggregate: z.ZodObject<{
3111
+ id: z.ZodString;
3112
+ kind: z.ZodEnum<{
3113
+ activity: "activity";
3114
+ agent_reference: "agent_reference";
3115
+ approval_reference: "approval_reference";
3116
+ attachment: "attachment";
3117
+ automation_reference: "automation_reference";
3118
+ bug: "bug";
3119
+ canvas_reference: "canvas_reference";
3120
+ capture_reference: "capture_reference";
3121
+ collection: "collection";
3122
+ comment: "comment";
3123
+ contractor: "contractor";
3124
+ cross_organization_acl_grant: "cross_organization_acl_grant";
3125
+ custom_field_definition: "custom_field_definition";
3126
+ custom_field_value: "custom_field_value";
3127
+ cycle: "cycle";
3128
+ dependency: "dependency";
3129
+ document_reference: "document_reference";
3130
+ epic: "epic";
3131
+ estimate: "estimate";
3132
+ evidence_reference: "evidence_reference";
3133
+ external_binding: "external_binding";
3134
+ focus_policy: "focus_policy";
3135
+ folder_projection: "folder_projection";
3136
+ form: "form";
3137
+ guest: "guest";
3138
+ habit: "habit";
3139
+ inbox_item: "inbox_item";
3140
+ initiative: "initiative";
3141
+ issue: "issue";
3142
+ key_result: "key_result";
3143
+ list: "list";
3144
+ member: "member";
3145
+ mention: "mention";
3146
+ milestone: "milestone";
3147
+ objective: "objective";
3148
+ occurrence: "occurrence";
3149
+ organization: "organization";
3150
+ planning_intent: "planning_intent";
3151
+ portfolio: "portfolio";
3152
+ program: "program";
3153
+ project: "project";
3154
+ proofing_request: "proofing_request";
3155
+ reaction: "reaction";
3156
+ recurrence_template: "recurrence_template";
3157
+ relationship: "relationship";
3158
+ roadmap: "roadmap";
3159
+ saved_view: "saved_view";
3160
+ schedule_binding_reference: "schedule_binding_reference";
3161
+ service_principal: "service_principal";
3162
+ status_workflow: "status_workflow";
3163
+ story: "story";
3164
+ subtask: "subtask";
3165
+ sync_conflict: "sync_conflict";
3166
+ sync_cursor: "sync_cursor";
3167
+ task: "task";
3168
+ team: "team";
3169
+ template: "template";
3170
+ time_entry: "time_entry";
3171
+ tombstone: "tombstone";
3172
+ workspace: "workspace";
3173
+ }>;
3174
+ }, z.core.$strip>;
3175
+ aggregateRevision: z.ZodNumber;
3176
+ scope: z.ZodObject<{
3177
+ tenantId: z.ZodString;
3178
+ organizationId: z.ZodString;
3179
+ workspaceId: z.ZodString;
3180
+ }, z.core.$strip>;
3181
+ actor: z.ZodObject<{
3182
+ principalId: z.ZodString;
3183
+ principalKind: z.ZodEnum<{
3184
+ contractor: "contractor";
3185
+ guest: "guest";
3186
+ member: "member";
3187
+ service_principal: "service_principal";
3188
+ }>;
3189
+ }, z.core.$strip>;
3190
+ occurredAt: z.ZodString;
3191
+ idempotencyKey: z.ZodString;
3192
+ correlationId: z.ZodString;
3193
+ causationId: z.ZodOptional<z.ZodString>;
3194
+ evidenceRef: z.ZodString;
3195
+ eventType: z.ZodLiteral<"work.custom_field.set">;
3196
+ payload: z.ZodObject<{
3197
+ value: z.ZodObject<{
3198
+ id: z.ZodString;
3199
+ metadata: z.ZodObject<{
3200
+ scope: z.ZodObject<{
3201
+ tenantId: z.ZodString;
3202
+ organizationId: z.ZodString;
3203
+ workspaceId: z.ZodString;
3204
+ }, z.core.$strip>;
3205
+ createdAt: z.ZodString;
3206
+ createdBy: z.ZodObject<{
3207
+ principalId: z.ZodString;
3208
+ principalKind: z.ZodEnum<{
3209
+ contractor: "contractor";
3210
+ guest: "guest";
3211
+ member: "member";
3212
+ service_principal: "service_principal";
3213
+ }>;
3214
+ }, z.core.$strip>;
3215
+ updatedAt: z.ZodString;
3216
+ updatedBy: z.ZodObject<{
3217
+ principalId: z.ZodString;
3218
+ principalKind: z.ZodEnum<{
3219
+ contractor: "contractor";
3220
+ guest: "guest";
3221
+ member: "member";
3222
+ service_principal: "service_principal";
3223
+ }>;
3224
+ }, z.core.$strip>;
3225
+ revision: z.ZodNumber;
3226
+ }, z.core.$strip>;
3227
+ fieldRef: z.ZodObject<{
3228
+ id: z.ZodString;
3229
+ kind: z.ZodEnum<{
3230
+ activity: "activity";
3231
+ agent_reference: "agent_reference";
3232
+ approval_reference: "approval_reference";
3233
+ attachment: "attachment";
3234
+ automation_reference: "automation_reference";
3235
+ bug: "bug";
3236
+ canvas_reference: "canvas_reference";
3237
+ capture_reference: "capture_reference";
3238
+ collection: "collection";
3239
+ comment: "comment";
3240
+ contractor: "contractor";
3241
+ cross_organization_acl_grant: "cross_organization_acl_grant";
3242
+ custom_field_definition: "custom_field_definition";
3243
+ custom_field_value: "custom_field_value";
3244
+ cycle: "cycle";
3245
+ dependency: "dependency";
3246
+ document_reference: "document_reference";
3247
+ epic: "epic";
3248
+ estimate: "estimate";
3249
+ evidence_reference: "evidence_reference";
3250
+ external_binding: "external_binding";
3251
+ focus_policy: "focus_policy";
3252
+ folder_projection: "folder_projection";
3253
+ form: "form";
3254
+ guest: "guest";
3255
+ habit: "habit";
3256
+ inbox_item: "inbox_item";
3257
+ initiative: "initiative";
3258
+ issue: "issue";
3259
+ key_result: "key_result";
3260
+ list: "list";
3261
+ member: "member";
3262
+ mention: "mention";
3263
+ milestone: "milestone";
3264
+ objective: "objective";
3265
+ occurrence: "occurrence";
3266
+ organization: "organization";
3267
+ planning_intent: "planning_intent";
3268
+ portfolio: "portfolio";
3269
+ program: "program";
3270
+ project: "project";
3271
+ proofing_request: "proofing_request";
3272
+ reaction: "reaction";
3273
+ recurrence_template: "recurrence_template";
3274
+ relationship: "relationship";
3275
+ roadmap: "roadmap";
3276
+ saved_view: "saved_view";
3277
+ schedule_binding_reference: "schedule_binding_reference";
3278
+ service_principal: "service_principal";
3279
+ status_workflow: "status_workflow";
3280
+ story: "story";
3281
+ subtask: "subtask";
3282
+ sync_conflict: "sync_conflict";
3283
+ sync_cursor: "sync_cursor";
3284
+ task: "task";
3285
+ team: "team";
3286
+ template: "template";
3287
+ time_entry: "time_entry";
3288
+ tombstone: "tombstone";
3289
+ workspace: "workspace";
3290
+ }>;
3291
+ }, z.core.$strip>;
3292
+ workRef: z.ZodObject<{
3293
+ id: z.ZodString;
3294
+ kind: z.ZodEnum<{
3295
+ activity: "activity";
3296
+ agent_reference: "agent_reference";
3297
+ approval_reference: "approval_reference";
3298
+ attachment: "attachment";
3299
+ automation_reference: "automation_reference";
3300
+ bug: "bug";
3301
+ canvas_reference: "canvas_reference";
3302
+ capture_reference: "capture_reference";
3303
+ collection: "collection";
3304
+ comment: "comment";
3305
+ contractor: "contractor";
3306
+ cross_organization_acl_grant: "cross_organization_acl_grant";
3307
+ custom_field_definition: "custom_field_definition";
3308
+ custom_field_value: "custom_field_value";
3309
+ cycle: "cycle";
3310
+ dependency: "dependency";
3311
+ document_reference: "document_reference";
3312
+ epic: "epic";
3313
+ estimate: "estimate";
3314
+ evidence_reference: "evidence_reference";
3315
+ external_binding: "external_binding";
3316
+ focus_policy: "focus_policy";
3317
+ folder_projection: "folder_projection";
3318
+ form: "form";
3319
+ guest: "guest";
3320
+ habit: "habit";
3321
+ inbox_item: "inbox_item";
3322
+ initiative: "initiative";
3323
+ issue: "issue";
3324
+ key_result: "key_result";
3325
+ list: "list";
3326
+ member: "member";
3327
+ mention: "mention";
3328
+ milestone: "milestone";
3329
+ objective: "objective";
3330
+ occurrence: "occurrence";
3331
+ organization: "organization";
3332
+ planning_intent: "planning_intent";
3333
+ portfolio: "portfolio";
3334
+ program: "program";
3335
+ project: "project";
3336
+ proofing_request: "proofing_request";
3337
+ reaction: "reaction";
3338
+ recurrence_template: "recurrence_template";
3339
+ relationship: "relationship";
3340
+ roadmap: "roadmap";
3341
+ saved_view: "saved_view";
3342
+ schedule_binding_reference: "schedule_binding_reference";
3343
+ service_principal: "service_principal";
3344
+ status_workflow: "status_workflow";
3345
+ story: "story";
3346
+ subtask: "subtask";
3347
+ sync_conflict: "sync_conflict";
3348
+ sync_cursor: "sync_cursor";
3349
+ task: "task";
3350
+ team: "team";
3351
+ template: "template";
3352
+ time_entry: "time_entry";
3353
+ tombstone: "tombstone";
3354
+ workspace: "workspace";
3355
+ }>;
3356
+ }, z.core.$strip>;
3357
+ value: z.ZodUnknown;
3358
+ }, z.core.$strip>;
3359
+ }, z.core.$strip>;
3360
+ }, z.core.$strip>], "eventType">;
3361
+ }, z.core.$strict>;
3362
+ export type WorkTaskStatusRequest = z.infer<typeof WorkTaskStatusRequestSchema>;
3363
+ export declare const WORK_TASK_STATUS_CONTRACT: {
3364
+ readonly key: 'work.task.status.set';
3365
+ readonly version: '1.1.0';
3366
+ readonly method: 'POST';
3367
+ readonly path: '/api/companyos/work/objects/:objectId/status';
3368
+ readonly invariants: readonly ['Current write authority, canonical actor and scope are server-derived and checked in the commit transaction.', 'Only a current unarchived task at the displayed revision can change status; unrelated fields remain unchanged.', 'A category change clears the previous custom status identifier; only an unchanged category may preserve that identifier.', 'Completion timestamps use server time; reopening clears completion time. No owner or deadline is inferred.', 'Identical retries resolve the saved event before current-state validation; changed request keys cannot reuse a receipt.', 'The existing canonical Work service commits the event, idempotency receipt and outbox atomically.'];
3369
+ };