@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
package/dist/types.js
CHANGED
|
@@ -790,15 +790,7 @@ var CREATE_BELIEF = {
|
|
|
790
790
|
},
|
|
791
791
|
topicGlobalId: {
|
|
792
792
|
type: "string",
|
|
793
|
-
description: "Required globalId
|
|
794
|
-
},
|
|
795
|
-
topicNodeId: {
|
|
796
|
-
type: "string",
|
|
797
|
-
description: "Optional internal epistemicNodes _id for the topic anchor. Prefer topicGlobalId for public callers."
|
|
798
|
-
},
|
|
799
|
-
topicId: {
|
|
800
|
-
type: "string",
|
|
801
|
-
description: "Deprecated compatibility alias for topicGlobalId. Must identify a topic epistemicNode, not a legacy topics-table row."
|
|
793
|
+
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."
|
|
802
794
|
},
|
|
803
795
|
baseRate: {
|
|
804
796
|
type: "number",
|
|
@@ -20056,6 +20048,7 @@ var LUCERN_OPERATION_MANIFEST = {
|
|
|
20056
20048
|
|
|
20057
20049
|
// ../contracts/src/function-registry/helpers.ts
|
|
20058
20050
|
var jsonObjectSchema = z.record(z.unknown());
|
|
20051
|
+
var uuidV7StringSchema = z.string().refine(isUuidV7, "must be UUIDv7");
|
|
20059
20052
|
var sdkSessionIdSchema = z.string().optional();
|
|
20060
20053
|
function publicPrefixedId(prefix, rawId) {
|
|
20061
20054
|
return rawId.startsWith(`${prefix}_`) ? rawId : encodePrefixedId(prefix, rawId);
|
|
@@ -20594,14 +20587,8 @@ var predictionMetaSchema = z.object({
|
|
|
20594
20587
|
});
|
|
20595
20588
|
var createBeliefArgs = z.object({
|
|
20596
20589
|
canonicalText: z.string().describe("The belief statement the agent holds to be true."),
|
|
20597
|
-
topicGlobalId:
|
|
20598
|
-
"Required globalId of the topic epistemicNode that anchors this belief. Belief creation creates a belongs_to edge directly to that topic node."
|
|
20599
|
-
),
|
|
20600
|
-
topicNodeId: z.string().optional().describe(
|
|
20601
|
-
"Optional internal epistemicNodes _id for the topic anchor. Prefer topicGlobalId for public callers."
|
|
20602
|
-
),
|
|
20603
|
-
topicId: z.string().optional().describe(
|
|
20604
|
-
"Deprecated compatibility alias for topicGlobalId. Must identify a topic epistemicNode, not a legacy topics-table row."
|
|
20590
|
+
topicGlobalId: uuidV7StringSchema.describe(
|
|
20591
|
+
"Required UUIDv7 globalId of the topic epistemicNode that anchors this belief. Belief creation creates a belongs_to edge directly to that topic node."
|
|
20605
20592
|
),
|
|
20606
20593
|
baseRate: z.number().optional().describe("Prior base rate used to seed the vacuous opinion."),
|
|
20607
20594
|
beliefStatus: beliefLifecycleStatusSchema.optional().describe(
|
|
@@ -20648,9 +20635,8 @@ var createBeliefInput = (input, context) => {
|
|
|
20648
20635
|
return withUserId(
|
|
20649
20636
|
compactRecord4({
|
|
20650
20637
|
projectId: input.projectId,
|
|
20651
|
-
topicId: input.topicGlobalId
|
|
20638
|
+
topicId: input.topicGlobalId,
|
|
20652
20639
|
topicGlobalId: input.topicGlobalId,
|
|
20653
|
-
topicNodeId: input.topicNodeId,
|
|
20654
20640
|
formulation: input.formulation ?? input.canonicalText,
|
|
20655
20641
|
beliefType: input.beliefType,
|
|
20656
20642
|
rationale: input.rationale,
|
|
@@ -20709,7 +20695,8 @@ var beliefsContracts = [
|
|
|
20709
20695
|
kind: "mutation",
|
|
20710
20696
|
inputProjection: createBeliefInput
|
|
20711
20697
|
},
|
|
20712
|
-
args: createBeliefArgs
|
|
20698
|
+
args: createBeliefArgs,
|
|
20699
|
+
input: createBeliefArgs
|
|
20713
20700
|
}),
|
|
20714
20701
|
surfaceContract({
|
|
20715
20702
|
name: "get_belief",
|
|
@@ -21640,7 +21627,9 @@ var topicVisibilitySchema = z.enum([
|
|
|
21640
21627
|
]);
|
|
21641
21628
|
var topicStatusSchema = z.enum(["active", "archived", "watching"]);
|
|
21642
21629
|
var createTopicArgs = z.object({
|
|
21643
|
-
globalId:
|
|
21630
|
+
globalId: uuidV7StringSchema.optional().describe(
|
|
21631
|
+
"Optional idempotent UUIDv7 topic global ID. When omitted, the kernel mints UUIDv7."
|
|
21632
|
+
),
|
|
21644
21633
|
name: z.string().describe("Topic name."),
|
|
21645
21634
|
description: z.string().optional().describe("Topic description."),
|
|
21646
21635
|
type: z.string().describe("Topic type."),
|
|
@@ -21706,7 +21695,8 @@ var topicsContracts = [
|
|
|
21706
21695
|
kind: "mutation",
|
|
21707
21696
|
inputProjection: withCreatedBy
|
|
21708
21697
|
},
|
|
21709
|
-
args: createTopicArgs
|
|
21698
|
+
args: createTopicArgs,
|
|
21699
|
+
input: createTopicArgs
|
|
21710
21700
|
}),
|
|
21711
21701
|
surfaceContract({
|
|
21712
21702
|
name: "get_topic",
|