@opengeni/contracts 1.0.1 → 2.3.0-canary.0
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-authored-durable-text.d.ts +64 -0
- package/dist/atlassian.d.ts +1 -0
- package/dist/atlassian.js +14 -13
- package/dist/{chunk-Y3MLSLB4.js → chunk-3SIZGL3O.js} +42 -30
- package/dist/chunk-3SIZGL3O.js.map +1 -0
- package/dist/{chunk-JBCIY7QD.js → chunk-7RMTKFJW.js} +45 -22
- package/dist/chunk-7RMTKFJW.js.map +1 -0
- package/dist/{chunk-5UDNP7AO.js → chunk-MRWYRAS5.js} +56 -8
- package/dist/chunk-MRWYRAS5.js.map +1 -0
- package/dist/{chunk-LW7OH6CS.js → chunk-N6GRVXAJ.js} +6 -5
- package/dist/chunk-N6GRVXAJ.js.map +1 -0
- package/dist/{chunk-TZ6YEYN4.js → chunk-NVJMJWLL.js} +3 -1
- package/dist/chunk-NVJMJWLL.js.map +1 -0
- package/dist/chunk-PX3VCKAU.js +29 -0
- package/dist/chunk-PX3VCKAU.js.map +1 -0
- package/dist/{chunk-LSB7GRLG.js → chunk-TXTQIYCV.js} +15 -11
- package/dist/chunk-TXTQIYCV.js.map +1 -0
- package/dist/{chunk-NX5JNF4L.js → chunk-XW2RKNEU.js} +9410 -5799
- package/dist/chunk-XW2RKNEU.js.map +1 -0
- package/dist/{chunk-CADSX6UN.js → chunk-Y3KNXVTD.js} +2 -2
- package/dist/chunk-YBW5JSA3.js +251 -0
- package/dist/chunk-YBW5JSA3.js.map +1 -0
- package/dist/company-brain-governed-writes.d.ts +475 -0
- package/dist/company-brain.d.ts +398 -0
- package/dist/company-profile.d.ts +268 -0
- package/dist/connection-authority.d.ts +501 -0
- package/dist/connection-authority.js +364 -0
- package/dist/connection-authority.js.map +1 -0
- package/dist/connector-attachments.d.ts +95 -0
- package/dist/connector-attachments.js +51 -0
- package/dist/connector-attachments.js.map +1 -0
- package/dist/editable-artifact-codec-registry.d.ts +16 -7
- package/dist/editable-artifact-codec-registry.js +18 -8
- package/dist/editable-artifact-committed-transaction.d.ts +2 -2
- package/dist/editable-artifact-committed-transaction.js +2 -2
- package/dist/editable-artifact-live.d.ts +11 -12
- package/dist/editable-artifact-live.js +111 -46
- package/dist/editable-artifact-live.js.map +1 -1
- package/dist/editable-artifact-serialized-commit.d.ts +2 -1
- package/dist/editable-artifact-serialized-commit.js +9 -8
- package/dist/editable-artifact-versions.d.ts +20 -5
- package/dist/editable-artifact-versions.js +23 -5
- package/dist/editable-artifacts.d.ts +2 -0
- package/dist/editable-artifacts.js +51 -39
- package/dist/google-drive.d.ts +1 -0
- package/dist/google-drive.js +14 -13
- package/dist/google-drive.js.map +1 -1
- package/dist/governed-learning-activation.d.ts +154 -0
- package/dist/governed-learning-evaluator.d.ts +152 -0
- package/dist/index.d.ts +12426 -1313
- package/dist/index.js +855 -115
- package/dist/interaction.d.ts +68 -0
- package/dist/knowledge.d.ts +119 -0
- package/dist/organization-membership-lifecycle.d.ts +516 -0
- package/dist/permissions.d.ts +52 -0
- package/dist/personal-github.d.ts +319 -0
- package/dist/personal-github.js +209 -0
- package/dist/personal-github.js.map +1 -0
- package/dist/preference-registry.d.ts +17 -0
- package/dist/remember.d.ts +331 -0
- package/dist/sandbox-file-artifacts.d.ts +56 -0
- package/dist/sandbox-snapshots.d.ts +21 -0
- package/dist/slack-bot-scopes.d.ts +34 -14
- package/dist/slack-bot-scopes.js +5 -1
- package/dist/spreadsheet-artifact-commands.d.ts +2 -3
- package/dist/spreadsheet-artifact-commands.js +4 -2
- package/dist/spreadsheet-artifact-query.js +3 -2
- package/dist/task-notes.d.ts +42 -1
- package/dist/tool-result-spill.d.ts +16 -0
- package/dist/workspace-instruction-policies.d.ts +81 -0
- package/dist/workspace-learning-administration.d.ts +289 -0
- package/package.json +13 -1
- package/src/agent-authored-durable-text.ts +105 -0
- package/src/company-brain-governed-writes.ts +356 -0
- package/src/company-brain.ts +201 -0
- package/src/company-profile.ts +122 -1
- package/src/connection-authority.ts +413 -0
- package/src/connector-attachments.ts +327 -0
- package/src/editable-artifact-codec-registry.ts +55 -17
- package/src/editable-artifact-committed-transaction.ts +44 -31
- package/src/editable-artifact-live.ts +123 -57
- package/src/editable-artifact-serialized-commit.ts +2 -1
- package/src/editable-artifact-versions.ts +26 -5
- package/src/editable-artifacts.ts +2 -0
- package/src/governed-learning-activation.ts +191 -0
- package/src/governed-learning-evaluator.ts +176 -0
- package/src/index.ts +3148 -369
- package/src/interaction.ts +55 -1
- package/src/knowledge.ts +118 -6
- package/src/organization-membership-lifecycle.ts +330 -0
- package/src/permissions.ts +55 -0
- package/src/personal-github.ts +267 -0
- package/src/preference-registry.ts +17 -0
- package/src/remember.ts +242 -0
- package/src/sandbox-file-artifacts.ts +65 -0
- package/src/sandbox-snapshots.ts +78 -0
- package/src/slack-bot-scopes.ts +81 -9
- package/src/spreadsheet-artifact-commands.ts +12 -13
- package/src/task-notes.ts +14 -1
- package/src/tool-result-spill.ts +35 -0
- package/src/workspace-instruction-policies.ts +30 -0
- package/src/workspace-learning-administration.ts +88 -0
- package/dist/chunk-5UDNP7AO.js.map +0 -1
- package/dist/chunk-BVGIYW7D.js +0 -11
- package/dist/chunk-BVGIYW7D.js.map +0 -1
- package/dist/chunk-JBCIY7QD.js.map +0 -1
- package/dist/chunk-LSB7GRLG.js.map +0 -1
- package/dist/chunk-LW7OH6CS.js.map +0 -1
- package/dist/chunk-NX5JNF4L.js.map +0 -1
- package/dist/chunk-TZ6YEYN4.js.map +0 -1
- package/dist/chunk-Y3MLSLB4.js.map +0 -1
- /package/dist/{chunk-CADSX6UN.js.map → chunk-Y3KNXVTD.js.map} +0 -0
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Exact accepted-attempt authority. It is validated again inside the write transaction. */
|
|
3
|
+
export declare const CompanyBrainGovernedWriteAttempt: z.ZodObject<{
|
|
4
|
+
accountId: z.ZodString;
|
|
5
|
+
workspaceId: z.ZodString;
|
|
6
|
+
sessionId: z.ZodString;
|
|
7
|
+
turnId: z.ZodString;
|
|
8
|
+
attemptId: z.ZodString;
|
|
9
|
+
executionGeneration: z.ZodNumber;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
export type CompanyBrainGovernedWriteAttempt = z.infer<typeof CompanyBrainGovernedWriteAttempt>;
|
|
12
|
+
export declare const ProposeWorkspaceKnowledgeClaimRequest: z.ZodObject<{
|
|
13
|
+
claimId: z.ZodString;
|
|
14
|
+
evidenceId: z.ZodString;
|
|
15
|
+
kind: z.ZodLiteral<"propose_knowledge">;
|
|
16
|
+
operationId: z.ZodString;
|
|
17
|
+
reason: z.ZodString;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export type ProposeWorkspaceKnowledgeClaimRequest = z.infer<typeof ProposeWorkspaceKnowledgeClaimRequest>;
|
|
20
|
+
export declare const CorrectWorkspaceKnowledgeClaimRequest: z.ZodObject<{
|
|
21
|
+
claimId: z.ZodString;
|
|
22
|
+
evidenceId: z.ZodString;
|
|
23
|
+
kind: z.ZodLiteral<"correct_knowledge">;
|
|
24
|
+
operationId: z.ZodString;
|
|
25
|
+
replacesClaimId: z.ZodString;
|
|
26
|
+
reason: z.ZodString;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export type CorrectWorkspaceKnowledgeClaimRequest = z.infer<typeof CorrectWorkspaceKnowledgeClaimRequest>;
|
|
29
|
+
/**
|
|
30
|
+
* Promote one still-active task-tree note into a normalized, workspace-local
|
|
31
|
+
* Knowledge claim proposal. The note text is the exact fact value and source
|
|
32
|
+
* evidence; callers may describe the subject and predicate but cannot widen
|
|
33
|
+
* authority or supply replacement source bytes.
|
|
34
|
+
*/
|
|
35
|
+
export declare const PromoteTaskNoteKnowledgeRequest: z.ZodObject<{
|
|
36
|
+
kind: z.ZodLiteral<"promote_task_note_knowledge">;
|
|
37
|
+
operationId: z.ZodString;
|
|
38
|
+
noteId: z.ZodString;
|
|
39
|
+
expectedNoteVersion: z.ZodLiteral<1>;
|
|
40
|
+
entityType: z.ZodString;
|
|
41
|
+
normalizedKey: z.ZodString;
|
|
42
|
+
displayName: z.ZodString;
|
|
43
|
+
predicateKey: z.ZodString;
|
|
44
|
+
confidenceBps: z.ZodNumber;
|
|
45
|
+
reason: z.ZodString;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
export type PromoteTaskNoteKnowledgeRequest = z.infer<typeof PromoteTaskNoteKnowledgeRequest>;
|
|
48
|
+
/**
|
|
49
|
+
* Promote the exact immutable Task-note bytes into an inactive mandatory-rule
|
|
50
|
+
* draft. The caller selects only the governed target and active-head baseline;
|
|
51
|
+
* it cannot replace the source content or activate the draft.
|
|
52
|
+
*/
|
|
53
|
+
export declare const PromoteTaskNoteInstructionPolicyRequest: z.ZodObject<{
|
|
54
|
+
kind: z.ZodLiteral<"promote_task_note_instruction_policy">;
|
|
55
|
+
operationId: z.ZodString;
|
|
56
|
+
noteId: z.ZodString;
|
|
57
|
+
expectedNoteVersion: z.ZodLiteral<1>;
|
|
58
|
+
entityType: z.ZodString;
|
|
59
|
+
normalizedKey: z.ZodString;
|
|
60
|
+
displayName: z.ZodString;
|
|
61
|
+
predicateKey: z.ZodString;
|
|
62
|
+
confidenceBps: z.ZodNumber;
|
|
63
|
+
target: z.ZodObject<{
|
|
64
|
+
kind: z.ZodEnum<{
|
|
65
|
+
charter: "charter";
|
|
66
|
+
policy: "policy";
|
|
67
|
+
}>;
|
|
68
|
+
scope: z.ZodEnum<{
|
|
69
|
+
global: "global";
|
|
70
|
+
role: "role";
|
|
71
|
+
}>;
|
|
72
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
expectedCurrentRevisionId: z.ZodNullable<z.ZodString>;
|
|
75
|
+
expectedActivationVersion: z.ZodNumber;
|
|
76
|
+
reason: z.ZodString;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
export type PromoteTaskNoteInstructionPolicyRequest = z.infer<typeof PromoteTaskNoteInstructionPolicyRequest>;
|
|
79
|
+
/**
|
|
80
|
+
* Promote the exact immutable Task-note bytes into an inactive workspace
|
|
81
|
+
* preference proposal. Descriptor metadata is caller-supplied and bounded,
|
|
82
|
+
* while the full proposal content always comes from the admitted note.
|
|
83
|
+
*/
|
|
84
|
+
export declare const PromoteTaskNotePreferenceRequest: z.ZodObject<{
|
|
85
|
+
kind: z.ZodLiteral<"promote_task_note_preference">;
|
|
86
|
+
operationId: z.ZodString;
|
|
87
|
+
noteId: z.ZodString;
|
|
88
|
+
expectedNoteVersion: z.ZodLiteral<1>;
|
|
89
|
+
entityType: z.ZodString;
|
|
90
|
+
normalizedKey: z.ZodString;
|
|
91
|
+
displayName: z.ZodString;
|
|
92
|
+
predicateKey: z.ZodString;
|
|
93
|
+
confidenceBps: z.ZodNumber;
|
|
94
|
+
stableKey: z.ZodString;
|
|
95
|
+
title: z.ZodString;
|
|
96
|
+
description: z.ZodString;
|
|
97
|
+
precedenceRank: z.ZodDefault<z.ZodNumber>;
|
|
98
|
+
conflictStrategy: z.ZodDefault<z.ZodEnum<{
|
|
99
|
+
inform: "inform";
|
|
100
|
+
merge: "merge";
|
|
101
|
+
override: "override";
|
|
102
|
+
reject: "reject";
|
|
103
|
+
}>>;
|
|
104
|
+
conflictsWith: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
105
|
+
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
reason: z.ZodString;
|
|
107
|
+
}, z.core.$strict>;
|
|
108
|
+
export type PromoteTaskNotePreferenceRequest = z.infer<typeof PromoteTaskNotePreferenceRequest>;
|
|
109
|
+
export declare const ProposeWorkspaceInstructionPolicyRequest: z.ZodObject<{
|
|
110
|
+
claimId: z.ZodString;
|
|
111
|
+
evidenceId: z.ZodString;
|
|
112
|
+
kind: z.ZodLiteral<"propose_instruction_policy">;
|
|
113
|
+
operationId: z.ZodString;
|
|
114
|
+
target: z.ZodObject<{
|
|
115
|
+
kind: z.ZodEnum<{
|
|
116
|
+
charter: "charter";
|
|
117
|
+
policy: "policy";
|
|
118
|
+
}>;
|
|
119
|
+
scope: z.ZodEnum<{
|
|
120
|
+
global: "global";
|
|
121
|
+
role: "role";
|
|
122
|
+
}>;
|
|
123
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
content: z.ZodString;
|
|
126
|
+
expectedCurrentRevisionId: z.ZodNullable<z.ZodString>;
|
|
127
|
+
expectedActivationVersion: z.ZodNumber;
|
|
128
|
+
reason: z.ZodString;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
export type ProposeWorkspaceInstructionPolicyRequest = z.infer<typeof ProposeWorkspaceInstructionPolicyRequest>;
|
|
131
|
+
export declare const ProposeWorkspacePreferenceRequest: z.ZodObject<{
|
|
132
|
+
claimId: z.ZodString;
|
|
133
|
+
evidenceId: z.ZodString;
|
|
134
|
+
kind: z.ZodLiteral<"propose_preference">;
|
|
135
|
+
operationId: z.ZodString;
|
|
136
|
+
stableKey: z.ZodString;
|
|
137
|
+
title: z.ZodString;
|
|
138
|
+
description: z.ZodString;
|
|
139
|
+
content: z.ZodString;
|
|
140
|
+
precedenceRank: z.ZodDefault<z.ZodNumber>;
|
|
141
|
+
conflictStrategy: z.ZodDefault<z.ZodEnum<{
|
|
142
|
+
inform: "inform";
|
|
143
|
+
merge: "merge";
|
|
144
|
+
override: "override";
|
|
145
|
+
reject: "reject";
|
|
146
|
+
}>>;
|
|
147
|
+
conflictsWith: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
148
|
+
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
reason: z.ZodString;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
export type ProposeWorkspacePreferenceRequest = z.infer<typeof ProposeWorkspacePreferenceRequest>;
|
|
152
|
+
/**
|
|
153
|
+
* Destination selection is explicit and structured. There is deliberately no
|
|
154
|
+
* generic "remember" operation, classifier, personal scope, or active authority.
|
|
155
|
+
*/
|
|
156
|
+
export declare const CompanyBrainGovernedWriteRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
157
|
+
claimId: z.ZodString;
|
|
158
|
+
evidenceId: z.ZodString;
|
|
159
|
+
kind: z.ZodLiteral<"propose_knowledge">;
|
|
160
|
+
operationId: z.ZodString;
|
|
161
|
+
reason: z.ZodString;
|
|
162
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
163
|
+
claimId: z.ZodString;
|
|
164
|
+
evidenceId: z.ZodString;
|
|
165
|
+
kind: z.ZodLiteral<"correct_knowledge">;
|
|
166
|
+
operationId: z.ZodString;
|
|
167
|
+
replacesClaimId: z.ZodString;
|
|
168
|
+
reason: z.ZodString;
|
|
169
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
170
|
+
kind: z.ZodLiteral<"promote_task_note_knowledge">;
|
|
171
|
+
operationId: z.ZodString;
|
|
172
|
+
noteId: z.ZodString;
|
|
173
|
+
expectedNoteVersion: z.ZodLiteral<1>;
|
|
174
|
+
entityType: z.ZodString;
|
|
175
|
+
normalizedKey: z.ZodString;
|
|
176
|
+
displayName: z.ZodString;
|
|
177
|
+
predicateKey: z.ZodString;
|
|
178
|
+
confidenceBps: z.ZodNumber;
|
|
179
|
+
reason: z.ZodString;
|
|
180
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
181
|
+
kind: z.ZodLiteral<"promote_task_note_instruction_policy">;
|
|
182
|
+
operationId: z.ZodString;
|
|
183
|
+
noteId: z.ZodString;
|
|
184
|
+
expectedNoteVersion: z.ZodLiteral<1>;
|
|
185
|
+
entityType: z.ZodString;
|
|
186
|
+
normalizedKey: z.ZodString;
|
|
187
|
+
displayName: z.ZodString;
|
|
188
|
+
predicateKey: z.ZodString;
|
|
189
|
+
confidenceBps: z.ZodNumber;
|
|
190
|
+
target: z.ZodObject<{
|
|
191
|
+
kind: z.ZodEnum<{
|
|
192
|
+
charter: "charter";
|
|
193
|
+
policy: "policy";
|
|
194
|
+
}>;
|
|
195
|
+
scope: z.ZodEnum<{
|
|
196
|
+
global: "global";
|
|
197
|
+
role: "role";
|
|
198
|
+
}>;
|
|
199
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
expectedCurrentRevisionId: z.ZodNullable<z.ZodString>;
|
|
202
|
+
expectedActivationVersion: z.ZodNumber;
|
|
203
|
+
reason: z.ZodString;
|
|
204
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
205
|
+
kind: z.ZodLiteral<"promote_task_note_preference">;
|
|
206
|
+
operationId: z.ZodString;
|
|
207
|
+
noteId: z.ZodString;
|
|
208
|
+
expectedNoteVersion: z.ZodLiteral<1>;
|
|
209
|
+
entityType: z.ZodString;
|
|
210
|
+
normalizedKey: z.ZodString;
|
|
211
|
+
displayName: z.ZodString;
|
|
212
|
+
predicateKey: z.ZodString;
|
|
213
|
+
confidenceBps: z.ZodNumber;
|
|
214
|
+
stableKey: z.ZodString;
|
|
215
|
+
title: z.ZodString;
|
|
216
|
+
description: z.ZodString;
|
|
217
|
+
precedenceRank: z.ZodDefault<z.ZodNumber>;
|
|
218
|
+
conflictStrategy: z.ZodDefault<z.ZodEnum<{
|
|
219
|
+
inform: "inform";
|
|
220
|
+
merge: "merge";
|
|
221
|
+
override: "override";
|
|
222
|
+
reject: "reject";
|
|
223
|
+
}>>;
|
|
224
|
+
conflictsWith: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
225
|
+
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
reason: z.ZodString;
|
|
227
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
228
|
+
claimId: z.ZodString;
|
|
229
|
+
evidenceId: z.ZodString;
|
|
230
|
+
kind: z.ZodLiteral<"propose_instruction_policy">;
|
|
231
|
+
operationId: z.ZodString;
|
|
232
|
+
target: z.ZodObject<{
|
|
233
|
+
kind: z.ZodEnum<{
|
|
234
|
+
charter: "charter";
|
|
235
|
+
policy: "policy";
|
|
236
|
+
}>;
|
|
237
|
+
scope: z.ZodEnum<{
|
|
238
|
+
global: "global";
|
|
239
|
+
role: "role";
|
|
240
|
+
}>;
|
|
241
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
content: z.ZodString;
|
|
244
|
+
expectedCurrentRevisionId: z.ZodNullable<z.ZodString>;
|
|
245
|
+
expectedActivationVersion: z.ZodNumber;
|
|
246
|
+
reason: z.ZodString;
|
|
247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
+
claimId: z.ZodString;
|
|
249
|
+
evidenceId: z.ZodString;
|
|
250
|
+
kind: z.ZodLiteral<"propose_preference">;
|
|
251
|
+
operationId: z.ZodString;
|
|
252
|
+
stableKey: z.ZodString;
|
|
253
|
+
title: z.ZodString;
|
|
254
|
+
description: z.ZodString;
|
|
255
|
+
content: z.ZodString;
|
|
256
|
+
precedenceRank: z.ZodDefault<z.ZodNumber>;
|
|
257
|
+
conflictStrategy: z.ZodDefault<z.ZodEnum<{
|
|
258
|
+
inform: "inform";
|
|
259
|
+
merge: "merge";
|
|
260
|
+
override: "override";
|
|
261
|
+
reject: "reject";
|
|
262
|
+
}>>;
|
|
263
|
+
conflictsWith: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
264
|
+
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
265
|
+
reason: z.ZodString;
|
|
266
|
+
}, z.core.$strict>], "kind">;
|
|
267
|
+
export type CompanyBrainGovernedWriteRequest = z.infer<typeof CompanyBrainGovernedWriteRequest>;
|
|
268
|
+
export declare const CompanyBrainGovernedWriteDestination: z.ZodEnum<{
|
|
269
|
+
instruction_policy: "instruction_policy";
|
|
270
|
+
knowledge: "knowledge";
|
|
271
|
+
preference: "preference";
|
|
272
|
+
}>;
|
|
273
|
+
export type CompanyBrainGovernedWriteDestination = z.infer<typeof CompanyBrainGovernedWriteDestination>;
|
|
274
|
+
export declare const CompanyBrainGovernedWriteReceipt: z.ZodObject<{
|
|
275
|
+
operationId: z.ZodString;
|
|
276
|
+
inputHash: z.ZodString;
|
|
277
|
+
workspaceId: z.ZodString;
|
|
278
|
+
destination: z.ZodEnum<{
|
|
279
|
+
instruction_policy: "instruction_policy";
|
|
280
|
+
knowledge: "knowledge";
|
|
281
|
+
preference: "preference";
|
|
282
|
+
}>;
|
|
283
|
+
outcome: z.ZodLiteral<"proposed">;
|
|
284
|
+
claimId: z.ZodString;
|
|
285
|
+
evidenceId: z.ZodString;
|
|
286
|
+
relationId: z.ZodNullable<z.ZodString>;
|
|
287
|
+
reviewId: z.ZodNullable<z.ZodString>;
|
|
288
|
+
knowledgeChangeProposalId: z.ZodNullable<z.ZodString>;
|
|
289
|
+
destinationProposalId: z.ZodNullable<z.ZodString>;
|
|
290
|
+
destinationRevisionId: z.ZodNullable<z.ZodString>;
|
|
291
|
+
taskNoteSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
292
|
+
noteId: z.ZodString;
|
|
293
|
+
rootSessionId: z.ZodString;
|
|
294
|
+
noteVersion: z.ZodLiteral<1>;
|
|
295
|
+
textHash: z.ZodString;
|
|
296
|
+
}, z.core.$strip>>>;
|
|
297
|
+
effectiveBoundary: z.ZodLiteral<"human_review_required">;
|
|
298
|
+
rollback: z.ZodObject<{
|
|
299
|
+
supported: z.ZodLiteral<false>;
|
|
300
|
+
mechanism: z.ZodLiteral<"not_applicable_proposal_only">;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
export type CompanyBrainGovernedWriteReceipt = z.infer<typeof CompanyBrainGovernedWriteReceipt>;
|
|
304
|
+
/**
|
|
305
|
+
* Policy routing is deliberately separate from destination admission. The
|
|
306
|
+
* immutable accepted-attempt snapshot decides whether derived evidence may
|
|
307
|
+
* create a proposal; the destination still owns activation and rollback.
|
|
308
|
+
*/
|
|
309
|
+
export declare const CompanyBrainLearningPolicyDecision: z.ZodEnum<{
|
|
310
|
+
activated: "activated";
|
|
311
|
+
activation_requested: "activation_requested";
|
|
312
|
+
blocked: "blocked";
|
|
313
|
+
proposal_created: "proposal_created";
|
|
314
|
+
}>;
|
|
315
|
+
export type CompanyBrainLearningPolicyDecision = z.infer<typeof CompanyBrainLearningPolicyDecision>;
|
|
316
|
+
/**
|
|
317
|
+
* Content-free summary of the governed-learning decision receipt recorded for
|
|
318
|
+
* a Ways-of-working proposal (instruction policy or preference). Knowledge
|
|
319
|
+
* destinations create no `knowledge_change_proposals` row and are therefore
|
|
320
|
+
* never evaluated; they report `null`.
|
|
321
|
+
*/
|
|
322
|
+
export declare const CompanyBrainLearningDecisionSummary: z.ZodObject<{
|
|
323
|
+
receiptId: z.ZodString;
|
|
324
|
+
outcome: z.ZodEnum<{
|
|
325
|
+
automatic: "automatic";
|
|
326
|
+
confidence: "confidence";
|
|
327
|
+
conflict: "conflict";
|
|
328
|
+
off: "off";
|
|
329
|
+
revoked: "revoked";
|
|
330
|
+
stale: "stale";
|
|
331
|
+
suggest: "suggest";
|
|
332
|
+
}>;
|
|
333
|
+
automaticEligible: z.ZodBoolean;
|
|
334
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
335
|
+
confidence_below_floor: "confidence_below_floor";
|
|
336
|
+
evidence_conflict: "evidence_conflict";
|
|
337
|
+
evidence_revoked: "evidence_revoked";
|
|
338
|
+
policy_automatic: "policy_automatic";
|
|
339
|
+
policy_off: "policy_off";
|
|
340
|
+
policy_suggest: "policy_suggest";
|
|
341
|
+
proposal_stale: "proposal_stale";
|
|
342
|
+
}>>;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
export type CompanyBrainLearningDecisionSummary = z.infer<typeof CompanyBrainLearningDecisionSummary>;
|
|
345
|
+
/**
|
|
346
|
+
* Bounded, content-free reason why evaluation or activation did not complete.
|
|
347
|
+
* The proposal write itself remains durable regardless.
|
|
348
|
+
*/
|
|
349
|
+
export declare const CompanyBrainLearningStepFailure: z.ZodObject<{
|
|
350
|
+
stage: z.ZodEnum<{
|
|
351
|
+
activation: "activation";
|
|
352
|
+
evaluation: "evaluation";
|
|
353
|
+
}>;
|
|
354
|
+
code: z.ZodEnum<{
|
|
355
|
+
authority: "authority";
|
|
356
|
+
conflict: "conflict";
|
|
357
|
+
invalid_operation: "invalid_operation";
|
|
358
|
+
unavailable: "unavailable";
|
|
359
|
+
}>;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
export type CompanyBrainLearningStepFailure = z.infer<typeof CompanyBrainLearningStepFailure>;
|
|
362
|
+
export declare const CompanyBrainLearningPolicyRouteReceipt: z.ZodObject<{
|
|
363
|
+
operationId: z.ZodString;
|
|
364
|
+
workspaceId: z.ZodString;
|
|
365
|
+
effectivePolicy: z.ZodObject<{
|
|
366
|
+
mode: z.ZodEnum<{
|
|
367
|
+
automatic: "automatic";
|
|
368
|
+
off: "off";
|
|
369
|
+
suggest: "suggest";
|
|
370
|
+
}>;
|
|
371
|
+
snapshotId: z.ZodString;
|
|
372
|
+
revisionId: z.ZodString;
|
|
373
|
+
inherited: z.ZodBoolean;
|
|
374
|
+
source: z.ZodObject<{
|
|
375
|
+
kind: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
376
|
+
id: z.ZodString;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
policyRevision: z.ZodNullable<z.ZodObject<{
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
revision: z.ZodNumber;
|
|
381
|
+
policyHash: z.ZodString;
|
|
382
|
+
}, z.core.$strip>>;
|
|
383
|
+
activationVersion: z.ZodNumber;
|
|
384
|
+
snapshotHash: z.ZodString;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
decision: z.ZodEnum<{
|
|
387
|
+
activated: "activated";
|
|
388
|
+
activation_requested: "activation_requested";
|
|
389
|
+
blocked: "blocked";
|
|
390
|
+
proposal_created: "proposal_created";
|
|
391
|
+
}>;
|
|
392
|
+
write: z.ZodNullable<z.ZodObject<{
|
|
393
|
+
operationId: z.ZodString;
|
|
394
|
+
inputHash: z.ZodString;
|
|
395
|
+
workspaceId: z.ZodString;
|
|
396
|
+
destination: z.ZodEnum<{
|
|
397
|
+
instruction_policy: "instruction_policy";
|
|
398
|
+
knowledge: "knowledge";
|
|
399
|
+
preference: "preference";
|
|
400
|
+
}>;
|
|
401
|
+
outcome: z.ZodLiteral<"proposed">;
|
|
402
|
+
claimId: z.ZodString;
|
|
403
|
+
evidenceId: z.ZodString;
|
|
404
|
+
relationId: z.ZodNullable<z.ZodString>;
|
|
405
|
+
reviewId: z.ZodNullable<z.ZodString>;
|
|
406
|
+
knowledgeChangeProposalId: z.ZodNullable<z.ZodString>;
|
|
407
|
+
destinationProposalId: z.ZodNullable<z.ZodString>;
|
|
408
|
+
destinationRevisionId: z.ZodNullable<z.ZodString>;
|
|
409
|
+
taskNoteSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
410
|
+
noteId: z.ZodString;
|
|
411
|
+
rootSessionId: z.ZodString;
|
|
412
|
+
noteVersion: z.ZodLiteral<1>;
|
|
413
|
+
textHash: z.ZodString;
|
|
414
|
+
}, z.core.$strip>>>;
|
|
415
|
+
effectiveBoundary: z.ZodLiteral<"human_review_required">;
|
|
416
|
+
rollback: z.ZodObject<{
|
|
417
|
+
supported: z.ZodLiteral<false>;
|
|
418
|
+
mechanism: z.ZodLiteral<"not_applicable_proposal_only">;
|
|
419
|
+
}, z.core.$strip>;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
learning: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
422
|
+
receiptId: z.ZodString;
|
|
423
|
+
outcome: z.ZodEnum<{
|
|
424
|
+
automatic: "automatic";
|
|
425
|
+
confidence: "confidence";
|
|
426
|
+
conflict: "conflict";
|
|
427
|
+
off: "off";
|
|
428
|
+
revoked: "revoked";
|
|
429
|
+
stale: "stale";
|
|
430
|
+
suggest: "suggest";
|
|
431
|
+
}>;
|
|
432
|
+
automaticEligible: z.ZodBoolean;
|
|
433
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
434
|
+
confidence_below_floor: "confidence_below_floor";
|
|
435
|
+
evidence_conflict: "evidence_conflict";
|
|
436
|
+
evidence_revoked: "evidence_revoked";
|
|
437
|
+
policy_automatic: "policy_automatic";
|
|
438
|
+
policy_off: "policy_off";
|
|
439
|
+
policy_suggest: "policy_suggest";
|
|
440
|
+
proposal_stale: "proposal_stale";
|
|
441
|
+
}>>;
|
|
442
|
+
}, z.core.$strip>>>;
|
|
443
|
+
learningFailure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
444
|
+
stage: z.ZodEnum<{
|
|
445
|
+
activation: "activation";
|
|
446
|
+
evaluation: "evaluation";
|
|
447
|
+
}>;
|
|
448
|
+
code: z.ZodEnum<{
|
|
449
|
+
authority: "authority";
|
|
450
|
+
conflict: "conflict";
|
|
451
|
+
invalid_operation: "invalid_operation";
|
|
452
|
+
unavailable: "unavailable";
|
|
453
|
+
}>;
|
|
454
|
+
}, z.core.$strip>>>;
|
|
455
|
+
activation: z.ZodObject<{
|
|
456
|
+
requested: z.ZodBoolean;
|
|
457
|
+
activated: z.ZodBoolean;
|
|
458
|
+
boundary: z.ZodEnum<{
|
|
459
|
+
activated: "activated";
|
|
460
|
+
destination_authority: "destination_authority";
|
|
461
|
+
human_activation_required: "human_activation_required";
|
|
462
|
+
human_review: "human_review";
|
|
463
|
+
not_eligible: "not_eligible";
|
|
464
|
+
policy_off: "policy_off";
|
|
465
|
+
}>;
|
|
466
|
+
receiptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
467
|
+
destination: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
468
|
+
instruction_policy: "instruction_policy";
|
|
469
|
+
preference: "preference";
|
|
470
|
+
}>>>;
|
|
471
|
+
destinationRevisionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
472
|
+
effectiveAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
473
|
+
}, z.core.$strip>;
|
|
474
|
+
}, z.core.$strip>;
|
|
475
|
+
export type CompanyBrainLearningPolicyRouteReceipt = z.infer<typeof CompanyBrainLearningPolicyRouteReceipt>;
|