@treeseed/sdk 0.13.0-rc.60 → 0.13.0-rc.62
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.
- package/dist/.treeseed-build-complete.json +1 -1
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +120 -120
- package/dist/capacity-provider/capability-ontology.d.ts +190 -190
- package/dist/capacity-provider/client.d.ts +3 -3
- package/dist/capacity-provider/core-capability-catalog.d.ts +13 -13
- package/dist/capacity-provider/environment-catalog.d.ts +62 -62
- package/dist/capacity-provider/sandbox-contracts.d.ts +66 -66
- package/dist/content/validation/agent-operational-content-schemas.d.ts +72 -72
- package/dist/content/validation/auxiliary-content-schemas.d.ts +74 -74
- package/dist/content/validation/content-model-schemas.d.ts +435 -435
- package/dist/content/validation/portable-content-data.d.ts +53 -53
- package/dist/deployment/ai-mode.d.ts +46 -46
- package/dist/deployment/schemas.d.ts +648 -648
- package/dist/development/schemas.d.ts +290 -290
- package/dist/operator-contracts/canonical-command-tree.js +10 -0
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +41 -41
- package/dist/operator-contracts/catalog/communication-operations.d.ts +62 -62
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +34 -34
- package/dist/operator-contracts/communication/contracts.d.ts +228 -228
- package/dist/operator-contracts/control-plane-operations.d.ts +145 -145
- package/dist/operator-contracts/inbox/contracts.d.ts +108 -108
- package/dist/platform/contracts.d.ts +383 -0
- package/dist/platform/contracts.js +79 -0
- package/dist/platform/index.d.ts +5 -0
- package/dist/platform/index.js +5 -0
- package/dist/platform/inventory.d.ts +11 -0
- package/dist/platform/inventory.js +53 -0
- package/dist/platform/schemas.d.ts +806 -0
- package/dist/platform/schemas.js +68 -0
- package/dist/platform/verification.d.ts +9 -0
- package/dist/platform/verification.js +104 -0
- package/dist/platform/workset.d.ts +21 -0
- package/dist/platform/workset.js +102 -0
- package/dist/security/encrypted-envelope.d.ts +14 -14
- package/package.json +5 -1
|
@@ -26,17 +26,17 @@ export declare const inboxActionDescriptorSchema: z.ZodObject<{
|
|
|
26
26
|
requiresFeedback: z.ZodBoolean;
|
|
27
27
|
confirmation: z.ZodEnum<["never", "input_required"]>;
|
|
28
28
|
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
29
30
|
reason: string | null;
|
|
30
31
|
label: string;
|
|
31
32
|
enabled: boolean;
|
|
32
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
33
33
|
confirmation: "never" | "input_required";
|
|
34
34
|
requiresFeedback: boolean;
|
|
35
35
|
}, {
|
|
36
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
36
37
|
reason: string | null;
|
|
37
38
|
label: string;
|
|
38
39
|
enabled: boolean;
|
|
39
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
40
40
|
confirmation: "never" | "input_required";
|
|
41
41
|
requiresFeedback: boolean;
|
|
42
42
|
}>;
|
|
@@ -65,9 +65,9 @@ export declare const inboxCommentSchema: z.ZodObject<{
|
|
|
65
65
|
commitSha: string | null;
|
|
66
66
|
}>;
|
|
67
67
|
}, "strict", z.ZodTypeAny, {
|
|
68
|
+
id: string;
|
|
68
69
|
createdAt: string;
|
|
69
70
|
kind: "comment" | "answer" | "reply";
|
|
70
|
-
id: string;
|
|
71
71
|
provenance: {
|
|
72
72
|
digest: string | null;
|
|
73
73
|
repositoryId: string | null;
|
|
@@ -79,9 +79,9 @@ export declare const inboxCommentSchema: z.ZodObject<{
|
|
|
79
79
|
authorId: string;
|
|
80
80
|
authorLabel: string;
|
|
81
81
|
}, {
|
|
82
|
+
id: string;
|
|
82
83
|
createdAt: string;
|
|
83
84
|
kind: "comment" | "answer" | "reply";
|
|
84
|
-
id: string;
|
|
85
85
|
provenance: {
|
|
86
86
|
digest: string | null;
|
|
87
87
|
repositoryId: string | null;
|
|
@@ -133,17 +133,17 @@ export declare const inboxItemSchema: z.ZodObject<{
|
|
|
133
133
|
requiresFeedback: z.ZodBoolean;
|
|
134
134
|
confirmation: z.ZodEnum<["never", "input_required"]>;
|
|
135
135
|
}, "strict", z.ZodTypeAny, {
|
|
136
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
136
137
|
reason: string | null;
|
|
137
138
|
label: string;
|
|
138
139
|
enabled: boolean;
|
|
139
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
140
140
|
confirmation: "never" | "input_required";
|
|
141
141
|
requiresFeedback: boolean;
|
|
142
142
|
}, {
|
|
143
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
143
144
|
reason: string | null;
|
|
144
145
|
label: string;
|
|
145
146
|
enabled: boolean;
|
|
146
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
147
147
|
confirmation: "never" | "input_required";
|
|
148
148
|
requiresFeedback: boolean;
|
|
149
149
|
}>, "many">;
|
|
@@ -172,9 +172,9 @@ export declare const inboxItemSchema: z.ZodObject<{
|
|
|
172
172
|
commitSha: string | null;
|
|
173
173
|
}>;
|
|
174
174
|
}, "strict", z.ZodTypeAny, {
|
|
175
|
+
id: string;
|
|
175
176
|
createdAt: string;
|
|
176
177
|
kind: "comment" | "answer" | "reply";
|
|
177
|
-
id: string;
|
|
178
178
|
provenance: {
|
|
179
179
|
digest: string | null;
|
|
180
180
|
repositoryId: string | null;
|
|
@@ -186,9 +186,9 @@ export declare const inboxItemSchema: z.ZodObject<{
|
|
|
186
186
|
authorId: string;
|
|
187
187
|
authorLabel: string;
|
|
188
188
|
}, {
|
|
189
|
+
id: string;
|
|
189
190
|
createdAt: string;
|
|
190
191
|
kind: "comment" | "answer" | "reply";
|
|
191
|
-
id: string;
|
|
192
192
|
provenance: {
|
|
193
193
|
digest: string | null;
|
|
194
194
|
repositoryId: string | null;
|
|
@@ -202,20 +202,20 @@ export declare const inboxItemSchema: z.ZodObject<{
|
|
|
202
202
|
}>, "many">;
|
|
203
203
|
etag: z.ZodString;
|
|
204
204
|
}, "strict", z.ZodTypeAny, {
|
|
205
|
-
teamId: string;
|
|
206
|
-
schemaVersion: "treeseed.inbox-item/v1";
|
|
207
205
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
208
|
-
|
|
209
|
-
kind: "proposal" | "question";
|
|
206
|
+
schemaVersion: "treeseed.inbox-item/v1";
|
|
210
207
|
id: string;
|
|
208
|
+
version: number;
|
|
211
209
|
projectId: string;
|
|
210
|
+
teamId: string;
|
|
211
|
+
createdAt: string;
|
|
212
|
+
kind: "proposal" | "question";
|
|
212
213
|
provenance: {
|
|
213
214
|
digest: string | null;
|
|
214
215
|
repositoryId: string | null;
|
|
215
216
|
contentPath: string | null;
|
|
216
217
|
commitSha: string | null;
|
|
217
218
|
};
|
|
218
|
-
version: number;
|
|
219
219
|
projectSlug: string;
|
|
220
220
|
updatedAt: string;
|
|
221
221
|
markdown: string;
|
|
@@ -224,17 +224,17 @@ export declare const inboxItemSchema: z.ZodObject<{
|
|
|
224
224
|
authorLabel: string;
|
|
225
225
|
title: string;
|
|
226
226
|
availableActions: {
|
|
227
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
227
228
|
reason: string | null;
|
|
228
229
|
label: string;
|
|
229
230
|
enabled: boolean;
|
|
230
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
231
231
|
confirmation: "never" | "input_required";
|
|
232
232
|
requiresFeedback: boolean;
|
|
233
233
|
}[];
|
|
234
234
|
comments: {
|
|
235
|
+
id: string;
|
|
235
236
|
createdAt: string;
|
|
236
237
|
kind: "comment" | "answer" | "reply";
|
|
237
|
-
id: string;
|
|
238
238
|
provenance: {
|
|
239
239
|
digest: string | null;
|
|
240
240
|
repositoryId: string | null;
|
|
@@ -248,20 +248,20 @@ export declare const inboxItemSchema: z.ZodObject<{
|
|
|
248
248
|
}[];
|
|
249
249
|
etag: string;
|
|
250
250
|
}, {
|
|
251
|
-
teamId: string;
|
|
252
|
-
schemaVersion: "treeseed.inbox-item/v1";
|
|
253
251
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
254
|
-
|
|
255
|
-
kind: "proposal" | "question";
|
|
252
|
+
schemaVersion: "treeseed.inbox-item/v1";
|
|
256
253
|
id: string;
|
|
254
|
+
version: number;
|
|
257
255
|
projectId: string;
|
|
256
|
+
teamId: string;
|
|
257
|
+
createdAt: string;
|
|
258
|
+
kind: "proposal" | "question";
|
|
258
259
|
provenance: {
|
|
259
260
|
digest: string | null;
|
|
260
261
|
repositoryId: string | null;
|
|
261
262
|
contentPath: string | null;
|
|
262
263
|
commitSha: string | null;
|
|
263
264
|
};
|
|
264
|
-
version: number;
|
|
265
265
|
projectSlug: string;
|
|
266
266
|
updatedAt: string;
|
|
267
267
|
markdown: string;
|
|
@@ -270,17 +270,17 @@ export declare const inboxItemSchema: z.ZodObject<{
|
|
|
270
270
|
authorLabel: string;
|
|
271
271
|
title: string;
|
|
272
272
|
availableActions: {
|
|
273
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
273
274
|
reason: string | null;
|
|
274
275
|
label: string;
|
|
275
276
|
enabled: boolean;
|
|
276
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
277
277
|
confirmation: "never" | "input_required";
|
|
278
278
|
requiresFeedback: boolean;
|
|
279
279
|
}[];
|
|
280
280
|
comments: {
|
|
281
|
+
id: string;
|
|
281
282
|
createdAt: string;
|
|
282
283
|
kind: "comment" | "answer" | "reply";
|
|
283
|
-
id: string;
|
|
284
284
|
provenance: {
|
|
285
285
|
digest: string | null;
|
|
286
286
|
repositoryId: string | null;
|
|
@@ -334,17 +334,17 @@ export declare const inboxItemSummarySchema: z.ZodObject<Pick<{
|
|
|
334
334
|
requiresFeedback: z.ZodBoolean;
|
|
335
335
|
confirmation: z.ZodEnum<["never", "input_required"]>;
|
|
336
336
|
}, "strict", z.ZodTypeAny, {
|
|
337
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
337
338
|
reason: string | null;
|
|
338
339
|
label: string;
|
|
339
340
|
enabled: boolean;
|
|
340
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
341
341
|
confirmation: "never" | "input_required";
|
|
342
342
|
requiresFeedback: boolean;
|
|
343
343
|
}, {
|
|
344
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
344
345
|
reason: string | null;
|
|
345
346
|
label: string;
|
|
346
347
|
enabled: boolean;
|
|
347
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
348
348
|
confirmation: "never" | "input_required";
|
|
349
349
|
requiresFeedback: boolean;
|
|
350
350
|
}>, "many">;
|
|
@@ -373,9 +373,9 @@ export declare const inboxItemSummarySchema: z.ZodObject<Pick<{
|
|
|
373
373
|
commitSha: string | null;
|
|
374
374
|
}>;
|
|
375
375
|
}, "strict", z.ZodTypeAny, {
|
|
376
|
+
id: string;
|
|
376
377
|
createdAt: string;
|
|
377
378
|
kind: "comment" | "answer" | "reply";
|
|
378
|
-
id: string;
|
|
379
379
|
provenance: {
|
|
380
380
|
digest: string | null;
|
|
381
381
|
repositoryId: string | null;
|
|
@@ -387,9 +387,9 @@ export declare const inboxItemSummarySchema: z.ZodObject<Pick<{
|
|
|
387
387
|
authorId: string;
|
|
388
388
|
authorLabel: string;
|
|
389
389
|
}, {
|
|
390
|
+
id: string;
|
|
390
391
|
createdAt: string;
|
|
391
392
|
kind: "comment" | "answer" | "reply";
|
|
392
|
-
id: string;
|
|
393
393
|
provenance: {
|
|
394
394
|
digest: string | null;
|
|
395
395
|
repositoryId: string | null;
|
|
@@ -402,14 +402,14 @@ export declare const inboxItemSummarySchema: z.ZodObject<Pick<{
|
|
|
402
402
|
authorLabel: string;
|
|
403
403
|
}>, "many">;
|
|
404
404
|
etag: z.ZodString;
|
|
405
|
-
}, "
|
|
406
|
-
teamId: string;
|
|
405
|
+
}, "status" | "id" | "version" | "projectId" | "teamId" | "createdAt" | "kind" | "projectSlug" | "updatedAt" | "authorId" | "authorLabel" | "title" | "etag">, "strict", z.ZodTypeAny, {
|
|
407
406
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
408
|
-
createdAt: string;
|
|
409
|
-
kind: "proposal" | "question";
|
|
410
407
|
id: string;
|
|
411
|
-
projectId: string;
|
|
412
408
|
version: number;
|
|
409
|
+
projectId: string;
|
|
410
|
+
teamId: string;
|
|
411
|
+
createdAt: string;
|
|
412
|
+
kind: "proposal" | "question";
|
|
413
413
|
projectSlug: string;
|
|
414
414
|
updatedAt: string;
|
|
415
415
|
authorId: string;
|
|
@@ -417,13 +417,13 @@ export declare const inboxItemSummarySchema: z.ZodObject<Pick<{
|
|
|
417
417
|
title: string;
|
|
418
418
|
etag: string;
|
|
419
419
|
}, {
|
|
420
|
-
teamId: string;
|
|
421
420
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
422
|
-
createdAt: string;
|
|
423
|
-
kind: "proposal" | "question";
|
|
424
421
|
id: string;
|
|
425
|
-
projectId: string;
|
|
426
422
|
version: number;
|
|
423
|
+
projectId: string;
|
|
424
|
+
teamId: string;
|
|
425
|
+
createdAt: string;
|
|
426
|
+
kind: "proposal" | "question";
|
|
427
427
|
projectSlug: string;
|
|
428
428
|
updatedAt: string;
|
|
429
429
|
authorId: string;
|
|
@@ -473,17 +473,17 @@ export declare const inboxItemPageSchema: z.ZodObject<{
|
|
|
473
473
|
requiresFeedback: z.ZodBoolean;
|
|
474
474
|
confirmation: z.ZodEnum<["never", "input_required"]>;
|
|
475
475
|
}, "strict", z.ZodTypeAny, {
|
|
476
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
476
477
|
reason: string | null;
|
|
477
478
|
label: string;
|
|
478
479
|
enabled: boolean;
|
|
479
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
480
480
|
confirmation: "never" | "input_required";
|
|
481
481
|
requiresFeedback: boolean;
|
|
482
482
|
}, {
|
|
483
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
483
484
|
reason: string | null;
|
|
484
485
|
label: string;
|
|
485
486
|
enabled: boolean;
|
|
486
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
487
487
|
confirmation: "never" | "input_required";
|
|
488
488
|
requiresFeedback: boolean;
|
|
489
489
|
}>, "many">;
|
|
@@ -512,9 +512,9 @@ export declare const inboxItemPageSchema: z.ZodObject<{
|
|
|
512
512
|
commitSha: string | null;
|
|
513
513
|
}>;
|
|
514
514
|
}, "strict", z.ZodTypeAny, {
|
|
515
|
+
id: string;
|
|
515
516
|
createdAt: string;
|
|
516
517
|
kind: "comment" | "answer" | "reply";
|
|
517
|
-
id: string;
|
|
518
518
|
provenance: {
|
|
519
519
|
digest: string | null;
|
|
520
520
|
repositoryId: string | null;
|
|
@@ -526,9 +526,9 @@ export declare const inboxItemPageSchema: z.ZodObject<{
|
|
|
526
526
|
authorId: string;
|
|
527
527
|
authorLabel: string;
|
|
528
528
|
}, {
|
|
529
|
+
id: string;
|
|
529
530
|
createdAt: string;
|
|
530
531
|
kind: "comment" | "answer" | "reply";
|
|
531
|
-
id: string;
|
|
532
532
|
provenance: {
|
|
533
533
|
digest: string | null;
|
|
534
534
|
repositoryId: string | null;
|
|
@@ -541,14 +541,14 @@ export declare const inboxItemPageSchema: z.ZodObject<{
|
|
|
541
541
|
authorLabel: string;
|
|
542
542
|
}>, "many">;
|
|
543
543
|
etag: z.ZodString;
|
|
544
|
-
}, "
|
|
545
|
-
teamId: string;
|
|
544
|
+
}, "status" | "id" | "version" | "projectId" | "teamId" | "createdAt" | "kind" | "projectSlug" | "updatedAt" | "authorId" | "authorLabel" | "title" | "etag">, "strict", z.ZodTypeAny, {
|
|
546
545
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
547
|
-
createdAt: string;
|
|
548
|
-
kind: "proposal" | "question";
|
|
549
546
|
id: string;
|
|
550
|
-
projectId: string;
|
|
551
547
|
version: number;
|
|
548
|
+
projectId: string;
|
|
549
|
+
teamId: string;
|
|
550
|
+
createdAt: string;
|
|
551
|
+
kind: "proposal" | "question";
|
|
552
552
|
projectSlug: string;
|
|
553
553
|
updatedAt: string;
|
|
554
554
|
authorId: string;
|
|
@@ -556,13 +556,13 @@ export declare const inboxItemPageSchema: z.ZodObject<{
|
|
|
556
556
|
title: string;
|
|
557
557
|
etag: string;
|
|
558
558
|
}, {
|
|
559
|
-
teamId: string;
|
|
560
559
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
561
|
-
createdAt: string;
|
|
562
|
-
kind: "proposal" | "question";
|
|
563
560
|
id: string;
|
|
564
|
-
projectId: string;
|
|
565
561
|
version: number;
|
|
562
|
+
projectId: string;
|
|
563
|
+
teamId: string;
|
|
564
|
+
createdAt: string;
|
|
565
|
+
kind: "proposal" | "question";
|
|
566
566
|
projectSlug: string;
|
|
567
567
|
updatedAt: string;
|
|
568
568
|
authorId: string;
|
|
@@ -574,13 +574,13 @@ export declare const inboxItemPageSchema: z.ZodObject<{
|
|
|
574
574
|
}, "strict", z.ZodTypeAny, {
|
|
575
575
|
schemaVersion: "treeseed.inbox-page/v1";
|
|
576
576
|
items: {
|
|
577
|
-
teamId: string;
|
|
578
577
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
579
|
-
createdAt: string;
|
|
580
|
-
kind: "proposal" | "question";
|
|
581
578
|
id: string;
|
|
582
|
-
projectId: string;
|
|
583
579
|
version: number;
|
|
580
|
+
projectId: string;
|
|
581
|
+
teamId: string;
|
|
582
|
+
createdAt: string;
|
|
583
|
+
kind: "proposal" | "question";
|
|
584
584
|
projectSlug: string;
|
|
585
585
|
updatedAt: string;
|
|
586
586
|
authorId: string;
|
|
@@ -592,13 +592,13 @@ export declare const inboxItemPageSchema: z.ZodObject<{
|
|
|
592
592
|
}, {
|
|
593
593
|
schemaVersion: "treeseed.inbox-page/v1";
|
|
594
594
|
items: {
|
|
595
|
-
teamId: string;
|
|
596
595
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
597
|
-
createdAt: string;
|
|
598
|
-
kind: "proposal" | "question";
|
|
599
596
|
id: string;
|
|
600
|
-
projectId: string;
|
|
601
597
|
version: number;
|
|
598
|
+
projectId: string;
|
|
599
|
+
teamId: string;
|
|
600
|
+
createdAt: string;
|
|
601
|
+
kind: "proposal" | "question";
|
|
602
602
|
projectSlug: string;
|
|
603
603
|
updatedAt: string;
|
|
604
604
|
authorId: string;
|
|
@@ -620,23 +620,23 @@ export declare const inboxEventSchema: z.ZodObject<{
|
|
|
620
620
|
summary: z.ZodString;
|
|
621
621
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
622
622
|
}, "strict", z.ZodTypeAny, {
|
|
623
|
+
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
624
|
+
schemaVersion: "treeseed.inbox-event/v1";
|
|
625
|
+
id: string;
|
|
623
626
|
teamId: string;
|
|
624
627
|
sequence: string;
|
|
625
|
-
schemaVersion: "treeseed.inbox-event/v1";
|
|
626
|
-
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
627
628
|
payload: Record<string, unknown>;
|
|
628
|
-
id: string;
|
|
629
629
|
summary: string;
|
|
630
630
|
occurredAt: string;
|
|
631
631
|
itemId: string | null;
|
|
632
632
|
actorId: string;
|
|
633
633
|
}, {
|
|
634
|
+
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
635
|
+
schemaVersion: "treeseed.inbox-event/v1";
|
|
636
|
+
id: string;
|
|
634
637
|
teamId: string;
|
|
635
638
|
sequence: string;
|
|
636
|
-
schemaVersion: "treeseed.inbox-event/v1";
|
|
637
|
-
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
638
639
|
payload: Record<string, unknown>;
|
|
639
|
-
id: string;
|
|
640
640
|
summary: string;
|
|
641
641
|
occurredAt: string;
|
|
642
642
|
itemId: string | null;
|
|
@@ -655,23 +655,23 @@ export declare const inboxTimelineSchema: z.ZodObject<{
|
|
|
655
655
|
summary: z.ZodString;
|
|
656
656
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
657
657
|
}, "strict", z.ZodTypeAny, {
|
|
658
|
+
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
659
|
+
schemaVersion: "treeseed.inbox-event/v1";
|
|
660
|
+
id: string;
|
|
658
661
|
teamId: string;
|
|
659
662
|
sequence: string;
|
|
660
|
-
schemaVersion: "treeseed.inbox-event/v1";
|
|
661
|
-
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
662
663
|
payload: Record<string, unknown>;
|
|
663
|
-
id: string;
|
|
664
664
|
summary: string;
|
|
665
665
|
occurredAt: string;
|
|
666
666
|
itemId: string | null;
|
|
667
667
|
actorId: string;
|
|
668
668
|
}, {
|
|
669
|
+
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
670
|
+
schemaVersion: "treeseed.inbox-event/v1";
|
|
671
|
+
id: string;
|
|
669
672
|
teamId: string;
|
|
670
673
|
sequence: string;
|
|
671
|
-
schemaVersion: "treeseed.inbox-event/v1";
|
|
672
|
-
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
673
674
|
payload: Record<string, unknown>;
|
|
674
|
-
id: string;
|
|
675
675
|
summary: string;
|
|
676
676
|
occurredAt: string;
|
|
677
677
|
itemId: string | null;
|
|
@@ -681,12 +681,12 @@ export declare const inboxTimelineSchema: z.ZodObject<{
|
|
|
681
681
|
}, "strict", z.ZodTypeAny, {
|
|
682
682
|
cursor: string;
|
|
683
683
|
events: {
|
|
684
|
+
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
685
|
+
schemaVersion: "treeseed.inbox-event/v1";
|
|
686
|
+
id: string;
|
|
684
687
|
teamId: string;
|
|
685
688
|
sequence: string;
|
|
686
|
-
schemaVersion: "treeseed.inbox-event/v1";
|
|
687
|
-
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
688
689
|
payload: Record<string, unknown>;
|
|
689
|
-
id: string;
|
|
690
690
|
summary: string;
|
|
691
691
|
occurredAt: string;
|
|
692
692
|
itemId: string | null;
|
|
@@ -695,12 +695,12 @@ export declare const inboxTimelineSchema: z.ZodObject<{
|
|
|
695
695
|
}, {
|
|
696
696
|
cursor: string;
|
|
697
697
|
events: {
|
|
698
|
+
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
699
|
+
schemaVersion: "treeseed.inbox-event/v1";
|
|
700
|
+
id: string;
|
|
698
701
|
teamId: string;
|
|
699
702
|
sequence: string;
|
|
700
|
-
schemaVersion: "treeseed.inbox-event/v1";
|
|
701
|
-
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
702
703
|
payload: Record<string, unknown>;
|
|
703
|
-
id: string;
|
|
704
704
|
summary: string;
|
|
705
705
|
occurredAt: string;
|
|
706
706
|
itemId: string | null;
|
|
@@ -718,8 +718,8 @@ export declare const inboxDraftSchema: z.ZodObject<{
|
|
|
718
718
|
updatedAt: z.ZodString;
|
|
719
719
|
etag: z.ZodString;
|
|
720
720
|
}, "strict", z.ZodTypeAny, {
|
|
721
|
-
purpose: "feedback" | "proposal_revision";
|
|
722
721
|
schemaVersion: "treeseed.inbox-draft/v1";
|
|
722
|
+
purpose: "feedback" | "proposal_revision";
|
|
723
723
|
revision: number;
|
|
724
724
|
updatedAt: string;
|
|
725
725
|
markdown: string;
|
|
@@ -727,8 +727,8 @@ export declare const inboxDraftSchema: z.ZodObject<{
|
|
|
727
727
|
itemId: string;
|
|
728
728
|
baseVersion: number;
|
|
729
729
|
}, {
|
|
730
|
-
purpose: "feedback" | "proposal_revision";
|
|
731
730
|
schemaVersion: "treeseed.inbox-draft/v1";
|
|
731
|
+
purpose: "feedback" | "proposal_revision";
|
|
732
732
|
revision: number;
|
|
733
733
|
updatedAt: string;
|
|
734
734
|
markdown: string;
|
|
@@ -826,17 +826,17 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
826
826
|
requiresFeedback: z.ZodBoolean;
|
|
827
827
|
confirmation: z.ZodEnum<["never", "input_required"]>;
|
|
828
828
|
}, "strict", z.ZodTypeAny, {
|
|
829
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
829
830
|
reason: string | null;
|
|
830
831
|
label: string;
|
|
831
832
|
enabled: boolean;
|
|
832
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
833
833
|
confirmation: "never" | "input_required";
|
|
834
834
|
requiresFeedback: boolean;
|
|
835
835
|
}, {
|
|
836
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
836
837
|
reason: string | null;
|
|
837
838
|
label: string;
|
|
838
839
|
enabled: boolean;
|
|
839
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
840
840
|
confirmation: "never" | "input_required";
|
|
841
841
|
requiresFeedback: boolean;
|
|
842
842
|
}>, "many">;
|
|
@@ -865,9 +865,9 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
865
865
|
commitSha: string | null;
|
|
866
866
|
}>;
|
|
867
867
|
}, "strict", z.ZodTypeAny, {
|
|
868
|
+
id: string;
|
|
868
869
|
createdAt: string;
|
|
869
870
|
kind: "comment" | "answer" | "reply";
|
|
870
|
-
id: string;
|
|
871
871
|
provenance: {
|
|
872
872
|
digest: string | null;
|
|
873
873
|
repositoryId: string | null;
|
|
@@ -879,9 +879,9 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
879
879
|
authorId: string;
|
|
880
880
|
authorLabel: string;
|
|
881
881
|
}, {
|
|
882
|
+
id: string;
|
|
882
883
|
createdAt: string;
|
|
883
884
|
kind: "comment" | "answer" | "reply";
|
|
884
|
-
id: string;
|
|
885
885
|
provenance: {
|
|
886
886
|
digest: string | null;
|
|
887
887
|
repositoryId: string | null;
|
|
@@ -895,20 +895,20 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
895
895
|
}>, "many">;
|
|
896
896
|
etag: z.ZodString;
|
|
897
897
|
}, "strict", z.ZodTypeAny, {
|
|
898
|
-
teamId: string;
|
|
899
|
-
schemaVersion: "treeseed.inbox-item/v1";
|
|
900
898
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
901
|
-
|
|
902
|
-
kind: "proposal" | "question";
|
|
899
|
+
schemaVersion: "treeseed.inbox-item/v1";
|
|
903
900
|
id: string;
|
|
901
|
+
version: number;
|
|
904
902
|
projectId: string;
|
|
903
|
+
teamId: string;
|
|
904
|
+
createdAt: string;
|
|
905
|
+
kind: "proposal" | "question";
|
|
905
906
|
provenance: {
|
|
906
907
|
digest: string | null;
|
|
907
908
|
repositoryId: string | null;
|
|
908
909
|
contentPath: string | null;
|
|
909
910
|
commitSha: string | null;
|
|
910
911
|
};
|
|
911
|
-
version: number;
|
|
912
912
|
projectSlug: string;
|
|
913
913
|
updatedAt: string;
|
|
914
914
|
markdown: string;
|
|
@@ -917,17 +917,17 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
917
917
|
authorLabel: string;
|
|
918
918
|
title: string;
|
|
919
919
|
availableActions: {
|
|
920
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
920
921
|
reason: string | null;
|
|
921
922
|
label: string;
|
|
922
923
|
enabled: boolean;
|
|
923
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
924
924
|
confirmation: "never" | "input_required";
|
|
925
925
|
requiresFeedback: boolean;
|
|
926
926
|
}[];
|
|
927
927
|
comments: {
|
|
928
|
+
id: string;
|
|
928
929
|
createdAt: string;
|
|
929
930
|
kind: "comment" | "answer" | "reply";
|
|
930
|
-
id: string;
|
|
931
931
|
provenance: {
|
|
932
932
|
digest: string | null;
|
|
933
933
|
repositoryId: string | null;
|
|
@@ -941,20 +941,20 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
941
941
|
}[];
|
|
942
942
|
etag: string;
|
|
943
943
|
}, {
|
|
944
|
-
teamId: string;
|
|
945
|
-
schemaVersion: "treeseed.inbox-item/v1";
|
|
946
944
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
947
|
-
|
|
948
|
-
kind: "proposal" | "question";
|
|
945
|
+
schemaVersion: "treeseed.inbox-item/v1";
|
|
949
946
|
id: string;
|
|
947
|
+
version: number;
|
|
950
948
|
projectId: string;
|
|
949
|
+
teamId: string;
|
|
950
|
+
createdAt: string;
|
|
951
|
+
kind: "proposal" | "question";
|
|
951
952
|
provenance: {
|
|
952
953
|
digest: string | null;
|
|
953
954
|
repositoryId: string | null;
|
|
954
955
|
contentPath: string | null;
|
|
955
956
|
commitSha: string | null;
|
|
956
957
|
};
|
|
957
|
-
version: number;
|
|
958
958
|
projectSlug: string;
|
|
959
959
|
updatedAt: string;
|
|
960
960
|
markdown: string;
|
|
@@ -963,17 +963,17 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
963
963
|
authorLabel: string;
|
|
964
964
|
title: string;
|
|
965
965
|
availableActions: {
|
|
966
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
966
967
|
reason: string | null;
|
|
967
968
|
label: string;
|
|
968
969
|
enabled: boolean;
|
|
969
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
970
970
|
confirmation: "never" | "input_required";
|
|
971
971
|
requiresFeedback: boolean;
|
|
972
972
|
}[];
|
|
973
973
|
comments: {
|
|
974
|
+
id: string;
|
|
974
975
|
createdAt: string;
|
|
975
976
|
kind: "comment" | "answer" | "reply";
|
|
976
|
-
id: string;
|
|
977
977
|
provenance: {
|
|
978
978
|
digest: string | null;
|
|
979
979
|
repositoryId: string | null;
|
|
@@ -993,20 +993,20 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
993
993
|
}, "strict", z.ZodTypeAny, {
|
|
994
994
|
schemaVersion: "treeseed.inbox-mutation-receipt/v1";
|
|
995
995
|
item: {
|
|
996
|
-
teamId: string;
|
|
997
|
-
schemaVersion: "treeseed.inbox-item/v1";
|
|
998
996
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
999
|
-
|
|
1000
|
-
kind: "proposal" | "question";
|
|
997
|
+
schemaVersion: "treeseed.inbox-item/v1";
|
|
1001
998
|
id: string;
|
|
999
|
+
version: number;
|
|
1002
1000
|
projectId: string;
|
|
1001
|
+
teamId: string;
|
|
1002
|
+
createdAt: string;
|
|
1003
|
+
kind: "proposal" | "question";
|
|
1003
1004
|
provenance: {
|
|
1004
1005
|
digest: string | null;
|
|
1005
1006
|
repositoryId: string | null;
|
|
1006
1007
|
contentPath: string | null;
|
|
1007
1008
|
commitSha: string | null;
|
|
1008
1009
|
};
|
|
1009
|
-
version: number;
|
|
1010
1010
|
projectSlug: string;
|
|
1011
1011
|
updatedAt: string;
|
|
1012
1012
|
markdown: string;
|
|
@@ -1015,17 +1015,17 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
1015
1015
|
authorLabel: string;
|
|
1016
1016
|
title: string;
|
|
1017
1017
|
availableActions: {
|
|
1018
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
1018
1019
|
reason: string | null;
|
|
1019
1020
|
label: string;
|
|
1020
1021
|
enabled: boolean;
|
|
1021
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
1022
1022
|
confirmation: "never" | "input_required";
|
|
1023
1023
|
requiresFeedback: boolean;
|
|
1024
1024
|
}[];
|
|
1025
1025
|
comments: {
|
|
1026
|
+
id: string;
|
|
1026
1027
|
createdAt: string;
|
|
1027
1028
|
kind: "comment" | "answer" | "reply";
|
|
1028
|
-
id: string;
|
|
1029
1029
|
provenance: {
|
|
1030
1030
|
digest: string | null;
|
|
1031
1031
|
repositoryId: string | null;
|
|
@@ -1045,20 +1045,20 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
1045
1045
|
}, {
|
|
1046
1046
|
schemaVersion: "treeseed.inbox-mutation-receipt/v1";
|
|
1047
1047
|
item: {
|
|
1048
|
-
teamId: string;
|
|
1049
|
-
schemaVersion: "treeseed.inbox-item/v1";
|
|
1050
1048
|
status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
|
|
1051
|
-
|
|
1052
|
-
kind: "proposal" | "question";
|
|
1049
|
+
schemaVersion: "treeseed.inbox-item/v1";
|
|
1053
1050
|
id: string;
|
|
1051
|
+
version: number;
|
|
1054
1052
|
projectId: string;
|
|
1053
|
+
teamId: string;
|
|
1054
|
+
createdAt: string;
|
|
1055
|
+
kind: "proposal" | "question";
|
|
1055
1056
|
provenance: {
|
|
1056
1057
|
digest: string | null;
|
|
1057
1058
|
repositoryId: string | null;
|
|
1058
1059
|
contentPath: string | null;
|
|
1059
1060
|
commitSha: string | null;
|
|
1060
1061
|
};
|
|
1061
|
-
version: number;
|
|
1062
1062
|
projectSlug: string;
|
|
1063
1063
|
updatedAt: string;
|
|
1064
1064
|
markdown: string;
|
|
@@ -1067,17 +1067,17 @@ export declare const inboxMutationReceiptSchema: z.ZodObject<{
|
|
|
1067
1067
|
authorLabel: string;
|
|
1068
1068
|
title: string;
|
|
1069
1069
|
availableActions: {
|
|
1070
|
+
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
1070
1071
|
reason: string | null;
|
|
1071
1072
|
label: string;
|
|
1072
1073
|
enabled: boolean;
|
|
1073
|
-
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
1074
1074
|
confirmation: "never" | "input_required";
|
|
1075
1075
|
requiresFeedback: boolean;
|
|
1076
1076
|
}[];
|
|
1077
1077
|
comments: {
|
|
1078
|
+
id: string;
|
|
1078
1079
|
createdAt: string;
|
|
1079
1080
|
kind: "comment" | "answer" | "reply";
|
|
1080
|
-
id: string;
|
|
1081
1081
|
provenance: {
|
|
1082
1082
|
digest: string | null;
|
|
1083
1083
|
repositoryId: string | null;
|