@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/index.js
CHANGED
|
@@ -816,15 +816,7 @@ var CREATE_BELIEF = {
|
|
|
816
816
|
},
|
|
817
817
|
topicGlobalId: {
|
|
818
818
|
type: "string",
|
|
819
|
-
description: "Required globalId
|
|
820
|
-
},
|
|
821
|
-
topicNodeId: {
|
|
822
|
-
type: "string",
|
|
823
|
-
description: "Optional internal epistemicNodes _id for the topic anchor. Prefer topicGlobalId for public callers."
|
|
824
|
-
},
|
|
825
|
-
topicId: {
|
|
826
|
-
type: "string",
|
|
827
|
-
description: "Deprecated compatibility alias for topicGlobalId. Must identify a topic epistemicNode, not a legacy topics-table row."
|
|
819
|
+
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."
|
|
828
820
|
},
|
|
829
821
|
baseRate: {
|
|
830
822
|
type: "number",
|
|
@@ -20173,6 +20165,7 @@ var LUCERN_OPERATION_MANIFEST = {
|
|
|
20173
20165
|
|
|
20174
20166
|
// ../contracts/src/function-registry/helpers.ts
|
|
20175
20167
|
var jsonObjectSchema = z.record(z.unknown());
|
|
20168
|
+
var uuidV7StringSchema = z.string().refine(isUuidV7, "must be UUIDv7");
|
|
20176
20169
|
var sdkSessionIdSchema = z.string().optional();
|
|
20177
20170
|
function publicPrefixedId(prefix, rawId) {
|
|
20178
20171
|
return rawId.startsWith(`${prefix}_`) ? rawId : encodePrefixedId(prefix, rawId);
|
|
@@ -20711,14 +20704,8 @@ var predictionMetaSchema = z.object({
|
|
|
20711
20704
|
});
|
|
20712
20705
|
var createBeliefArgs = z.object({
|
|
20713
20706
|
canonicalText: z.string().describe("The belief statement the agent holds to be true."),
|
|
20714
|
-
topicGlobalId:
|
|
20715
|
-
"Required globalId of the topic epistemicNode that anchors this belief. Belief creation creates a belongs_to edge directly to that topic node."
|
|
20716
|
-
),
|
|
20717
|
-
topicNodeId: z.string().optional().describe(
|
|
20718
|
-
"Optional internal epistemicNodes _id for the topic anchor. Prefer topicGlobalId for public callers."
|
|
20719
|
-
),
|
|
20720
|
-
topicId: z.string().optional().describe(
|
|
20721
|
-
"Deprecated compatibility alias for topicGlobalId. Must identify a topic epistemicNode, not a legacy topics-table row."
|
|
20707
|
+
topicGlobalId: uuidV7StringSchema.describe(
|
|
20708
|
+
"Required UUIDv7 globalId of the topic epistemicNode that anchors this belief. Belief creation creates a belongs_to edge directly to that topic node."
|
|
20722
20709
|
),
|
|
20723
20710
|
baseRate: z.number().optional().describe("Prior base rate used to seed the vacuous opinion."),
|
|
20724
20711
|
beliefStatus: beliefLifecycleStatusSchema.optional().describe(
|
|
@@ -20765,9 +20752,8 @@ var createBeliefInput = (input, context) => {
|
|
|
20765
20752
|
return withUserId(
|
|
20766
20753
|
compactRecord4({
|
|
20767
20754
|
projectId: input.projectId,
|
|
20768
|
-
topicId: input.topicGlobalId
|
|
20755
|
+
topicId: input.topicGlobalId,
|
|
20769
20756
|
topicGlobalId: input.topicGlobalId,
|
|
20770
|
-
topicNodeId: input.topicNodeId,
|
|
20771
20757
|
formulation: input.formulation ?? input.canonicalText,
|
|
20772
20758
|
beliefType: input.beliefType,
|
|
20773
20759
|
rationale: input.rationale,
|
|
@@ -20826,7 +20812,8 @@ var beliefsContracts = [
|
|
|
20826
20812
|
kind: "mutation",
|
|
20827
20813
|
inputProjection: createBeliefInput
|
|
20828
20814
|
},
|
|
20829
|
-
args: createBeliefArgs
|
|
20815
|
+
args: createBeliefArgs,
|
|
20816
|
+
input: createBeliefArgs
|
|
20830
20817
|
}),
|
|
20831
20818
|
surfaceContract({
|
|
20832
20819
|
name: "get_belief",
|
|
@@ -21757,7 +21744,9 @@ var topicVisibilitySchema = z.enum([
|
|
|
21757
21744
|
]);
|
|
21758
21745
|
var topicStatusSchema = z.enum(["active", "archived", "watching"]);
|
|
21759
21746
|
var createTopicArgs = z.object({
|
|
21760
|
-
globalId:
|
|
21747
|
+
globalId: uuidV7StringSchema.optional().describe(
|
|
21748
|
+
"Optional idempotent UUIDv7 topic global ID. When omitted, the kernel mints UUIDv7."
|
|
21749
|
+
),
|
|
21761
21750
|
name: z.string().describe("Topic name."),
|
|
21762
21751
|
description: z.string().optional().describe("Topic description."),
|
|
21763
21752
|
type: z.string().describe("Topic type."),
|
|
@@ -21823,7 +21812,8 @@ var topicsContracts = [
|
|
|
21823
21812
|
kind: "mutation",
|
|
21824
21813
|
inputProjection: withCreatedBy
|
|
21825
21814
|
},
|
|
21826
|
-
args: createTopicArgs
|
|
21815
|
+
args: createTopicArgs,
|
|
21816
|
+
input: createTopicArgs
|
|
21827
21817
|
}),
|
|
21828
21818
|
surfaceContract({
|
|
21829
21819
|
name: "get_topic",
|