@lucern/events 0.3.0-alpha.15 → 0.3.0-alpha.16
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 +11 -37
- package/dist/index.js.map +1 -1
- package/dist/outbox.js +11 -37
- package/dist/outbox.js.map +1 -1
- package/dist/types.js +11 -37
- package/dist/types.js.map +1 -1
- package/dist/webhooks.js +11 -37
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
package/dist/webhooks.js
CHANGED
|
@@ -738,6 +738,7 @@ defineTable({
|
|
|
738
738
|
shape: z.object({
|
|
739
739
|
"tenantId": idOf("tenants"),
|
|
740
740
|
"workspaceId": idOf("workspaces").optional(),
|
|
741
|
+
"environment": z.enum(["dev", "staging", "prod"]).optional(),
|
|
741
742
|
"keyPrefix": z.enum(["luc", "stk"]),
|
|
742
743
|
"keyHash": z.string(),
|
|
743
744
|
"keyHint": z.string(),
|
|
@@ -6894,7 +6895,7 @@ function compactRecord2(input) {
|
|
|
6894
6895
|
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
6895
6896
|
);
|
|
6896
6897
|
}
|
|
6897
|
-
|
|
6898
|
+
defineProjection({
|
|
6898
6899
|
contractName: "list_beliefs",
|
|
6899
6900
|
inputSchema: listBeliefsInputSchema,
|
|
6900
6901
|
project: (input) => compactRecord2({
|
|
@@ -12198,11 +12199,8 @@ var identityContracts = [
|
|
|
12198
12199
|
sdkNamespace: "identity",
|
|
12199
12200
|
sdkMethod: "whoami",
|
|
12200
12201
|
summary: "Describe the current gateway principal.",
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
functionName: "whoami",
|
|
12204
|
-
kind: "query",
|
|
12205
|
-
inputProjection: withPrincipal
|
|
12202
|
+
gateway: {
|
|
12203
|
+
handler: "identity.whoami"
|
|
12206
12204
|
}
|
|
12207
12205
|
}),
|
|
12208
12206
|
surfaceContract({
|
|
@@ -12222,7 +12220,7 @@ var identityContracts = [
|
|
|
12222
12220
|
providerProjectId: z.string().min(1).optional()
|
|
12223
12221
|
}),
|
|
12224
12222
|
convex: {
|
|
12225
|
-
module: "
|
|
12223
|
+
module: "platform",
|
|
12226
12224
|
functionName: "resolveInteractivePrincipal",
|
|
12227
12225
|
kind: "query"
|
|
12228
12226
|
}
|
|
@@ -12306,15 +12304,6 @@ var beliefLookupInput = (input) => compactRecord4({
|
|
|
12306
12304
|
var beliefNodeInput = (input) => compactRecord4({
|
|
12307
12305
|
nodeId: input.nodeId ?? input.id ?? input.beliefId
|
|
12308
12306
|
});
|
|
12309
|
-
var beliefTopicInput = (input) => {
|
|
12310
|
-
const parsed = listBeliefsProjection.inputSchema.safeParse(input);
|
|
12311
|
-
if (!parsed.success) {
|
|
12312
|
-
throw new Error(
|
|
12313
|
-
`list_beliefs projection input rejected: ${parsed.error.message}`
|
|
12314
|
-
);
|
|
12315
|
-
}
|
|
12316
|
-
return compactRecord4(listBeliefsProjection.project(parsed.data));
|
|
12317
|
-
};
|
|
12318
12307
|
var createBeliefInput = (input, context) => {
|
|
12319
12308
|
return withUserId(
|
|
12320
12309
|
compactRecord4({
|
|
@@ -12403,11 +12392,8 @@ var beliefsContracts = [
|
|
|
12403
12392
|
sdkNamespace: "beliefs",
|
|
12404
12393
|
sdkMethod: "listBeliefs",
|
|
12405
12394
|
summary: "List beliefs for a topic.",
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
functionName: "getByTopic",
|
|
12409
|
-
kind: "query",
|
|
12410
|
-
inputProjection: beliefTopicInput
|
|
12395
|
+
gateway: {
|
|
12396
|
+
handler: "beliefs.list"
|
|
12411
12397
|
},
|
|
12412
12398
|
args: listBeliefsInputSchema
|
|
12413
12399
|
}),
|
|
@@ -12592,12 +12578,6 @@ var evidenceIdInput = (input) => compactRecord4({
|
|
|
12592
12578
|
insightId: input.insightId,
|
|
12593
12579
|
nodeId: input.nodeId ?? input.id ?? input.evidenceId
|
|
12594
12580
|
});
|
|
12595
|
-
var evidenceTopicInput = (input) => compactRecord4({
|
|
12596
|
-
topicId: input.topicId,
|
|
12597
|
-
status: input.status,
|
|
12598
|
-
userId: input.userId,
|
|
12599
|
-
limit: input.limit
|
|
12600
|
-
});
|
|
12601
12581
|
var createEvidenceInput = (input, context) => {
|
|
12602
12582
|
const parsed = createEvidenceProjection.inputSchema.safeParse(input);
|
|
12603
12583
|
if (!parsed.success) {
|
|
@@ -12728,11 +12708,8 @@ var evidenceContracts = [
|
|
|
12728
12708
|
sdkNamespace: "evidence",
|
|
12729
12709
|
sdkMethod: "listEvidence",
|
|
12730
12710
|
summary: "List evidence for a topic.",
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
functionName: "getByTopic",
|
|
12734
|
-
kind: "query",
|
|
12735
|
-
inputProjection: evidenceTopicInput
|
|
12711
|
+
gateway: {
|
|
12712
|
+
handler: "evidence.list"
|
|
12736
12713
|
}
|
|
12737
12714
|
}),
|
|
12738
12715
|
surfaceContract({
|
|
@@ -12967,11 +12944,8 @@ var questionsContracts = [
|
|
|
12967
12944
|
sdkNamespace: "questions",
|
|
12968
12945
|
sdkMethod: "listQuestions",
|
|
12969
12946
|
summary: "List questions for a topic.",
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
functionName: "getByTopic",
|
|
12973
|
-
kind: "query",
|
|
12974
|
-
inputProjection: questionTopicInput
|
|
12947
|
+
gateway: {
|
|
12948
|
+
handler: "questions.list"
|
|
12975
12949
|
}
|
|
12976
12950
|
}),
|
|
12977
12951
|
surfaceContract({
|