@lucern/contracts 1.0.30 → 1.0.31
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/CHANGELOG.md +4 -0
- package/dist/assembly-acceptance-gate.contract.d.ts +1234 -1234
- package/dist/assembly-instrumentation.contract.d.ts +413 -413
- package/dist/belongs-to-membership-model.contract.d.ts +45 -45
- package/dist/campaign-context-compiler.contract.d.ts +87 -87
- package/dist/canonical-edge-public-noun-lock.contract.d.ts +106 -106
- package/dist/concept-maturity-rubric.contract.d.ts +131 -131
- package/dist/docs-canon-reconciliation-loop.contract.d.ts +37 -37
- package/dist/{edge-policy-manifest-Bg3B5G0u.d.ts → edge-policy-manifest-C38kuf7v.d.ts} +26 -26
- package/dist/evidence-question-forecast-maturity.contract.d.ts +76 -76
- package/dist/evidence-taxonomy-target-scope.contract.d.ts +61 -61
- package/dist/final-substrate-source-ledger.contract.d.ts +149 -149
- package/dist/function-registry/helpers.d.ts +1 -1
- package/dist/function-registry/index.d.ts +11 -11
- package/dist/generated/state-vector-transition-table.d.ts +1 -1
- package/dist/golden-reasoning-eval-harness.contract.d.ts +2178 -2178
- package/dist/graph-traversal-canon.contract.d.ts +121 -121
- package/dist/graph-traversal-invariant-guardrails.contract.d.ts +68 -68
- package/dist/graph-v2-write-policy-constitution.contract.d.ts +219 -219
- package/dist/heartbeat-property-validation.contract.d.ts +86 -86
- package/dist/index.d.ts +2 -2
- package/dist/manifest-projection-generation.contract.d.ts +34 -34
- package/dist/manifests/check-manifest.d.ts +12 -12
- package/dist/manifests/edge-policy-manifest.d.ts +1 -1
- package/dist/manifests/edge-policy-manifest.data.d.ts +3 -3
- package/dist/manifests/invariant-manifest.d.ts +6 -6
- package/dist/observability-audit-store-migration.contract.d.ts +110 -110
- package/dist/parsimony-diagnostic.contract.d.ts +328 -328
- package/dist/post-substrate-surface-lock.contract.d.ts +48 -48
- package/dist/post-substrate-surface-upgrade.contract.d.ts +82 -82
- package/dist/pre-rebuild-closeout-gate.contract.d.ts +153 -153
- package/dist/primitive-epistemic-state-constitution.contract.d.ts +34 -34
- package/dist/primitive-epistemic-state-constitution.data.d.ts +1 -1
- package/dist/primitive-maturity-matrix.contract.d.ts +100 -100
- package/dist/prior-art-vocabulary-firewall.contract.d.ts +19 -19
- package/dist/projections/create-evidence.projection.d.ts +36 -36
- package/dist/projections/index.d.ts +7 -7
- package/dist/projections/list-beliefs.projection.d.ts +3 -3
- package/dist/proof-attestation.json +1 -1
- package/dist/propagation-v2-contract.contract.d.ts +74 -74
- package/dist/published-belief-artifact.contract.d.ts +325 -325
- package/dist/reset-authorization-package.contract.d.ts +84 -84
- package/dist/retrieval-search-discovery-receipt.contract.d.ts +288 -288
- package/dist/schema-change-belief.contract.d.ts +179 -179
- package/dist/schemas/component-table-manifest.d.ts +8 -8
- package/dist/schemas/manifest.d.ts +580 -580
- package/dist/schemas/tables/kernel/epistemic.d.ts +2 -2
- package/dist/schemas/tables/kernel/intelligence.d.ts +16 -16
- package/dist/schemas/tables/kernel/lens.d.ts +10 -10
- package/dist/schemas/tables/kernel/platform.d.ts +14 -14
- package/dist/schemas/tables/kernel/task.d.ts +26 -26
- package/dist/schemas/tables/kernel/worktree.d.ts +18 -18
- package/dist/schemas/tables/mc/identity.d.ts +2 -2
- package/dist/schemas/tables/mc/methodology.d.ts +2 -2
- package/dist/schemas/tables/mc/pack.d.ts +24 -24
- package/dist/schemas/tables/mc/runtime.d.ts +2 -2
- package/dist/slice-serialization.contract.d.ts +1325 -1325
- package/dist/source-material-adoption-ledger.contract.d.ts +250 -250
- package/dist/source-material-total-partition.contract.d.ts +254 -254
- package/dist/state-vector-manifest.contract.d.ts +83 -83
- package/dist/state-vector-manifest.data.contract.d.ts +1 -1
- package/dist/state-vector-runtime.contract.d.ts +28 -28
- package/dist/substrate-envelope.contract.d.ts +117 -117
- package/dist/substrate-lifecycle-lineage.contract.d.ts +30 -30
- package/dist/substrate-migration-cutover-ledger.contract.d.ts +13 -13
- package/dist/substrate-neo4j-projection.contract.d.ts +179 -179
- package/dist/transition-receipt.contract.d.ts +543 -543
- package/dist/traversal-mode-constitution.contract.d.ts +123 -123
- package/dist/typed-gate-registry.contract.d.ts +61 -61
- package/dist/typed-need.contract.d.ts +248 -248
- package/dist/{unified-state-matrix.contract-BJDYNhnf.d.ts → unified-state-matrix.contract-BTxqLggA.d.ts} +96 -96
- package/dist/unified-state-matrix.contract.d.ts +1 -1
- package/dist/unified-state-matrix.data.contract.d.ts +1 -1
- package/dist/workspace-data-sovereignty.contract.d.ts +114 -114
- package/dist/worktree-belief-adoption.contract.d.ts +91 -91
- package/dist/worktree-delta-ledger.contract.d.ts +124 -124
- package/dist/worktree-graph-branch-maturity.contract.d.ts +63 -63
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ declare const SubstrateIdentityEnvelopeSchema: z.ZodObject<{
|
|
|
37
37
|
exposedAsSemanticIdentity: false;
|
|
38
38
|
}>>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
objectType: "
|
|
40
|
+
objectType: "topic" | "belief" | "question" | "evidence" | "worktree" | "agent_run" | "answer" | "source" | "edge" | "task" | "decision" | "policy_resource";
|
|
41
41
|
uuid: string;
|
|
42
42
|
storageLocator?: {
|
|
43
43
|
table: string;
|
|
@@ -45,7 +45,7 @@ declare const SubstrateIdentityEnvelopeSchema: z.ZodObject<{
|
|
|
45
45
|
exposedAsSemanticIdentity: false;
|
|
46
46
|
} | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
objectType: "
|
|
48
|
+
objectType: "topic" | "belief" | "question" | "evidence" | "worktree" | "agent_run" | "answer" | "source" | "edge" | "task" | "decision" | "policy_resource";
|
|
49
49
|
uuid: string;
|
|
50
50
|
storageLocator?: {
|
|
51
51
|
table: string;
|
|
@@ -80,13 +80,13 @@ declare const SubstrateAttributionEnvelopeSchema: z.ZodObject<{
|
|
|
80
80
|
agentRunUuid?: string | undefined;
|
|
81
81
|
createdByClerkId?: string | undefined;
|
|
82
82
|
createdByPrincipalId?: string | undefined;
|
|
83
|
-
sourceSurface?: "
|
|
83
|
+
sourceSurface?: "cli" | "mcp" | "sdk" | "rest" | "migration" | "convex" | undefined;
|
|
84
84
|
}, {
|
|
85
85
|
createdBy: string;
|
|
86
86
|
agentRunUuid?: string | undefined;
|
|
87
87
|
createdByClerkId?: string | undefined;
|
|
88
88
|
createdByPrincipalId?: string | undefined;
|
|
89
|
-
sourceSurface?: "
|
|
89
|
+
sourceSurface?: "cli" | "mcp" | "sdk" | "rest" | "migration" | "convex" | undefined;
|
|
90
90
|
}>;
|
|
91
91
|
declare const SubstrateTemporalEnvelopeSchema: z.ZodObject<{
|
|
92
92
|
createdAt: z.ZodNumber;
|
|
@@ -94,13 +94,13 @@ declare const SubstrateTemporalEnvelopeSchema: z.ZodObject<{
|
|
|
94
94
|
validFrom: z.ZodNumber;
|
|
95
95
|
validTo: z.ZodOptional<z.ZodNumber>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
createdAt: number;
|
|
98
97
|
validFrom: number;
|
|
98
|
+
createdAt: number;
|
|
99
99
|
updatedAt: number;
|
|
100
100
|
validTo?: number | undefined;
|
|
101
101
|
}, {
|
|
102
|
-
createdAt: number;
|
|
103
102
|
validFrom: number;
|
|
103
|
+
createdAt: number;
|
|
104
104
|
updatedAt: number;
|
|
105
105
|
validTo?: number | undefined;
|
|
106
106
|
}>;
|
|
@@ -113,31 +113,31 @@ declare const SubstrateStateEnvelopeSchema: z.ZodObject<{
|
|
|
113
113
|
transitionId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
114
114
|
lastTransitionAt: z.ZodOptional<z.ZodNumber>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
machineId: string;
|
|
117
116
|
state: string;
|
|
117
|
+
machineId: string;
|
|
118
118
|
transitionId?: string | undefined;
|
|
119
119
|
lastTransitionAt?: number | undefined;
|
|
120
120
|
}, {
|
|
121
|
-
machineId: string;
|
|
122
121
|
state: string;
|
|
122
|
+
machineId: string;
|
|
123
123
|
transitionId?: string | undefined;
|
|
124
124
|
lastTransitionAt?: number | undefined;
|
|
125
125
|
}>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
lifecycleState: "archived" | "active" | "draft" | "superseded" | "deleted" | "migrating" | "failed";
|
|
128
127
|
schemaVersion: string;
|
|
128
|
+
lifecycleState: "superseded" | "active" | "archived" | "draft" | "deleted" | "migrating" | "failed";
|
|
129
129
|
stateMachine: {
|
|
130
|
-
machineId: string;
|
|
131
130
|
state: string;
|
|
131
|
+
machineId: string;
|
|
132
132
|
transitionId?: string | undefined;
|
|
133
133
|
lastTransitionAt?: number | undefined;
|
|
134
134
|
};
|
|
135
135
|
}, {
|
|
136
|
-
lifecycleState: "archived" | "active" | "draft" | "superseded" | "deleted" | "migrating" | "failed";
|
|
137
136
|
schemaVersion: string;
|
|
137
|
+
lifecycleState: "superseded" | "active" | "archived" | "draft" | "deleted" | "migrating" | "failed";
|
|
138
138
|
stateMachine: {
|
|
139
|
-
machineId: string;
|
|
140
139
|
state: string;
|
|
140
|
+
machineId: string;
|
|
141
141
|
transitionId?: string | undefined;
|
|
142
142
|
lastTransitionAt?: number | undefined;
|
|
143
143
|
};
|
|
@@ -153,16 +153,16 @@ declare const SubstrateLineageEnvelopeSchema: z.ZodObject<{
|
|
|
153
153
|
legacyIds: string[];
|
|
154
154
|
migrationOfUuids: string[];
|
|
155
155
|
sourceEvidenceUuids: string[];
|
|
156
|
+
replayBindingUuid?: string | undefined;
|
|
156
157
|
supersedesUuid?: string | undefined;
|
|
157
158
|
forkedFromUuid?: string | undefined;
|
|
158
|
-
replayBindingUuid?: string | undefined;
|
|
159
159
|
}, {
|
|
160
|
+
replayBindingUuid?: string | undefined;
|
|
160
161
|
legacyIds?: string[] | undefined;
|
|
161
162
|
migrationOfUuids?: string[] | undefined;
|
|
162
163
|
sourceEvidenceUuids?: string[] | undefined;
|
|
163
164
|
supersedesUuid?: string | undefined;
|
|
164
165
|
forkedFromUuid?: string | undefined;
|
|
165
|
-
replayBindingUuid?: string | undefined;
|
|
166
166
|
}>;
|
|
167
167
|
declare const SubstratePolicyEnvelopeSchema: z.ZodObject<{
|
|
168
168
|
ownerPrincipalId: z.ZodOptional<z.ZodString>;
|
|
@@ -172,9 +172,9 @@ declare const SubstratePolicyEnvelopeSchema: z.ZodObject<{
|
|
|
172
172
|
exportClass: z.ZodEnum<["public_safe", "client_safe", "internal_only", "restricted"]>;
|
|
173
173
|
permitAttributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
policyTags: string[];
|
|
175
176
|
sensitivityTier: "low" | "medium" | "high" | "restricted";
|
|
176
177
|
exportClass: "restricted" | "internal_only" | "public_safe" | "client_safe";
|
|
177
|
-
policyTags: string[];
|
|
178
178
|
permitAttributes: Record<string, unknown>;
|
|
179
179
|
ownerPrincipalId?: string | undefined;
|
|
180
180
|
audienceLabel?: string | undefined;
|
|
@@ -204,7 +204,7 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
204
204
|
exposedAsSemanticIdentity: false;
|
|
205
205
|
}>>;
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
|
-
objectType: "
|
|
207
|
+
objectType: "topic" | "belief" | "question" | "evidence" | "worktree" | "agent_run" | "answer" | "source" | "edge" | "task" | "decision" | "policy_resource";
|
|
208
208
|
uuid: string;
|
|
209
209
|
storageLocator?: {
|
|
210
210
|
table: string;
|
|
@@ -212,7 +212,7 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
212
212
|
exposedAsSemanticIdentity: false;
|
|
213
213
|
} | undefined;
|
|
214
214
|
}, {
|
|
215
|
-
objectType: "
|
|
215
|
+
objectType: "topic" | "belief" | "question" | "evidence" | "worktree" | "agent_run" | "answer" | "source" | "edge" | "task" | "decision" | "policy_resource";
|
|
216
216
|
uuid: string;
|
|
217
217
|
storageLocator?: {
|
|
218
218
|
table: string;
|
|
@@ -247,13 +247,13 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
247
247
|
agentRunUuid?: string | undefined;
|
|
248
248
|
createdByClerkId?: string | undefined;
|
|
249
249
|
createdByPrincipalId?: string | undefined;
|
|
250
|
-
sourceSurface?: "
|
|
250
|
+
sourceSurface?: "cli" | "mcp" | "sdk" | "rest" | "migration" | "convex" | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
createdBy: string;
|
|
253
253
|
agentRunUuid?: string | undefined;
|
|
254
254
|
createdByClerkId?: string | undefined;
|
|
255
255
|
createdByPrincipalId?: string | undefined;
|
|
256
|
-
sourceSurface?: "
|
|
256
|
+
sourceSurface?: "cli" | "mcp" | "sdk" | "rest" | "migration" | "convex" | undefined;
|
|
257
257
|
}>;
|
|
258
258
|
time: z.ZodObject<{
|
|
259
259
|
createdAt: z.ZodNumber;
|
|
@@ -261,13 +261,13 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
261
261
|
validFrom: z.ZodNumber;
|
|
262
262
|
validTo: z.ZodOptional<z.ZodNumber>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
createdAt: number;
|
|
265
264
|
validFrom: number;
|
|
265
|
+
createdAt: number;
|
|
266
266
|
updatedAt: number;
|
|
267
267
|
validTo?: number | undefined;
|
|
268
268
|
}, {
|
|
269
|
-
createdAt: number;
|
|
270
269
|
validFrom: number;
|
|
270
|
+
createdAt: number;
|
|
271
271
|
updatedAt: number;
|
|
272
272
|
validTo?: number | undefined;
|
|
273
273
|
}>;
|
|
@@ -280,31 +280,31 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
280
280
|
transitionId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
281
281
|
lastTransitionAt: z.ZodOptional<z.ZodNumber>;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
machineId: string;
|
|
284
283
|
state: string;
|
|
284
|
+
machineId: string;
|
|
285
285
|
transitionId?: string | undefined;
|
|
286
286
|
lastTransitionAt?: number | undefined;
|
|
287
287
|
}, {
|
|
288
|
-
machineId: string;
|
|
289
288
|
state: string;
|
|
289
|
+
machineId: string;
|
|
290
290
|
transitionId?: string | undefined;
|
|
291
291
|
lastTransitionAt?: number | undefined;
|
|
292
292
|
}>;
|
|
293
293
|
}, "strip", z.ZodTypeAny, {
|
|
294
|
-
lifecycleState: "archived" | "active" | "draft" | "superseded" | "deleted" | "migrating" | "failed";
|
|
295
294
|
schemaVersion: string;
|
|
295
|
+
lifecycleState: "superseded" | "active" | "archived" | "draft" | "deleted" | "migrating" | "failed";
|
|
296
296
|
stateMachine: {
|
|
297
|
-
machineId: string;
|
|
298
297
|
state: string;
|
|
298
|
+
machineId: string;
|
|
299
299
|
transitionId?: string | undefined;
|
|
300
300
|
lastTransitionAt?: number | undefined;
|
|
301
301
|
};
|
|
302
302
|
}, {
|
|
303
|
-
lifecycleState: "archived" | "active" | "draft" | "superseded" | "deleted" | "migrating" | "failed";
|
|
304
303
|
schemaVersion: string;
|
|
304
|
+
lifecycleState: "superseded" | "active" | "archived" | "draft" | "deleted" | "migrating" | "failed";
|
|
305
305
|
stateMachine: {
|
|
306
|
-
machineId: string;
|
|
307
306
|
state: string;
|
|
307
|
+
machineId: string;
|
|
308
308
|
transitionId?: string | undefined;
|
|
309
309
|
lastTransitionAt?: number | undefined;
|
|
310
310
|
};
|
|
@@ -320,16 +320,16 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
320
320
|
legacyIds: string[];
|
|
321
321
|
migrationOfUuids: string[];
|
|
322
322
|
sourceEvidenceUuids: string[];
|
|
323
|
+
replayBindingUuid?: string | undefined;
|
|
323
324
|
supersedesUuid?: string | undefined;
|
|
324
325
|
forkedFromUuid?: string | undefined;
|
|
325
|
-
replayBindingUuid?: string | undefined;
|
|
326
326
|
}, {
|
|
327
|
+
replayBindingUuid?: string | undefined;
|
|
327
328
|
legacyIds?: string[] | undefined;
|
|
328
329
|
migrationOfUuids?: string[] | undefined;
|
|
329
330
|
sourceEvidenceUuids?: string[] | undefined;
|
|
330
331
|
supersedesUuid?: string | undefined;
|
|
331
332
|
forkedFromUuid?: string | undefined;
|
|
332
|
-
replayBindingUuid?: string | undefined;
|
|
333
333
|
}>;
|
|
334
334
|
policy: z.ZodObject<{
|
|
335
335
|
ownerPrincipalId: z.ZodOptional<z.ZodString>;
|
|
@@ -339,9 +339,9 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
339
339
|
exportClass: z.ZodEnum<["public_safe", "client_safe", "internal_only", "restricted"]>;
|
|
340
340
|
permitAttributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
341
341
|
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
policyTags: string[];
|
|
342
343
|
sensitivityTier: "low" | "medium" | "high" | "restricted";
|
|
343
344
|
exportClass: "restricted" | "internal_only" | "public_safe" | "client_safe";
|
|
344
|
-
policyTags: string[];
|
|
345
345
|
permitAttributes: Record<string, unknown>;
|
|
346
346
|
ownerPrincipalId?: string | undefined;
|
|
347
347
|
audienceLabel?: string | undefined;
|
|
@@ -355,31 +355,26 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
355
355
|
}>;
|
|
356
356
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
357
357
|
}, "strip", z.ZodTypeAny, {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
scope: {
|
|
366
|
-
tenantId: string;
|
|
367
|
-
workspaceId: string;
|
|
368
|
-
policyResourceUuid: string;
|
|
369
|
-
policyResourceType: string;
|
|
358
|
+
policy: {
|
|
359
|
+
policyTags: string[];
|
|
360
|
+
sensitivityTier: "low" | "medium" | "high" | "restricted";
|
|
361
|
+
exportClass: "restricted" | "internal_only" | "public_safe" | "client_safe";
|
|
362
|
+
permitAttributes: Record<string, unknown>;
|
|
363
|
+
ownerPrincipalId?: string | undefined;
|
|
364
|
+
audienceLabel?: string | undefined;
|
|
370
365
|
};
|
|
371
366
|
state: {
|
|
372
|
-
lifecycleState: "archived" | "active" | "draft" | "superseded" | "deleted" | "migrating" | "failed";
|
|
373
367
|
schemaVersion: string;
|
|
368
|
+
lifecycleState: "superseded" | "active" | "archived" | "draft" | "deleted" | "migrating" | "failed";
|
|
374
369
|
stateMachine: {
|
|
375
|
-
machineId: string;
|
|
376
370
|
state: string;
|
|
371
|
+
machineId: string;
|
|
377
372
|
transitionId?: string | undefined;
|
|
378
373
|
lastTransitionAt?: number | undefined;
|
|
379
374
|
};
|
|
380
375
|
};
|
|
381
376
|
identity: {
|
|
382
|
-
objectType: "
|
|
377
|
+
objectType: "topic" | "belief" | "question" | "evidence" | "worktree" | "agent_run" | "answer" | "source" | "edge" | "task" | "decision" | "policy_resource";
|
|
383
378
|
uuid: string;
|
|
384
379
|
storageLocator?: {
|
|
385
380
|
table: string;
|
|
@@ -387,54 +382,55 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
387
382
|
exposedAsSemanticIdentity: false;
|
|
388
383
|
} | undefined;
|
|
389
384
|
};
|
|
385
|
+
scope: {
|
|
386
|
+
tenantId: string;
|
|
387
|
+
workspaceId: string;
|
|
388
|
+
policyResourceUuid: string;
|
|
389
|
+
policyResourceType: string;
|
|
390
|
+
};
|
|
391
|
+
time: {
|
|
392
|
+
validFrom: number;
|
|
393
|
+
createdAt: number;
|
|
394
|
+
updatedAt: number;
|
|
395
|
+
validTo?: number | undefined;
|
|
396
|
+
};
|
|
397
|
+
metadata: Record<string, unknown>;
|
|
390
398
|
attribution: {
|
|
391
399
|
createdBy: string;
|
|
392
400
|
agentRunUuid?: string | undefined;
|
|
393
401
|
createdByClerkId?: string | undefined;
|
|
394
402
|
createdByPrincipalId?: string | undefined;
|
|
395
|
-
sourceSurface?: "
|
|
403
|
+
sourceSurface?: "cli" | "mcp" | "sdk" | "rest" | "migration" | "convex" | undefined;
|
|
396
404
|
};
|
|
397
405
|
lineage: {
|
|
398
406
|
legacyIds: string[];
|
|
399
407
|
migrationOfUuids: string[];
|
|
400
408
|
sourceEvidenceUuids: string[];
|
|
409
|
+
replayBindingUuid?: string | undefined;
|
|
401
410
|
supersedesUuid?: string | undefined;
|
|
402
411
|
forkedFromUuid?: string | undefined;
|
|
403
|
-
replayBindingUuid?: string | undefined;
|
|
404
412
|
};
|
|
413
|
+
}, {
|
|
405
414
|
policy: {
|
|
406
415
|
sensitivityTier: "low" | "medium" | "high" | "restricted";
|
|
407
416
|
exportClass: "restricted" | "internal_only" | "public_safe" | "client_safe";
|
|
408
|
-
policyTags
|
|
409
|
-
permitAttributes: Record<string, unknown>;
|
|
417
|
+
policyTags?: string[] | undefined;
|
|
410
418
|
ownerPrincipalId?: string | undefined;
|
|
411
419
|
audienceLabel?: string | undefined;
|
|
412
|
-
|
|
413
|
-
}, {
|
|
414
|
-
time: {
|
|
415
|
-
createdAt: number;
|
|
416
|
-
validFrom: number;
|
|
417
|
-
updatedAt: number;
|
|
418
|
-
validTo?: number | undefined;
|
|
419
|
-
};
|
|
420
|
-
scope: {
|
|
421
|
-
tenantId: string;
|
|
422
|
-
workspaceId: string;
|
|
423
|
-
policyResourceUuid: string;
|
|
424
|
-
policyResourceType: string;
|
|
420
|
+
permitAttributes?: Record<string, unknown> | undefined;
|
|
425
421
|
};
|
|
426
422
|
state: {
|
|
427
|
-
lifecycleState: "archived" | "active" | "draft" | "superseded" | "deleted" | "migrating" | "failed";
|
|
428
423
|
schemaVersion: string;
|
|
424
|
+
lifecycleState: "superseded" | "active" | "archived" | "draft" | "deleted" | "migrating" | "failed";
|
|
429
425
|
stateMachine: {
|
|
430
|
-
machineId: string;
|
|
431
426
|
state: string;
|
|
427
|
+
machineId: string;
|
|
432
428
|
transitionId?: string | undefined;
|
|
433
429
|
lastTransitionAt?: number | undefined;
|
|
434
430
|
};
|
|
435
431
|
};
|
|
436
432
|
identity: {
|
|
437
|
-
objectType: "
|
|
433
|
+
objectType: "topic" | "belief" | "question" | "evidence" | "worktree" | "agent_run" | "answer" | "source" | "edge" | "task" | "decision" | "policy_resource";
|
|
438
434
|
uuid: string;
|
|
439
435
|
storageLocator?: {
|
|
440
436
|
table: string;
|
|
@@ -442,56 +438,55 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
442
438
|
exposedAsSemanticIdentity: false;
|
|
443
439
|
} | undefined;
|
|
444
440
|
};
|
|
441
|
+
scope: {
|
|
442
|
+
tenantId: string;
|
|
443
|
+
workspaceId: string;
|
|
444
|
+
policyResourceUuid: string;
|
|
445
|
+
policyResourceType: string;
|
|
446
|
+
};
|
|
447
|
+
time: {
|
|
448
|
+
validFrom: number;
|
|
449
|
+
createdAt: number;
|
|
450
|
+
updatedAt: number;
|
|
451
|
+
validTo?: number | undefined;
|
|
452
|
+
};
|
|
445
453
|
attribution: {
|
|
446
454
|
createdBy: string;
|
|
447
455
|
agentRunUuid?: string | undefined;
|
|
448
456
|
createdByClerkId?: string | undefined;
|
|
449
457
|
createdByPrincipalId?: string | undefined;
|
|
450
|
-
sourceSurface?: "
|
|
458
|
+
sourceSurface?: "cli" | "mcp" | "sdk" | "rest" | "migration" | "convex" | undefined;
|
|
451
459
|
};
|
|
452
460
|
lineage: {
|
|
461
|
+
replayBindingUuid?: string | undefined;
|
|
453
462
|
legacyIds?: string[] | undefined;
|
|
454
463
|
migrationOfUuids?: string[] | undefined;
|
|
455
464
|
sourceEvidenceUuids?: string[] | undefined;
|
|
456
465
|
supersedesUuid?: string | undefined;
|
|
457
466
|
forkedFromUuid?: string | undefined;
|
|
458
|
-
replayBindingUuid?: string | undefined;
|
|
459
467
|
};
|
|
468
|
+
metadata?: Record<string, unknown> | undefined;
|
|
469
|
+
}>, {
|
|
460
470
|
policy: {
|
|
471
|
+
policyTags: string[];
|
|
461
472
|
sensitivityTier: "low" | "medium" | "high" | "restricted";
|
|
462
473
|
exportClass: "restricted" | "internal_only" | "public_safe" | "client_safe";
|
|
463
|
-
|
|
474
|
+
permitAttributes: Record<string, unknown>;
|
|
464
475
|
ownerPrincipalId?: string | undefined;
|
|
465
476
|
audienceLabel?: string | undefined;
|
|
466
|
-
permitAttributes?: Record<string, unknown> | undefined;
|
|
467
|
-
};
|
|
468
|
-
metadata?: Record<string, unknown> | undefined;
|
|
469
|
-
}>, {
|
|
470
|
-
time: {
|
|
471
|
-
createdAt: number;
|
|
472
|
-
validFrom: number;
|
|
473
|
-
updatedAt: number;
|
|
474
|
-
validTo?: number | undefined;
|
|
475
|
-
};
|
|
476
|
-
metadata: Record<string, unknown>;
|
|
477
|
-
scope: {
|
|
478
|
-
tenantId: string;
|
|
479
|
-
workspaceId: string;
|
|
480
|
-
policyResourceUuid: string;
|
|
481
|
-
policyResourceType: string;
|
|
482
477
|
};
|
|
483
478
|
state: {
|
|
484
|
-
lifecycleState: "archived" | "active" | "draft" | "superseded" | "deleted" | "migrating" | "failed";
|
|
485
479
|
schemaVersion: string;
|
|
480
|
+
lifecycleState: "superseded" | "active" | "archived" | "draft" | "deleted" | "migrating" | "failed";
|
|
486
481
|
stateMachine: {
|
|
487
|
-
machineId: string;
|
|
488
482
|
state: string;
|
|
483
|
+
machineId: string;
|
|
489
484
|
transitionId?: string | undefined;
|
|
490
485
|
lastTransitionAt?: number | undefined;
|
|
491
486
|
};
|
|
492
487
|
};
|
|
493
488
|
identity: {
|
|
494
|
-
objectType: "
|
|
489
|
+
objectType: "topic" | "belief" | "question" | "evidence" | "worktree" | "agent_run" | "answer" | "source" | "edge" | "task" | "decision" | "policy_resource";
|
|
495
490
|
uuid: string;
|
|
496
491
|
storageLocator?: {
|
|
497
492
|
table: string;
|
|
@@ -499,54 +494,55 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
499
494
|
exposedAsSemanticIdentity: false;
|
|
500
495
|
} | undefined;
|
|
501
496
|
};
|
|
497
|
+
scope: {
|
|
498
|
+
tenantId: string;
|
|
499
|
+
workspaceId: string;
|
|
500
|
+
policyResourceUuid: string;
|
|
501
|
+
policyResourceType: string;
|
|
502
|
+
};
|
|
503
|
+
time: {
|
|
504
|
+
validFrom: number;
|
|
505
|
+
createdAt: number;
|
|
506
|
+
updatedAt: number;
|
|
507
|
+
validTo?: number | undefined;
|
|
508
|
+
};
|
|
509
|
+
metadata: Record<string, unknown>;
|
|
502
510
|
attribution: {
|
|
503
511
|
createdBy: string;
|
|
504
512
|
agentRunUuid?: string | undefined;
|
|
505
513
|
createdByClerkId?: string | undefined;
|
|
506
514
|
createdByPrincipalId?: string | undefined;
|
|
507
|
-
sourceSurface?: "
|
|
515
|
+
sourceSurface?: "cli" | "mcp" | "sdk" | "rest" | "migration" | "convex" | undefined;
|
|
508
516
|
};
|
|
509
517
|
lineage: {
|
|
510
518
|
legacyIds: string[];
|
|
511
519
|
migrationOfUuids: string[];
|
|
512
520
|
sourceEvidenceUuids: string[];
|
|
521
|
+
replayBindingUuid?: string | undefined;
|
|
513
522
|
supersedesUuid?: string | undefined;
|
|
514
523
|
forkedFromUuid?: string | undefined;
|
|
515
|
-
replayBindingUuid?: string | undefined;
|
|
516
524
|
};
|
|
525
|
+
}, {
|
|
517
526
|
policy: {
|
|
518
527
|
sensitivityTier: "low" | "medium" | "high" | "restricted";
|
|
519
528
|
exportClass: "restricted" | "internal_only" | "public_safe" | "client_safe";
|
|
520
|
-
policyTags
|
|
521
|
-
permitAttributes: Record<string, unknown>;
|
|
529
|
+
policyTags?: string[] | undefined;
|
|
522
530
|
ownerPrincipalId?: string | undefined;
|
|
523
531
|
audienceLabel?: string | undefined;
|
|
524
|
-
|
|
525
|
-
}, {
|
|
526
|
-
time: {
|
|
527
|
-
createdAt: number;
|
|
528
|
-
validFrom: number;
|
|
529
|
-
updatedAt: number;
|
|
530
|
-
validTo?: number | undefined;
|
|
531
|
-
};
|
|
532
|
-
scope: {
|
|
533
|
-
tenantId: string;
|
|
534
|
-
workspaceId: string;
|
|
535
|
-
policyResourceUuid: string;
|
|
536
|
-
policyResourceType: string;
|
|
532
|
+
permitAttributes?: Record<string, unknown> | undefined;
|
|
537
533
|
};
|
|
538
534
|
state: {
|
|
539
|
-
lifecycleState: "archived" | "active" | "draft" | "superseded" | "deleted" | "migrating" | "failed";
|
|
540
535
|
schemaVersion: string;
|
|
536
|
+
lifecycleState: "superseded" | "active" | "archived" | "draft" | "deleted" | "migrating" | "failed";
|
|
541
537
|
stateMachine: {
|
|
542
|
-
machineId: string;
|
|
543
538
|
state: string;
|
|
539
|
+
machineId: string;
|
|
544
540
|
transitionId?: string | undefined;
|
|
545
541
|
lastTransitionAt?: number | undefined;
|
|
546
542
|
};
|
|
547
543
|
};
|
|
548
544
|
identity: {
|
|
549
|
-
objectType: "
|
|
545
|
+
objectType: "topic" | "belief" | "question" | "evidence" | "worktree" | "agent_run" | "answer" | "source" | "edge" | "task" | "decision" | "policy_resource";
|
|
550
546
|
uuid: string;
|
|
551
547
|
storageLocator?: {
|
|
552
548
|
table: string;
|
|
@@ -554,28 +550,32 @@ declare const SubstrateDurableObjectEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
554
550
|
exposedAsSemanticIdentity: false;
|
|
555
551
|
} | undefined;
|
|
556
552
|
};
|
|
553
|
+
scope: {
|
|
554
|
+
tenantId: string;
|
|
555
|
+
workspaceId: string;
|
|
556
|
+
policyResourceUuid: string;
|
|
557
|
+
policyResourceType: string;
|
|
558
|
+
};
|
|
559
|
+
time: {
|
|
560
|
+
validFrom: number;
|
|
561
|
+
createdAt: number;
|
|
562
|
+
updatedAt: number;
|
|
563
|
+
validTo?: number | undefined;
|
|
564
|
+
};
|
|
557
565
|
attribution: {
|
|
558
566
|
createdBy: string;
|
|
559
567
|
agentRunUuid?: string | undefined;
|
|
560
568
|
createdByClerkId?: string | undefined;
|
|
561
569
|
createdByPrincipalId?: string | undefined;
|
|
562
|
-
sourceSurface?: "
|
|
570
|
+
sourceSurface?: "cli" | "mcp" | "sdk" | "rest" | "migration" | "convex" | undefined;
|
|
563
571
|
};
|
|
564
572
|
lineage: {
|
|
573
|
+
replayBindingUuid?: string | undefined;
|
|
565
574
|
legacyIds?: string[] | undefined;
|
|
566
575
|
migrationOfUuids?: string[] | undefined;
|
|
567
576
|
sourceEvidenceUuids?: string[] | undefined;
|
|
568
577
|
supersedesUuid?: string | undefined;
|
|
569
578
|
forkedFromUuid?: string | undefined;
|
|
570
|
-
replayBindingUuid?: string | undefined;
|
|
571
|
-
};
|
|
572
|
-
policy: {
|
|
573
|
-
sensitivityTier: "low" | "medium" | "high" | "restricted";
|
|
574
|
-
exportClass: "restricted" | "internal_only" | "public_safe" | "client_safe";
|
|
575
|
-
policyTags?: string[] | undefined;
|
|
576
|
-
ownerPrincipalId?: string | undefined;
|
|
577
|
-
audienceLabel?: string | undefined;
|
|
578
|
-
permitAttributes?: Record<string, unknown> | undefined;
|
|
579
579
|
};
|
|
580
580
|
metadata?: Record<string, unknown> | undefined;
|
|
581
581
|
}>;
|