@schift-io/knowledge-scope 0.1.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.
Files changed (62) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +387 -0
  3. package/dist/context-pack.js +4771 -0
  4. package/dist/index.js +8044 -0
  5. package/dist/main.js +7550 -0
  6. package/dist/types/adapters/evidence-policy.d.ts +3 -0
  7. package/dist/types/adapters/gates.d.ts +13 -0
  8. package/dist/types/adapters/http-policy.d.ts +10 -0
  9. package/dist/types/adapters/open-connector.d.ts +20 -0
  10. package/dist/types/adapters/provider-port.d.ts +27 -0
  11. package/dist/types/adapters/response.d.ts +12 -0
  12. package/dist/types/adapters/schift-search-headers.d.ts +2 -0
  13. package/dist/types/adapters/schift-search-identity.d.ts +14 -0
  14. package/dist/types/adapters/schift-search.d.ts +17 -0
  15. package/dist/types/adapters/types.d.ts +136 -0
  16. package/dist/types/api-contract.d.ts +164 -0
  17. package/dist/types/api.d.ts +30 -0
  18. package/dist/types/application-batch.d.ts +4 -0
  19. package/dist/types/application-execution.d.ts +30 -0
  20. package/dist/types/application.d.ts +47 -0
  21. package/dist/types/authorization.d.ts +228 -0
  22. package/dist/types/cli-options.d.ts +6 -0
  23. package/dist/types/cli.d.ts +24 -0
  24. package/dist/types/client-error.d.ts +5 -0
  25. package/dist/types/client-validation.d.ts +8 -0
  26. package/dist/types/client.d.ts +18 -0
  27. package/dist/types/context-pack/bounded-json.d.ts +3 -0
  28. package/dist/types/context-pack/canonical.d.ts +12 -0
  29. package/dist/types/context-pack/index.d.ts +73 -0
  30. package/dist/types/context-pack/knowledge-scope-admission.d.ts +23 -0
  31. package/dist/types/context-pack/knowledge-scope-batch.d.ts +85 -0
  32. package/dist/types/context-pack/knowledge-scope-execution.d.ts +297 -0
  33. package/dist/types/context-pack/knowledge-scope-lock.d.ts +71 -0
  34. package/dist/types/context-pack/knowledge-scope-mount.d.ts +1094 -0
  35. package/dist/types/context-pack/knowledge-scope.d.ts +1843 -0
  36. package/dist/types/context-pack/scalars.d.ts +13 -0
  37. package/dist/types/doctor-config.d.ts +6 -0
  38. package/dist/types/doctor.d.ts +7 -0
  39. package/dist/types/errors.d.ts +8 -0
  40. package/dist/types/evaluation/contracts.d.ts +718 -0
  41. package/dist/types/evaluation.d.ts +20 -0
  42. package/dist/types/index.d.ts +26 -0
  43. package/dist/types/json.d.ts +17 -0
  44. package/dist/types/limits.d.ts +10 -0
  45. package/dist/types/main.d.ts +10 -0
  46. package/dist/types/onboarding-config.d.ts +9 -0
  47. package/dist/types/portable.d.ts +14 -0
  48. package/dist/types/quickstart.d.ts +10 -0
  49. package/dist/types/schema-subset.d.ts +9 -0
  50. package/dist/types/state-contract.d.ts +2867 -0
  51. package/dist/types/state-store.d.ts +29 -0
  52. package/docs/PILOT.md +184 -0
  53. package/examples/batch-consumer.mjs +19 -0
  54. package/examples/consumer.mjs +17 -0
  55. package/examples/evaluation/README.md +34 -0
  56. package/examples/evaluation/run.mjs +21 -0
  57. package/examples/evaluation/synthetic.json +59 -0
  58. package/examples/mount-bindings.json +31 -0
  59. package/examples/support-scope/schemas/query-input.json +6 -0
  60. package/examples/support-scope/schemas/result-row.json +6 -0
  61. package/examples/support-scope/scope.json +48 -0
  62. package/package.json +58 -0
@@ -0,0 +1,1843 @@
1
+ import { z } from "zod";
2
+ export declare const KnowledgeScopeIdentifierSchema: z.ZodString;
3
+ export declare const ProviderScopeSchema: z.ZodString;
4
+ export declare const QueryProviderSchema: z.ZodReadonly<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5
+ kind: z.ZodLiteral<"records_operation">;
6
+ operationId: z.ZodString;
7
+ }, "strict", z.ZodTypeAny, {
8
+ kind: "records_operation";
9
+ operationId: string;
10
+ }, {
11
+ kind: "records_operation";
12
+ operationId: string;
13
+ }>, z.ZodObject<{
14
+ kind: z.ZodLiteral<"open_connector_action">;
15
+ actionId: z.ZodString;
16
+ connectorRef: z.ZodString;
17
+ }, "strict", z.ZodTypeAny, {
18
+ kind: "open_connector_action";
19
+ actionId: string;
20
+ connectorRef: string;
21
+ }, {
22
+ kind: "open_connector_action";
23
+ actionId: string;
24
+ connectorRef: string;
25
+ }>, z.ZodObject<{
26
+ kind: z.ZodLiteral<"schift_search">;
27
+ indexRef: z.ZodString;
28
+ }, "strict", z.ZodTypeAny, {
29
+ kind: "schift_search";
30
+ indexRef: string;
31
+ }, {
32
+ kind: "schift_search";
33
+ indexRef: string;
34
+ }>, z.ZodObject<{
35
+ kind: z.ZodLiteral<"web_search">;
36
+ provider: z.ZodEnum<["customer", "schift"]>;
37
+ }, "strict", z.ZodTypeAny, {
38
+ kind: "web_search";
39
+ provider: "customer" | "schift";
40
+ }, {
41
+ kind: "web_search";
42
+ provider: "customer" | "schift";
43
+ }>]>>;
44
+ export declare const QueryCapabilitySchema: z.ZodReadonly<z.ZodObject<{
45
+ operationId: z.ZodString;
46
+ provider: z.ZodReadonly<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
47
+ kind: z.ZodLiteral<"records_operation">;
48
+ operationId: z.ZodString;
49
+ }, "strict", z.ZodTypeAny, {
50
+ kind: "records_operation";
51
+ operationId: string;
52
+ }, {
53
+ kind: "records_operation";
54
+ operationId: string;
55
+ }>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"open_connector_action">;
57
+ actionId: z.ZodString;
58
+ connectorRef: z.ZodString;
59
+ }, "strict", z.ZodTypeAny, {
60
+ kind: "open_connector_action";
61
+ actionId: string;
62
+ connectorRef: string;
63
+ }, {
64
+ kind: "open_connector_action";
65
+ actionId: string;
66
+ connectorRef: string;
67
+ }>, z.ZodObject<{
68
+ kind: z.ZodLiteral<"schift_search">;
69
+ indexRef: z.ZodString;
70
+ }, "strict", z.ZodTypeAny, {
71
+ kind: "schift_search";
72
+ indexRef: string;
73
+ }, {
74
+ kind: "schift_search";
75
+ indexRef: string;
76
+ }>, z.ZodObject<{
77
+ kind: z.ZodLiteral<"web_search">;
78
+ provider: z.ZodEnum<["customer", "schift"]>;
79
+ }, "strict", z.ZodTypeAny, {
80
+ kind: "web_search";
81
+ provider: "customer" | "schift";
82
+ }, {
83
+ kind: "web_search";
84
+ provider: "customer" | "schift";
85
+ }>]>>;
86
+ inputSchemaRef: z.ZodEffects<z.ZodString, string, string>;
87
+ resultSchemaRef: z.ZodEffects<z.ZodString, string, string>;
88
+ allowedFilters: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
89
+ limits: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
90
+ maxRows: z.ZodOptional<z.ZodNumber>;
91
+ maxResultBytes: z.ZodOptional<z.ZodNumber>;
92
+ }, "strict", z.ZodTypeAny, {
93
+ maxRows?: number | undefined;
94
+ maxResultBytes?: number | undefined;
95
+ }, {
96
+ maxRows?: number | undefined;
97
+ maxResultBytes?: number | undefined;
98
+ }>, {
99
+ maxRows?: number | undefined;
100
+ maxResultBytes?: number | undefined;
101
+ }, {
102
+ maxRows?: number | undefined;
103
+ maxResultBytes?: number | undefined;
104
+ }>>>;
105
+ freshness: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
106
+ maxAgeSeconds: z.ZodNumber;
107
+ }, "strict", z.ZodTypeAny, {
108
+ maxAgeSeconds: number;
109
+ }, {
110
+ maxAgeSeconds: number;
111
+ }>>>;
112
+ requiredProviderScopes: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
113
+ }, "strict", z.ZodTypeAny, {
114
+ operationId: string;
115
+ provider: Readonly<{
116
+ kind: "records_operation";
117
+ operationId: string;
118
+ }> | Readonly<{
119
+ kind: "open_connector_action";
120
+ actionId: string;
121
+ connectorRef: string;
122
+ }> | Readonly<{
123
+ kind: "schift_search";
124
+ indexRef: string;
125
+ }> | Readonly<{
126
+ kind: "web_search";
127
+ provider: "customer" | "schift";
128
+ }>;
129
+ inputSchemaRef: string;
130
+ resultSchemaRef: string;
131
+ allowedFilters?: readonly string[] | undefined;
132
+ limits?: Readonly<{
133
+ maxRows?: number | undefined;
134
+ maxResultBytes?: number | undefined;
135
+ }> | undefined;
136
+ freshness?: Readonly<{
137
+ maxAgeSeconds: number;
138
+ }> | undefined;
139
+ requiredProviderScopes?: readonly string[] | undefined;
140
+ }, {
141
+ operationId: string;
142
+ provider: Readonly<{
143
+ kind: "records_operation";
144
+ operationId: string;
145
+ }> | Readonly<{
146
+ kind: "open_connector_action";
147
+ actionId: string;
148
+ connectorRef: string;
149
+ }> | Readonly<{
150
+ kind: "schift_search";
151
+ indexRef: string;
152
+ }> | Readonly<{
153
+ kind: "web_search";
154
+ provider: "customer" | "schift";
155
+ }>;
156
+ inputSchemaRef: string;
157
+ resultSchemaRef: string;
158
+ allowedFilters?: readonly string[] | undefined;
159
+ limits?: Readonly<{
160
+ maxRows?: number | undefined;
161
+ maxResultBytes?: number | undefined;
162
+ }> | undefined;
163
+ freshness?: Readonly<{
164
+ maxAgeSeconds: number;
165
+ }> | undefined;
166
+ requiredProviderScopes?: readonly string[] | undefined;
167
+ }>>;
168
+ export declare const KnowledgeScopeDefinitionBaseSchema: z.ZodObject<{
169
+ packId: z.ZodBranded<z.ZodString, "PackId">;
170
+ version: z.ZodBranded<z.ZodString, "SemanticVersion">;
171
+ responsibility: z.ZodString;
172
+ scope: z.ZodReadonly<z.ZodObject<{
173
+ root: z.ZodLiteral<"tenant">;
174
+ descendants: z.ZodReadonly<z.ZodTuple<[z.ZodLiteral<"namespace">, z.ZodLiteral<"subject">, z.ZodLiteral<"session">], null>>;
175
+ }, "strict", z.ZodTypeAny, {
176
+ root: "tenant";
177
+ descendants: readonly ["namespace", "subject", "session"];
178
+ }, {
179
+ root: "tenant";
180
+ descendants: readonly ["namespace", "subject", "session"];
181
+ }>>;
182
+ capabilities: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
183
+ operationId: z.ZodString;
184
+ provider: z.ZodReadonly<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
185
+ kind: z.ZodLiteral<"records_operation">;
186
+ operationId: z.ZodString;
187
+ }, "strict", z.ZodTypeAny, {
188
+ kind: "records_operation";
189
+ operationId: string;
190
+ }, {
191
+ kind: "records_operation";
192
+ operationId: string;
193
+ }>, z.ZodObject<{
194
+ kind: z.ZodLiteral<"open_connector_action">;
195
+ actionId: z.ZodString;
196
+ connectorRef: z.ZodString;
197
+ }, "strict", z.ZodTypeAny, {
198
+ kind: "open_connector_action";
199
+ actionId: string;
200
+ connectorRef: string;
201
+ }, {
202
+ kind: "open_connector_action";
203
+ actionId: string;
204
+ connectorRef: string;
205
+ }>, z.ZodObject<{
206
+ kind: z.ZodLiteral<"schift_search">;
207
+ indexRef: z.ZodString;
208
+ }, "strict", z.ZodTypeAny, {
209
+ kind: "schift_search";
210
+ indexRef: string;
211
+ }, {
212
+ kind: "schift_search";
213
+ indexRef: string;
214
+ }>, z.ZodObject<{
215
+ kind: z.ZodLiteral<"web_search">;
216
+ provider: z.ZodEnum<["customer", "schift"]>;
217
+ }, "strict", z.ZodTypeAny, {
218
+ kind: "web_search";
219
+ provider: "customer" | "schift";
220
+ }, {
221
+ kind: "web_search";
222
+ provider: "customer" | "schift";
223
+ }>]>>;
224
+ inputSchemaRef: z.ZodEffects<z.ZodString, string, string>;
225
+ resultSchemaRef: z.ZodEffects<z.ZodString, string, string>;
226
+ allowedFilters: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
227
+ limits: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
228
+ maxRows: z.ZodOptional<z.ZodNumber>;
229
+ maxResultBytes: z.ZodOptional<z.ZodNumber>;
230
+ }, "strict", z.ZodTypeAny, {
231
+ maxRows?: number | undefined;
232
+ maxResultBytes?: number | undefined;
233
+ }, {
234
+ maxRows?: number | undefined;
235
+ maxResultBytes?: number | undefined;
236
+ }>, {
237
+ maxRows?: number | undefined;
238
+ maxResultBytes?: number | undefined;
239
+ }, {
240
+ maxRows?: number | undefined;
241
+ maxResultBytes?: number | undefined;
242
+ }>>>;
243
+ freshness: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
244
+ maxAgeSeconds: z.ZodNumber;
245
+ }, "strict", z.ZodTypeAny, {
246
+ maxAgeSeconds: number;
247
+ }, {
248
+ maxAgeSeconds: number;
249
+ }>>>;
250
+ requiredProviderScopes: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
251
+ }, "strict", z.ZodTypeAny, {
252
+ operationId: string;
253
+ provider: Readonly<{
254
+ kind: "records_operation";
255
+ operationId: string;
256
+ }> | Readonly<{
257
+ kind: "open_connector_action";
258
+ actionId: string;
259
+ connectorRef: string;
260
+ }> | Readonly<{
261
+ kind: "schift_search";
262
+ indexRef: string;
263
+ }> | Readonly<{
264
+ kind: "web_search";
265
+ provider: "customer" | "schift";
266
+ }>;
267
+ inputSchemaRef: string;
268
+ resultSchemaRef: string;
269
+ allowedFilters?: readonly string[] | undefined;
270
+ limits?: Readonly<{
271
+ maxRows?: number | undefined;
272
+ maxResultBytes?: number | undefined;
273
+ }> | undefined;
274
+ freshness?: Readonly<{
275
+ maxAgeSeconds: number;
276
+ }> | undefined;
277
+ requiredProviderScopes?: readonly string[] | undefined;
278
+ }, {
279
+ operationId: string;
280
+ provider: Readonly<{
281
+ kind: "records_operation";
282
+ operationId: string;
283
+ }> | Readonly<{
284
+ kind: "open_connector_action";
285
+ actionId: string;
286
+ connectorRef: string;
287
+ }> | Readonly<{
288
+ kind: "schift_search";
289
+ indexRef: string;
290
+ }> | Readonly<{
291
+ kind: "web_search";
292
+ provider: "customer" | "schift";
293
+ }>;
294
+ inputSchemaRef: string;
295
+ resultSchemaRef: string;
296
+ allowedFilters?: readonly string[] | undefined;
297
+ limits?: Readonly<{
298
+ maxRows?: number | undefined;
299
+ maxResultBytes?: number | undefined;
300
+ }> | undefined;
301
+ freshness?: Readonly<{
302
+ maxAgeSeconds: number;
303
+ }> | undefined;
304
+ requiredProviderScopes?: readonly string[] | undefined;
305
+ }>>, "many">>;
306
+ contextPolicy: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
307
+ mustConsider: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
308
+ id: z.ZodString;
309
+ selector: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
310
+ sourceIds: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
311
+ sourceClasses: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["document", "records", "activity_stream"]>, "many">, ("document" | "records" | "activity_stream")[], ("document" | "records" | "activity_stream")[]>>>;
312
+ authorities: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["primary", "operational", "approved", "observed", "derived"]>, "many">, ("primary" | "operational" | "approved" | "observed" | "derived")[], ("primary" | "operational" | "approved" | "observed" | "derived")[]>>>;
313
+ origins: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["observed", "derived"]>, "many">, ("observed" | "derived")[], ("observed" | "derived")[]>>>;
314
+ }, "strict", z.ZodTypeAny, {
315
+ sourceIds?: readonly string[] | undefined;
316
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
317
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
318
+ origins?: readonly ("observed" | "derived")[] | undefined;
319
+ }, {
320
+ sourceIds?: readonly string[] | undefined;
321
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
322
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
323
+ origins?: readonly ("observed" | "derived")[] | undefined;
324
+ }>, {
325
+ sourceIds?: readonly string[] | undefined;
326
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
327
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
328
+ origins?: readonly ("observed" | "derived")[] | undefined;
329
+ }, {
330
+ sourceIds?: readonly string[] | undefined;
331
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
332
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
333
+ origins?: readonly ("observed" | "derived")[] | undefined;
334
+ }>>;
335
+ minEvidence: z.ZodNumber;
336
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
337
+ }, "strict", z.ZodTypeAny, {
338
+ id: string;
339
+ selector: Readonly<{
340
+ sourceIds?: readonly string[] | undefined;
341
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
342
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
343
+ origins?: readonly ("observed" | "derived")[] | undefined;
344
+ }>;
345
+ minEvidence: number;
346
+ maxAgeSeconds?: number | undefined;
347
+ }, {
348
+ id: string;
349
+ selector: Readonly<{
350
+ sourceIds?: readonly string[] | undefined;
351
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
352
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
353
+ origins?: readonly ("observed" | "derived")[] | undefined;
354
+ }>;
355
+ minEvidence: number;
356
+ maxAgeSeconds?: number | undefined;
357
+ }>>, "many">>;
358
+ mayConsider: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
359
+ id: z.ZodString;
360
+ selector: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
361
+ sourceIds: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
362
+ sourceClasses: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["document", "records", "activity_stream"]>, "many">, ("document" | "records" | "activity_stream")[], ("document" | "records" | "activity_stream")[]>>>;
363
+ authorities: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["primary", "operational", "approved", "observed", "derived"]>, "many">, ("primary" | "operational" | "approved" | "observed" | "derived")[], ("primary" | "operational" | "approved" | "observed" | "derived")[]>>>;
364
+ origins: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["observed", "derived"]>, "many">, ("observed" | "derived")[], ("observed" | "derived")[]>>>;
365
+ }, "strict", z.ZodTypeAny, {
366
+ sourceIds?: readonly string[] | undefined;
367
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
368
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
369
+ origins?: readonly ("observed" | "derived")[] | undefined;
370
+ }, {
371
+ sourceIds?: readonly string[] | undefined;
372
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
373
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
374
+ origins?: readonly ("observed" | "derived")[] | undefined;
375
+ }>, {
376
+ sourceIds?: readonly string[] | undefined;
377
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
378
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
379
+ origins?: readonly ("observed" | "derived")[] | undefined;
380
+ }, {
381
+ sourceIds?: readonly string[] | undefined;
382
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
383
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
384
+ origins?: readonly ("observed" | "derived")[] | undefined;
385
+ }>>;
386
+ minEvidence: z.ZodNumber;
387
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
388
+ }, "strict", z.ZodTypeAny, {
389
+ id: string;
390
+ selector: Readonly<{
391
+ sourceIds?: readonly string[] | undefined;
392
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
393
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
394
+ origins?: readonly ("observed" | "derived")[] | undefined;
395
+ }>;
396
+ minEvidence: number;
397
+ maxAgeSeconds?: number | undefined;
398
+ }, {
399
+ id: string;
400
+ selector: Readonly<{
401
+ sourceIds?: readonly string[] | undefined;
402
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
403
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
404
+ origins?: readonly ("observed" | "derived")[] | undefined;
405
+ }>;
406
+ minEvidence: number;
407
+ maxAgeSeconds?: number | undefined;
408
+ }>>, "many">>>;
409
+ mustNotUse: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
410
+ id: z.ZodString;
411
+ selector: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
412
+ sourceIds: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
413
+ sourceClasses: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["document", "records", "activity_stream"]>, "many">, ("document" | "records" | "activity_stream")[], ("document" | "records" | "activity_stream")[]>>>;
414
+ authorities: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["primary", "operational", "approved", "observed", "derived"]>, "many">, ("primary" | "operational" | "approved" | "observed" | "derived")[], ("primary" | "operational" | "approved" | "observed" | "derived")[]>>>;
415
+ origins: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["observed", "derived"]>, "many">, ("observed" | "derived")[], ("observed" | "derived")[]>>>;
416
+ }, "strict", z.ZodTypeAny, {
417
+ sourceIds?: readonly string[] | undefined;
418
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
419
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
420
+ origins?: readonly ("observed" | "derived")[] | undefined;
421
+ }, {
422
+ sourceIds?: readonly string[] | undefined;
423
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
424
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
425
+ origins?: readonly ("observed" | "derived")[] | undefined;
426
+ }>, {
427
+ sourceIds?: readonly string[] | undefined;
428
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
429
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
430
+ origins?: readonly ("observed" | "derived")[] | undefined;
431
+ }, {
432
+ sourceIds?: readonly string[] | undefined;
433
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
434
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
435
+ origins?: readonly ("observed" | "derived")[] | undefined;
436
+ }>>;
437
+ }, "strict", z.ZodTypeAny, {
438
+ id: string;
439
+ selector: Readonly<{
440
+ sourceIds?: readonly string[] | undefined;
441
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
442
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
443
+ origins?: readonly ("observed" | "derived")[] | undefined;
444
+ }>;
445
+ }, {
446
+ id: string;
447
+ selector: Readonly<{
448
+ sourceIds?: readonly string[] | undefined;
449
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
450
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
451
+ origins?: readonly ("observed" | "derived")[] | undefined;
452
+ }>;
453
+ }>>, "many">>;
454
+ }, "strict", z.ZodTypeAny, {
455
+ mustConsider: readonly Readonly<{
456
+ id: string;
457
+ selector: Readonly<{
458
+ sourceIds?: readonly string[] | undefined;
459
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
460
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
461
+ origins?: readonly ("observed" | "derived")[] | undefined;
462
+ }>;
463
+ minEvidence: number;
464
+ maxAgeSeconds?: number | undefined;
465
+ }>[];
466
+ mustNotUse: readonly Readonly<{
467
+ id: string;
468
+ selector: Readonly<{
469
+ sourceIds?: readonly string[] | undefined;
470
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
471
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
472
+ origins?: readonly ("observed" | "derived")[] | undefined;
473
+ }>;
474
+ }>[];
475
+ mayConsider?: readonly Readonly<{
476
+ id: string;
477
+ selector: Readonly<{
478
+ sourceIds?: readonly string[] | undefined;
479
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
480
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
481
+ origins?: readonly ("observed" | "derived")[] | undefined;
482
+ }>;
483
+ minEvidence: number;
484
+ maxAgeSeconds?: number | undefined;
485
+ }>[] | undefined;
486
+ }, {
487
+ mustConsider: readonly Readonly<{
488
+ id: string;
489
+ selector: Readonly<{
490
+ sourceIds?: readonly string[] | undefined;
491
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
492
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
493
+ origins?: readonly ("observed" | "derived")[] | undefined;
494
+ }>;
495
+ minEvidence: number;
496
+ maxAgeSeconds?: number | undefined;
497
+ }>[];
498
+ mustNotUse: readonly Readonly<{
499
+ id: string;
500
+ selector: Readonly<{
501
+ sourceIds?: readonly string[] | undefined;
502
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
503
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
504
+ origins?: readonly ("observed" | "derived")[] | undefined;
505
+ }>;
506
+ }>[];
507
+ mayConsider?: readonly Readonly<{
508
+ id: string;
509
+ selector: Readonly<{
510
+ sourceIds?: readonly string[] | undefined;
511
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
512
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
513
+ origins?: readonly ("observed" | "derived")[] | undefined;
514
+ }>;
515
+ minEvidence: number;
516
+ maxAgeSeconds?: number | undefined;
517
+ }>[] | undefined;
518
+ }>, {
519
+ mustConsider: readonly Readonly<{
520
+ id: string;
521
+ selector: Readonly<{
522
+ sourceIds?: readonly string[] | undefined;
523
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
524
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
525
+ origins?: readonly ("observed" | "derived")[] | undefined;
526
+ }>;
527
+ minEvidence: number;
528
+ maxAgeSeconds?: number | undefined;
529
+ }>[];
530
+ mustNotUse: readonly Readonly<{
531
+ id: string;
532
+ selector: Readonly<{
533
+ sourceIds?: readonly string[] | undefined;
534
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
535
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
536
+ origins?: readonly ("observed" | "derived")[] | undefined;
537
+ }>;
538
+ }>[];
539
+ mayConsider?: readonly Readonly<{
540
+ id: string;
541
+ selector: Readonly<{
542
+ sourceIds?: readonly string[] | undefined;
543
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
544
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
545
+ origins?: readonly ("observed" | "derived")[] | undefined;
546
+ }>;
547
+ minEvidence: number;
548
+ maxAgeSeconds?: number | undefined;
549
+ }>[] | undefined;
550
+ }, {
551
+ mustConsider: readonly Readonly<{
552
+ id: string;
553
+ selector: Readonly<{
554
+ sourceIds?: readonly string[] | undefined;
555
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
556
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
557
+ origins?: readonly ("observed" | "derived")[] | undefined;
558
+ }>;
559
+ minEvidence: number;
560
+ maxAgeSeconds?: number | undefined;
561
+ }>[];
562
+ mustNotUse: readonly Readonly<{
563
+ id: string;
564
+ selector: Readonly<{
565
+ sourceIds?: readonly string[] | undefined;
566
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
567
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
568
+ origins?: readonly ("observed" | "derived")[] | undefined;
569
+ }>;
570
+ }>[];
571
+ mayConsider?: readonly Readonly<{
572
+ id: string;
573
+ selector: Readonly<{
574
+ sourceIds?: readonly string[] | undefined;
575
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
576
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
577
+ origins?: readonly ("observed" | "derived")[] | undefined;
578
+ }>;
579
+ minEvidence: number;
580
+ maxAgeSeconds?: number | undefined;
581
+ }>[] | undefined;
582
+ }>>;
583
+ authority: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
584
+ precedence: z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["primary", "operational", "approved", "observed", "derived"]>, "many">, ("primary" | "operational" | "approved" | "observed" | "derived")[], ("primary" | "operational" | "approved" | "observed" | "derived")[]>>;
585
+ allowed: z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["read", "draft"]>, "many">, ("read" | "draft")[], ("read" | "draft")[]>>;
586
+ forbidden: z.ZodReadonly<z.ZodTuple<[z.ZodLiteral<"send">, z.ZodLiteral<"approve">, z.ZodLiteral<"mutate_source">, z.ZodLiteral<"workflow">], null>>;
587
+ }, "strict", z.ZodTypeAny, {
588
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
589
+ allowed: readonly ("read" | "draft")[];
590
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
591
+ }, {
592
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
593
+ allowed: readonly ("read" | "draft")[];
594
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
595
+ }>, {
596
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
597
+ allowed: readonly ("read" | "draft")[];
598
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
599
+ }, {
600
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
601
+ allowed: readonly ("read" | "draft")[];
602
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
603
+ }>>;
604
+ evidence: z.ZodReadonly<z.ZodObject<{
605
+ requireCitation: z.ZodBoolean;
606
+ freshness: z.ZodReadonly<z.ZodObject<{
607
+ defaultMaxAgeSeconds: z.ZodNumber;
608
+ }, "strict", z.ZodTypeAny, {
609
+ defaultMaxAgeSeconds: number;
610
+ }, {
611
+ defaultMaxAgeSeconds: number;
612
+ }>>;
613
+ coverageAssertions: z.ZodEffects<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>, readonly string[], readonly string[]>;
614
+ }, "strict", z.ZodTypeAny, {
615
+ freshness: Readonly<{
616
+ defaultMaxAgeSeconds: number;
617
+ }>;
618
+ requireCitation: boolean;
619
+ coverageAssertions: readonly string[];
620
+ }, {
621
+ freshness: Readonly<{
622
+ defaultMaxAgeSeconds: number;
623
+ }>;
624
+ requireCitation: boolean;
625
+ coverageAssertions: readonly string[];
626
+ }>>;
627
+ }, "strict", z.ZodTypeAny, {
628
+ packId: string & z.BRAND<"PackId">;
629
+ version: string & z.BRAND<"SemanticVersion">;
630
+ responsibility: string;
631
+ scope: Readonly<{
632
+ root: "tenant";
633
+ descendants: readonly ["namespace", "subject", "session"];
634
+ }>;
635
+ capabilities: readonly Readonly<{
636
+ operationId: string;
637
+ provider: Readonly<{
638
+ kind: "records_operation";
639
+ operationId: string;
640
+ }> | Readonly<{
641
+ kind: "open_connector_action";
642
+ actionId: string;
643
+ connectorRef: string;
644
+ }> | Readonly<{
645
+ kind: "schift_search";
646
+ indexRef: string;
647
+ }> | Readonly<{
648
+ kind: "web_search";
649
+ provider: "customer" | "schift";
650
+ }>;
651
+ inputSchemaRef: string;
652
+ resultSchemaRef: string;
653
+ allowedFilters?: readonly string[] | undefined;
654
+ limits?: Readonly<{
655
+ maxRows?: number | undefined;
656
+ maxResultBytes?: number | undefined;
657
+ }> | undefined;
658
+ freshness?: Readonly<{
659
+ maxAgeSeconds: number;
660
+ }> | undefined;
661
+ requiredProviderScopes?: readonly string[] | undefined;
662
+ }>[];
663
+ contextPolicy: Readonly<{
664
+ mustConsider: readonly Readonly<{
665
+ id: string;
666
+ selector: Readonly<{
667
+ sourceIds?: readonly string[] | undefined;
668
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
669
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
670
+ origins?: readonly ("observed" | "derived")[] | undefined;
671
+ }>;
672
+ minEvidence: number;
673
+ maxAgeSeconds?: number | undefined;
674
+ }>[];
675
+ mustNotUse: readonly Readonly<{
676
+ id: string;
677
+ selector: Readonly<{
678
+ sourceIds?: readonly string[] | undefined;
679
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
680
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
681
+ origins?: readonly ("observed" | "derived")[] | undefined;
682
+ }>;
683
+ }>[];
684
+ mayConsider?: readonly Readonly<{
685
+ id: string;
686
+ selector: Readonly<{
687
+ sourceIds?: readonly string[] | undefined;
688
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
689
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
690
+ origins?: readonly ("observed" | "derived")[] | undefined;
691
+ }>;
692
+ minEvidence: number;
693
+ maxAgeSeconds?: number | undefined;
694
+ }>[] | undefined;
695
+ }>;
696
+ authority: Readonly<{
697
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
698
+ allowed: readonly ("read" | "draft")[];
699
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
700
+ }>;
701
+ evidence: Readonly<{
702
+ freshness: Readonly<{
703
+ defaultMaxAgeSeconds: number;
704
+ }>;
705
+ requireCitation: boolean;
706
+ coverageAssertions: readonly string[];
707
+ }>;
708
+ }, {
709
+ packId: string;
710
+ version: string;
711
+ responsibility: string;
712
+ scope: Readonly<{
713
+ root: "tenant";
714
+ descendants: readonly ["namespace", "subject", "session"];
715
+ }>;
716
+ capabilities: readonly Readonly<{
717
+ operationId: string;
718
+ provider: Readonly<{
719
+ kind: "records_operation";
720
+ operationId: string;
721
+ }> | Readonly<{
722
+ kind: "open_connector_action";
723
+ actionId: string;
724
+ connectorRef: string;
725
+ }> | Readonly<{
726
+ kind: "schift_search";
727
+ indexRef: string;
728
+ }> | Readonly<{
729
+ kind: "web_search";
730
+ provider: "customer" | "schift";
731
+ }>;
732
+ inputSchemaRef: string;
733
+ resultSchemaRef: string;
734
+ allowedFilters?: readonly string[] | undefined;
735
+ limits?: Readonly<{
736
+ maxRows?: number | undefined;
737
+ maxResultBytes?: number | undefined;
738
+ }> | undefined;
739
+ freshness?: Readonly<{
740
+ maxAgeSeconds: number;
741
+ }> | undefined;
742
+ requiredProviderScopes?: readonly string[] | undefined;
743
+ }>[];
744
+ contextPolicy: Readonly<{
745
+ mustConsider: readonly Readonly<{
746
+ id: string;
747
+ selector: Readonly<{
748
+ sourceIds?: readonly string[] | undefined;
749
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
750
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
751
+ origins?: readonly ("observed" | "derived")[] | undefined;
752
+ }>;
753
+ minEvidence: number;
754
+ maxAgeSeconds?: number | undefined;
755
+ }>[];
756
+ mustNotUse: readonly Readonly<{
757
+ id: string;
758
+ selector: Readonly<{
759
+ sourceIds?: readonly string[] | undefined;
760
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
761
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
762
+ origins?: readonly ("observed" | "derived")[] | undefined;
763
+ }>;
764
+ }>[];
765
+ mayConsider?: readonly Readonly<{
766
+ id: string;
767
+ selector: Readonly<{
768
+ sourceIds?: readonly string[] | undefined;
769
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
770
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
771
+ origins?: readonly ("observed" | "derived")[] | undefined;
772
+ }>;
773
+ minEvidence: number;
774
+ maxAgeSeconds?: number | undefined;
775
+ }>[] | undefined;
776
+ }>;
777
+ authority: Readonly<{
778
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
779
+ allowed: readonly ("read" | "draft")[];
780
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
781
+ }>;
782
+ evidence: Readonly<{
783
+ freshness: Readonly<{
784
+ defaultMaxAgeSeconds: number;
785
+ }>;
786
+ requireCitation: boolean;
787
+ coverageAssertions: readonly string[];
788
+ }>;
789
+ }>;
790
+ export declare const KnowledgeScopeDefinitionSchema: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
791
+ packId: z.ZodBranded<z.ZodString, "PackId">;
792
+ version: z.ZodBranded<z.ZodString, "SemanticVersion">;
793
+ responsibility: z.ZodString;
794
+ scope: z.ZodReadonly<z.ZodObject<{
795
+ root: z.ZodLiteral<"tenant">;
796
+ descendants: z.ZodReadonly<z.ZodTuple<[z.ZodLiteral<"namespace">, z.ZodLiteral<"subject">, z.ZodLiteral<"session">], null>>;
797
+ }, "strict", z.ZodTypeAny, {
798
+ root: "tenant";
799
+ descendants: readonly ["namespace", "subject", "session"];
800
+ }, {
801
+ root: "tenant";
802
+ descendants: readonly ["namespace", "subject", "session"];
803
+ }>>;
804
+ capabilities: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
805
+ operationId: z.ZodString;
806
+ provider: z.ZodReadonly<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
807
+ kind: z.ZodLiteral<"records_operation">;
808
+ operationId: z.ZodString;
809
+ }, "strict", z.ZodTypeAny, {
810
+ kind: "records_operation";
811
+ operationId: string;
812
+ }, {
813
+ kind: "records_operation";
814
+ operationId: string;
815
+ }>, z.ZodObject<{
816
+ kind: z.ZodLiteral<"open_connector_action">;
817
+ actionId: z.ZodString;
818
+ connectorRef: z.ZodString;
819
+ }, "strict", z.ZodTypeAny, {
820
+ kind: "open_connector_action";
821
+ actionId: string;
822
+ connectorRef: string;
823
+ }, {
824
+ kind: "open_connector_action";
825
+ actionId: string;
826
+ connectorRef: string;
827
+ }>, z.ZodObject<{
828
+ kind: z.ZodLiteral<"schift_search">;
829
+ indexRef: z.ZodString;
830
+ }, "strict", z.ZodTypeAny, {
831
+ kind: "schift_search";
832
+ indexRef: string;
833
+ }, {
834
+ kind: "schift_search";
835
+ indexRef: string;
836
+ }>, z.ZodObject<{
837
+ kind: z.ZodLiteral<"web_search">;
838
+ provider: z.ZodEnum<["customer", "schift"]>;
839
+ }, "strict", z.ZodTypeAny, {
840
+ kind: "web_search";
841
+ provider: "customer" | "schift";
842
+ }, {
843
+ kind: "web_search";
844
+ provider: "customer" | "schift";
845
+ }>]>>;
846
+ inputSchemaRef: z.ZodEffects<z.ZodString, string, string>;
847
+ resultSchemaRef: z.ZodEffects<z.ZodString, string, string>;
848
+ allowedFilters: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
849
+ limits: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
850
+ maxRows: z.ZodOptional<z.ZodNumber>;
851
+ maxResultBytes: z.ZodOptional<z.ZodNumber>;
852
+ }, "strict", z.ZodTypeAny, {
853
+ maxRows?: number | undefined;
854
+ maxResultBytes?: number | undefined;
855
+ }, {
856
+ maxRows?: number | undefined;
857
+ maxResultBytes?: number | undefined;
858
+ }>, {
859
+ maxRows?: number | undefined;
860
+ maxResultBytes?: number | undefined;
861
+ }, {
862
+ maxRows?: number | undefined;
863
+ maxResultBytes?: number | undefined;
864
+ }>>>;
865
+ freshness: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
866
+ maxAgeSeconds: z.ZodNumber;
867
+ }, "strict", z.ZodTypeAny, {
868
+ maxAgeSeconds: number;
869
+ }, {
870
+ maxAgeSeconds: number;
871
+ }>>>;
872
+ requiredProviderScopes: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
873
+ }, "strict", z.ZodTypeAny, {
874
+ operationId: string;
875
+ provider: Readonly<{
876
+ kind: "records_operation";
877
+ operationId: string;
878
+ }> | Readonly<{
879
+ kind: "open_connector_action";
880
+ actionId: string;
881
+ connectorRef: string;
882
+ }> | Readonly<{
883
+ kind: "schift_search";
884
+ indexRef: string;
885
+ }> | Readonly<{
886
+ kind: "web_search";
887
+ provider: "customer" | "schift";
888
+ }>;
889
+ inputSchemaRef: string;
890
+ resultSchemaRef: string;
891
+ allowedFilters?: readonly string[] | undefined;
892
+ limits?: Readonly<{
893
+ maxRows?: number | undefined;
894
+ maxResultBytes?: number | undefined;
895
+ }> | undefined;
896
+ freshness?: Readonly<{
897
+ maxAgeSeconds: number;
898
+ }> | undefined;
899
+ requiredProviderScopes?: readonly string[] | undefined;
900
+ }, {
901
+ operationId: string;
902
+ provider: Readonly<{
903
+ kind: "records_operation";
904
+ operationId: string;
905
+ }> | Readonly<{
906
+ kind: "open_connector_action";
907
+ actionId: string;
908
+ connectorRef: string;
909
+ }> | Readonly<{
910
+ kind: "schift_search";
911
+ indexRef: string;
912
+ }> | Readonly<{
913
+ kind: "web_search";
914
+ provider: "customer" | "schift";
915
+ }>;
916
+ inputSchemaRef: string;
917
+ resultSchemaRef: string;
918
+ allowedFilters?: readonly string[] | undefined;
919
+ limits?: Readonly<{
920
+ maxRows?: number | undefined;
921
+ maxResultBytes?: number | undefined;
922
+ }> | undefined;
923
+ freshness?: Readonly<{
924
+ maxAgeSeconds: number;
925
+ }> | undefined;
926
+ requiredProviderScopes?: readonly string[] | undefined;
927
+ }>>, "many">>;
928
+ contextPolicy: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
929
+ mustConsider: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
930
+ id: z.ZodString;
931
+ selector: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
932
+ sourceIds: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
933
+ sourceClasses: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["document", "records", "activity_stream"]>, "many">, ("document" | "records" | "activity_stream")[], ("document" | "records" | "activity_stream")[]>>>;
934
+ authorities: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["primary", "operational", "approved", "observed", "derived"]>, "many">, ("primary" | "operational" | "approved" | "observed" | "derived")[], ("primary" | "operational" | "approved" | "observed" | "derived")[]>>>;
935
+ origins: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["observed", "derived"]>, "many">, ("observed" | "derived")[], ("observed" | "derived")[]>>>;
936
+ }, "strict", z.ZodTypeAny, {
937
+ sourceIds?: readonly string[] | undefined;
938
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
939
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
940
+ origins?: readonly ("observed" | "derived")[] | undefined;
941
+ }, {
942
+ sourceIds?: readonly string[] | undefined;
943
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
944
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
945
+ origins?: readonly ("observed" | "derived")[] | undefined;
946
+ }>, {
947
+ sourceIds?: readonly string[] | undefined;
948
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
949
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
950
+ origins?: readonly ("observed" | "derived")[] | undefined;
951
+ }, {
952
+ sourceIds?: readonly string[] | undefined;
953
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
954
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
955
+ origins?: readonly ("observed" | "derived")[] | undefined;
956
+ }>>;
957
+ minEvidence: z.ZodNumber;
958
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
959
+ }, "strict", z.ZodTypeAny, {
960
+ id: string;
961
+ selector: Readonly<{
962
+ sourceIds?: readonly string[] | undefined;
963
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
964
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
965
+ origins?: readonly ("observed" | "derived")[] | undefined;
966
+ }>;
967
+ minEvidence: number;
968
+ maxAgeSeconds?: number | undefined;
969
+ }, {
970
+ id: string;
971
+ selector: Readonly<{
972
+ sourceIds?: readonly string[] | undefined;
973
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
974
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
975
+ origins?: readonly ("observed" | "derived")[] | undefined;
976
+ }>;
977
+ minEvidence: number;
978
+ maxAgeSeconds?: number | undefined;
979
+ }>>, "many">>;
980
+ mayConsider: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
981
+ id: z.ZodString;
982
+ selector: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
983
+ sourceIds: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
984
+ sourceClasses: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["document", "records", "activity_stream"]>, "many">, ("document" | "records" | "activity_stream")[], ("document" | "records" | "activity_stream")[]>>>;
985
+ authorities: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["primary", "operational", "approved", "observed", "derived"]>, "many">, ("primary" | "operational" | "approved" | "observed" | "derived")[], ("primary" | "operational" | "approved" | "observed" | "derived")[]>>>;
986
+ origins: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["observed", "derived"]>, "many">, ("observed" | "derived")[], ("observed" | "derived")[]>>>;
987
+ }, "strict", z.ZodTypeAny, {
988
+ sourceIds?: readonly string[] | undefined;
989
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
990
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
991
+ origins?: readonly ("observed" | "derived")[] | undefined;
992
+ }, {
993
+ sourceIds?: readonly string[] | undefined;
994
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
995
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
996
+ origins?: readonly ("observed" | "derived")[] | undefined;
997
+ }>, {
998
+ sourceIds?: readonly string[] | undefined;
999
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1000
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1001
+ origins?: readonly ("observed" | "derived")[] | undefined;
1002
+ }, {
1003
+ sourceIds?: readonly string[] | undefined;
1004
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1005
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1006
+ origins?: readonly ("observed" | "derived")[] | undefined;
1007
+ }>>;
1008
+ minEvidence: z.ZodNumber;
1009
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
1010
+ }, "strict", z.ZodTypeAny, {
1011
+ id: string;
1012
+ selector: Readonly<{
1013
+ sourceIds?: readonly string[] | undefined;
1014
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1015
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1016
+ origins?: readonly ("observed" | "derived")[] | undefined;
1017
+ }>;
1018
+ minEvidence: number;
1019
+ maxAgeSeconds?: number | undefined;
1020
+ }, {
1021
+ id: string;
1022
+ selector: Readonly<{
1023
+ sourceIds?: readonly string[] | undefined;
1024
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1025
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1026
+ origins?: readonly ("observed" | "derived")[] | undefined;
1027
+ }>;
1028
+ minEvidence: number;
1029
+ maxAgeSeconds?: number | undefined;
1030
+ }>>, "many">>>;
1031
+ mustNotUse: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1032
+ id: z.ZodString;
1033
+ selector: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
1034
+ sourceIds: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
1035
+ sourceClasses: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["document", "records", "activity_stream"]>, "many">, ("document" | "records" | "activity_stream")[], ("document" | "records" | "activity_stream")[]>>>;
1036
+ authorities: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["primary", "operational", "approved", "observed", "derived"]>, "many">, ("primary" | "operational" | "approved" | "observed" | "derived")[], ("primary" | "operational" | "approved" | "observed" | "derived")[]>>>;
1037
+ origins: z.ZodOptional<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["observed", "derived"]>, "many">, ("observed" | "derived")[], ("observed" | "derived")[]>>>;
1038
+ }, "strict", z.ZodTypeAny, {
1039
+ sourceIds?: readonly string[] | undefined;
1040
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1041
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1042
+ origins?: readonly ("observed" | "derived")[] | undefined;
1043
+ }, {
1044
+ sourceIds?: readonly string[] | undefined;
1045
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1046
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1047
+ origins?: readonly ("observed" | "derived")[] | undefined;
1048
+ }>, {
1049
+ sourceIds?: readonly string[] | undefined;
1050
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1051
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1052
+ origins?: readonly ("observed" | "derived")[] | undefined;
1053
+ }, {
1054
+ sourceIds?: readonly string[] | undefined;
1055
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1056
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1057
+ origins?: readonly ("observed" | "derived")[] | undefined;
1058
+ }>>;
1059
+ }, "strict", z.ZodTypeAny, {
1060
+ id: string;
1061
+ selector: Readonly<{
1062
+ sourceIds?: readonly string[] | undefined;
1063
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1064
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1065
+ origins?: readonly ("observed" | "derived")[] | undefined;
1066
+ }>;
1067
+ }, {
1068
+ id: string;
1069
+ selector: Readonly<{
1070
+ sourceIds?: readonly string[] | undefined;
1071
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1072
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1073
+ origins?: readonly ("observed" | "derived")[] | undefined;
1074
+ }>;
1075
+ }>>, "many">>;
1076
+ }, "strict", z.ZodTypeAny, {
1077
+ mustConsider: readonly Readonly<{
1078
+ id: string;
1079
+ selector: Readonly<{
1080
+ sourceIds?: readonly string[] | undefined;
1081
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1082
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1083
+ origins?: readonly ("observed" | "derived")[] | undefined;
1084
+ }>;
1085
+ minEvidence: number;
1086
+ maxAgeSeconds?: number | undefined;
1087
+ }>[];
1088
+ mustNotUse: readonly Readonly<{
1089
+ id: string;
1090
+ selector: Readonly<{
1091
+ sourceIds?: readonly string[] | undefined;
1092
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1093
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1094
+ origins?: readonly ("observed" | "derived")[] | undefined;
1095
+ }>;
1096
+ }>[];
1097
+ mayConsider?: readonly Readonly<{
1098
+ id: string;
1099
+ selector: Readonly<{
1100
+ sourceIds?: readonly string[] | undefined;
1101
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1102
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1103
+ origins?: readonly ("observed" | "derived")[] | undefined;
1104
+ }>;
1105
+ minEvidence: number;
1106
+ maxAgeSeconds?: number | undefined;
1107
+ }>[] | undefined;
1108
+ }, {
1109
+ mustConsider: readonly Readonly<{
1110
+ id: string;
1111
+ selector: Readonly<{
1112
+ sourceIds?: readonly string[] | undefined;
1113
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1114
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1115
+ origins?: readonly ("observed" | "derived")[] | undefined;
1116
+ }>;
1117
+ minEvidence: number;
1118
+ maxAgeSeconds?: number | undefined;
1119
+ }>[];
1120
+ mustNotUse: readonly Readonly<{
1121
+ id: string;
1122
+ selector: Readonly<{
1123
+ sourceIds?: readonly string[] | undefined;
1124
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1125
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1126
+ origins?: readonly ("observed" | "derived")[] | undefined;
1127
+ }>;
1128
+ }>[];
1129
+ mayConsider?: readonly Readonly<{
1130
+ id: string;
1131
+ selector: Readonly<{
1132
+ sourceIds?: readonly string[] | undefined;
1133
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1134
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1135
+ origins?: readonly ("observed" | "derived")[] | undefined;
1136
+ }>;
1137
+ minEvidence: number;
1138
+ maxAgeSeconds?: number | undefined;
1139
+ }>[] | undefined;
1140
+ }>, {
1141
+ mustConsider: readonly Readonly<{
1142
+ id: string;
1143
+ selector: Readonly<{
1144
+ sourceIds?: readonly string[] | undefined;
1145
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1146
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1147
+ origins?: readonly ("observed" | "derived")[] | undefined;
1148
+ }>;
1149
+ minEvidence: number;
1150
+ maxAgeSeconds?: number | undefined;
1151
+ }>[];
1152
+ mustNotUse: readonly Readonly<{
1153
+ id: string;
1154
+ selector: Readonly<{
1155
+ sourceIds?: readonly string[] | undefined;
1156
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1157
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1158
+ origins?: readonly ("observed" | "derived")[] | undefined;
1159
+ }>;
1160
+ }>[];
1161
+ mayConsider?: readonly Readonly<{
1162
+ id: string;
1163
+ selector: Readonly<{
1164
+ sourceIds?: readonly string[] | undefined;
1165
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1166
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1167
+ origins?: readonly ("observed" | "derived")[] | undefined;
1168
+ }>;
1169
+ minEvidence: number;
1170
+ maxAgeSeconds?: number | undefined;
1171
+ }>[] | undefined;
1172
+ }, {
1173
+ mustConsider: readonly Readonly<{
1174
+ id: string;
1175
+ selector: Readonly<{
1176
+ sourceIds?: readonly string[] | undefined;
1177
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1178
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1179
+ origins?: readonly ("observed" | "derived")[] | undefined;
1180
+ }>;
1181
+ minEvidence: number;
1182
+ maxAgeSeconds?: number | undefined;
1183
+ }>[];
1184
+ mustNotUse: readonly Readonly<{
1185
+ id: string;
1186
+ selector: Readonly<{
1187
+ sourceIds?: readonly string[] | undefined;
1188
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1189
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1190
+ origins?: readonly ("observed" | "derived")[] | undefined;
1191
+ }>;
1192
+ }>[];
1193
+ mayConsider?: readonly Readonly<{
1194
+ id: string;
1195
+ selector: Readonly<{
1196
+ sourceIds?: readonly string[] | undefined;
1197
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1198
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1199
+ origins?: readonly ("observed" | "derived")[] | undefined;
1200
+ }>;
1201
+ minEvidence: number;
1202
+ maxAgeSeconds?: number | undefined;
1203
+ }>[] | undefined;
1204
+ }>>;
1205
+ authority: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
1206
+ precedence: z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["primary", "operational", "approved", "observed", "derived"]>, "many">, ("primary" | "operational" | "approved" | "observed" | "derived")[], ("primary" | "operational" | "approved" | "observed" | "derived")[]>>;
1207
+ allowed: z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodEnum<["read", "draft"]>, "many">, ("read" | "draft")[], ("read" | "draft")[]>>;
1208
+ forbidden: z.ZodReadonly<z.ZodTuple<[z.ZodLiteral<"send">, z.ZodLiteral<"approve">, z.ZodLiteral<"mutate_source">, z.ZodLiteral<"workflow">], null>>;
1209
+ }, "strict", z.ZodTypeAny, {
1210
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
1211
+ allowed: readonly ("read" | "draft")[];
1212
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
1213
+ }, {
1214
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
1215
+ allowed: readonly ("read" | "draft")[];
1216
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
1217
+ }>, {
1218
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
1219
+ allowed: readonly ("read" | "draft")[];
1220
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
1221
+ }, {
1222
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
1223
+ allowed: readonly ("read" | "draft")[];
1224
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
1225
+ }>>;
1226
+ evidence: z.ZodReadonly<z.ZodObject<{
1227
+ requireCitation: z.ZodBoolean;
1228
+ freshness: z.ZodReadonly<z.ZodObject<{
1229
+ defaultMaxAgeSeconds: z.ZodNumber;
1230
+ }, "strict", z.ZodTypeAny, {
1231
+ defaultMaxAgeSeconds: number;
1232
+ }, {
1233
+ defaultMaxAgeSeconds: number;
1234
+ }>>;
1235
+ coverageAssertions: z.ZodEffects<z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>, readonly string[], readonly string[]>;
1236
+ }, "strict", z.ZodTypeAny, {
1237
+ freshness: Readonly<{
1238
+ defaultMaxAgeSeconds: number;
1239
+ }>;
1240
+ requireCitation: boolean;
1241
+ coverageAssertions: readonly string[];
1242
+ }, {
1243
+ freshness: Readonly<{
1244
+ defaultMaxAgeSeconds: number;
1245
+ }>;
1246
+ requireCitation: boolean;
1247
+ coverageAssertions: readonly string[];
1248
+ }>>;
1249
+ }, "strict", z.ZodTypeAny, {
1250
+ packId: string & z.BRAND<"PackId">;
1251
+ version: string & z.BRAND<"SemanticVersion">;
1252
+ responsibility: string;
1253
+ scope: Readonly<{
1254
+ root: "tenant";
1255
+ descendants: readonly ["namespace", "subject", "session"];
1256
+ }>;
1257
+ capabilities: readonly Readonly<{
1258
+ operationId: string;
1259
+ provider: Readonly<{
1260
+ kind: "records_operation";
1261
+ operationId: string;
1262
+ }> | Readonly<{
1263
+ kind: "open_connector_action";
1264
+ actionId: string;
1265
+ connectorRef: string;
1266
+ }> | Readonly<{
1267
+ kind: "schift_search";
1268
+ indexRef: string;
1269
+ }> | Readonly<{
1270
+ kind: "web_search";
1271
+ provider: "customer" | "schift";
1272
+ }>;
1273
+ inputSchemaRef: string;
1274
+ resultSchemaRef: string;
1275
+ allowedFilters?: readonly string[] | undefined;
1276
+ limits?: Readonly<{
1277
+ maxRows?: number | undefined;
1278
+ maxResultBytes?: number | undefined;
1279
+ }> | undefined;
1280
+ freshness?: Readonly<{
1281
+ maxAgeSeconds: number;
1282
+ }> | undefined;
1283
+ requiredProviderScopes?: readonly string[] | undefined;
1284
+ }>[];
1285
+ contextPolicy: Readonly<{
1286
+ mustConsider: readonly Readonly<{
1287
+ id: string;
1288
+ selector: Readonly<{
1289
+ sourceIds?: readonly string[] | undefined;
1290
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1291
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1292
+ origins?: readonly ("observed" | "derived")[] | undefined;
1293
+ }>;
1294
+ minEvidence: number;
1295
+ maxAgeSeconds?: number | undefined;
1296
+ }>[];
1297
+ mustNotUse: readonly Readonly<{
1298
+ id: string;
1299
+ selector: Readonly<{
1300
+ sourceIds?: readonly string[] | undefined;
1301
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1302
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1303
+ origins?: readonly ("observed" | "derived")[] | undefined;
1304
+ }>;
1305
+ }>[];
1306
+ mayConsider?: readonly Readonly<{
1307
+ id: string;
1308
+ selector: Readonly<{
1309
+ sourceIds?: readonly string[] | undefined;
1310
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1311
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1312
+ origins?: readonly ("observed" | "derived")[] | undefined;
1313
+ }>;
1314
+ minEvidence: number;
1315
+ maxAgeSeconds?: number | undefined;
1316
+ }>[] | undefined;
1317
+ }>;
1318
+ authority: Readonly<{
1319
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
1320
+ allowed: readonly ("read" | "draft")[];
1321
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
1322
+ }>;
1323
+ evidence: Readonly<{
1324
+ freshness: Readonly<{
1325
+ defaultMaxAgeSeconds: number;
1326
+ }>;
1327
+ requireCitation: boolean;
1328
+ coverageAssertions: readonly string[];
1329
+ }>;
1330
+ }, {
1331
+ packId: string;
1332
+ version: string;
1333
+ responsibility: string;
1334
+ scope: Readonly<{
1335
+ root: "tenant";
1336
+ descendants: readonly ["namespace", "subject", "session"];
1337
+ }>;
1338
+ capabilities: readonly Readonly<{
1339
+ operationId: string;
1340
+ provider: Readonly<{
1341
+ kind: "records_operation";
1342
+ operationId: string;
1343
+ }> | Readonly<{
1344
+ kind: "open_connector_action";
1345
+ actionId: string;
1346
+ connectorRef: string;
1347
+ }> | Readonly<{
1348
+ kind: "schift_search";
1349
+ indexRef: string;
1350
+ }> | Readonly<{
1351
+ kind: "web_search";
1352
+ provider: "customer" | "schift";
1353
+ }>;
1354
+ inputSchemaRef: string;
1355
+ resultSchemaRef: string;
1356
+ allowedFilters?: readonly string[] | undefined;
1357
+ limits?: Readonly<{
1358
+ maxRows?: number | undefined;
1359
+ maxResultBytes?: number | undefined;
1360
+ }> | undefined;
1361
+ freshness?: Readonly<{
1362
+ maxAgeSeconds: number;
1363
+ }> | undefined;
1364
+ requiredProviderScopes?: readonly string[] | undefined;
1365
+ }>[];
1366
+ contextPolicy: Readonly<{
1367
+ mustConsider: readonly Readonly<{
1368
+ id: string;
1369
+ selector: Readonly<{
1370
+ sourceIds?: readonly string[] | undefined;
1371
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1372
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1373
+ origins?: readonly ("observed" | "derived")[] | undefined;
1374
+ }>;
1375
+ minEvidence: number;
1376
+ maxAgeSeconds?: number | undefined;
1377
+ }>[];
1378
+ mustNotUse: readonly Readonly<{
1379
+ id: string;
1380
+ selector: Readonly<{
1381
+ sourceIds?: readonly string[] | undefined;
1382
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1383
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1384
+ origins?: readonly ("observed" | "derived")[] | undefined;
1385
+ }>;
1386
+ }>[];
1387
+ mayConsider?: readonly Readonly<{
1388
+ id: string;
1389
+ selector: Readonly<{
1390
+ sourceIds?: readonly string[] | undefined;
1391
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1392
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1393
+ origins?: readonly ("observed" | "derived")[] | undefined;
1394
+ }>;
1395
+ minEvidence: number;
1396
+ maxAgeSeconds?: number | undefined;
1397
+ }>[] | undefined;
1398
+ }>;
1399
+ authority: Readonly<{
1400
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
1401
+ allowed: readonly ("read" | "draft")[];
1402
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
1403
+ }>;
1404
+ evidence: Readonly<{
1405
+ freshness: Readonly<{
1406
+ defaultMaxAgeSeconds: number;
1407
+ }>;
1408
+ requireCitation: boolean;
1409
+ coverageAssertions: readonly string[];
1410
+ }>;
1411
+ }>, {
1412
+ packId: string & z.BRAND<"PackId">;
1413
+ version: string & z.BRAND<"SemanticVersion">;
1414
+ responsibility: string;
1415
+ scope: Readonly<{
1416
+ root: "tenant";
1417
+ descendants: readonly ["namespace", "subject", "session"];
1418
+ }>;
1419
+ capabilities: readonly Readonly<{
1420
+ operationId: string;
1421
+ provider: Readonly<{
1422
+ kind: "records_operation";
1423
+ operationId: string;
1424
+ }> | Readonly<{
1425
+ kind: "open_connector_action";
1426
+ actionId: string;
1427
+ connectorRef: string;
1428
+ }> | Readonly<{
1429
+ kind: "schift_search";
1430
+ indexRef: string;
1431
+ }> | Readonly<{
1432
+ kind: "web_search";
1433
+ provider: "customer" | "schift";
1434
+ }>;
1435
+ inputSchemaRef: string;
1436
+ resultSchemaRef: string;
1437
+ allowedFilters?: readonly string[] | undefined;
1438
+ limits?: Readonly<{
1439
+ maxRows?: number | undefined;
1440
+ maxResultBytes?: number | undefined;
1441
+ }> | undefined;
1442
+ freshness?: Readonly<{
1443
+ maxAgeSeconds: number;
1444
+ }> | undefined;
1445
+ requiredProviderScopes?: readonly string[] | undefined;
1446
+ }>[];
1447
+ contextPolicy: Readonly<{
1448
+ mustConsider: readonly Readonly<{
1449
+ id: string;
1450
+ selector: Readonly<{
1451
+ sourceIds?: readonly string[] | undefined;
1452
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1453
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1454
+ origins?: readonly ("observed" | "derived")[] | undefined;
1455
+ }>;
1456
+ minEvidence: number;
1457
+ maxAgeSeconds?: number | undefined;
1458
+ }>[];
1459
+ mustNotUse: readonly Readonly<{
1460
+ id: string;
1461
+ selector: Readonly<{
1462
+ sourceIds?: readonly string[] | undefined;
1463
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1464
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1465
+ origins?: readonly ("observed" | "derived")[] | undefined;
1466
+ }>;
1467
+ }>[];
1468
+ mayConsider?: readonly Readonly<{
1469
+ id: string;
1470
+ selector: Readonly<{
1471
+ sourceIds?: readonly string[] | undefined;
1472
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1473
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1474
+ origins?: readonly ("observed" | "derived")[] | undefined;
1475
+ }>;
1476
+ minEvidence: number;
1477
+ maxAgeSeconds?: number | undefined;
1478
+ }>[] | undefined;
1479
+ }>;
1480
+ authority: Readonly<{
1481
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
1482
+ allowed: readonly ("read" | "draft")[];
1483
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
1484
+ }>;
1485
+ evidence: Readonly<{
1486
+ freshness: Readonly<{
1487
+ defaultMaxAgeSeconds: number;
1488
+ }>;
1489
+ requireCitation: boolean;
1490
+ coverageAssertions: readonly string[];
1491
+ }>;
1492
+ }, {
1493
+ packId: string;
1494
+ version: string;
1495
+ responsibility: string;
1496
+ scope: Readonly<{
1497
+ root: "tenant";
1498
+ descendants: readonly ["namespace", "subject", "session"];
1499
+ }>;
1500
+ capabilities: readonly Readonly<{
1501
+ operationId: string;
1502
+ provider: Readonly<{
1503
+ kind: "records_operation";
1504
+ operationId: string;
1505
+ }> | Readonly<{
1506
+ kind: "open_connector_action";
1507
+ actionId: string;
1508
+ connectorRef: string;
1509
+ }> | Readonly<{
1510
+ kind: "schift_search";
1511
+ indexRef: string;
1512
+ }> | Readonly<{
1513
+ kind: "web_search";
1514
+ provider: "customer" | "schift";
1515
+ }>;
1516
+ inputSchemaRef: string;
1517
+ resultSchemaRef: string;
1518
+ allowedFilters?: readonly string[] | undefined;
1519
+ limits?: Readonly<{
1520
+ maxRows?: number | undefined;
1521
+ maxResultBytes?: number | undefined;
1522
+ }> | undefined;
1523
+ freshness?: Readonly<{
1524
+ maxAgeSeconds: number;
1525
+ }> | undefined;
1526
+ requiredProviderScopes?: readonly string[] | undefined;
1527
+ }>[];
1528
+ contextPolicy: Readonly<{
1529
+ mustConsider: readonly Readonly<{
1530
+ id: string;
1531
+ selector: Readonly<{
1532
+ sourceIds?: readonly string[] | undefined;
1533
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1534
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1535
+ origins?: readonly ("observed" | "derived")[] | undefined;
1536
+ }>;
1537
+ minEvidence: number;
1538
+ maxAgeSeconds?: number | undefined;
1539
+ }>[];
1540
+ mustNotUse: readonly Readonly<{
1541
+ id: string;
1542
+ selector: Readonly<{
1543
+ sourceIds?: readonly string[] | undefined;
1544
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1545
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1546
+ origins?: readonly ("observed" | "derived")[] | undefined;
1547
+ }>;
1548
+ }>[];
1549
+ mayConsider?: readonly Readonly<{
1550
+ id: string;
1551
+ selector: Readonly<{
1552
+ sourceIds?: readonly string[] | undefined;
1553
+ sourceClasses?: readonly ("document" | "records" | "activity_stream")[] | undefined;
1554
+ authorities?: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[] | undefined;
1555
+ origins?: readonly ("observed" | "derived")[] | undefined;
1556
+ }>;
1557
+ minEvidence: number;
1558
+ maxAgeSeconds?: number | undefined;
1559
+ }>[] | undefined;
1560
+ }>;
1561
+ authority: Readonly<{
1562
+ precedence: readonly ("primary" | "operational" | "approved" | "observed" | "derived")[];
1563
+ allowed: readonly ("read" | "draft")[];
1564
+ forbidden: readonly ["send", "approve", "mutate_source", "workflow"];
1565
+ }>;
1566
+ evidence: Readonly<{
1567
+ freshness: Readonly<{
1568
+ defaultMaxAgeSeconds: number;
1569
+ }>;
1570
+ requireCitation: boolean;
1571
+ coverageAssertions: readonly string[];
1572
+ }>;
1573
+ }>>;
1574
+ export declare const ScopeAuthoritySchema: z.ZodReadonly<z.ZodObject<{
1575
+ organizationId: z.ZodString;
1576
+ tenant: z.ZodString;
1577
+ }, "strict", z.ZodTypeAny, {
1578
+ tenant: string;
1579
+ organizationId: string;
1580
+ }, {
1581
+ tenant: string;
1582
+ organizationId: string;
1583
+ }>>;
1584
+ export declare const EffectiveScopeSchema: z.ZodReadonly<z.ZodObject<{
1585
+ tenant: z.ZodString;
1586
+ namespace: z.ZodOptional<z.ZodString>;
1587
+ subject: z.ZodOptional<z.ZodString>;
1588
+ session: z.ZodOptional<z.ZodString>;
1589
+ }, "strict", z.ZodTypeAny, {
1590
+ tenant: string;
1591
+ namespace?: string | undefined;
1592
+ subject?: string | undefined;
1593
+ session?: string | undefined;
1594
+ }, {
1595
+ tenant: string;
1596
+ namespace?: string | undefined;
1597
+ subject?: string | undefined;
1598
+ session?: string | undefined;
1599
+ }>>;
1600
+ export declare const AuthorizationDecisionSchema: z.ZodReadonly<z.ZodObject<{
1601
+ decisionId: z.ZodString;
1602
+ decisionDigest: z.ZodBranded<z.ZodString, "Sha256Digest">;
1603
+ status: z.ZodLiteral<"allowed">;
1604
+ }, "strict", z.ZodTypeAny, {
1605
+ status: "allowed";
1606
+ decisionId: string;
1607
+ decisionDigest: string & z.BRAND<"Sha256Digest">;
1608
+ }, {
1609
+ status: "allowed";
1610
+ decisionId: string;
1611
+ decisionDigest: string;
1612
+ }>>;
1613
+ export declare const CitationSchema: z.ZodReadonly<z.ZodObject<{
1614
+ uri: z.ZodString;
1615
+ label: z.ZodOptional<z.ZodString>;
1616
+ }, "strict", z.ZodTypeAny, {
1617
+ uri: string;
1618
+ label?: string | undefined;
1619
+ }, {
1620
+ uri: string;
1621
+ label?: string | undefined;
1622
+ }>>;
1623
+ export declare const CandidateEnvelopeSchema: z.ZodReadonly<z.ZodObject<{
1624
+ srn: z.ZodString;
1625
+ sourceId: z.ZodBranded<z.ZodString, "SourceId">;
1626
+ sourceClass: z.ZodEnum<["document", "records", "activity_stream"]>;
1627
+ providerRef: z.ZodString;
1628
+ installationId: z.ZodBranded<z.ZodString, "InstallationId">;
1629
+ definitionDigest: z.ZodBranded<z.ZodString, "Sha256Digest">;
1630
+ mountRevision: z.ZodNumber;
1631
+ operationId: z.ZodString;
1632
+ scopeAuthority: z.ZodReadonly<z.ZodObject<{
1633
+ organizationId: z.ZodString;
1634
+ tenant: z.ZodString;
1635
+ }, "strict", z.ZodTypeAny, {
1636
+ tenant: string;
1637
+ organizationId: string;
1638
+ }, {
1639
+ tenant: string;
1640
+ organizationId: string;
1641
+ }>>;
1642
+ effectiveScope: z.ZodReadonly<z.ZodObject<{
1643
+ tenant: z.ZodString;
1644
+ namespace: z.ZodOptional<z.ZodString>;
1645
+ subject: z.ZodOptional<z.ZodString>;
1646
+ session: z.ZodOptional<z.ZodString>;
1647
+ }, "strict", z.ZodTypeAny, {
1648
+ tenant: string;
1649
+ namespace?: string | undefined;
1650
+ subject?: string | undefined;
1651
+ session?: string | undefined;
1652
+ }, {
1653
+ tenant: string;
1654
+ namespace?: string | undefined;
1655
+ subject?: string | undefined;
1656
+ session?: string | undefined;
1657
+ }>>;
1658
+ authorizationDecision: z.ZodReadonly<z.ZodObject<{
1659
+ decisionId: z.ZodString;
1660
+ decisionDigest: z.ZodBranded<z.ZodString, "Sha256Digest">;
1661
+ status: z.ZodLiteral<"allowed">;
1662
+ }, "strict", z.ZodTypeAny, {
1663
+ status: "allowed";
1664
+ decisionId: string;
1665
+ decisionDigest: string & z.BRAND<"Sha256Digest">;
1666
+ }, {
1667
+ status: "allowed";
1668
+ decisionId: string;
1669
+ decisionDigest: string;
1670
+ }>>;
1671
+ revision: z.ZodString;
1672
+ permission: z.ZodString;
1673
+ permissionMode: z.ZodEnum<["live", "mirrored", "static"]>;
1674
+ providerScopes: z.ZodReadonly<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1675
+ providerEvidence: z.ZodReadonly<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1676
+ kind: z.ZodLiteral<"records_operation">;
1677
+ operationId: z.ZodString;
1678
+ }, "strict", z.ZodTypeAny, {
1679
+ kind: "records_operation";
1680
+ operationId: string;
1681
+ }, {
1682
+ kind: "records_operation";
1683
+ operationId: string;
1684
+ }>, z.ZodObject<{
1685
+ kind: z.ZodLiteral<"open_connector_action">;
1686
+ connectorRef: z.ZodString;
1687
+ actionId: z.ZodString;
1688
+ connectorRunId: z.ZodString;
1689
+ actionCorrelationId: z.ZodString;
1690
+ auditPersisted: z.ZodBoolean;
1691
+ }, "strict", z.ZodTypeAny, {
1692
+ kind: "open_connector_action";
1693
+ actionId: string;
1694
+ connectorRef: string;
1695
+ connectorRunId: string;
1696
+ actionCorrelationId: string;
1697
+ auditPersisted: boolean;
1698
+ }, {
1699
+ kind: "open_connector_action";
1700
+ actionId: string;
1701
+ connectorRef: string;
1702
+ connectorRunId: string;
1703
+ actionCorrelationId: string;
1704
+ auditPersisted: boolean;
1705
+ }>, z.ZodObject<{
1706
+ kind: z.ZodLiteral<"schift_search">;
1707
+ indexRef: z.ZodString;
1708
+ }, "strict", z.ZodTypeAny, {
1709
+ kind: "schift_search";
1710
+ indexRef: string;
1711
+ }, {
1712
+ kind: "schift_search";
1713
+ indexRef: string;
1714
+ }>, z.ZodObject<{
1715
+ kind: z.ZodLiteral<"web_search">;
1716
+ provider: z.ZodEnum<["customer", "schift"]>;
1717
+ }, "strict", z.ZodTypeAny, {
1718
+ kind: "web_search";
1719
+ provider: "customer" | "schift";
1720
+ }, {
1721
+ kind: "web_search";
1722
+ provider: "customer" | "schift";
1723
+ }>]>>;
1724
+ freshness: z.ZodOptional<z.ZodString>;
1725
+ payload: z.ZodEffects<z.ZodType<import("./canonical.js").JsonValue, z.ZodTypeDef, import("./canonical.js").JsonValue>, import("./canonical.js").JsonValue, import("./canonical.js").JsonValue>;
1726
+ citation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
1727
+ uri: z.ZodString;
1728
+ label: z.ZodOptional<z.ZodString>;
1729
+ }, "strict", z.ZodTypeAny, {
1730
+ uri: string;
1731
+ label?: string | undefined;
1732
+ }, {
1733
+ uri: string;
1734
+ label?: string | undefined;
1735
+ }>>>;
1736
+ }, "strict", z.ZodTypeAny, {
1737
+ operationId: string;
1738
+ srn: string;
1739
+ sourceId: string & z.BRAND<"SourceId">;
1740
+ sourceClass: "document" | "records" | "activity_stream";
1741
+ providerRef: string;
1742
+ installationId: string & z.BRAND<"InstallationId">;
1743
+ definitionDigest: string & z.BRAND<"Sha256Digest">;
1744
+ mountRevision: number;
1745
+ scopeAuthority: Readonly<{
1746
+ tenant: string;
1747
+ organizationId: string;
1748
+ }>;
1749
+ effectiveScope: Readonly<{
1750
+ tenant: string;
1751
+ namespace?: string | undefined;
1752
+ subject?: string | undefined;
1753
+ session?: string | undefined;
1754
+ }>;
1755
+ authorizationDecision: Readonly<{
1756
+ status: "allowed";
1757
+ decisionId: string;
1758
+ decisionDigest: string & z.BRAND<"Sha256Digest">;
1759
+ }>;
1760
+ revision: string;
1761
+ permission: string;
1762
+ permissionMode: "live" | "mirrored" | "static";
1763
+ providerScopes: readonly string[];
1764
+ providerEvidence: Readonly<{
1765
+ kind: "records_operation";
1766
+ operationId: string;
1767
+ }> | Readonly<{
1768
+ kind: "schift_search";
1769
+ indexRef: string;
1770
+ }> | Readonly<{
1771
+ kind: "web_search";
1772
+ provider: "customer" | "schift";
1773
+ }> | Readonly<{
1774
+ kind: "open_connector_action";
1775
+ actionId: string;
1776
+ connectorRef: string;
1777
+ connectorRunId: string;
1778
+ actionCorrelationId: string;
1779
+ auditPersisted: boolean;
1780
+ }>;
1781
+ payload: import("./canonical.js").JsonValue;
1782
+ freshness?: string | undefined;
1783
+ citation?: Readonly<{
1784
+ uri: string;
1785
+ label?: string | undefined;
1786
+ }> | undefined;
1787
+ }, {
1788
+ operationId: string;
1789
+ srn: string;
1790
+ sourceId: string;
1791
+ sourceClass: "document" | "records" | "activity_stream";
1792
+ providerRef: string;
1793
+ installationId: string;
1794
+ definitionDigest: string;
1795
+ mountRevision: number;
1796
+ scopeAuthority: Readonly<{
1797
+ tenant: string;
1798
+ organizationId: string;
1799
+ }>;
1800
+ effectiveScope: Readonly<{
1801
+ tenant: string;
1802
+ namespace?: string | undefined;
1803
+ subject?: string | undefined;
1804
+ session?: string | undefined;
1805
+ }>;
1806
+ authorizationDecision: Readonly<{
1807
+ status: "allowed";
1808
+ decisionId: string;
1809
+ decisionDigest: string;
1810
+ }>;
1811
+ revision: string;
1812
+ permission: string;
1813
+ permissionMode: "live" | "mirrored" | "static";
1814
+ providerScopes: readonly string[];
1815
+ providerEvidence: Readonly<{
1816
+ kind: "records_operation";
1817
+ operationId: string;
1818
+ }> | Readonly<{
1819
+ kind: "schift_search";
1820
+ indexRef: string;
1821
+ }> | Readonly<{
1822
+ kind: "web_search";
1823
+ provider: "customer" | "schift";
1824
+ }> | Readonly<{
1825
+ kind: "open_connector_action";
1826
+ actionId: string;
1827
+ connectorRef: string;
1828
+ connectorRunId: string;
1829
+ actionCorrelationId: string;
1830
+ auditPersisted: boolean;
1831
+ }>;
1832
+ payload: import("./canonical.js").JsonValue;
1833
+ freshness?: string | undefined;
1834
+ citation?: Readonly<{
1835
+ uri: string;
1836
+ label?: string | undefined;
1837
+ }> | undefined;
1838
+ }>>;
1839
+ export type QueryProvider = z.infer<typeof QueryProviderSchema>;
1840
+ export type QueryCapability = z.infer<typeof QueryCapabilitySchema>;
1841
+ export type KnowledgeScopeDefinition = z.infer<typeof KnowledgeScopeDefinitionSchema>;
1842
+ export type CandidateEnvelope = z.infer<typeof CandidateEnvelopeSchema>;
1843
+ export type AuthorizationDecision = z.infer<typeof AuthorizationDecisionSchema>;