@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,1143 @@
1
+ import { z } from 'zod';
2
+ /** Native execution graph link. Provider relationships never become identity. */
3
+ export declare const WorkDependencySchema: z.ZodIntersection<z.ZodObject<{
4
+ id: z.ZodString;
5
+ metadata: z.ZodObject<{
6
+ scope: z.ZodObject<{
7
+ tenantId: z.ZodString;
8
+ organizationId: z.ZodString;
9
+ workspaceId: z.ZodString;
10
+ }, z.core.$strip>;
11
+ createdAt: z.ZodString;
12
+ createdBy: z.ZodObject<{
13
+ principalId: z.ZodString;
14
+ principalKind: z.ZodEnum<{
15
+ contractor: "contractor";
16
+ guest: "guest";
17
+ member: "member";
18
+ service_principal: "service_principal";
19
+ }>;
20
+ }, z.core.$strip>;
21
+ updatedAt: z.ZodString;
22
+ updatedBy: z.ZodObject<{
23
+ principalId: z.ZodString;
24
+ principalKind: z.ZodEnum<{
25
+ contractor: "contractor";
26
+ guest: "guest";
27
+ member: "member";
28
+ service_principal: "service_principal";
29
+ }>;
30
+ }, z.core.$strip>;
31
+ revision: z.ZodNumber;
32
+ }, z.core.$strip>;
33
+ kind: z.ZodEnum<{
34
+ blocked_by: "blocked_by";
35
+ blocks: "blocks";
36
+ }>;
37
+ lagMinutes: z.ZodDefault<z.ZodNumber>;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ from: z.ZodObject<{
40
+ id: z.ZodString;
41
+ kind: z.ZodEnum<{
42
+ activity: "activity";
43
+ agent_reference: "agent_reference";
44
+ approval_reference: "approval_reference";
45
+ attachment: "attachment";
46
+ automation_reference: "automation_reference";
47
+ bug: "bug";
48
+ canvas_reference: "canvas_reference";
49
+ capture_reference: "capture_reference";
50
+ collection: "collection";
51
+ comment: "comment";
52
+ contractor: "contractor";
53
+ cross_organization_acl_grant: "cross_organization_acl_grant";
54
+ custom_field_definition: "custom_field_definition";
55
+ custom_field_value: "custom_field_value";
56
+ cycle: "cycle";
57
+ dependency: "dependency";
58
+ document_reference: "document_reference";
59
+ epic: "epic";
60
+ estimate: "estimate";
61
+ evidence_reference: "evidence_reference";
62
+ external_binding: "external_binding";
63
+ focus_policy: "focus_policy";
64
+ folder_projection: "folder_projection";
65
+ form: "form";
66
+ guest: "guest";
67
+ habit: "habit";
68
+ inbox_item: "inbox_item";
69
+ initiative: "initiative";
70
+ issue: "issue";
71
+ key_result: "key_result";
72
+ list: "list";
73
+ member: "member";
74
+ mention: "mention";
75
+ milestone: "milestone";
76
+ objective: "objective";
77
+ occurrence: "occurrence";
78
+ organization: "organization";
79
+ planning_intent: "planning_intent";
80
+ portfolio: "portfolio";
81
+ program: "program";
82
+ project: "project";
83
+ proofing_request: "proofing_request";
84
+ reaction: "reaction";
85
+ recurrence_template: "recurrence_template";
86
+ relationship: "relationship";
87
+ roadmap: "roadmap";
88
+ saved_view: "saved_view";
89
+ schedule_binding_reference: "schedule_binding_reference";
90
+ service_principal: "service_principal";
91
+ status_workflow: "status_workflow";
92
+ story: "story";
93
+ subtask: "subtask";
94
+ sync_conflict: "sync_conflict";
95
+ sync_cursor: "sync_cursor";
96
+ task: "task";
97
+ team: "team";
98
+ template: "template";
99
+ time_entry: "time_entry";
100
+ tombstone: "tombstone";
101
+ workspace: "workspace";
102
+ }>;
103
+ }, z.core.$strip>;
104
+ to: z.ZodObject<{
105
+ id: z.ZodString;
106
+ kind: z.ZodEnum<{
107
+ activity: "activity";
108
+ agent_reference: "agent_reference";
109
+ approval_reference: "approval_reference";
110
+ attachment: "attachment";
111
+ automation_reference: "automation_reference";
112
+ bug: "bug";
113
+ canvas_reference: "canvas_reference";
114
+ capture_reference: "capture_reference";
115
+ collection: "collection";
116
+ comment: "comment";
117
+ contractor: "contractor";
118
+ cross_organization_acl_grant: "cross_organization_acl_grant";
119
+ custom_field_definition: "custom_field_definition";
120
+ custom_field_value: "custom_field_value";
121
+ cycle: "cycle";
122
+ dependency: "dependency";
123
+ document_reference: "document_reference";
124
+ epic: "epic";
125
+ estimate: "estimate";
126
+ evidence_reference: "evidence_reference";
127
+ external_binding: "external_binding";
128
+ focus_policy: "focus_policy";
129
+ folder_projection: "folder_projection";
130
+ form: "form";
131
+ guest: "guest";
132
+ habit: "habit";
133
+ inbox_item: "inbox_item";
134
+ initiative: "initiative";
135
+ issue: "issue";
136
+ key_result: "key_result";
137
+ list: "list";
138
+ member: "member";
139
+ mention: "mention";
140
+ milestone: "milestone";
141
+ objective: "objective";
142
+ occurrence: "occurrence";
143
+ organization: "organization";
144
+ planning_intent: "planning_intent";
145
+ portfolio: "portfolio";
146
+ program: "program";
147
+ project: "project";
148
+ proofing_request: "proofing_request";
149
+ reaction: "reaction";
150
+ recurrence_template: "recurrence_template";
151
+ relationship: "relationship";
152
+ roadmap: "roadmap";
153
+ saved_view: "saved_view";
154
+ schedule_binding_reference: "schedule_binding_reference";
155
+ service_principal: "service_principal";
156
+ status_workflow: "status_workflow";
157
+ story: "story";
158
+ subtask: "subtask";
159
+ sync_conflict: "sync_conflict";
160
+ sync_cursor: "sync_cursor";
161
+ task: "task";
162
+ team: "team";
163
+ template: "template";
164
+ time_entry: "time_entry";
165
+ tombstone: "tombstone";
166
+ workspace: "workspace";
167
+ }>;
168
+ }, z.core.$strip>;
169
+ }, z.core.$strip>>;
170
+ export type WorkDependency = z.infer<typeof WorkDependencySchema>;
171
+ export declare const WorkRelationshipEdgeSchema: z.ZodIntersection<z.ZodObject<{
172
+ id: z.ZodString;
173
+ metadata: z.ZodObject<{
174
+ scope: z.ZodObject<{
175
+ tenantId: z.ZodString;
176
+ organizationId: z.ZodString;
177
+ workspaceId: z.ZodString;
178
+ }, z.core.$strip>;
179
+ createdAt: z.ZodString;
180
+ createdBy: z.ZodObject<{
181
+ principalId: z.ZodString;
182
+ principalKind: z.ZodEnum<{
183
+ contractor: "contractor";
184
+ guest: "guest";
185
+ member: "member";
186
+ service_principal: "service_principal";
187
+ }>;
188
+ }, z.core.$strip>;
189
+ updatedAt: z.ZodString;
190
+ updatedBy: z.ZodObject<{
191
+ principalId: z.ZodString;
192
+ principalKind: z.ZodEnum<{
193
+ contractor: "contractor";
194
+ guest: "guest";
195
+ member: "member";
196
+ service_principal: "service_principal";
197
+ }>;
198
+ }, z.core.$strip>;
199
+ revision: z.ZodNumber;
200
+ }, z.core.$strip>;
201
+ kind: z.ZodEnum<{
202
+ blocked_by: "blocked_by";
203
+ blocks: "blocks";
204
+ child: "child";
205
+ duplicated_by: "duplicated_by";
206
+ duplicates: "duplicates";
207
+ multi_homed_in: "multi_homed_in";
208
+ parent: "parent";
209
+ relates_to: "relates_to";
210
+ supersedes: "supersedes";
211
+ }>;
212
+ }, z.core.$strip>, z.ZodObject<{
213
+ from: z.ZodObject<{
214
+ id: z.ZodString;
215
+ kind: z.ZodEnum<{
216
+ activity: "activity";
217
+ agent_reference: "agent_reference";
218
+ approval_reference: "approval_reference";
219
+ attachment: "attachment";
220
+ automation_reference: "automation_reference";
221
+ bug: "bug";
222
+ canvas_reference: "canvas_reference";
223
+ capture_reference: "capture_reference";
224
+ collection: "collection";
225
+ comment: "comment";
226
+ contractor: "contractor";
227
+ cross_organization_acl_grant: "cross_organization_acl_grant";
228
+ custom_field_definition: "custom_field_definition";
229
+ custom_field_value: "custom_field_value";
230
+ cycle: "cycle";
231
+ dependency: "dependency";
232
+ document_reference: "document_reference";
233
+ epic: "epic";
234
+ estimate: "estimate";
235
+ evidence_reference: "evidence_reference";
236
+ external_binding: "external_binding";
237
+ focus_policy: "focus_policy";
238
+ folder_projection: "folder_projection";
239
+ form: "form";
240
+ guest: "guest";
241
+ habit: "habit";
242
+ inbox_item: "inbox_item";
243
+ initiative: "initiative";
244
+ issue: "issue";
245
+ key_result: "key_result";
246
+ list: "list";
247
+ member: "member";
248
+ mention: "mention";
249
+ milestone: "milestone";
250
+ objective: "objective";
251
+ occurrence: "occurrence";
252
+ organization: "organization";
253
+ planning_intent: "planning_intent";
254
+ portfolio: "portfolio";
255
+ program: "program";
256
+ project: "project";
257
+ proofing_request: "proofing_request";
258
+ reaction: "reaction";
259
+ recurrence_template: "recurrence_template";
260
+ relationship: "relationship";
261
+ roadmap: "roadmap";
262
+ saved_view: "saved_view";
263
+ schedule_binding_reference: "schedule_binding_reference";
264
+ service_principal: "service_principal";
265
+ status_workflow: "status_workflow";
266
+ story: "story";
267
+ subtask: "subtask";
268
+ sync_conflict: "sync_conflict";
269
+ sync_cursor: "sync_cursor";
270
+ task: "task";
271
+ team: "team";
272
+ template: "template";
273
+ time_entry: "time_entry";
274
+ tombstone: "tombstone";
275
+ workspace: "workspace";
276
+ }>;
277
+ }, z.core.$strip>;
278
+ to: z.ZodObject<{
279
+ id: z.ZodString;
280
+ kind: z.ZodEnum<{
281
+ activity: "activity";
282
+ agent_reference: "agent_reference";
283
+ approval_reference: "approval_reference";
284
+ attachment: "attachment";
285
+ automation_reference: "automation_reference";
286
+ bug: "bug";
287
+ canvas_reference: "canvas_reference";
288
+ capture_reference: "capture_reference";
289
+ collection: "collection";
290
+ comment: "comment";
291
+ contractor: "contractor";
292
+ cross_organization_acl_grant: "cross_organization_acl_grant";
293
+ custom_field_definition: "custom_field_definition";
294
+ custom_field_value: "custom_field_value";
295
+ cycle: "cycle";
296
+ dependency: "dependency";
297
+ document_reference: "document_reference";
298
+ epic: "epic";
299
+ estimate: "estimate";
300
+ evidence_reference: "evidence_reference";
301
+ external_binding: "external_binding";
302
+ focus_policy: "focus_policy";
303
+ folder_projection: "folder_projection";
304
+ form: "form";
305
+ guest: "guest";
306
+ habit: "habit";
307
+ inbox_item: "inbox_item";
308
+ initiative: "initiative";
309
+ issue: "issue";
310
+ key_result: "key_result";
311
+ list: "list";
312
+ member: "member";
313
+ mention: "mention";
314
+ milestone: "milestone";
315
+ objective: "objective";
316
+ occurrence: "occurrence";
317
+ organization: "organization";
318
+ planning_intent: "planning_intent";
319
+ portfolio: "portfolio";
320
+ program: "program";
321
+ project: "project";
322
+ proofing_request: "proofing_request";
323
+ reaction: "reaction";
324
+ recurrence_template: "recurrence_template";
325
+ relationship: "relationship";
326
+ roadmap: "roadmap";
327
+ saved_view: "saved_view";
328
+ schedule_binding_reference: "schedule_binding_reference";
329
+ service_principal: "service_principal";
330
+ status_workflow: "status_workflow";
331
+ story: "story";
332
+ subtask: "subtask";
333
+ sync_conflict: "sync_conflict";
334
+ sync_cursor: "sync_cursor";
335
+ task: "task";
336
+ team: "team";
337
+ template: "template";
338
+ time_entry: "time_entry";
339
+ tombstone: "tombstone";
340
+ workspace: "workspace";
341
+ }>;
342
+ }, z.core.$strip>;
343
+ }, z.core.$strip>>;
344
+ export type WorkRelationshipEdge = z.infer<typeof WorkRelationshipEdgeSchema>;
345
+ export declare const WorkCommentSchema: z.ZodObject<{
346
+ id: z.ZodString;
347
+ metadata: z.ZodObject<{
348
+ scope: z.ZodObject<{
349
+ tenantId: z.ZodString;
350
+ organizationId: z.ZodString;
351
+ workspaceId: z.ZodString;
352
+ }, z.core.$strip>;
353
+ createdAt: z.ZodString;
354
+ createdBy: z.ZodObject<{
355
+ principalId: z.ZodString;
356
+ principalKind: z.ZodEnum<{
357
+ contractor: "contractor";
358
+ guest: "guest";
359
+ member: "member";
360
+ service_principal: "service_principal";
361
+ }>;
362
+ }, z.core.$strip>;
363
+ updatedAt: z.ZodString;
364
+ updatedBy: z.ZodObject<{
365
+ principalId: z.ZodString;
366
+ principalKind: z.ZodEnum<{
367
+ contractor: "contractor";
368
+ guest: "guest";
369
+ member: "member";
370
+ service_principal: "service_principal";
371
+ }>;
372
+ }, z.core.$strip>;
373
+ revision: z.ZodNumber;
374
+ }, z.core.$strip>;
375
+ workRef: z.ZodObject<{
376
+ id: z.ZodString;
377
+ kind: z.ZodEnum<{
378
+ activity: "activity";
379
+ agent_reference: "agent_reference";
380
+ approval_reference: "approval_reference";
381
+ attachment: "attachment";
382
+ automation_reference: "automation_reference";
383
+ bug: "bug";
384
+ canvas_reference: "canvas_reference";
385
+ capture_reference: "capture_reference";
386
+ collection: "collection";
387
+ comment: "comment";
388
+ contractor: "contractor";
389
+ cross_organization_acl_grant: "cross_organization_acl_grant";
390
+ custom_field_definition: "custom_field_definition";
391
+ custom_field_value: "custom_field_value";
392
+ cycle: "cycle";
393
+ dependency: "dependency";
394
+ document_reference: "document_reference";
395
+ epic: "epic";
396
+ estimate: "estimate";
397
+ evidence_reference: "evidence_reference";
398
+ external_binding: "external_binding";
399
+ focus_policy: "focus_policy";
400
+ folder_projection: "folder_projection";
401
+ form: "form";
402
+ guest: "guest";
403
+ habit: "habit";
404
+ inbox_item: "inbox_item";
405
+ initiative: "initiative";
406
+ issue: "issue";
407
+ key_result: "key_result";
408
+ list: "list";
409
+ member: "member";
410
+ mention: "mention";
411
+ milestone: "milestone";
412
+ objective: "objective";
413
+ occurrence: "occurrence";
414
+ organization: "organization";
415
+ planning_intent: "planning_intent";
416
+ portfolio: "portfolio";
417
+ program: "program";
418
+ project: "project";
419
+ proofing_request: "proofing_request";
420
+ reaction: "reaction";
421
+ recurrence_template: "recurrence_template";
422
+ relationship: "relationship";
423
+ roadmap: "roadmap";
424
+ saved_view: "saved_view";
425
+ schedule_binding_reference: "schedule_binding_reference";
426
+ service_principal: "service_principal";
427
+ status_workflow: "status_workflow";
428
+ story: "story";
429
+ subtask: "subtask";
430
+ sync_conflict: "sync_conflict";
431
+ sync_cursor: "sync_cursor";
432
+ task: "task";
433
+ team: "team";
434
+ template: "template";
435
+ time_entry: "time_entry";
436
+ tombstone: "tombstone";
437
+ workspace: "workspace";
438
+ }>;
439
+ }, z.core.$strip>;
440
+ body: z.ZodString;
441
+ mentionedPrincipalIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
442
+ attachmentRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
443
+ id: z.ZodString;
444
+ kind: z.ZodEnum<{
445
+ activity: "activity";
446
+ agent_reference: "agent_reference";
447
+ approval_reference: "approval_reference";
448
+ attachment: "attachment";
449
+ automation_reference: "automation_reference";
450
+ bug: "bug";
451
+ canvas_reference: "canvas_reference";
452
+ capture_reference: "capture_reference";
453
+ collection: "collection";
454
+ comment: "comment";
455
+ contractor: "contractor";
456
+ cross_organization_acl_grant: "cross_organization_acl_grant";
457
+ custom_field_definition: "custom_field_definition";
458
+ custom_field_value: "custom_field_value";
459
+ cycle: "cycle";
460
+ dependency: "dependency";
461
+ document_reference: "document_reference";
462
+ epic: "epic";
463
+ estimate: "estimate";
464
+ evidence_reference: "evidence_reference";
465
+ external_binding: "external_binding";
466
+ focus_policy: "focus_policy";
467
+ folder_projection: "folder_projection";
468
+ form: "form";
469
+ guest: "guest";
470
+ habit: "habit";
471
+ inbox_item: "inbox_item";
472
+ initiative: "initiative";
473
+ issue: "issue";
474
+ key_result: "key_result";
475
+ list: "list";
476
+ member: "member";
477
+ mention: "mention";
478
+ milestone: "milestone";
479
+ objective: "objective";
480
+ occurrence: "occurrence";
481
+ organization: "organization";
482
+ planning_intent: "planning_intent";
483
+ portfolio: "portfolio";
484
+ program: "program";
485
+ project: "project";
486
+ proofing_request: "proofing_request";
487
+ reaction: "reaction";
488
+ recurrence_template: "recurrence_template";
489
+ relationship: "relationship";
490
+ roadmap: "roadmap";
491
+ saved_view: "saved_view";
492
+ schedule_binding_reference: "schedule_binding_reference";
493
+ service_principal: "service_principal";
494
+ status_workflow: "status_workflow";
495
+ story: "story";
496
+ subtask: "subtask";
497
+ sync_conflict: "sync_conflict";
498
+ sync_cursor: "sync_cursor";
499
+ task: "task";
500
+ team: "team";
501
+ template: "template";
502
+ time_entry: "time_entry";
503
+ tombstone: "tombstone";
504
+ workspace: "workspace";
505
+ }>;
506
+ }, z.core.$strip>>>;
507
+ parentCommentRef: z.ZodOptional<z.ZodObject<{
508
+ id: z.ZodString;
509
+ kind: z.ZodEnum<{
510
+ activity: "activity";
511
+ agent_reference: "agent_reference";
512
+ approval_reference: "approval_reference";
513
+ attachment: "attachment";
514
+ automation_reference: "automation_reference";
515
+ bug: "bug";
516
+ canvas_reference: "canvas_reference";
517
+ capture_reference: "capture_reference";
518
+ collection: "collection";
519
+ comment: "comment";
520
+ contractor: "contractor";
521
+ cross_organization_acl_grant: "cross_organization_acl_grant";
522
+ custom_field_definition: "custom_field_definition";
523
+ custom_field_value: "custom_field_value";
524
+ cycle: "cycle";
525
+ dependency: "dependency";
526
+ document_reference: "document_reference";
527
+ epic: "epic";
528
+ estimate: "estimate";
529
+ evidence_reference: "evidence_reference";
530
+ external_binding: "external_binding";
531
+ focus_policy: "focus_policy";
532
+ folder_projection: "folder_projection";
533
+ form: "form";
534
+ guest: "guest";
535
+ habit: "habit";
536
+ inbox_item: "inbox_item";
537
+ initiative: "initiative";
538
+ issue: "issue";
539
+ key_result: "key_result";
540
+ list: "list";
541
+ member: "member";
542
+ mention: "mention";
543
+ milestone: "milestone";
544
+ objective: "objective";
545
+ occurrence: "occurrence";
546
+ organization: "organization";
547
+ planning_intent: "planning_intent";
548
+ portfolio: "portfolio";
549
+ program: "program";
550
+ project: "project";
551
+ proofing_request: "proofing_request";
552
+ reaction: "reaction";
553
+ recurrence_template: "recurrence_template";
554
+ relationship: "relationship";
555
+ roadmap: "roadmap";
556
+ saved_view: "saved_view";
557
+ schedule_binding_reference: "schedule_binding_reference";
558
+ service_principal: "service_principal";
559
+ status_workflow: "status_workflow";
560
+ story: "story";
561
+ subtask: "subtask";
562
+ sync_conflict: "sync_conflict";
563
+ sync_cursor: "sync_cursor";
564
+ task: "task";
565
+ team: "team";
566
+ template: "template";
567
+ time_entry: "time_entry";
568
+ tombstone: "tombstone";
569
+ workspace: "workspace";
570
+ }>;
571
+ }, z.core.$strip>>;
572
+ resolvedAt: z.ZodOptional<z.ZodString>;
573
+ resolvedBy: z.ZodOptional<z.ZodObject<{
574
+ principalId: z.ZodString;
575
+ principalKind: z.ZodEnum<{
576
+ contractor: "contractor";
577
+ guest: "guest";
578
+ member: "member";
579
+ service_principal: "service_principal";
580
+ }>;
581
+ }, z.core.$strip>>;
582
+ }, z.core.$strip>;
583
+ export type WorkComment = z.infer<typeof WorkCommentSchema>;
584
+ export declare const WorkStatusDefinitionSchema: z.ZodObject<{
585
+ id: z.ZodString;
586
+ name: z.ZodString;
587
+ category: z.ZodEnum<{
588
+ backlog: "backlog";
589
+ cancelled: "cancelled";
590
+ completed: "completed";
591
+ started: "started";
592
+ unstarted: "unstarted";
593
+ }>;
594
+ position: z.ZodNumber;
595
+ color: z.ZodOptional<z.ZodString>;
596
+ }, z.core.$strip>;
597
+ export type WorkStatusDefinition = z.infer<typeof WorkStatusDefinitionSchema>;
598
+ export declare const WorkStatusWorkflowSchema: z.ZodObject<{
599
+ id: z.ZodString;
600
+ metadata: z.ZodObject<{
601
+ scope: z.ZodObject<{
602
+ tenantId: z.ZodString;
603
+ organizationId: z.ZodString;
604
+ workspaceId: z.ZodString;
605
+ }, z.core.$strip>;
606
+ createdAt: z.ZodString;
607
+ createdBy: z.ZodObject<{
608
+ principalId: z.ZodString;
609
+ principalKind: z.ZodEnum<{
610
+ contractor: "contractor";
611
+ guest: "guest";
612
+ member: "member";
613
+ service_principal: "service_principal";
614
+ }>;
615
+ }, z.core.$strip>;
616
+ updatedAt: z.ZodString;
617
+ updatedBy: z.ZodObject<{
618
+ principalId: z.ZodString;
619
+ principalKind: z.ZodEnum<{
620
+ contractor: "contractor";
621
+ guest: "guest";
622
+ member: "member";
623
+ service_principal: "service_principal";
624
+ }>;
625
+ }, z.core.$strip>;
626
+ revision: z.ZodNumber;
627
+ }, z.core.$strip>;
628
+ title: z.ZodString;
629
+ statuses: z.ZodArray<z.ZodObject<{
630
+ id: z.ZodString;
631
+ name: z.ZodString;
632
+ category: z.ZodEnum<{
633
+ backlog: "backlog";
634
+ cancelled: "cancelled";
635
+ completed: "completed";
636
+ started: "started";
637
+ unstarted: "unstarted";
638
+ }>;
639
+ position: z.ZodNumber;
640
+ color: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$strip>>;
642
+ allowedTransitions: z.ZodArray<z.ZodObject<{
643
+ fromStatusId: z.ZodString;
644
+ toStatusId: z.ZodString;
645
+ }, z.core.$strip>>;
646
+ }, z.core.$strip>;
647
+ export type WorkStatusWorkflow = z.infer<typeof WorkStatusWorkflowSchema>;
648
+ export declare const WorkCustomFieldDefinitionSchema: z.ZodObject<{
649
+ id: z.ZodString;
650
+ metadata: z.ZodObject<{
651
+ scope: z.ZodObject<{
652
+ tenantId: z.ZodString;
653
+ organizationId: z.ZodString;
654
+ workspaceId: z.ZodString;
655
+ }, z.core.$strip>;
656
+ createdAt: z.ZodString;
657
+ createdBy: z.ZodObject<{
658
+ principalId: z.ZodString;
659
+ principalKind: z.ZodEnum<{
660
+ contractor: "contractor";
661
+ guest: "guest";
662
+ member: "member";
663
+ service_principal: "service_principal";
664
+ }>;
665
+ }, z.core.$strip>;
666
+ updatedAt: z.ZodString;
667
+ updatedBy: z.ZodObject<{
668
+ principalId: z.ZodString;
669
+ principalKind: z.ZodEnum<{
670
+ contractor: "contractor";
671
+ guest: "guest";
672
+ member: "member";
673
+ service_principal: "service_principal";
674
+ }>;
675
+ }, z.core.$strip>;
676
+ revision: z.ZodNumber;
677
+ }, z.core.$strip>;
678
+ name: z.ZodString;
679
+ fieldType: z.ZodEnum<{
680
+ checkbox: "checkbox";
681
+ date: "date";
682
+ formula: "formula";
683
+ multi_select: "multi_select";
684
+ number: "number";
685
+ person: "person";
686
+ select: "select";
687
+ text: "text";
688
+ url: "url";
689
+ }>;
690
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
691
+ id: z.ZodString;
692
+ label: z.ZodString;
693
+ }, z.core.$strip>>>;
694
+ formula: z.ZodOptional<z.ZodString>;
695
+ required: z.ZodDefault<z.ZodBoolean>;
696
+ }, z.core.$strip>;
697
+ export type WorkCustomFieldDefinition = z.infer<typeof WorkCustomFieldDefinitionSchema>;
698
+ /** A typed-by-definition value; the definition owns validation/formula semantics. */
699
+ export declare const WorkCustomFieldValueSchema: z.ZodObject<{
700
+ id: z.ZodString;
701
+ metadata: z.ZodObject<{
702
+ scope: z.ZodObject<{
703
+ tenantId: z.ZodString;
704
+ organizationId: z.ZodString;
705
+ workspaceId: z.ZodString;
706
+ }, z.core.$strip>;
707
+ createdAt: z.ZodString;
708
+ createdBy: z.ZodObject<{
709
+ principalId: z.ZodString;
710
+ principalKind: z.ZodEnum<{
711
+ contractor: "contractor";
712
+ guest: "guest";
713
+ member: "member";
714
+ service_principal: "service_principal";
715
+ }>;
716
+ }, z.core.$strip>;
717
+ updatedAt: z.ZodString;
718
+ updatedBy: z.ZodObject<{
719
+ principalId: z.ZodString;
720
+ principalKind: z.ZodEnum<{
721
+ contractor: "contractor";
722
+ guest: "guest";
723
+ member: "member";
724
+ service_principal: "service_principal";
725
+ }>;
726
+ }, z.core.$strip>;
727
+ revision: z.ZodNumber;
728
+ }, z.core.$strip>;
729
+ fieldRef: z.ZodObject<{
730
+ id: z.ZodString;
731
+ kind: z.ZodEnum<{
732
+ activity: "activity";
733
+ agent_reference: "agent_reference";
734
+ approval_reference: "approval_reference";
735
+ attachment: "attachment";
736
+ automation_reference: "automation_reference";
737
+ bug: "bug";
738
+ canvas_reference: "canvas_reference";
739
+ capture_reference: "capture_reference";
740
+ collection: "collection";
741
+ comment: "comment";
742
+ contractor: "contractor";
743
+ cross_organization_acl_grant: "cross_organization_acl_grant";
744
+ custom_field_definition: "custom_field_definition";
745
+ custom_field_value: "custom_field_value";
746
+ cycle: "cycle";
747
+ dependency: "dependency";
748
+ document_reference: "document_reference";
749
+ epic: "epic";
750
+ estimate: "estimate";
751
+ evidence_reference: "evidence_reference";
752
+ external_binding: "external_binding";
753
+ focus_policy: "focus_policy";
754
+ folder_projection: "folder_projection";
755
+ form: "form";
756
+ guest: "guest";
757
+ habit: "habit";
758
+ inbox_item: "inbox_item";
759
+ initiative: "initiative";
760
+ issue: "issue";
761
+ key_result: "key_result";
762
+ list: "list";
763
+ member: "member";
764
+ mention: "mention";
765
+ milestone: "milestone";
766
+ objective: "objective";
767
+ occurrence: "occurrence";
768
+ organization: "organization";
769
+ planning_intent: "planning_intent";
770
+ portfolio: "portfolio";
771
+ program: "program";
772
+ project: "project";
773
+ proofing_request: "proofing_request";
774
+ reaction: "reaction";
775
+ recurrence_template: "recurrence_template";
776
+ relationship: "relationship";
777
+ roadmap: "roadmap";
778
+ saved_view: "saved_view";
779
+ schedule_binding_reference: "schedule_binding_reference";
780
+ service_principal: "service_principal";
781
+ status_workflow: "status_workflow";
782
+ story: "story";
783
+ subtask: "subtask";
784
+ sync_conflict: "sync_conflict";
785
+ sync_cursor: "sync_cursor";
786
+ task: "task";
787
+ team: "team";
788
+ template: "template";
789
+ time_entry: "time_entry";
790
+ tombstone: "tombstone";
791
+ workspace: "workspace";
792
+ }>;
793
+ }, z.core.$strip>;
794
+ workRef: z.ZodObject<{
795
+ id: z.ZodString;
796
+ kind: z.ZodEnum<{
797
+ activity: "activity";
798
+ agent_reference: "agent_reference";
799
+ approval_reference: "approval_reference";
800
+ attachment: "attachment";
801
+ automation_reference: "automation_reference";
802
+ bug: "bug";
803
+ canvas_reference: "canvas_reference";
804
+ capture_reference: "capture_reference";
805
+ collection: "collection";
806
+ comment: "comment";
807
+ contractor: "contractor";
808
+ cross_organization_acl_grant: "cross_organization_acl_grant";
809
+ custom_field_definition: "custom_field_definition";
810
+ custom_field_value: "custom_field_value";
811
+ cycle: "cycle";
812
+ dependency: "dependency";
813
+ document_reference: "document_reference";
814
+ epic: "epic";
815
+ estimate: "estimate";
816
+ evidence_reference: "evidence_reference";
817
+ external_binding: "external_binding";
818
+ focus_policy: "focus_policy";
819
+ folder_projection: "folder_projection";
820
+ form: "form";
821
+ guest: "guest";
822
+ habit: "habit";
823
+ inbox_item: "inbox_item";
824
+ initiative: "initiative";
825
+ issue: "issue";
826
+ key_result: "key_result";
827
+ list: "list";
828
+ member: "member";
829
+ mention: "mention";
830
+ milestone: "milestone";
831
+ objective: "objective";
832
+ occurrence: "occurrence";
833
+ organization: "organization";
834
+ planning_intent: "planning_intent";
835
+ portfolio: "portfolio";
836
+ program: "program";
837
+ project: "project";
838
+ proofing_request: "proofing_request";
839
+ reaction: "reaction";
840
+ recurrence_template: "recurrence_template";
841
+ relationship: "relationship";
842
+ roadmap: "roadmap";
843
+ saved_view: "saved_view";
844
+ schedule_binding_reference: "schedule_binding_reference";
845
+ service_principal: "service_principal";
846
+ status_workflow: "status_workflow";
847
+ story: "story";
848
+ subtask: "subtask";
849
+ sync_conflict: "sync_conflict";
850
+ sync_cursor: "sync_cursor";
851
+ task: "task";
852
+ team: "team";
853
+ template: "template";
854
+ time_entry: "time_entry";
855
+ tombstone: "tombstone";
856
+ workspace: "workspace";
857
+ }>;
858
+ }, z.core.$strip>;
859
+ value: z.ZodUnknown;
860
+ }, z.core.$strip>;
861
+ export type WorkCustomFieldValue = z.infer<typeof WorkCustomFieldValueSchema>;
862
+ export declare const WorkSavedViewSchema: z.ZodObject<{
863
+ id: z.ZodString;
864
+ metadata: z.ZodObject<{
865
+ scope: z.ZodObject<{
866
+ tenantId: z.ZodString;
867
+ organizationId: z.ZodString;
868
+ workspaceId: z.ZodString;
869
+ }, z.core.$strip>;
870
+ createdAt: z.ZodString;
871
+ createdBy: z.ZodObject<{
872
+ principalId: z.ZodString;
873
+ principalKind: z.ZodEnum<{
874
+ contractor: "contractor";
875
+ guest: "guest";
876
+ member: "member";
877
+ service_principal: "service_principal";
878
+ }>;
879
+ }, z.core.$strip>;
880
+ updatedAt: z.ZodString;
881
+ updatedBy: z.ZodObject<{
882
+ principalId: z.ZodString;
883
+ principalKind: z.ZodEnum<{
884
+ contractor: "contractor";
885
+ guest: "guest";
886
+ member: "member";
887
+ service_principal: "service_principal";
888
+ }>;
889
+ }, z.core.$strip>;
890
+ revision: z.ZodNumber;
891
+ }, z.core.$strip>;
892
+ name: z.ZodString;
893
+ viewType: z.ZodEnum<{
894
+ board: "board";
895
+ calendar: "calendar";
896
+ gantt: "gantt";
897
+ list: "list";
898
+ table: "table";
899
+ timeline: "timeline";
900
+ workload: "workload";
901
+ }>;
902
+ containerRef: z.ZodObject<{
903
+ id: z.ZodString;
904
+ kind: z.ZodEnum<{
905
+ activity: "activity";
906
+ agent_reference: "agent_reference";
907
+ approval_reference: "approval_reference";
908
+ attachment: "attachment";
909
+ automation_reference: "automation_reference";
910
+ bug: "bug";
911
+ canvas_reference: "canvas_reference";
912
+ capture_reference: "capture_reference";
913
+ collection: "collection";
914
+ comment: "comment";
915
+ contractor: "contractor";
916
+ cross_organization_acl_grant: "cross_organization_acl_grant";
917
+ custom_field_definition: "custom_field_definition";
918
+ custom_field_value: "custom_field_value";
919
+ cycle: "cycle";
920
+ dependency: "dependency";
921
+ document_reference: "document_reference";
922
+ epic: "epic";
923
+ estimate: "estimate";
924
+ evidence_reference: "evidence_reference";
925
+ external_binding: "external_binding";
926
+ focus_policy: "focus_policy";
927
+ folder_projection: "folder_projection";
928
+ form: "form";
929
+ guest: "guest";
930
+ habit: "habit";
931
+ inbox_item: "inbox_item";
932
+ initiative: "initiative";
933
+ issue: "issue";
934
+ key_result: "key_result";
935
+ list: "list";
936
+ member: "member";
937
+ mention: "mention";
938
+ milestone: "milestone";
939
+ objective: "objective";
940
+ occurrence: "occurrence";
941
+ organization: "organization";
942
+ planning_intent: "planning_intent";
943
+ portfolio: "portfolio";
944
+ program: "program";
945
+ project: "project";
946
+ proofing_request: "proofing_request";
947
+ reaction: "reaction";
948
+ recurrence_template: "recurrence_template";
949
+ relationship: "relationship";
950
+ roadmap: "roadmap";
951
+ saved_view: "saved_view";
952
+ schedule_binding_reference: "schedule_binding_reference";
953
+ service_principal: "service_principal";
954
+ status_workflow: "status_workflow";
955
+ story: "story";
956
+ subtask: "subtask";
957
+ sync_conflict: "sync_conflict";
958
+ sync_cursor: "sync_cursor";
959
+ task: "task";
960
+ team: "team";
961
+ template: "template";
962
+ time_entry: "time_entry";
963
+ tombstone: "tombstone";
964
+ workspace: "workspace";
965
+ }>;
966
+ }, z.core.$strip>;
967
+ filter: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
968
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
969
+ field: z.ZodString;
970
+ direction: z.ZodEnum<{
971
+ asc: "asc";
972
+ desc: "desc";
973
+ }>;
974
+ }, z.core.$strip>>>;
975
+ groupBy: z.ZodOptional<z.ZodString>;
976
+ sharedWith: z.ZodDefault<z.ZodArray<z.ZodObject<{
977
+ id: z.ZodString;
978
+ kind: z.ZodEnum<{
979
+ activity: "activity";
980
+ agent_reference: "agent_reference";
981
+ approval_reference: "approval_reference";
982
+ attachment: "attachment";
983
+ automation_reference: "automation_reference";
984
+ bug: "bug";
985
+ canvas_reference: "canvas_reference";
986
+ capture_reference: "capture_reference";
987
+ collection: "collection";
988
+ comment: "comment";
989
+ contractor: "contractor";
990
+ cross_organization_acl_grant: "cross_organization_acl_grant";
991
+ custom_field_definition: "custom_field_definition";
992
+ custom_field_value: "custom_field_value";
993
+ cycle: "cycle";
994
+ dependency: "dependency";
995
+ document_reference: "document_reference";
996
+ epic: "epic";
997
+ estimate: "estimate";
998
+ evidence_reference: "evidence_reference";
999
+ external_binding: "external_binding";
1000
+ focus_policy: "focus_policy";
1001
+ folder_projection: "folder_projection";
1002
+ form: "form";
1003
+ guest: "guest";
1004
+ habit: "habit";
1005
+ inbox_item: "inbox_item";
1006
+ initiative: "initiative";
1007
+ issue: "issue";
1008
+ key_result: "key_result";
1009
+ list: "list";
1010
+ member: "member";
1011
+ mention: "mention";
1012
+ milestone: "milestone";
1013
+ objective: "objective";
1014
+ occurrence: "occurrence";
1015
+ organization: "organization";
1016
+ planning_intent: "planning_intent";
1017
+ portfolio: "portfolio";
1018
+ program: "program";
1019
+ project: "project";
1020
+ proofing_request: "proofing_request";
1021
+ reaction: "reaction";
1022
+ recurrence_template: "recurrence_template";
1023
+ relationship: "relationship";
1024
+ roadmap: "roadmap";
1025
+ saved_view: "saved_view";
1026
+ schedule_binding_reference: "schedule_binding_reference";
1027
+ service_principal: "service_principal";
1028
+ status_workflow: "status_workflow";
1029
+ story: "story";
1030
+ subtask: "subtask";
1031
+ sync_conflict: "sync_conflict";
1032
+ sync_cursor: "sync_cursor";
1033
+ task: "task";
1034
+ team: "team";
1035
+ template: "template";
1036
+ time_entry: "time_entry";
1037
+ tombstone: "tombstone";
1038
+ workspace: "workspace";
1039
+ }>;
1040
+ }, z.core.$strip>>>;
1041
+ }, z.core.$strip>;
1042
+ export type WorkSavedView = z.infer<typeof WorkSavedViewSchema>;
1043
+ export declare const WorkGoalProgressSchema: z.ZodObject<{
1044
+ id: z.ZodString;
1045
+ metadata: z.ZodObject<{
1046
+ scope: z.ZodObject<{
1047
+ tenantId: z.ZodString;
1048
+ organizationId: z.ZodString;
1049
+ workspaceId: z.ZodString;
1050
+ }, z.core.$strip>;
1051
+ createdAt: z.ZodString;
1052
+ createdBy: z.ZodObject<{
1053
+ principalId: z.ZodString;
1054
+ principalKind: z.ZodEnum<{
1055
+ contractor: "contractor";
1056
+ guest: "guest";
1057
+ member: "member";
1058
+ service_principal: "service_principal";
1059
+ }>;
1060
+ }, z.core.$strip>;
1061
+ updatedAt: z.ZodString;
1062
+ updatedBy: z.ZodObject<{
1063
+ principalId: z.ZodString;
1064
+ principalKind: z.ZodEnum<{
1065
+ contractor: "contractor";
1066
+ guest: "guest";
1067
+ member: "member";
1068
+ service_principal: "service_principal";
1069
+ }>;
1070
+ }, z.core.$strip>;
1071
+ revision: z.ZodNumber;
1072
+ }, z.core.$strip>;
1073
+ goalRef: z.ZodObject<{
1074
+ id: z.ZodString;
1075
+ kind: z.ZodEnum<{
1076
+ activity: "activity";
1077
+ agent_reference: "agent_reference";
1078
+ approval_reference: "approval_reference";
1079
+ attachment: "attachment";
1080
+ automation_reference: "automation_reference";
1081
+ bug: "bug";
1082
+ canvas_reference: "canvas_reference";
1083
+ capture_reference: "capture_reference";
1084
+ collection: "collection";
1085
+ comment: "comment";
1086
+ contractor: "contractor";
1087
+ cross_organization_acl_grant: "cross_organization_acl_grant";
1088
+ custom_field_definition: "custom_field_definition";
1089
+ custom_field_value: "custom_field_value";
1090
+ cycle: "cycle";
1091
+ dependency: "dependency";
1092
+ document_reference: "document_reference";
1093
+ epic: "epic";
1094
+ estimate: "estimate";
1095
+ evidence_reference: "evidence_reference";
1096
+ external_binding: "external_binding";
1097
+ focus_policy: "focus_policy";
1098
+ folder_projection: "folder_projection";
1099
+ form: "form";
1100
+ guest: "guest";
1101
+ habit: "habit";
1102
+ inbox_item: "inbox_item";
1103
+ initiative: "initiative";
1104
+ issue: "issue";
1105
+ key_result: "key_result";
1106
+ list: "list";
1107
+ member: "member";
1108
+ mention: "mention";
1109
+ milestone: "milestone";
1110
+ objective: "objective";
1111
+ occurrence: "occurrence";
1112
+ organization: "organization";
1113
+ planning_intent: "planning_intent";
1114
+ portfolio: "portfolio";
1115
+ program: "program";
1116
+ project: "project";
1117
+ proofing_request: "proofing_request";
1118
+ reaction: "reaction";
1119
+ recurrence_template: "recurrence_template";
1120
+ relationship: "relationship";
1121
+ roadmap: "roadmap";
1122
+ saved_view: "saved_view";
1123
+ schedule_binding_reference: "schedule_binding_reference";
1124
+ service_principal: "service_principal";
1125
+ status_workflow: "status_workflow";
1126
+ story: "story";
1127
+ subtask: "subtask";
1128
+ sync_conflict: "sync_conflict";
1129
+ sync_cursor: "sync_cursor";
1130
+ task: "task";
1131
+ team: "team";
1132
+ template: "template";
1133
+ time_entry: "time_entry";
1134
+ tombstone: "tombstone";
1135
+ workspace: "workspace";
1136
+ }>;
1137
+ }, z.core.$strip>;
1138
+ current: z.ZodNumber;
1139
+ target: z.ZodNumber;
1140
+ unit: z.ZodString;
1141
+ updatedAt: z.ZodString;
1142
+ }, z.core.$strip>;
1143
+ export type WorkGoalProgress = z.infer<typeof WorkGoalProgressSchema>;