@lucern/events 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +12 -22
- package/dist/index.js.map +1 -1
- package/dist/outbox.js +12 -22
- package/dist/outbox.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/types.js +12 -22
- package/dist/types.js.map +1 -1
- package/dist/webhook-delivery-machine.js +12 -22
- package/dist/webhook-delivery-machine.js.map +1 -1
- package/dist/webhooks.js +12 -22
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
|
@@ -791,15 +791,7 @@ var CREATE_BELIEF = {
|
|
|
791
791
|
},
|
|
792
792
|
topicGlobalId: {
|
|
793
793
|
type: "string",
|
|
794
|
-
description: "Required globalId
|
|
795
|
-
},
|
|
796
|
-
topicNodeId: {
|
|
797
|
-
type: "string",
|
|
798
|
-
description: "Optional internal epistemicNodes _id for the topic anchor. Prefer topicGlobalId for public callers."
|
|
799
|
-
},
|
|
800
|
-
topicId: {
|
|
801
|
-
type: "string",
|
|
802
|
-
description: "Deprecated compatibility alias for topicGlobalId. Must identify a topic epistemicNode, not a legacy topics-table row."
|
|
794
|
+
description: "Required UUIDv7 globalId of the topic node in epistemicNodes that anchors the belief. Legacy topics-table ids, Convex storage locators, and UUIDv4 values are refused."
|
|
803
795
|
},
|
|
804
796
|
baseRate: {
|
|
805
797
|
type: "number",
|
|
@@ -20018,6 +20010,7 @@ var LUCERN_OPERATION_MANIFEST = {
|
|
|
20018
20010
|
|
|
20019
20011
|
// ../contracts/src/function-registry/helpers.ts
|
|
20020
20012
|
var jsonObjectSchema = z.record(z.unknown());
|
|
20013
|
+
var uuidV7StringSchema = z.string().refine(isUuidV7, "must be UUIDv7");
|
|
20021
20014
|
var sdkSessionIdSchema = z.string().optional();
|
|
20022
20015
|
function publicPrefixedId(prefix, rawId) {
|
|
20023
20016
|
return rawId.startsWith(`${prefix}_`) ? rawId : encodePrefixedId(prefix, rawId);
|
|
@@ -20556,14 +20549,8 @@ var predictionMetaSchema = z.object({
|
|
|
20556
20549
|
});
|
|
20557
20550
|
var createBeliefArgs = z.object({
|
|
20558
20551
|
canonicalText: z.string().describe("The belief statement the agent holds to be true."),
|
|
20559
|
-
topicGlobalId:
|
|
20560
|
-
"Required globalId of the topic epistemicNode that anchors this belief. Belief creation creates a belongs_to edge directly to that topic node."
|
|
20561
|
-
),
|
|
20562
|
-
topicNodeId: z.string().optional().describe(
|
|
20563
|
-
"Optional internal epistemicNodes _id for the topic anchor. Prefer topicGlobalId for public callers."
|
|
20564
|
-
),
|
|
20565
|
-
topicId: z.string().optional().describe(
|
|
20566
|
-
"Deprecated compatibility alias for topicGlobalId. Must identify a topic epistemicNode, not a legacy topics-table row."
|
|
20552
|
+
topicGlobalId: uuidV7StringSchema.describe(
|
|
20553
|
+
"Required UUIDv7 globalId of the topic epistemicNode that anchors this belief. Belief creation creates a belongs_to edge directly to that topic node."
|
|
20567
20554
|
),
|
|
20568
20555
|
baseRate: z.number().optional().describe("Prior base rate used to seed the vacuous opinion."),
|
|
20569
20556
|
beliefStatus: beliefLifecycleStatusSchema.optional().describe(
|
|
@@ -20610,9 +20597,8 @@ var createBeliefInput = (input, context) => {
|
|
|
20610
20597
|
return withUserId(
|
|
20611
20598
|
compactRecord4({
|
|
20612
20599
|
projectId: input.projectId,
|
|
20613
|
-
topicId: input.topicGlobalId
|
|
20600
|
+
topicId: input.topicGlobalId,
|
|
20614
20601
|
topicGlobalId: input.topicGlobalId,
|
|
20615
|
-
topicNodeId: input.topicNodeId,
|
|
20616
20602
|
formulation: input.formulation ?? input.canonicalText,
|
|
20617
20603
|
beliefType: input.beliefType,
|
|
20618
20604
|
rationale: input.rationale,
|
|
@@ -20671,7 +20657,8 @@ var beliefsContracts = [
|
|
|
20671
20657
|
kind: "mutation",
|
|
20672
20658
|
inputProjection: createBeliefInput
|
|
20673
20659
|
},
|
|
20674
|
-
args: createBeliefArgs
|
|
20660
|
+
args: createBeliefArgs,
|
|
20661
|
+
input: createBeliefArgs
|
|
20675
20662
|
}),
|
|
20676
20663
|
surfaceContract({
|
|
20677
20664
|
name: "get_belief",
|
|
@@ -21602,7 +21589,9 @@ var topicVisibilitySchema = z.enum([
|
|
|
21602
21589
|
]);
|
|
21603
21590
|
var topicStatusSchema = z.enum(["active", "archived", "watching"]);
|
|
21604
21591
|
var createTopicArgs = z.object({
|
|
21605
|
-
globalId:
|
|
21592
|
+
globalId: uuidV7StringSchema.optional().describe(
|
|
21593
|
+
"Optional idempotent UUIDv7 topic global ID. When omitted, the kernel mints UUIDv7."
|
|
21594
|
+
),
|
|
21606
21595
|
name: z.string().describe("Topic name."),
|
|
21607
21596
|
description: z.string().optional().describe("Topic description."),
|
|
21608
21597
|
type: z.string().describe("Topic type."),
|
|
@@ -21668,7 +21657,8 @@ var topicsContracts = [
|
|
|
21668
21657
|
kind: "mutation",
|
|
21669
21658
|
inputProjection: withCreatedBy
|
|
21670
21659
|
},
|
|
21671
|
-
args: createTopicArgs
|
|
21660
|
+
args: createTopicArgs,
|
|
21661
|
+
input: createTopicArgs
|
|
21672
21662
|
}),
|
|
21673
21663
|
surfaceContract({
|
|
21674
21664
|
name: "get_topic",
|