@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/outbox.js
CHANGED
|
@@ -829,6 +829,7 @@ defineTable({
|
|
|
829
829
|
shape: z.object({
|
|
830
830
|
"tenantId": idOf("tenants"),
|
|
831
831
|
"workspaceId": idOf("workspaces").optional(),
|
|
832
|
+
"environment": z.enum(["dev", "staging", "prod"]).optional(),
|
|
832
833
|
"keyPrefix": z.enum(["luc", "stk"]),
|
|
833
834
|
"keyHash": z.string(),
|
|
834
835
|
"keyHint": z.string(),
|
|
@@ -6985,7 +6986,7 @@ function compactRecord2(input) {
|
|
|
6985
6986
|
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
6986
6987
|
);
|
|
6987
6988
|
}
|
|
6988
|
-
|
|
6989
|
+
defineProjection({
|
|
6989
6990
|
contractName: "list_beliefs",
|
|
6990
6991
|
inputSchema: listBeliefsInputSchema,
|
|
6991
6992
|
project: (input) => compactRecord2({
|
|
@@ -12289,11 +12290,8 @@ var identityContracts = [
|
|
|
12289
12290
|
sdkNamespace: "identity",
|
|
12290
12291
|
sdkMethod: "whoami",
|
|
12291
12292
|
summary: "Describe the current gateway principal.",
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
functionName: "whoami",
|
|
12295
|
-
kind: "query",
|
|
12296
|
-
inputProjection: withPrincipal
|
|
12293
|
+
gateway: {
|
|
12294
|
+
handler: "identity.whoami"
|
|
12297
12295
|
}
|
|
12298
12296
|
}),
|
|
12299
12297
|
surfaceContract({
|
|
@@ -12313,7 +12311,7 @@ var identityContracts = [
|
|
|
12313
12311
|
providerProjectId: z.string().min(1).optional()
|
|
12314
12312
|
}),
|
|
12315
12313
|
convex: {
|
|
12316
|
-
module: "
|
|
12314
|
+
module: "platform",
|
|
12317
12315
|
functionName: "resolveInteractivePrincipal",
|
|
12318
12316
|
kind: "query"
|
|
12319
12317
|
}
|
|
@@ -12397,15 +12395,6 @@ var beliefLookupInput = (input) => compactRecord4({
|
|
|
12397
12395
|
var beliefNodeInput = (input) => compactRecord4({
|
|
12398
12396
|
nodeId: input.nodeId ?? input.id ?? input.beliefId
|
|
12399
12397
|
});
|
|
12400
|
-
var beliefTopicInput = (input) => {
|
|
12401
|
-
const parsed = listBeliefsProjection.inputSchema.safeParse(input);
|
|
12402
|
-
if (!parsed.success) {
|
|
12403
|
-
throw new Error(
|
|
12404
|
-
`list_beliefs projection input rejected: ${parsed.error.message}`
|
|
12405
|
-
);
|
|
12406
|
-
}
|
|
12407
|
-
return compactRecord4(listBeliefsProjection.project(parsed.data));
|
|
12408
|
-
};
|
|
12409
12398
|
var createBeliefInput = (input, context) => {
|
|
12410
12399
|
return withUserId(
|
|
12411
12400
|
compactRecord4({
|
|
@@ -12494,11 +12483,8 @@ var beliefsContracts = [
|
|
|
12494
12483
|
sdkNamespace: "beliefs",
|
|
12495
12484
|
sdkMethod: "listBeliefs",
|
|
12496
12485
|
summary: "List beliefs for a topic.",
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
functionName: "getByTopic",
|
|
12500
|
-
kind: "query",
|
|
12501
|
-
inputProjection: beliefTopicInput
|
|
12486
|
+
gateway: {
|
|
12487
|
+
handler: "beliefs.list"
|
|
12502
12488
|
},
|
|
12503
12489
|
args: listBeliefsInputSchema
|
|
12504
12490
|
}),
|
|
@@ -12683,12 +12669,6 @@ var evidenceIdInput = (input) => compactRecord4({
|
|
|
12683
12669
|
insightId: input.insightId,
|
|
12684
12670
|
nodeId: input.nodeId ?? input.id ?? input.evidenceId
|
|
12685
12671
|
});
|
|
12686
|
-
var evidenceTopicInput = (input) => compactRecord4({
|
|
12687
|
-
topicId: input.topicId,
|
|
12688
|
-
status: input.status,
|
|
12689
|
-
userId: input.userId,
|
|
12690
|
-
limit: input.limit
|
|
12691
|
-
});
|
|
12692
12672
|
var createEvidenceInput = (input, context) => {
|
|
12693
12673
|
const parsed = createEvidenceProjection.inputSchema.safeParse(input);
|
|
12694
12674
|
if (!parsed.success) {
|
|
@@ -12819,11 +12799,8 @@ var evidenceContracts = [
|
|
|
12819
12799
|
sdkNamespace: "evidence",
|
|
12820
12800
|
sdkMethod: "listEvidence",
|
|
12821
12801
|
summary: "List evidence for a topic.",
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
functionName: "getByTopic",
|
|
12825
|
-
kind: "query",
|
|
12826
|
-
inputProjection: evidenceTopicInput
|
|
12802
|
+
gateway: {
|
|
12803
|
+
handler: "evidence.list"
|
|
12827
12804
|
}
|
|
12828
12805
|
}),
|
|
12829
12806
|
surfaceContract({
|
|
@@ -13058,11 +13035,8 @@ var questionsContracts = [
|
|
|
13058
13035
|
sdkNamespace: "questions",
|
|
13059
13036
|
sdkMethod: "listQuestions",
|
|
13060
13037
|
summary: "List questions for a topic.",
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
functionName: "getByTopic",
|
|
13064
|
-
kind: "query",
|
|
13065
|
-
inputProjection: questionTopicInput
|
|
13038
|
+
gateway: {
|
|
13039
|
+
handler: "questions.list"
|
|
13066
13040
|
}
|
|
13067
13041
|
}),
|
|
13068
13042
|
surfaceContract({
|