@treeseed/sdk 0.13.0-rc.54 → 0.13.0-rc.56
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/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +0 -2
- package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
- package/dist/agent-capacity/validation/activity-profile.js +18 -9
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +715 -793
- package/dist/agent-capacity/validation/agent-definition-schema.js +8 -28
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +12 -12
- package/dist/capacity-provider/capability-ontology.d.ts +1211 -0
- package/dist/capacity-provider/capability-ontology.js +200 -0
- package/dist/capacity-provider/client.d.ts +3 -3
- package/dist/capacity-provider/contracts/governance.d.ts +63 -1
- package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
- package/dist/capacity-provider/core-capability-catalog.js +63 -0
- package/dist/capacity-provider/environment-catalog.d.ts +877 -0
- package/dist/capacity-provider/environment-catalog.js +116 -0
- package/dist/capacity-provider/index.d.ts +4 -0
- package/dist/capacity-provider/index.js +4 -0
- package/dist/capacity-provider/sandbox-contracts.d.ts +543 -0
- package/dist/capacity-provider/sandbox-contracts.js +86 -0
- package/dist/capacity-provider/validation.d.ts +3 -1
- package/dist/capacity-provider/validation.js +56 -0
- package/dist/content/validation/agent-operational-content-schemas.d.ts +76 -76
- package/dist/content/validation/auxiliary-content-schemas.d.ts +16 -16
- package/dist/content/validation/content-model-schemas.d.ts +1462 -1605
- package/dist/content/validation/portable-content-data.d.ts +139 -152
- package/dist/deployment/ai-mode.d.ts +4 -4
- package/dist/deployment/schemas.d.ts +410 -92
- package/dist/deployment/schemas.js +23 -1
- package/dist/development/schemas.d.ts +22 -22
- package/dist/operator-contracts/canonical-command-tree.js +45 -0
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +164 -0
- package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
- package/dist/operator-contracts/catalog/communication-operations.d.ts +50 -50
- package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
- package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +25 -25
- package/dist/operator-contracts/communication/contracts.d.ts +139 -139
- package/dist/operator-contracts/control-plane-operations.d.ts +588 -420
- package/dist/operator-contracts/control-plane-operations.js +7 -10
- package/dist/operator-contracts/inbox/contracts.d.ts +77 -77
- package/dist/operator-contracts/index.d.ts +1 -0
- package/dist/operator-contracts/index.js +1 -0
- package/dist/security/encrypted-envelope.d.ts +177 -0
- package/dist/security/encrypted-envelope.js +34 -0
- package/dist/security/envelope-codec.d.ts +38 -0
- package/dist/security/envelope-codec.js +96 -0
- package/dist/security/index.d.ts +2 -0
- package/dist/security/index.js +2 -0
- package/dist/types/agents/agent-activity-profile.d.ts +15 -33
- package/package.json +5 -1
|
@@ -50,7 +50,14 @@ export declare const communicationTopicEventSchema: z.ZodObject<{
|
|
|
50
50
|
summary: z.ZodString;
|
|
51
51
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
52
52
|
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
teamId: string;
|
|
54
|
+
topicId: string;
|
|
55
|
+
sendId: string | null;
|
|
56
|
+
invocationId: string | null;
|
|
57
|
+
assignmentId: string | null;
|
|
58
|
+
sequence: number;
|
|
53
59
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
60
|
+
payload: Record<string, unknown>;
|
|
54
61
|
id: string;
|
|
55
62
|
actor: {
|
|
56
63
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -58,17 +65,17 @@ export declare const communicationTopicEventSchema: z.ZodObject<{
|
|
|
58
65
|
handle: string | null;
|
|
59
66
|
};
|
|
60
67
|
summary: string;
|
|
61
|
-
teamId: string;
|
|
62
68
|
channel: string;
|
|
63
|
-
assignmentId: string | null;
|
|
64
|
-
sequence: number;
|
|
65
|
-
topicId: string;
|
|
66
69
|
occurredAt: string;
|
|
70
|
+
}, {
|
|
71
|
+
teamId: string;
|
|
72
|
+
topicId: string;
|
|
67
73
|
sendId: string | null;
|
|
68
74
|
invocationId: string | null;
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
assignmentId: string | null;
|
|
76
|
+
sequence: number;
|
|
71
77
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
78
|
+
payload: Record<string, unknown>;
|
|
72
79
|
id: string;
|
|
73
80
|
actor: {
|
|
74
81
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -76,15 +83,8 @@ export declare const communicationTopicEventSchema: z.ZodObject<{
|
|
|
76
83
|
handle: string | null;
|
|
77
84
|
};
|
|
78
85
|
summary: string;
|
|
79
|
-
teamId: string;
|
|
80
86
|
channel: string;
|
|
81
|
-
assignmentId: string | null;
|
|
82
|
-
sequence: number;
|
|
83
|
-
topicId: string;
|
|
84
87
|
occurredAt: string;
|
|
85
|
-
sendId: string | null;
|
|
86
|
-
invocationId: string | null;
|
|
87
|
-
payload: Record<string, unknown>;
|
|
88
88
|
}>;
|
|
89
89
|
export declare const communicationDiagnosticSchema: z.ZodObject<{
|
|
90
90
|
availability: z.ZodEnum<["available", "partial", "unavailable"]>;
|
|
@@ -216,10 +216,10 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
216
216
|
returnedAt: z.ZodNullable<z.ZodString>;
|
|
217
217
|
failedAt: z.ZodNullable<z.ZodString>;
|
|
218
218
|
}, "strict", z.ZodTypeAny, {
|
|
219
|
+
assignmentId: string | null;
|
|
219
220
|
status: string | null;
|
|
220
221
|
completedAt: string | null;
|
|
221
222
|
providerId: string | null;
|
|
222
|
-
assignmentId: string | null;
|
|
223
223
|
executionProviderId: string | null;
|
|
224
224
|
laneId: string | null;
|
|
225
225
|
lanePurpose: string | null;
|
|
@@ -228,10 +228,10 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
228
228
|
returnedAt: string | null;
|
|
229
229
|
failedAt: string | null;
|
|
230
230
|
}, {
|
|
231
|
+
assignmentId: string | null;
|
|
231
232
|
status: string | null;
|
|
232
233
|
completedAt: string | null;
|
|
233
234
|
providerId: string | null;
|
|
234
|
-
assignmentId: string | null;
|
|
235
235
|
executionProviderId: string | null;
|
|
236
236
|
laneId: string | null;
|
|
237
237
|
lanePurpose: string | null;
|
|
@@ -320,15 +320,16 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
320
320
|
fullPayload?: Record<string, unknown> | undefined;
|
|
321
321
|
}>;
|
|
322
322
|
}, "strict", z.ZodTypeAny, {
|
|
323
|
+
invocationId: string | null;
|
|
323
324
|
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
324
325
|
projectId: string;
|
|
325
326
|
completedAt: string | null;
|
|
326
327
|
agentSlug: string;
|
|
327
328
|
capacity: {
|
|
329
|
+
assignmentId: string | null;
|
|
328
330
|
status: string | null;
|
|
329
331
|
completedAt: string | null;
|
|
330
332
|
providerId: string | null;
|
|
331
|
-
assignmentId: string | null;
|
|
332
333
|
executionProviderId: string | null;
|
|
333
334
|
laneId: string | null;
|
|
334
335
|
lanePurpose: string | null;
|
|
@@ -358,7 +359,6 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
358
359
|
traceEvents: Record<string, unknown>[];
|
|
359
360
|
fullPayload?: Record<string, unknown> | undefined;
|
|
360
361
|
};
|
|
361
|
-
invocationId: string | null;
|
|
362
362
|
projectSlug: string;
|
|
363
363
|
definitionRevision: string;
|
|
364
364
|
revisions: {
|
|
@@ -379,15 +379,16 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
379
379
|
acknowledgedAt: string | null;
|
|
380
380
|
leaseAcceptedAt: string | null;
|
|
381
381
|
}, {
|
|
382
|
+
invocationId: string | null;
|
|
382
383
|
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
383
384
|
projectId: string;
|
|
384
385
|
completedAt: string | null;
|
|
385
386
|
agentSlug: string;
|
|
386
387
|
capacity: {
|
|
388
|
+
assignmentId: string | null;
|
|
387
389
|
status: string | null;
|
|
388
390
|
completedAt: string | null;
|
|
389
391
|
providerId: string | null;
|
|
390
|
-
assignmentId: string | null;
|
|
391
392
|
executionProviderId: string | null;
|
|
392
393
|
laneId: string | null;
|
|
393
394
|
lanePurpose: string | null;
|
|
@@ -417,7 +418,6 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
417
418
|
traceEvents: Record<string, unknown>[];
|
|
418
419
|
fullPayload?: Record<string, unknown> | undefined;
|
|
419
420
|
};
|
|
420
|
-
invocationId: string | null;
|
|
421
421
|
projectSlug: string;
|
|
422
422
|
definitionRevision: string;
|
|
423
423
|
revisions: {
|
|
@@ -451,23 +451,23 @@ export declare const communicationResponseSchema: z.ZodObject<{
|
|
|
451
451
|
status: z.ZodEnum<["responded", "abstained", "failed", "cancelled"]>;
|
|
452
452
|
createdAt: z.ZodString;
|
|
453
453
|
}, "strict", z.ZodTypeAny, {
|
|
454
|
+
invocationId: string;
|
|
455
|
+
assignmentId: string | null;
|
|
454
456
|
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
455
|
-
projectId: string;
|
|
456
457
|
createdAt: string;
|
|
458
|
+
projectId: string;
|
|
457
459
|
agentSlug: string;
|
|
458
|
-
assignmentId: string | null;
|
|
459
|
-
invocationId: string;
|
|
460
460
|
projectSlug: string;
|
|
461
461
|
requirement: "required" | "optional";
|
|
462
462
|
messageRef: string;
|
|
463
463
|
markdown: string;
|
|
464
464
|
}, {
|
|
465
|
+
invocationId: string;
|
|
466
|
+
assignmentId: string | null;
|
|
465
467
|
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
466
|
-
projectId: string;
|
|
467
468
|
createdAt: string;
|
|
469
|
+
projectId: string;
|
|
468
470
|
agentSlug: string;
|
|
469
|
-
assignmentId: string | null;
|
|
470
|
-
invocationId: string;
|
|
471
471
|
projectSlug: string;
|
|
472
472
|
requirement: "required" | "optional";
|
|
473
473
|
messageRef: string;
|
|
@@ -561,10 +561,10 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
561
561
|
returnedAt: z.ZodNullable<z.ZodString>;
|
|
562
562
|
failedAt: z.ZodNullable<z.ZodString>;
|
|
563
563
|
}, "strict", z.ZodTypeAny, {
|
|
564
|
+
assignmentId: string | null;
|
|
564
565
|
status: string | null;
|
|
565
566
|
completedAt: string | null;
|
|
566
567
|
providerId: string | null;
|
|
567
|
-
assignmentId: string | null;
|
|
568
568
|
executionProviderId: string | null;
|
|
569
569
|
laneId: string | null;
|
|
570
570
|
lanePurpose: string | null;
|
|
@@ -573,10 +573,10 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
573
573
|
returnedAt: string | null;
|
|
574
574
|
failedAt: string | null;
|
|
575
575
|
}, {
|
|
576
|
+
assignmentId: string | null;
|
|
576
577
|
status: string | null;
|
|
577
578
|
completedAt: string | null;
|
|
578
579
|
providerId: string | null;
|
|
579
|
-
assignmentId: string | null;
|
|
580
580
|
executionProviderId: string | null;
|
|
581
581
|
laneId: string | null;
|
|
582
582
|
lanePurpose: string | null;
|
|
@@ -665,15 +665,16 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
665
665
|
fullPayload?: Record<string, unknown> | undefined;
|
|
666
666
|
}>;
|
|
667
667
|
}, "strict", z.ZodTypeAny, {
|
|
668
|
+
invocationId: string | null;
|
|
668
669
|
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
669
670
|
projectId: string;
|
|
670
671
|
completedAt: string | null;
|
|
671
672
|
agentSlug: string;
|
|
672
673
|
capacity: {
|
|
674
|
+
assignmentId: string | null;
|
|
673
675
|
status: string | null;
|
|
674
676
|
completedAt: string | null;
|
|
675
677
|
providerId: string | null;
|
|
676
|
-
assignmentId: string | null;
|
|
677
678
|
executionProviderId: string | null;
|
|
678
679
|
laneId: string | null;
|
|
679
680
|
lanePurpose: string | null;
|
|
@@ -703,7 +704,6 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
703
704
|
traceEvents: Record<string, unknown>[];
|
|
704
705
|
fullPayload?: Record<string, unknown> | undefined;
|
|
705
706
|
};
|
|
706
|
-
invocationId: string | null;
|
|
707
707
|
projectSlug: string;
|
|
708
708
|
definitionRevision: string;
|
|
709
709
|
revisions: {
|
|
@@ -724,15 +724,16 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
724
724
|
acknowledgedAt: string | null;
|
|
725
725
|
leaseAcceptedAt: string | null;
|
|
726
726
|
}, {
|
|
727
|
+
invocationId: string | null;
|
|
727
728
|
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
728
729
|
projectId: string;
|
|
729
730
|
completedAt: string | null;
|
|
730
731
|
agentSlug: string;
|
|
731
732
|
capacity: {
|
|
733
|
+
assignmentId: string | null;
|
|
732
734
|
status: string | null;
|
|
733
735
|
completedAt: string | null;
|
|
734
736
|
providerId: string | null;
|
|
735
|
-
assignmentId: string | null;
|
|
736
737
|
executionProviderId: string | null;
|
|
737
738
|
laneId: string | null;
|
|
738
739
|
lanePurpose: string | null;
|
|
@@ -762,7 +763,6 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
762
763
|
traceEvents: Record<string, unknown>[];
|
|
763
764
|
fullPayload?: Record<string, unknown> | undefined;
|
|
764
765
|
};
|
|
765
|
-
invocationId: string | null;
|
|
766
766
|
projectSlug: string;
|
|
767
767
|
definitionRevision: string;
|
|
768
768
|
revisions: {
|
|
@@ -796,23 +796,23 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
796
796
|
status: z.ZodEnum<["responded", "abstained", "failed", "cancelled"]>;
|
|
797
797
|
createdAt: z.ZodString;
|
|
798
798
|
}, "strict", z.ZodTypeAny, {
|
|
799
|
+
invocationId: string;
|
|
800
|
+
assignmentId: string | null;
|
|
799
801
|
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
800
|
-
projectId: string;
|
|
801
802
|
createdAt: string;
|
|
803
|
+
projectId: string;
|
|
802
804
|
agentSlug: string;
|
|
803
|
-
assignmentId: string | null;
|
|
804
|
-
invocationId: string;
|
|
805
805
|
projectSlug: string;
|
|
806
806
|
requirement: "required" | "optional";
|
|
807
807
|
messageRef: string;
|
|
808
808
|
markdown: string;
|
|
809
809
|
}, {
|
|
810
|
+
invocationId: string;
|
|
811
|
+
assignmentId: string | null;
|
|
810
812
|
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
811
|
-
projectId: string;
|
|
812
813
|
createdAt: string;
|
|
814
|
+
projectId: string;
|
|
813
815
|
agentSlug: string;
|
|
814
|
-
assignmentId: string | null;
|
|
815
|
-
invocationId: string;
|
|
816
816
|
projectSlug: string;
|
|
817
817
|
requirement: "required" | "optional";
|
|
818
818
|
messageRef: string;
|
|
@@ -845,7 +845,14 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
845
845
|
summary: z.ZodString;
|
|
846
846
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
847
847
|
}, "strict", z.ZodTypeAny, {
|
|
848
|
+
teamId: string;
|
|
849
|
+
topicId: string;
|
|
850
|
+
sendId: string | null;
|
|
851
|
+
invocationId: string | null;
|
|
852
|
+
assignmentId: string | null;
|
|
853
|
+
sequence: number;
|
|
848
854
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
855
|
+
payload: Record<string, unknown>;
|
|
849
856
|
id: string;
|
|
850
857
|
actor: {
|
|
851
858
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -853,17 +860,17 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
853
860
|
handle: string | null;
|
|
854
861
|
};
|
|
855
862
|
summary: string;
|
|
856
|
-
teamId: string;
|
|
857
863
|
channel: string;
|
|
858
|
-
assignmentId: string | null;
|
|
859
|
-
sequence: number;
|
|
860
|
-
topicId: string;
|
|
861
864
|
occurredAt: string;
|
|
865
|
+
}, {
|
|
866
|
+
teamId: string;
|
|
867
|
+
topicId: string;
|
|
862
868
|
sendId: string | null;
|
|
863
869
|
invocationId: string | null;
|
|
864
|
-
|
|
865
|
-
|
|
870
|
+
assignmentId: string | null;
|
|
871
|
+
sequence: number;
|
|
866
872
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
873
|
+
payload: Record<string, unknown>;
|
|
867
874
|
id: string;
|
|
868
875
|
actor: {
|
|
869
876
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -871,32 +878,29 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
871
878
|
handle: string | null;
|
|
872
879
|
};
|
|
873
880
|
summary: string;
|
|
874
|
-
teamId: string;
|
|
875
881
|
channel: string;
|
|
876
|
-
assignmentId: string | null;
|
|
877
|
-
sequence: number;
|
|
878
|
-
topicId: string;
|
|
879
882
|
occurredAt: string;
|
|
880
|
-
sendId: string | null;
|
|
881
|
-
invocationId: string | null;
|
|
882
|
-
payload: Record<string, unknown>;
|
|
883
883
|
}>, "many">;
|
|
884
884
|
createdAt: z.ZodString;
|
|
885
885
|
updatedAt: z.ZodString;
|
|
886
886
|
replayed: z.ZodBoolean;
|
|
887
887
|
}, "strict", z.ZodTypeAny, {
|
|
888
|
-
|
|
888
|
+
teamId: string;
|
|
889
|
+
sendId: string;
|
|
889
890
|
schemaVersion: "treeseed.communication-send-receipt/v4";
|
|
891
|
+
status: "failed" | "running" | "partial" | "complete" | "queued";
|
|
892
|
+
createdAt: string;
|
|
890
893
|
targets: {
|
|
894
|
+
invocationId: string | null;
|
|
891
895
|
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
892
896
|
projectId: string;
|
|
893
897
|
completedAt: string | null;
|
|
894
898
|
agentSlug: string;
|
|
895
899
|
capacity: {
|
|
900
|
+
assignmentId: string | null;
|
|
896
901
|
status: string | null;
|
|
897
902
|
completedAt: string | null;
|
|
898
903
|
providerId: string | null;
|
|
899
|
-
assignmentId: string | null;
|
|
900
904
|
executionProviderId: string | null;
|
|
901
905
|
laneId: string | null;
|
|
902
906
|
lanePurpose: string | null;
|
|
@@ -926,7 +930,6 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
926
930
|
traceEvents: Record<string, unknown>[];
|
|
927
931
|
fullPayload?: Record<string, unknown> | undefined;
|
|
928
932
|
};
|
|
929
|
-
invocationId: string | null;
|
|
930
933
|
projectSlug: string;
|
|
931
934
|
definitionRevision: string;
|
|
932
935
|
revisions: {
|
|
@@ -947,27 +950,32 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
947
950
|
acknowledgedAt: string | null;
|
|
948
951
|
leaseAcceptedAt: string | null;
|
|
949
952
|
}[];
|
|
950
|
-
createdAt: string;
|
|
951
953
|
responses: {
|
|
954
|
+
invocationId: string;
|
|
955
|
+
assignmentId: string | null;
|
|
952
956
|
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
953
|
-
projectId: string;
|
|
954
957
|
createdAt: string;
|
|
958
|
+
projectId: string;
|
|
955
959
|
agentSlug: string;
|
|
956
|
-
assignmentId: string | null;
|
|
957
|
-
invocationId: string;
|
|
958
960
|
projectSlug: string;
|
|
959
961
|
requirement: "required" | "optional";
|
|
960
962
|
messageRef: string;
|
|
961
963
|
markdown: string;
|
|
962
964
|
}[];
|
|
963
|
-
teamId: string;
|
|
964
965
|
channel: string;
|
|
965
966
|
topic: {
|
|
966
967
|
id: string;
|
|
967
968
|
slug: string;
|
|
968
969
|
};
|
|
969
970
|
events: {
|
|
971
|
+
teamId: string;
|
|
972
|
+
topicId: string;
|
|
973
|
+
sendId: string | null;
|
|
974
|
+
invocationId: string | null;
|
|
975
|
+
assignmentId: string | null;
|
|
976
|
+
sequence: number;
|
|
970
977
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
978
|
+
payload: Record<string, unknown>;
|
|
971
979
|
id: string;
|
|
972
980
|
actor: {
|
|
973
981
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -975,17 +983,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
975
983
|
handle: string | null;
|
|
976
984
|
};
|
|
977
985
|
summary: string;
|
|
978
|
-
teamId: string;
|
|
979
986
|
channel: string;
|
|
980
|
-
assignmentId: string | null;
|
|
981
|
-
sequence: number;
|
|
982
|
-
topicId: string;
|
|
983
987
|
occurredAt: string;
|
|
984
|
-
sendId: string | null;
|
|
985
|
-
invocationId: string | null;
|
|
986
|
-
payload: Record<string, unknown>;
|
|
987
988
|
}[];
|
|
988
|
-
sendId: string;
|
|
989
989
|
updatedAt: string;
|
|
990
990
|
projectStreams: {
|
|
991
991
|
id: string;
|
|
@@ -996,18 +996,22 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
996
996
|
}[];
|
|
997
997
|
replayed: boolean;
|
|
998
998
|
}, {
|
|
999
|
-
|
|
999
|
+
teamId: string;
|
|
1000
|
+
sendId: string;
|
|
1000
1001
|
schemaVersion: "treeseed.communication-send-receipt/v4";
|
|
1002
|
+
status: "failed" | "running" | "partial" | "complete" | "queued";
|
|
1003
|
+
createdAt: string;
|
|
1001
1004
|
targets: {
|
|
1005
|
+
invocationId: string | null;
|
|
1002
1006
|
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
1003
1007
|
projectId: string;
|
|
1004
1008
|
completedAt: string | null;
|
|
1005
1009
|
agentSlug: string;
|
|
1006
1010
|
capacity: {
|
|
1011
|
+
assignmentId: string | null;
|
|
1007
1012
|
status: string | null;
|
|
1008
1013
|
completedAt: string | null;
|
|
1009
1014
|
providerId: string | null;
|
|
1010
|
-
assignmentId: string | null;
|
|
1011
1015
|
executionProviderId: string | null;
|
|
1012
1016
|
laneId: string | null;
|
|
1013
1017
|
lanePurpose: string | null;
|
|
@@ -1037,7 +1041,6 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
1037
1041
|
traceEvents: Record<string, unknown>[];
|
|
1038
1042
|
fullPayload?: Record<string, unknown> | undefined;
|
|
1039
1043
|
};
|
|
1040
|
-
invocationId: string | null;
|
|
1041
1044
|
projectSlug: string;
|
|
1042
1045
|
definitionRevision: string;
|
|
1043
1046
|
revisions: {
|
|
@@ -1058,27 +1061,32 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
1058
1061
|
acknowledgedAt: string | null;
|
|
1059
1062
|
leaseAcceptedAt: string | null;
|
|
1060
1063
|
}[];
|
|
1061
|
-
createdAt: string;
|
|
1062
1064
|
responses: {
|
|
1065
|
+
invocationId: string;
|
|
1066
|
+
assignmentId: string | null;
|
|
1063
1067
|
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
1064
|
-
projectId: string;
|
|
1065
1068
|
createdAt: string;
|
|
1069
|
+
projectId: string;
|
|
1066
1070
|
agentSlug: string;
|
|
1067
|
-
assignmentId: string | null;
|
|
1068
|
-
invocationId: string;
|
|
1069
1071
|
projectSlug: string;
|
|
1070
1072
|
requirement: "required" | "optional";
|
|
1071
1073
|
messageRef: string;
|
|
1072
1074
|
markdown: string;
|
|
1073
1075
|
}[];
|
|
1074
|
-
teamId: string;
|
|
1075
1076
|
channel: string;
|
|
1076
1077
|
topic: {
|
|
1077
1078
|
id: string;
|
|
1078
1079
|
slug: string;
|
|
1079
1080
|
};
|
|
1080
1081
|
events: {
|
|
1082
|
+
teamId: string;
|
|
1083
|
+
topicId: string;
|
|
1084
|
+
sendId: string | null;
|
|
1085
|
+
invocationId: string | null;
|
|
1086
|
+
assignmentId: string | null;
|
|
1087
|
+
sequence: number;
|
|
1081
1088
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
1089
|
+
payload: Record<string, unknown>;
|
|
1082
1090
|
id: string;
|
|
1083
1091
|
actor: {
|
|
1084
1092
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -1086,17 +1094,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
1086
1094
|
handle: string | null;
|
|
1087
1095
|
};
|
|
1088
1096
|
summary: string;
|
|
1089
|
-
teamId: string;
|
|
1090
1097
|
channel: string;
|
|
1091
|
-
assignmentId: string | null;
|
|
1092
|
-
sequence: number;
|
|
1093
|
-
topicId: string;
|
|
1094
1098
|
occurredAt: string;
|
|
1095
|
-
sendId: string | null;
|
|
1096
|
-
invocationId: string | null;
|
|
1097
|
-
payload: Record<string, unknown>;
|
|
1098
1099
|
}[];
|
|
1099
|
-
sendId: string;
|
|
1100
1100
|
updatedAt: string;
|
|
1101
1101
|
projectStreams: {
|
|
1102
1102
|
id: string;
|
|
@@ -1189,10 +1189,10 @@ export declare const communicationTopicSchema: z.ZodObject<{
|
|
|
1189
1189
|
subscribedAt: string;
|
|
1190
1190
|
}>, "many">;
|
|
1191
1191
|
}, "strict", z.ZodTypeAny, {
|
|
1192
|
+
teamId: string;
|
|
1192
1193
|
status: "active" | "archived";
|
|
1193
|
-
id: string;
|
|
1194
1194
|
createdAt: string;
|
|
1195
|
-
|
|
1195
|
+
id: string;
|
|
1196
1196
|
updatedAt: string;
|
|
1197
1197
|
slug: string;
|
|
1198
1198
|
streams: {
|
|
@@ -1212,10 +1212,10 @@ export declare const communicationTopicSchema: z.ZodObject<{
|
|
|
1212
1212
|
subscribedAt: string;
|
|
1213
1213
|
}[];
|
|
1214
1214
|
}, {
|
|
1215
|
+
teamId: string;
|
|
1215
1216
|
status: "active" | "archived";
|
|
1216
|
-
id: string;
|
|
1217
1217
|
createdAt: string;
|
|
1218
|
-
|
|
1218
|
+
id: string;
|
|
1219
1219
|
updatedAt: string;
|
|
1220
1220
|
slug: string;
|
|
1221
1221
|
streams: {
|
|
@@ -1289,10 +1289,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
|
|
|
1289
1289
|
subscribedAt: string;
|
|
1290
1290
|
}>, "many">;
|
|
1291
1291
|
}, "strict", z.ZodTypeAny, {
|
|
1292
|
+
teamId: string;
|
|
1292
1293
|
status: "active" | "archived";
|
|
1293
|
-
id: string;
|
|
1294
1294
|
createdAt: string;
|
|
1295
|
-
|
|
1295
|
+
id: string;
|
|
1296
1296
|
updatedAt: string;
|
|
1297
1297
|
slug: string;
|
|
1298
1298
|
streams: {
|
|
@@ -1312,10 +1312,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
|
|
|
1312
1312
|
subscribedAt: string;
|
|
1313
1313
|
}[];
|
|
1314
1314
|
}, {
|
|
1315
|
+
teamId: string;
|
|
1315
1316
|
status: "active" | "archived";
|
|
1316
|
-
id: string;
|
|
1317
1317
|
createdAt: string;
|
|
1318
|
-
|
|
1318
|
+
id: string;
|
|
1319
1319
|
updatedAt: string;
|
|
1320
1320
|
slug: string;
|
|
1321
1321
|
streams: {
|
|
@@ -1338,10 +1338,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
|
|
|
1338
1338
|
cursor: z.ZodNullable<z.ZodString>;
|
|
1339
1339
|
}, "strict", z.ZodTypeAny, {
|
|
1340
1340
|
items: {
|
|
1341
|
+
teamId: string;
|
|
1341
1342
|
status: "active" | "archived";
|
|
1342
|
-
id: string;
|
|
1343
1343
|
createdAt: string;
|
|
1344
|
-
|
|
1344
|
+
id: string;
|
|
1345
1345
|
updatedAt: string;
|
|
1346
1346
|
slug: string;
|
|
1347
1347
|
streams: {
|
|
@@ -1364,10 +1364,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
|
|
|
1364
1364
|
cursor: string | null;
|
|
1365
1365
|
}, {
|
|
1366
1366
|
items: {
|
|
1367
|
+
teamId: string;
|
|
1367
1368
|
status: "active" | "archived";
|
|
1368
|
-
id: string;
|
|
1369
1369
|
createdAt: string;
|
|
1370
|
-
|
|
1370
|
+
id: string;
|
|
1371
1371
|
updatedAt: string;
|
|
1372
1372
|
slug: string;
|
|
1373
1373
|
streams: {
|
|
@@ -1443,10 +1443,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
|
|
|
1443
1443
|
subscribedAt: string;
|
|
1444
1444
|
}>, "many">;
|
|
1445
1445
|
}, "strict", z.ZodTypeAny, {
|
|
1446
|
+
teamId: string;
|
|
1446
1447
|
status: "active" | "archived";
|
|
1447
|
-
id: string;
|
|
1448
1448
|
createdAt: string;
|
|
1449
|
-
|
|
1449
|
+
id: string;
|
|
1450
1450
|
updatedAt: string;
|
|
1451
1451
|
slug: string;
|
|
1452
1452
|
streams: {
|
|
@@ -1466,10 +1466,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
|
|
|
1466
1466
|
subscribedAt: string;
|
|
1467
1467
|
}[];
|
|
1468
1468
|
}, {
|
|
1469
|
+
teamId: string;
|
|
1469
1470
|
status: "active" | "archived";
|
|
1470
|
-
id: string;
|
|
1471
1471
|
createdAt: string;
|
|
1472
|
-
|
|
1472
|
+
id: string;
|
|
1473
1473
|
updatedAt: string;
|
|
1474
1474
|
slug: string;
|
|
1475
1475
|
streams: {
|
|
@@ -1516,7 +1516,14 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
|
|
|
1516
1516
|
summary: z.ZodString;
|
|
1517
1517
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1518
1518
|
}, "strict", z.ZodTypeAny, {
|
|
1519
|
+
teamId: string;
|
|
1520
|
+
topicId: string;
|
|
1521
|
+
sendId: string | null;
|
|
1522
|
+
invocationId: string | null;
|
|
1523
|
+
assignmentId: string | null;
|
|
1524
|
+
sequence: number;
|
|
1519
1525
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
1526
|
+
payload: Record<string, unknown>;
|
|
1520
1527
|
id: string;
|
|
1521
1528
|
actor: {
|
|
1522
1529
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -1524,17 +1531,17 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
|
|
|
1524
1531
|
handle: string | null;
|
|
1525
1532
|
};
|
|
1526
1533
|
summary: string;
|
|
1527
|
-
teamId: string;
|
|
1528
1534
|
channel: string;
|
|
1529
|
-
assignmentId: string | null;
|
|
1530
|
-
sequence: number;
|
|
1531
|
-
topicId: string;
|
|
1532
1535
|
occurredAt: string;
|
|
1536
|
+
}, {
|
|
1537
|
+
teamId: string;
|
|
1538
|
+
topicId: string;
|
|
1533
1539
|
sendId: string | null;
|
|
1534
1540
|
invocationId: string | null;
|
|
1535
|
-
|
|
1536
|
-
|
|
1541
|
+
assignmentId: string | null;
|
|
1542
|
+
sequence: number;
|
|
1537
1543
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
1544
|
+
payload: Record<string, unknown>;
|
|
1538
1545
|
id: string;
|
|
1539
1546
|
actor: {
|
|
1540
1547
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -1542,24 +1549,17 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
|
|
|
1542
1549
|
handle: string | null;
|
|
1543
1550
|
};
|
|
1544
1551
|
summary: string;
|
|
1545
|
-
teamId: string;
|
|
1546
1552
|
channel: string;
|
|
1547
|
-
assignmentId: string | null;
|
|
1548
|
-
sequence: number;
|
|
1549
|
-
topicId: string;
|
|
1550
1553
|
occurredAt: string;
|
|
1551
|
-
sendId: string | null;
|
|
1552
|
-
invocationId: string | null;
|
|
1553
|
-
payload: Record<string, unknown>;
|
|
1554
1554
|
}>, "many">;
|
|
1555
1555
|
cursor: z.ZodNullable<z.ZodString>;
|
|
1556
1556
|
}, "strict", z.ZodTypeAny, {
|
|
1557
1557
|
cursor: string | null;
|
|
1558
1558
|
topic: {
|
|
1559
|
+
teamId: string;
|
|
1559
1560
|
status: "active" | "archived";
|
|
1560
|
-
id: string;
|
|
1561
1561
|
createdAt: string;
|
|
1562
|
-
|
|
1562
|
+
id: string;
|
|
1563
1563
|
updatedAt: string;
|
|
1564
1564
|
slug: string;
|
|
1565
1565
|
streams: {
|
|
@@ -1580,7 +1580,14 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
|
|
|
1580
1580
|
}[];
|
|
1581
1581
|
};
|
|
1582
1582
|
events: {
|
|
1583
|
+
teamId: string;
|
|
1584
|
+
topicId: string;
|
|
1585
|
+
sendId: string | null;
|
|
1586
|
+
invocationId: string | null;
|
|
1587
|
+
assignmentId: string | null;
|
|
1588
|
+
sequence: number;
|
|
1583
1589
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
1590
|
+
payload: Record<string, unknown>;
|
|
1584
1591
|
id: string;
|
|
1585
1592
|
actor: {
|
|
1586
1593
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -1588,23 +1595,16 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
|
|
|
1588
1595
|
handle: string | null;
|
|
1589
1596
|
};
|
|
1590
1597
|
summary: string;
|
|
1591
|
-
teamId: string;
|
|
1592
1598
|
channel: string;
|
|
1593
|
-
assignmentId: string | null;
|
|
1594
|
-
sequence: number;
|
|
1595
|
-
topicId: string;
|
|
1596
1599
|
occurredAt: string;
|
|
1597
|
-
sendId: string | null;
|
|
1598
|
-
invocationId: string | null;
|
|
1599
|
-
payload: Record<string, unknown>;
|
|
1600
1600
|
}[];
|
|
1601
1601
|
}, {
|
|
1602
1602
|
cursor: string | null;
|
|
1603
1603
|
topic: {
|
|
1604
|
+
teamId: string;
|
|
1604
1605
|
status: "active" | "archived";
|
|
1605
|
-
id: string;
|
|
1606
1606
|
createdAt: string;
|
|
1607
|
-
|
|
1607
|
+
id: string;
|
|
1608
1608
|
updatedAt: string;
|
|
1609
1609
|
slug: string;
|
|
1610
1610
|
streams: {
|
|
@@ -1625,7 +1625,14 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
|
|
|
1625
1625
|
}[];
|
|
1626
1626
|
};
|
|
1627
1627
|
events: {
|
|
1628
|
+
teamId: string;
|
|
1629
|
+
topicId: string;
|
|
1630
|
+
sendId: string | null;
|
|
1631
|
+
invocationId: string | null;
|
|
1632
|
+
assignmentId: string | null;
|
|
1633
|
+
sequence: number;
|
|
1628
1634
|
type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
|
|
1635
|
+
payload: Record<string, unknown>;
|
|
1629
1636
|
id: string;
|
|
1630
1637
|
actor: {
|
|
1631
1638
|
kind: "control-plane" | "provider" | "agent" | "user";
|
|
@@ -1633,15 +1640,8 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
|
|
|
1633
1640
|
handle: string | null;
|
|
1634
1641
|
};
|
|
1635
1642
|
summary: string;
|
|
1636
|
-
teamId: string;
|
|
1637
1643
|
channel: string;
|
|
1638
|
-
assignmentId: string | null;
|
|
1639
|
-
sequence: number;
|
|
1640
|
-
topicId: string;
|
|
1641
1644
|
occurredAt: string;
|
|
1642
|
-
sendId: string | null;
|
|
1643
|
-
invocationId: string | null;
|
|
1644
|
-
payload: Record<string, unknown>;
|
|
1645
1645
|
}[];
|
|
1646
1646
|
}>;
|
|
1647
1647
|
export declare const communicationTopicSubscriptionRequestSchema: z.ZodObject<{
|
|
@@ -1733,20 +1733,20 @@ export declare const providerCommunicationTraceEventRequestSchema: z.ZodObject<{
|
|
|
1733
1733
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1734
1734
|
protectedPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1735
1735
|
}, "strict", z.ZodTypeAny, {
|
|
1736
|
+
sequence: number;
|
|
1736
1737
|
type: string;
|
|
1738
|
+
payload: Record<string, unknown>;
|
|
1737
1739
|
summary: string;
|
|
1738
|
-
sequence: number;
|
|
1739
1740
|
occurredAt: string;
|
|
1740
|
-
payload: Record<string, unknown>;
|
|
1741
1741
|
runnerId: string;
|
|
1742
1742
|
leaseToken: string;
|
|
1743
1743
|
protectedPayload?: Record<string, unknown> | undefined;
|
|
1744
1744
|
}, {
|
|
1745
|
+
sequence: number;
|
|
1745
1746
|
type: string;
|
|
1747
|
+
payload: Record<string, unknown>;
|
|
1746
1748
|
summary: string;
|
|
1747
|
-
sequence: number;
|
|
1748
1749
|
occurredAt: string;
|
|
1749
|
-
payload: Record<string, unknown>;
|
|
1750
1750
|
runnerId: string;
|
|
1751
1751
|
leaseToken: string;
|
|
1752
1752
|
protectedPayload?: Record<string, unknown> | undefined;
|
|
@@ -1795,17 +1795,17 @@ export declare const providerDiscussionResponseReceiptSchema: z.ZodObject<{
|
|
|
1795
1795
|
status: z.ZodEnum<["responded", "abstained"]>;
|
|
1796
1796
|
settledAt: z.ZodString;
|
|
1797
1797
|
}, "strict", z.ZodTypeAny, {
|
|
1798
|
-
status: "responded" | "abstained";
|
|
1799
|
-
schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
|
|
1800
|
-
assignmentId: string;
|
|
1801
1798
|
invocationId: string;
|
|
1799
|
+
assignmentId: string;
|
|
1800
|
+
schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
|
|
1801
|
+
status: "responded" | "abstained";
|
|
1802
1802
|
messageRef: string;
|
|
1803
1803
|
settledAt: string;
|
|
1804
1804
|
}, {
|
|
1805
|
-
status: "responded" | "abstained";
|
|
1806
|
-
schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
|
|
1807
|
-
assignmentId: string;
|
|
1808
1805
|
invocationId: string;
|
|
1806
|
+
assignmentId: string;
|
|
1807
|
+
schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
|
|
1808
|
+
status: "responded" | "abstained";
|
|
1809
1809
|
messageRef: string;
|
|
1810
1810
|
settledAt: string;
|
|
1811
1811
|
}>;
|