@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,644 @@
1
+ import { z } from 'zod';
2
+ /** Read one canonical object; host authority supplies the full scope, never query parameters. */
3
+ export declare const WorkObjectReadRequestSchema: z.ZodObject<{
4
+ objectId: z.ZodString;
5
+ }, z.core.$strict>;
6
+ export declare const WorkObjectReadResponseSchema: z.ZodObject<{
7
+ object: z.ZodObject<{
8
+ id: z.ZodString;
9
+ kind: z.ZodEnum<{
10
+ activity: "activity";
11
+ agent_reference: "agent_reference";
12
+ approval_reference: "approval_reference";
13
+ attachment: "attachment";
14
+ automation_reference: "automation_reference";
15
+ bug: "bug";
16
+ canvas_reference: "canvas_reference";
17
+ capture_reference: "capture_reference";
18
+ collection: "collection";
19
+ comment: "comment";
20
+ contractor: "contractor";
21
+ cross_organization_acl_grant: "cross_organization_acl_grant";
22
+ custom_field_definition: "custom_field_definition";
23
+ custom_field_value: "custom_field_value";
24
+ cycle: "cycle";
25
+ dependency: "dependency";
26
+ document_reference: "document_reference";
27
+ epic: "epic";
28
+ estimate: "estimate";
29
+ evidence_reference: "evidence_reference";
30
+ external_binding: "external_binding";
31
+ focus_policy: "focus_policy";
32
+ folder_projection: "folder_projection";
33
+ form: "form";
34
+ guest: "guest";
35
+ habit: "habit";
36
+ inbox_item: "inbox_item";
37
+ initiative: "initiative";
38
+ issue: "issue";
39
+ key_result: "key_result";
40
+ list: "list";
41
+ member: "member";
42
+ mention: "mention";
43
+ milestone: "milestone";
44
+ objective: "objective";
45
+ occurrence: "occurrence";
46
+ organization: "organization";
47
+ planning_intent: "planning_intent";
48
+ portfolio: "portfolio";
49
+ program: "program";
50
+ project: "project";
51
+ proofing_request: "proofing_request";
52
+ reaction: "reaction";
53
+ recurrence_template: "recurrence_template";
54
+ relationship: "relationship";
55
+ roadmap: "roadmap";
56
+ saved_view: "saved_view";
57
+ schedule_binding_reference: "schedule_binding_reference";
58
+ service_principal: "service_principal";
59
+ status_workflow: "status_workflow";
60
+ story: "story";
61
+ subtask: "subtask";
62
+ sync_conflict: "sync_conflict";
63
+ sync_cursor: "sync_cursor";
64
+ task: "task";
65
+ team: "team";
66
+ template: "template";
67
+ time_entry: "time_entry";
68
+ tombstone: "tombstone";
69
+ workspace: "workspace";
70
+ }>;
71
+ title: z.ZodString;
72
+ description: z.ZodOptional<z.ZodString>;
73
+ metadata: z.ZodObject<{
74
+ scope: z.ZodObject<{
75
+ tenantId: z.ZodString;
76
+ organizationId: z.ZodString;
77
+ workspaceId: z.ZodString;
78
+ }, z.core.$strip>;
79
+ createdAt: z.ZodString;
80
+ createdBy: z.ZodObject<{
81
+ principalId: z.ZodString;
82
+ principalKind: z.ZodEnum<{
83
+ contractor: "contractor";
84
+ guest: "guest";
85
+ member: "member";
86
+ service_principal: "service_principal";
87
+ }>;
88
+ }, z.core.$strip>;
89
+ updatedAt: z.ZodString;
90
+ updatedBy: z.ZodObject<{
91
+ principalId: z.ZodString;
92
+ principalKind: z.ZodEnum<{
93
+ contractor: "contractor";
94
+ guest: "guest";
95
+ member: "member";
96
+ service_principal: "service_principal";
97
+ }>;
98
+ }, z.core.$strip>;
99
+ revision: z.ZodNumber;
100
+ }, z.core.$strip>;
101
+ parentRef: z.ZodOptional<z.ZodObject<{
102
+ id: z.ZodString;
103
+ kind: z.ZodEnum<{
104
+ activity: "activity";
105
+ agent_reference: "agent_reference";
106
+ approval_reference: "approval_reference";
107
+ attachment: "attachment";
108
+ automation_reference: "automation_reference";
109
+ bug: "bug";
110
+ canvas_reference: "canvas_reference";
111
+ capture_reference: "capture_reference";
112
+ collection: "collection";
113
+ comment: "comment";
114
+ contractor: "contractor";
115
+ cross_organization_acl_grant: "cross_organization_acl_grant";
116
+ custom_field_definition: "custom_field_definition";
117
+ custom_field_value: "custom_field_value";
118
+ cycle: "cycle";
119
+ dependency: "dependency";
120
+ document_reference: "document_reference";
121
+ epic: "epic";
122
+ estimate: "estimate";
123
+ evidence_reference: "evidence_reference";
124
+ external_binding: "external_binding";
125
+ focus_policy: "focus_policy";
126
+ folder_projection: "folder_projection";
127
+ form: "form";
128
+ guest: "guest";
129
+ habit: "habit";
130
+ inbox_item: "inbox_item";
131
+ initiative: "initiative";
132
+ issue: "issue";
133
+ key_result: "key_result";
134
+ list: "list";
135
+ member: "member";
136
+ mention: "mention";
137
+ milestone: "milestone";
138
+ objective: "objective";
139
+ occurrence: "occurrence";
140
+ organization: "organization";
141
+ planning_intent: "planning_intent";
142
+ portfolio: "portfolio";
143
+ program: "program";
144
+ project: "project";
145
+ proofing_request: "proofing_request";
146
+ reaction: "reaction";
147
+ recurrence_template: "recurrence_template";
148
+ relationship: "relationship";
149
+ roadmap: "roadmap";
150
+ saved_view: "saved_view";
151
+ schedule_binding_reference: "schedule_binding_reference";
152
+ service_principal: "service_principal";
153
+ status_workflow: "status_workflow";
154
+ story: "story";
155
+ subtask: "subtask";
156
+ sync_conflict: "sync_conflict";
157
+ sync_cursor: "sync_cursor";
158
+ task: "task";
159
+ team: "team";
160
+ template: "template";
161
+ time_entry: "time_entry";
162
+ tombstone: "tombstone";
163
+ workspace: "workspace";
164
+ }>;
165
+ }, z.core.$strip>>;
166
+ ownerRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
167
+ id: z.ZodString;
168
+ kind: z.ZodEnum<{
169
+ activity: "activity";
170
+ agent_reference: "agent_reference";
171
+ approval_reference: "approval_reference";
172
+ attachment: "attachment";
173
+ automation_reference: "automation_reference";
174
+ bug: "bug";
175
+ canvas_reference: "canvas_reference";
176
+ capture_reference: "capture_reference";
177
+ collection: "collection";
178
+ comment: "comment";
179
+ contractor: "contractor";
180
+ cross_organization_acl_grant: "cross_organization_acl_grant";
181
+ custom_field_definition: "custom_field_definition";
182
+ custom_field_value: "custom_field_value";
183
+ cycle: "cycle";
184
+ dependency: "dependency";
185
+ document_reference: "document_reference";
186
+ epic: "epic";
187
+ estimate: "estimate";
188
+ evidence_reference: "evidence_reference";
189
+ external_binding: "external_binding";
190
+ focus_policy: "focus_policy";
191
+ folder_projection: "folder_projection";
192
+ form: "form";
193
+ guest: "guest";
194
+ habit: "habit";
195
+ inbox_item: "inbox_item";
196
+ initiative: "initiative";
197
+ issue: "issue";
198
+ key_result: "key_result";
199
+ list: "list";
200
+ member: "member";
201
+ mention: "mention";
202
+ milestone: "milestone";
203
+ objective: "objective";
204
+ occurrence: "occurrence";
205
+ organization: "organization";
206
+ planning_intent: "planning_intent";
207
+ portfolio: "portfolio";
208
+ program: "program";
209
+ project: "project";
210
+ proofing_request: "proofing_request";
211
+ reaction: "reaction";
212
+ recurrence_template: "recurrence_template";
213
+ relationship: "relationship";
214
+ roadmap: "roadmap";
215
+ saved_view: "saved_view";
216
+ schedule_binding_reference: "schedule_binding_reference";
217
+ service_principal: "service_principal";
218
+ status_workflow: "status_workflow";
219
+ story: "story";
220
+ subtask: "subtask";
221
+ sync_conflict: "sync_conflict";
222
+ sync_cursor: "sync_cursor";
223
+ task: "task";
224
+ team: "team";
225
+ template: "template";
226
+ time_entry: "time_entry";
227
+ tombstone: "tombstone";
228
+ workspace: "workspace";
229
+ }>;
230
+ }, z.core.$strip>>>;
231
+ assigneeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
232
+ id: z.ZodString;
233
+ kind: z.ZodEnum<{
234
+ activity: "activity";
235
+ agent_reference: "agent_reference";
236
+ approval_reference: "approval_reference";
237
+ attachment: "attachment";
238
+ automation_reference: "automation_reference";
239
+ bug: "bug";
240
+ canvas_reference: "canvas_reference";
241
+ capture_reference: "capture_reference";
242
+ collection: "collection";
243
+ comment: "comment";
244
+ contractor: "contractor";
245
+ cross_organization_acl_grant: "cross_organization_acl_grant";
246
+ custom_field_definition: "custom_field_definition";
247
+ custom_field_value: "custom_field_value";
248
+ cycle: "cycle";
249
+ dependency: "dependency";
250
+ document_reference: "document_reference";
251
+ epic: "epic";
252
+ estimate: "estimate";
253
+ evidence_reference: "evidence_reference";
254
+ external_binding: "external_binding";
255
+ focus_policy: "focus_policy";
256
+ folder_projection: "folder_projection";
257
+ form: "form";
258
+ guest: "guest";
259
+ habit: "habit";
260
+ inbox_item: "inbox_item";
261
+ initiative: "initiative";
262
+ issue: "issue";
263
+ key_result: "key_result";
264
+ list: "list";
265
+ member: "member";
266
+ mention: "mention";
267
+ milestone: "milestone";
268
+ objective: "objective";
269
+ occurrence: "occurrence";
270
+ organization: "organization";
271
+ planning_intent: "planning_intent";
272
+ portfolio: "portfolio";
273
+ program: "program";
274
+ project: "project";
275
+ proofing_request: "proofing_request";
276
+ reaction: "reaction";
277
+ recurrence_template: "recurrence_template";
278
+ relationship: "relationship";
279
+ roadmap: "roadmap";
280
+ saved_view: "saved_view";
281
+ schedule_binding_reference: "schedule_binding_reference";
282
+ service_principal: "service_principal";
283
+ status_workflow: "status_workflow";
284
+ story: "story";
285
+ subtask: "subtask";
286
+ sync_conflict: "sync_conflict";
287
+ sync_cursor: "sync_cursor";
288
+ task: "task";
289
+ team: "team";
290
+ template: "template";
291
+ time_entry: "time_entry";
292
+ tombstone: "tombstone";
293
+ workspace: "workspace";
294
+ }>;
295
+ }, z.core.$strip>>>;
296
+ statusId: z.ZodOptional<z.ZodString>;
297
+ statusCategory: z.ZodOptional<z.ZodEnum<{
298
+ backlog: "backlog";
299
+ cancelled: "cancelled";
300
+ completed: "completed";
301
+ started: "started";
302
+ unstarted: "unstarted";
303
+ }>>;
304
+ priority: z.ZodOptional<z.ZodNumber>;
305
+ estimateMinutes: z.ZodOptional<z.ZodNumber>;
306
+ desiredStartAt: z.ZodOptional<z.ZodString>;
307
+ dueAt: z.ZodOptional<z.ZodString>;
308
+ completedAt: z.ZodOptional<z.ZodString>;
309
+ recurrenceTemplateRef: z.ZodOptional<z.ZodObject<{
310
+ id: z.ZodString;
311
+ kind: z.ZodEnum<{
312
+ activity: "activity";
313
+ agent_reference: "agent_reference";
314
+ approval_reference: "approval_reference";
315
+ attachment: "attachment";
316
+ automation_reference: "automation_reference";
317
+ bug: "bug";
318
+ canvas_reference: "canvas_reference";
319
+ capture_reference: "capture_reference";
320
+ collection: "collection";
321
+ comment: "comment";
322
+ contractor: "contractor";
323
+ cross_organization_acl_grant: "cross_organization_acl_grant";
324
+ custom_field_definition: "custom_field_definition";
325
+ custom_field_value: "custom_field_value";
326
+ cycle: "cycle";
327
+ dependency: "dependency";
328
+ document_reference: "document_reference";
329
+ epic: "epic";
330
+ estimate: "estimate";
331
+ evidence_reference: "evidence_reference";
332
+ external_binding: "external_binding";
333
+ focus_policy: "focus_policy";
334
+ folder_projection: "folder_projection";
335
+ form: "form";
336
+ guest: "guest";
337
+ habit: "habit";
338
+ inbox_item: "inbox_item";
339
+ initiative: "initiative";
340
+ issue: "issue";
341
+ key_result: "key_result";
342
+ list: "list";
343
+ member: "member";
344
+ mention: "mention";
345
+ milestone: "milestone";
346
+ objective: "objective";
347
+ occurrence: "occurrence";
348
+ organization: "organization";
349
+ planning_intent: "planning_intent";
350
+ portfolio: "portfolio";
351
+ program: "program";
352
+ project: "project";
353
+ proofing_request: "proofing_request";
354
+ reaction: "reaction";
355
+ recurrence_template: "recurrence_template";
356
+ relationship: "relationship";
357
+ roadmap: "roadmap";
358
+ saved_view: "saved_view";
359
+ schedule_binding_reference: "schedule_binding_reference";
360
+ service_principal: "service_principal";
361
+ status_workflow: "status_workflow";
362
+ story: "story";
363
+ subtask: "subtask";
364
+ sync_conflict: "sync_conflict";
365
+ sync_cursor: "sync_cursor";
366
+ task: "task";
367
+ team: "team";
368
+ template: "template";
369
+ time_entry: "time_entry";
370
+ tombstone: "tombstone";
371
+ workspace: "workspace";
372
+ }>;
373
+ }, z.core.$strip>>;
374
+ captureRef: z.ZodOptional<z.ZodObject<{
375
+ id: z.ZodString;
376
+ kind: z.ZodEnum<{
377
+ activity: "activity";
378
+ agent_reference: "agent_reference";
379
+ approval_reference: "approval_reference";
380
+ attachment: "attachment";
381
+ automation_reference: "automation_reference";
382
+ bug: "bug";
383
+ canvas_reference: "canvas_reference";
384
+ capture_reference: "capture_reference";
385
+ collection: "collection";
386
+ comment: "comment";
387
+ contractor: "contractor";
388
+ cross_organization_acl_grant: "cross_organization_acl_grant";
389
+ custom_field_definition: "custom_field_definition";
390
+ custom_field_value: "custom_field_value";
391
+ cycle: "cycle";
392
+ dependency: "dependency";
393
+ document_reference: "document_reference";
394
+ epic: "epic";
395
+ estimate: "estimate";
396
+ evidence_reference: "evidence_reference";
397
+ external_binding: "external_binding";
398
+ focus_policy: "focus_policy";
399
+ folder_projection: "folder_projection";
400
+ form: "form";
401
+ guest: "guest";
402
+ habit: "habit";
403
+ inbox_item: "inbox_item";
404
+ initiative: "initiative";
405
+ issue: "issue";
406
+ key_result: "key_result";
407
+ list: "list";
408
+ member: "member";
409
+ mention: "mention";
410
+ milestone: "milestone";
411
+ objective: "objective";
412
+ occurrence: "occurrence";
413
+ organization: "organization";
414
+ planning_intent: "planning_intent";
415
+ portfolio: "portfolio";
416
+ program: "program";
417
+ project: "project";
418
+ proofing_request: "proofing_request";
419
+ reaction: "reaction";
420
+ recurrence_template: "recurrence_template";
421
+ relationship: "relationship";
422
+ roadmap: "roadmap";
423
+ saved_view: "saved_view";
424
+ schedule_binding_reference: "schedule_binding_reference";
425
+ service_principal: "service_principal";
426
+ status_workflow: "status_workflow";
427
+ story: "story";
428
+ subtask: "subtask";
429
+ sync_conflict: "sync_conflict";
430
+ sync_cursor: "sync_cursor";
431
+ task: "task";
432
+ team: "team";
433
+ template: "template";
434
+ time_entry: "time_entry";
435
+ tombstone: "tombstone";
436
+ workspace: "workspace";
437
+ }>;
438
+ }, z.core.$strip>>;
439
+ customFieldValueRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
440
+ id: z.ZodString;
441
+ kind: z.ZodEnum<{
442
+ activity: "activity";
443
+ agent_reference: "agent_reference";
444
+ approval_reference: "approval_reference";
445
+ attachment: "attachment";
446
+ automation_reference: "automation_reference";
447
+ bug: "bug";
448
+ canvas_reference: "canvas_reference";
449
+ capture_reference: "capture_reference";
450
+ collection: "collection";
451
+ comment: "comment";
452
+ contractor: "contractor";
453
+ cross_organization_acl_grant: "cross_organization_acl_grant";
454
+ custom_field_definition: "custom_field_definition";
455
+ custom_field_value: "custom_field_value";
456
+ cycle: "cycle";
457
+ dependency: "dependency";
458
+ document_reference: "document_reference";
459
+ epic: "epic";
460
+ estimate: "estimate";
461
+ evidence_reference: "evidence_reference";
462
+ external_binding: "external_binding";
463
+ focus_policy: "focus_policy";
464
+ folder_projection: "folder_projection";
465
+ form: "form";
466
+ guest: "guest";
467
+ habit: "habit";
468
+ inbox_item: "inbox_item";
469
+ initiative: "initiative";
470
+ issue: "issue";
471
+ key_result: "key_result";
472
+ list: "list";
473
+ member: "member";
474
+ mention: "mention";
475
+ milestone: "milestone";
476
+ objective: "objective";
477
+ occurrence: "occurrence";
478
+ organization: "organization";
479
+ planning_intent: "planning_intent";
480
+ portfolio: "portfolio";
481
+ program: "program";
482
+ project: "project";
483
+ proofing_request: "proofing_request";
484
+ reaction: "reaction";
485
+ recurrence_template: "recurrence_template";
486
+ relationship: "relationship";
487
+ roadmap: "roadmap";
488
+ saved_view: "saved_view";
489
+ schedule_binding_reference: "schedule_binding_reference";
490
+ service_principal: "service_principal";
491
+ status_workflow: "status_workflow";
492
+ story: "story";
493
+ subtask: "subtask";
494
+ sync_conflict: "sync_conflict";
495
+ sync_cursor: "sync_cursor";
496
+ task: "task";
497
+ team: "team";
498
+ template: "template";
499
+ time_entry: "time_entry";
500
+ tombstone: "tombstone";
501
+ workspace: "workspace";
502
+ }>;
503
+ }, z.core.$strip>>>;
504
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
505
+ id: z.ZodString;
506
+ kind: z.ZodEnum<{
507
+ activity: "activity";
508
+ agent_reference: "agent_reference";
509
+ approval_reference: "approval_reference";
510
+ attachment: "attachment";
511
+ automation_reference: "automation_reference";
512
+ bug: "bug";
513
+ canvas_reference: "canvas_reference";
514
+ capture_reference: "capture_reference";
515
+ collection: "collection";
516
+ comment: "comment";
517
+ contractor: "contractor";
518
+ cross_organization_acl_grant: "cross_organization_acl_grant";
519
+ custom_field_definition: "custom_field_definition";
520
+ custom_field_value: "custom_field_value";
521
+ cycle: "cycle";
522
+ dependency: "dependency";
523
+ document_reference: "document_reference";
524
+ epic: "epic";
525
+ estimate: "estimate";
526
+ evidence_reference: "evidence_reference";
527
+ external_binding: "external_binding";
528
+ focus_policy: "focus_policy";
529
+ folder_projection: "folder_projection";
530
+ form: "form";
531
+ guest: "guest";
532
+ habit: "habit";
533
+ inbox_item: "inbox_item";
534
+ initiative: "initiative";
535
+ issue: "issue";
536
+ key_result: "key_result";
537
+ list: "list";
538
+ member: "member";
539
+ mention: "mention";
540
+ milestone: "milestone";
541
+ objective: "objective";
542
+ occurrence: "occurrence";
543
+ organization: "organization";
544
+ planning_intent: "planning_intent";
545
+ portfolio: "portfolio";
546
+ program: "program";
547
+ project: "project";
548
+ proofing_request: "proofing_request";
549
+ reaction: "reaction";
550
+ recurrence_template: "recurrence_template";
551
+ relationship: "relationship";
552
+ roadmap: "roadmap";
553
+ saved_view: "saved_view";
554
+ schedule_binding_reference: "schedule_binding_reference";
555
+ service_principal: "service_principal";
556
+ status_workflow: "status_workflow";
557
+ story: "story";
558
+ subtask: "subtask";
559
+ sync_conflict: "sync_conflict";
560
+ sync_cursor: "sync_cursor";
561
+ task: "task";
562
+ team: "team";
563
+ template: "template";
564
+ time_entry: "time_entry";
565
+ tombstone: "tombstone";
566
+ workspace: "workspace";
567
+ }>;
568
+ }, z.core.$strip>>>;
569
+ externalBindingRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
570
+ id: z.ZodString;
571
+ kind: z.ZodEnum<{
572
+ activity: "activity";
573
+ agent_reference: "agent_reference";
574
+ approval_reference: "approval_reference";
575
+ attachment: "attachment";
576
+ automation_reference: "automation_reference";
577
+ bug: "bug";
578
+ canvas_reference: "canvas_reference";
579
+ capture_reference: "capture_reference";
580
+ collection: "collection";
581
+ comment: "comment";
582
+ contractor: "contractor";
583
+ cross_organization_acl_grant: "cross_organization_acl_grant";
584
+ custom_field_definition: "custom_field_definition";
585
+ custom_field_value: "custom_field_value";
586
+ cycle: "cycle";
587
+ dependency: "dependency";
588
+ document_reference: "document_reference";
589
+ epic: "epic";
590
+ estimate: "estimate";
591
+ evidence_reference: "evidence_reference";
592
+ external_binding: "external_binding";
593
+ focus_policy: "focus_policy";
594
+ folder_projection: "folder_projection";
595
+ form: "form";
596
+ guest: "guest";
597
+ habit: "habit";
598
+ inbox_item: "inbox_item";
599
+ initiative: "initiative";
600
+ issue: "issue";
601
+ key_result: "key_result";
602
+ list: "list";
603
+ member: "member";
604
+ mention: "mention";
605
+ milestone: "milestone";
606
+ objective: "objective";
607
+ occurrence: "occurrence";
608
+ organization: "organization";
609
+ planning_intent: "planning_intent";
610
+ portfolio: "portfolio";
611
+ program: "program";
612
+ project: "project";
613
+ proofing_request: "proofing_request";
614
+ reaction: "reaction";
615
+ recurrence_template: "recurrence_template";
616
+ relationship: "relationship";
617
+ roadmap: "roadmap";
618
+ saved_view: "saved_view";
619
+ schedule_binding_reference: "schedule_binding_reference";
620
+ service_principal: "service_principal";
621
+ status_workflow: "status_workflow";
622
+ story: "story";
623
+ subtask: "subtask";
624
+ sync_conflict: "sync_conflict";
625
+ sync_cursor: "sync_cursor";
626
+ task: "task";
627
+ team: "team";
628
+ template: "template";
629
+ time_entry: "time_entry";
630
+ tombstone: "tombstone";
631
+ workspace: "workspace";
632
+ }>;
633
+ }, z.core.$strip>>>;
634
+ archivedAt: z.ZodOptional<z.ZodString>;
635
+ }, z.core.$strip>;
636
+ canUpdateStatus: z.ZodOptional<z.ZodBoolean>;
637
+ }, z.core.$strict>;
638
+ export declare const WORK_OBJECT_READ_CONTRACT: {
639
+ readonly key: 'work.object.read';
640
+ readonly version: '1.1.0';
641
+ readonly method: 'GET';
642
+ readonly path: '/api/companyos/work/objects/:objectId';
643
+ readonly invariants: readonly ['Current organization and workspace read authority is checked before data access and before returning the result.', 'Read identity resolution never allocates canonical identities or selects an arbitrary conflicting mapping.', 'Foreign, missing and archived objects return the same not-found response. Complete Work scope remains server-derived.', 'Bearer reads do not fall back to cookie authority. Responses are private and never cached.'];
644
+ };
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{z as p}from"zod";import{z as a}from"zod";import{z as c}from"zod";var i=c.enum(["organization","workspace","team","member","guest","contractor","service_principal","cross_organization_acl_grant","portfolio","initiative","program","objective","key_result","roadmap","project","cycle","milestone","task","issue","bug","story","epic","subtask","recurrence_template","occurrence","dependency","relationship","estimate","time_entry","collection","list","folder_projection","status_workflow","custom_field_definition","custom_field_value","saved_view","form","template","comment","mention","reaction","activity","attachment","document_reference","canvas_reference","proofing_request","approval_reference","inbox_item","habit","focus_policy","planning_intent","capture_reference","automation_reference","agent_reference","schedule_binding_reference","external_binding","sync_cursor","sync_conflict","tombstone","evidence_reference"]),s=c.enum(["backlog","unstarted","started","completed","cancelled"]),m=c.enum(["parent","child","blocks","blocked_by","relates_to","duplicates","duplicated_by","supersedes","multi_homed_in"]);var u=/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,o=a.string().regex(u,"UUIDv7 required"),r=a.string().datetime({offset:!0}),t=a.object({id:o,kind:i}),d=a.object({principalId:o,principalKind:a.enum(["member","guest","contractor","service_principal"])}),k=a.object({tenantId:o,organizationId:o,workspaceId:o}),n=a.object({scope:k,createdAt:r,createdBy:d,updatedAt:r,updatedBy:d,revision:a.number().int().nonnegative()});import{z as e}from"zod";var f=e.object({id:o,kind:i,title:e.string().min(1).max(500),description:e.string().max(1e5).optional(),metadata:n,parentRef:t.optional(),ownerRefs:e.array(t).default([]),assigneeRefs:e.array(t).default([]),statusId:o.optional(),statusCategory:s.optional(),priority:e.number().int().min(0).max(100).optional(),estimateMinutes:e.number().int().positive().optional(),desiredStartAt:r.optional(),dueAt:r.optional(),completedAt:r.optional(),recurrenceTemplateRef:t.optional(),captureRef:t.refine(({kind:l})=>l==="capture_reference","Capture provenance must reference a capture_reference Work object").optional(),customFieldValueRefs:e.array(t).default([]),evidenceRefs:e.array(t).default([]),externalBindingRefs:e.array(t).default([]),archivedAt:r.optional()}),j=e.object({id:o,metadata:n,from:t,to:t,kind:m}),x=e.object({id:o,metadata:n,templateRef:t,rule:e.object({frequency:e.enum(["daily","weekly","monthly","yearly"]),interval:e.number().int().positive().default(1),timeZone:e.string().min(1),startsAt:r,endsAt:r.optional(),count:e.number().int().positive().optional()})}),v=e.object({id:o,metadata:n,workRef:t,memberRef:t,startedAt:r,endedAt:r.optional(),durationMinutes:e.number().int().nonnegative(),note:e.string().max(1e4).optional()});var T=p.object({objectId:o}).strict(),w=p.object({object:f,canUpdateStatus:p.boolean().optional()}).strict(),C={key:"work.object.read",version:"1.1.0",method:"GET",path:"/api/companyos/work/objects/:objectId",invariants:["Current organization and workspace read authority is checked before data access and before returning the result.","Read identity resolution never allocates canonical identities or selects an arbitrary conflicting mapping.","Foreign, missing and archived objects return the same not-found response. Complete Work scope remains server-derived.","Bearer reads do not fall back to cookie authority. Responses are private and never cached."]};export{C as WORK_OBJECT_READ_CONTRACT,T as WorkObjectReadRequestSchema,w as WorkObjectReadResponseSchema};