@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
package/dist/sync.d.ts ADDED
@@ -0,0 +1,545 @@
1
+ import { z } from 'zod';
2
+ export declare const WorkSyncModeSchema: z.ZodEnum<{
3
+ import_once: "import_once";
4
+ mirror_remote: "mirror_remote";
5
+ two_way: "two_way";
6
+ }>;
7
+ export type WorkSyncMode = z.infer<typeof WorkSyncModeSchema>;
8
+ export declare const WorkFieldAuthoritySchema: z.ZodEnum<{
9
+ merge: "merge";
10
+ native: "native";
11
+ remote: "remote";
12
+ }>;
13
+ export type WorkFieldAuthority = z.infer<typeof WorkFieldAuthoritySchema>;
14
+ export declare const WorkFieldGroupSchema: z.ZodEnum<{
15
+ assignment: "assignment";
16
+ content: "content";
17
+ custom_fields: "custom_fields";
18
+ dates: "dates";
19
+ status: "status";
20
+ }>;
21
+ export type WorkFieldGroup = z.infer<typeof WorkFieldGroupSchema>;
22
+ export declare const WorkExternalBindingSchema: z.ZodObject<{
23
+ id: z.ZodString;
24
+ metadata: z.ZodObject<{
25
+ scope: z.ZodObject<{
26
+ tenantId: z.ZodString;
27
+ organizationId: z.ZodString;
28
+ workspaceId: z.ZodString;
29
+ }, z.core.$strip>;
30
+ createdAt: z.ZodString;
31
+ createdBy: z.ZodObject<{
32
+ principalId: z.ZodString;
33
+ principalKind: z.ZodEnum<{
34
+ contractor: "contractor";
35
+ guest: "guest";
36
+ member: "member";
37
+ service_principal: "service_principal";
38
+ }>;
39
+ }, z.core.$strip>;
40
+ updatedAt: z.ZodString;
41
+ updatedBy: z.ZodObject<{
42
+ principalId: z.ZodString;
43
+ principalKind: z.ZodEnum<{
44
+ contractor: "contractor";
45
+ guest: "guest";
46
+ member: "member";
47
+ service_principal: "service_principal";
48
+ }>;
49
+ }, z.core.$strip>;
50
+ revision: z.ZodNumber;
51
+ }, z.core.$strip>;
52
+ workRef: z.ZodObject<{
53
+ id: z.ZodString;
54
+ kind: z.ZodEnum<{
55
+ activity: "activity";
56
+ agent_reference: "agent_reference";
57
+ approval_reference: "approval_reference";
58
+ attachment: "attachment";
59
+ automation_reference: "automation_reference";
60
+ bug: "bug";
61
+ canvas_reference: "canvas_reference";
62
+ capture_reference: "capture_reference";
63
+ collection: "collection";
64
+ comment: "comment";
65
+ contractor: "contractor";
66
+ cross_organization_acl_grant: "cross_organization_acl_grant";
67
+ custom_field_definition: "custom_field_definition";
68
+ custom_field_value: "custom_field_value";
69
+ cycle: "cycle";
70
+ dependency: "dependency";
71
+ document_reference: "document_reference";
72
+ epic: "epic";
73
+ estimate: "estimate";
74
+ evidence_reference: "evidence_reference";
75
+ external_binding: "external_binding";
76
+ focus_policy: "focus_policy";
77
+ folder_projection: "folder_projection";
78
+ form: "form";
79
+ guest: "guest";
80
+ habit: "habit";
81
+ inbox_item: "inbox_item";
82
+ initiative: "initiative";
83
+ issue: "issue";
84
+ key_result: "key_result";
85
+ list: "list";
86
+ member: "member";
87
+ mention: "mention";
88
+ milestone: "milestone";
89
+ objective: "objective";
90
+ occurrence: "occurrence";
91
+ organization: "organization";
92
+ planning_intent: "planning_intent";
93
+ portfolio: "portfolio";
94
+ program: "program";
95
+ project: "project";
96
+ proofing_request: "proofing_request";
97
+ reaction: "reaction";
98
+ recurrence_template: "recurrence_template";
99
+ relationship: "relationship";
100
+ roadmap: "roadmap";
101
+ saved_view: "saved_view";
102
+ schedule_binding_reference: "schedule_binding_reference";
103
+ service_principal: "service_principal";
104
+ status_workflow: "status_workflow";
105
+ story: "story";
106
+ subtask: "subtask";
107
+ sync_conflict: "sync_conflict";
108
+ sync_cursor: "sync_cursor";
109
+ task: "task";
110
+ team: "team";
111
+ template: "template";
112
+ time_entry: "time_entry";
113
+ tombstone: "tombstone";
114
+ workspace: "workspace";
115
+ }>;
116
+ }, z.core.$strip>;
117
+ providerKey: z.ZodString;
118
+ connectionId: z.ZodString;
119
+ remoteObjectType: z.ZodString;
120
+ remoteObjectId: z.ZodString;
121
+ remoteRevision: z.ZodOptional<z.ZodString>;
122
+ mode: z.ZodEnum<{
123
+ import_once: "import_once";
124
+ mirror_remote: "mirror_remote";
125
+ two_way: "two_way";
126
+ }>;
127
+ authority: z.ZodRecord<z.ZodEnum<{
128
+ assignment: "assignment";
129
+ content: "content";
130
+ custom_fields: "custom_fields";
131
+ dates: "dates";
132
+ status: "status";
133
+ }>, z.ZodEnum<{
134
+ merge: "merge";
135
+ native: "native";
136
+ remote: "remote";
137
+ }>>;
138
+ lastSynchronizedSnapshotRef: z.ZodOptional<z.ZodString>;
139
+ adapterPayloadRef: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strip>;
141
+ export type WorkExternalBinding = z.infer<typeof WorkExternalBindingSchema>;
142
+ export declare const WorkSyncConflictSchema: z.ZodObject<{
143
+ id: z.ZodString;
144
+ metadata: z.ZodObject<{
145
+ scope: z.ZodObject<{
146
+ tenantId: z.ZodString;
147
+ organizationId: z.ZodString;
148
+ workspaceId: z.ZodString;
149
+ }, z.core.$strip>;
150
+ createdAt: z.ZodString;
151
+ createdBy: z.ZodObject<{
152
+ principalId: z.ZodString;
153
+ principalKind: z.ZodEnum<{
154
+ contractor: "contractor";
155
+ guest: "guest";
156
+ member: "member";
157
+ service_principal: "service_principal";
158
+ }>;
159
+ }, z.core.$strip>;
160
+ updatedAt: z.ZodString;
161
+ updatedBy: z.ZodObject<{
162
+ principalId: z.ZodString;
163
+ principalKind: z.ZodEnum<{
164
+ contractor: "contractor";
165
+ guest: "guest";
166
+ member: "member";
167
+ service_principal: "service_principal";
168
+ }>;
169
+ }, z.core.$strip>;
170
+ revision: z.ZodNumber;
171
+ }, z.core.$strip>;
172
+ bindingRef: z.ZodObject<{
173
+ id: z.ZodString;
174
+ kind: z.ZodEnum<{
175
+ activity: "activity";
176
+ agent_reference: "agent_reference";
177
+ approval_reference: "approval_reference";
178
+ attachment: "attachment";
179
+ automation_reference: "automation_reference";
180
+ bug: "bug";
181
+ canvas_reference: "canvas_reference";
182
+ capture_reference: "capture_reference";
183
+ collection: "collection";
184
+ comment: "comment";
185
+ contractor: "contractor";
186
+ cross_organization_acl_grant: "cross_organization_acl_grant";
187
+ custom_field_definition: "custom_field_definition";
188
+ custom_field_value: "custom_field_value";
189
+ cycle: "cycle";
190
+ dependency: "dependency";
191
+ document_reference: "document_reference";
192
+ epic: "epic";
193
+ estimate: "estimate";
194
+ evidence_reference: "evidence_reference";
195
+ external_binding: "external_binding";
196
+ focus_policy: "focus_policy";
197
+ folder_projection: "folder_projection";
198
+ form: "form";
199
+ guest: "guest";
200
+ habit: "habit";
201
+ inbox_item: "inbox_item";
202
+ initiative: "initiative";
203
+ issue: "issue";
204
+ key_result: "key_result";
205
+ list: "list";
206
+ member: "member";
207
+ mention: "mention";
208
+ milestone: "milestone";
209
+ objective: "objective";
210
+ occurrence: "occurrence";
211
+ organization: "organization";
212
+ planning_intent: "planning_intent";
213
+ portfolio: "portfolio";
214
+ program: "program";
215
+ project: "project";
216
+ proofing_request: "proofing_request";
217
+ reaction: "reaction";
218
+ recurrence_template: "recurrence_template";
219
+ relationship: "relationship";
220
+ roadmap: "roadmap";
221
+ saved_view: "saved_view";
222
+ schedule_binding_reference: "schedule_binding_reference";
223
+ service_principal: "service_principal";
224
+ status_workflow: "status_workflow";
225
+ story: "story";
226
+ subtask: "subtask";
227
+ sync_conflict: "sync_conflict";
228
+ sync_cursor: "sync_cursor";
229
+ task: "task";
230
+ team: "team";
231
+ template: "template";
232
+ time_entry: "time_entry";
233
+ tombstone: "tombstone";
234
+ workspace: "workspace";
235
+ }>;
236
+ }, z.core.$strip>;
237
+ workRef: z.ZodObject<{
238
+ id: z.ZodString;
239
+ kind: z.ZodEnum<{
240
+ activity: "activity";
241
+ agent_reference: "agent_reference";
242
+ approval_reference: "approval_reference";
243
+ attachment: "attachment";
244
+ automation_reference: "automation_reference";
245
+ bug: "bug";
246
+ canvas_reference: "canvas_reference";
247
+ capture_reference: "capture_reference";
248
+ collection: "collection";
249
+ comment: "comment";
250
+ contractor: "contractor";
251
+ cross_organization_acl_grant: "cross_organization_acl_grant";
252
+ custom_field_definition: "custom_field_definition";
253
+ custom_field_value: "custom_field_value";
254
+ cycle: "cycle";
255
+ dependency: "dependency";
256
+ document_reference: "document_reference";
257
+ epic: "epic";
258
+ estimate: "estimate";
259
+ evidence_reference: "evidence_reference";
260
+ external_binding: "external_binding";
261
+ focus_policy: "focus_policy";
262
+ folder_projection: "folder_projection";
263
+ form: "form";
264
+ guest: "guest";
265
+ habit: "habit";
266
+ inbox_item: "inbox_item";
267
+ initiative: "initiative";
268
+ issue: "issue";
269
+ key_result: "key_result";
270
+ list: "list";
271
+ member: "member";
272
+ mention: "mention";
273
+ milestone: "milestone";
274
+ objective: "objective";
275
+ occurrence: "occurrence";
276
+ organization: "organization";
277
+ planning_intent: "planning_intent";
278
+ portfolio: "portfolio";
279
+ program: "program";
280
+ project: "project";
281
+ proofing_request: "proofing_request";
282
+ reaction: "reaction";
283
+ recurrence_template: "recurrence_template";
284
+ relationship: "relationship";
285
+ roadmap: "roadmap";
286
+ saved_view: "saved_view";
287
+ schedule_binding_reference: "schedule_binding_reference";
288
+ service_principal: "service_principal";
289
+ status_workflow: "status_workflow";
290
+ story: "story";
291
+ subtask: "subtask";
292
+ sync_conflict: "sync_conflict";
293
+ sync_cursor: "sync_cursor";
294
+ task: "task";
295
+ team: "team";
296
+ template: "template";
297
+ time_entry: "time_entry";
298
+ tombstone: "tombstone";
299
+ workspace: "workspace";
300
+ }>;
301
+ }, z.core.$strip>;
302
+ fieldPath: z.ZodString;
303
+ baseValueRef: z.ZodString;
304
+ nativeValueRef: z.ZodString;
305
+ remoteValueRef: z.ZodString;
306
+ detectedAt: z.ZodString;
307
+ status: z.ZodEnum<{
308
+ open: "open";
309
+ resolved_merge: "resolved_merge";
310
+ resolved_native: "resolved_native";
311
+ resolved_remote: "resolved_remote";
312
+ }>;
313
+ resolvedAt: z.ZodOptional<z.ZodString>;
314
+ resolvedByRef: z.ZodOptional<z.ZodObject<{
315
+ id: z.ZodString;
316
+ kind: z.ZodEnum<{
317
+ activity: "activity";
318
+ agent_reference: "agent_reference";
319
+ approval_reference: "approval_reference";
320
+ attachment: "attachment";
321
+ automation_reference: "automation_reference";
322
+ bug: "bug";
323
+ canvas_reference: "canvas_reference";
324
+ capture_reference: "capture_reference";
325
+ collection: "collection";
326
+ comment: "comment";
327
+ contractor: "contractor";
328
+ cross_organization_acl_grant: "cross_organization_acl_grant";
329
+ custom_field_definition: "custom_field_definition";
330
+ custom_field_value: "custom_field_value";
331
+ cycle: "cycle";
332
+ dependency: "dependency";
333
+ document_reference: "document_reference";
334
+ epic: "epic";
335
+ estimate: "estimate";
336
+ evidence_reference: "evidence_reference";
337
+ external_binding: "external_binding";
338
+ focus_policy: "focus_policy";
339
+ folder_projection: "folder_projection";
340
+ form: "form";
341
+ guest: "guest";
342
+ habit: "habit";
343
+ inbox_item: "inbox_item";
344
+ initiative: "initiative";
345
+ issue: "issue";
346
+ key_result: "key_result";
347
+ list: "list";
348
+ member: "member";
349
+ mention: "mention";
350
+ milestone: "milestone";
351
+ objective: "objective";
352
+ occurrence: "occurrence";
353
+ organization: "organization";
354
+ planning_intent: "planning_intent";
355
+ portfolio: "portfolio";
356
+ program: "program";
357
+ project: "project";
358
+ proofing_request: "proofing_request";
359
+ reaction: "reaction";
360
+ recurrence_template: "recurrence_template";
361
+ relationship: "relationship";
362
+ roadmap: "roadmap";
363
+ saved_view: "saved_view";
364
+ schedule_binding_reference: "schedule_binding_reference";
365
+ service_principal: "service_principal";
366
+ status_workflow: "status_workflow";
367
+ story: "story";
368
+ subtask: "subtask";
369
+ sync_conflict: "sync_conflict";
370
+ sync_cursor: "sync_cursor";
371
+ task: "task";
372
+ team: "team";
373
+ template: "template";
374
+ time_entry: "time_entry";
375
+ tombstone: "tombstone";
376
+ workspace: "workspace";
377
+ }>;
378
+ }, z.core.$strip>>;
379
+ }, z.core.$strip>;
380
+ export type WorkSyncConflict = z.infer<typeof WorkSyncConflictSchema>;
381
+ export declare const WorkTombstoneSchema: z.ZodObject<{
382
+ id: z.ZodString;
383
+ metadata: z.ZodObject<{
384
+ scope: z.ZodObject<{
385
+ tenantId: z.ZodString;
386
+ organizationId: z.ZodString;
387
+ workspaceId: z.ZodString;
388
+ }, z.core.$strip>;
389
+ createdAt: z.ZodString;
390
+ createdBy: z.ZodObject<{
391
+ principalId: z.ZodString;
392
+ principalKind: z.ZodEnum<{
393
+ contractor: "contractor";
394
+ guest: "guest";
395
+ member: "member";
396
+ service_principal: "service_principal";
397
+ }>;
398
+ }, z.core.$strip>;
399
+ updatedAt: z.ZodString;
400
+ updatedBy: z.ZodObject<{
401
+ principalId: z.ZodString;
402
+ principalKind: z.ZodEnum<{
403
+ contractor: "contractor";
404
+ guest: "guest";
405
+ member: "member";
406
+ service_principal: "service_principal";
407
+ }>;
408
+ }, z.core.$strip>;
409
+ revision: z.ZodNumber;
410
+ }, z.core.$strip>;
411
+ workRef: z.ZodObject<{
412
+ id: z.ZodString;
413
+ kind: z.ZodEnum<{
414
+ activity: "activity";
415
+ agent_reference: "agent_reference";
416
+ approval_reference: "approval_reference";
417
+ attachment: "attachment";
418
+ automation_reference: "automation_reference";
419
+ bug: "bug";
420
+ canvas_reference: "canvas_reference";
421
+ capture_reference: "capture_reference";
422
+ collection: "collection";
423
+ comment: "comment";
424
+ contractor: "contractor";
425
+ cross_organization_acl_grant: "cross_organization_acl_grant";
426
+ custom_field_definition: "custom_field_definition";
427
+ custom_field_value: "custom_field_value";
428
+ cycle: "cycle";
429
+ dependency: "dependency";
430
+ document_reference: "document_reference";
431
+ epic: "epic";
432
+ estimate: "estimate";
433
+ evidence_reference: "evidence_reference";
434
+ external_binding: "external_binding";
435
+ focus_policy: "focus_policy";
436
+ folder_projection: "folder_projection";
437
+ form: "form";
438
+ guest: "guest";
439
+ habit: "habit";
440
+ inbox_item: "inbox_item";
441
+ initiative: "initiative";
442
+ issue: "issue";
443
+ key_result: "key_result";
444
+ list: "list";
445
+ member: "member";
446
+ mention: "mention";
447
+ milestone: "milestone";
448
+ objective: "objective";
449
+ occurrence: "occurrence";
450
+ organization: "organization";
451
+ planning_intent: "planning_intent";
452
+ portfolio: "portfolio";
453
+ program: "program";
454
+ project: "project";
455
+ proofing_request: "proofing_request";
456
+ reaction: "reaction";
457
+ recurrence_template: "recurrence_template";
458
+ relationship: "relationship";
459
+ roadmap: "roadmap";
460
+ saved_view: "saved_view";
461
+ schedule_binding_reference: "schedule_binding_reference";
462
+ service_principal: "service_principal";
463
+ status_workflow: "status_workflow";
464
+ story: "story";
465
+ subtask: "subtask";
466
+ sync_conflict: "sync_conflict";
467
+ sync_cursor: "sync_cursor";
468
+ task: "task";
469
+ team: "team";
470
+ template: "template";
471
+ time_entry: "time_entry";
472
+ tombstone: "tombstone";
473
+ workspace: "workspace";
474
+ }>;
475
+ }, z.core.$strip>;
476
+ bindingRef: z.ZodOptional<z.ZodObject<{
477
+ id: z.ZodString;
478
+ kind: z.ZodEnum<{
479
+ activity: "activity";
480
+ agent_reference: "agent_reference";
481
+ approval_reference: "approval_reference";
482
+ attachment: "attachment";
483
+ automation_reference: "automation_reference";
484
+ bug: "bug";
485
+ canvas_reference: "canvas_reference";
486
+ capture_reference: "capture_reference";
487
+ collection: "collection";
488
+ comment: "comment";
489
+ contractor: "contractor";
490
+ cross_organization_acl_grant: "cross_organization_acl_grant";
491
+ custom_field_definition: "custom_field_definition";
492
+ custom_field_value: "custom_field_value";
493
+ cycle: "cycle";
494
+ dependency: "dependency";
495
+ document_reference: "document_reference";
496
+ epic: "epic";
497
+ estimate: "estimate";
498
+ evidence_reference: "evidence_reference";
499
+ external_binding: "external_binding";
500
+ focus_policy: "focus_policy";
501
+ folder_projection: "folder_projection";
502
+ form: "form";
503
+ guest: "guest";
504
+ habit: "habit";
505
+ inbox_item: "inbox_item";
506
+ initiative: "initiative";
507
+ issue: "issue";
508
+ key_result: "key_result";
509
+ list: "list";
510
+ member: "member";
511
+ mention: "mention";
512
+ milestone: "milestone";
513
+ objective: "objective";
514
+ occurrence: "occurrence";
515
+ organization: "organization";
516
+ planning_intent: "planning_intent";
517
+ portfolio: "portfolio";
518
+ program: "program";
519
+ project: "project";
520
+ proofing_request: "proofing_request";
521
+ reaction: "reaction";
522
+ recurrence_template: "recurrence_template";
523
+ relationship: "relationship";
524
+ roadmap: "roadmap";
525
+ saved_view: "saved_view";
526
+ schedule_binding_reference: "schedule_binding_reference";
527
+ service_principal: "service_principal";
528
+ status_workflow: "status_workflow";
529
+ story: "story";
530
+ subtask: "subtask";
531
+ sync_conflict: "sync_conflict";
532
+ sync_cursor: "sync_cursor";
533
+ task: "task";
534
+ team: "team";
535
+ template: "template";
536
+ time_entry: "time_entry";
537
+ tombstone: "tombstone";
538
+ workspace: "workspace";
539
+ }>;
540
+ }, z.core.$strip>>;
541
+ deletedAt: z.ZodString;
542
+ recoverUntil: z.ZodString;
543
+ reason: z.ZodString;
544
+ }, z.core.$strip>;
545
+ export type WorkTombstone = z.infer<typeof WorkTombstoneSchema>;
package/dist/sync.js ADDED
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{z as e}from"zod";import{z as o}from"zod";import{z as a}from"zod";var c=a.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"]),y=a.enum(["backlog","unstarted","started","completed","cancelled"]),u=a.enum(["parent","child","blocks","blocked_by","relates_to","duplicates","duplicated_by","supersedes","multi_homed_in"]);var m=/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,t=o.string().regex(m,"UUIDv7 required"),r=o.string().datetime({offset:!0}),n=o.object({id:t,kind:c}),p=o.object({principalId:t,principalKind:o.enum(["member","guest","contractor","service_principal"])}),s=o.object({tenantId:t,organizationId:t,workspaceId:t}),i=o.object({scope:s,createdAt:r,createdBy:p,updatedAt:r,updatedBy:p,revision:o.number().int().nonnegative()});var d=e.enum(["import_once","mirror_remote","two_way"]),f=e.enum(["native","remote","merge"]),l=e.enum(["content","status","assignment","dates","custom_fields"]),x=e.object({id:t,metadata:i,workRef:n,providerKey:e.string().min(1),connectionId:t,remoteObjectType:e.string().min(1),remoteObjectId:e.string().min(1),remoteRevision:e.string().min(1).optional(),mode:d,authority:e.record(l,f),lastSynchronizedSnapshotRef:e.string().min(1).optional(),adapterPayloadRef:e.string().min(1).optional()}),R=e.object({id:t,metadata:i,bindingRef:n,workRef:n,fieldPath:e.string().min(1),baseValueRef:e.string().min(1),nativeValueRef:e.string().min(1),remoteValueRef:e.string().min(1),detectedAt:r,status:e.enum(["open","resolved_native","resolved_remote","resolved_merge"]),resolvedAt:r.optional(),resolvedByRef:n.optional()}),v=e.object({id:t,metadata:i,workRef:n,bindingRef:n.optional(),deletedAt:r,recoverUntil:r,reason:e.string().min(1)});export{x as WorkExternalBindingSchema,f as WorkFieldAuthoritySchema,l as WorkFieldGroupSchema,R as WorkSyncConflictSchema,d as WorkSyncModeSchema,v as WorkTombstoneSchema};