@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/types.js
CHANGED
|
@@ -777,6 +777,7 @@ defineTable({
|
|
|
777
777
|
shape: z.object({
|
|
778
778
|
"tenantId": idOf("tenants"),
|
|
779
779
|
"workspaceId": idOf("workspaces").optional(),
|
|
780
|
+
"environment": z.enum(["dev", "staging", "prod"]).optional(),
|
|
780
781
|
"keyPrefix": z.enum(["luc", "stk"]),
|
|
781
782
|
"keyHash": z.string(),
|
|
782
783
|
"keyHint": z.string(),
|
|
@@ -6933,7 +6934,7 @@ function compactRecord2(input) {
|
|
|
6933
6934
|
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
6934
6935
|
);
|
|
6935
6936
|
}
|
|
6936
|
-
|
|
6937
|
+
defineProjection({
|
|
6937
6938
|
contractName: "list_beliefs",
|
|
6938
6939
|
inputSchema: listBeliefsInputSchema,
|
|
6939
6940
|
project: (input) => compactRecord2({
|
|
@@ -12237,11 +12238,8 @@ var identityContracts = [
|
|
|
12237
12238
|
sdkNamespace: "identity",
|
|
12238
12239
|
sdkMethod: "whoami",
|
|
12239
12240
|
summary: "Describe the current gateway principal.",
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
functionName: "whoami",
|
|
12243
|
-
kind: "query",
|
|
12244
|
-
inputProjection: withPrincipal
|
|
12241
|
+
gateway: {
|
|
12242
|
+
handler: "identity.whoami"
|
|
12245
12243
|
}
|
|
12246
12244
|
}),
|
|
12247
12245
|
surfaceContract({
|
|
@@ -12261,7 +12259,7 @@ var identityContracts = [
|
|
|
12261
12259
|
providerProjectId: z.string().min(1).optional()
|
|
12262
12260
|
}),
|
|
12263
12261
|
convex: {
|
|
12264
|
-
module: "
|
|
12262
|
+
module: "platform",
|
|
12265
12263
|
functionName: "resolveInteractivePrincipal",
|
|
12266
12264
|
kind: "query"
|
|
12267
12265
|
}
|
|
@@ -12345,15 +12343,6 @@ var beliefLookupInput = (input) => compactRecord4({
|
|
|
12345
12343
|
var beliefNodeInput = (input) => compactRecord4({
|
|
12346
12344
|
nodeId: input.nodeId ?? input.id ?? input.beliefId
|
|
12347
12345
|
});
|
|
12348
|
-
var beliefTopicInput = (input) => {
|
|
12349
|
-
const parsed = listBeliefsProjection.inputSchema.safeParse(input);
|
|
12350
|
-
if (!parsed.success) {
|
|
12351
|
-
throw new Error(
|
|
12352
|
-
`list_beliefs projection input rejected: ${parsed.error.message}`
|
|
12353
|
-
);
|
|
12354
|
-
}
|
|
12355
|
-
return compactRecord4(listBeliefsProjection.project(parsed.data));
|
|
12356
|
-
};
|
|
12357
12346
|
var createBeliefInput = (input, context) => {
|
|
12358
12347
|
return withUserId(
|
|
12359
12348
|
compactRecord4({
|
|
@@ -12442,11 +12431,8 @@ var beliefsContracts = [
|
|
|
12442
12431
|
sdkNamespace: "beliefs",
|
|
12443
12432
|
sdkMethod: "listBeliefs",
|
|
12444
12433
|
summary: "List beliefs for a topic.",
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
functionName: "getByTopic",
|
|
12448
|
-
kind: "query",
|
|
12449
|
-
inputProjection: beliefTopicInput
|
|
12434
|
+
gateway: {
|
|
12435
|
+
handler: "beliefs.list"
|
|
12450
12436
|
},
|
|
12451
12437
|
args: listBeliefsInputSchema
|
|
12452
12438
|
}),
|
|
@@ -12631,12 +12617,6 @@ var evidenceIdInput = (input) => compactRecord4({
|
|
|
12631
12617
|
insightId: input.insightId,
|
|
12632
12618
|
nodeId: input.nodeId ?? input.id ?? input.evidenceId
|
|
12633
12619
|
});
|
|
12634
|
-
var evidenceTopicInput = (input) => compactRecord4({
|
|
12635
|
-
topicId: input.topicId,
|
|
12636
|
-
status: input.status,
|
|
12637
|
-
userId: input.userId,
|
|
12638
|
-
limit: input.limit
|
|
12639
|
-
});
|
|
12640
12620
|
var createEvidenceInput = (input, context) => {
|
|
12641
12621
|
const parsed = createEvidenceProjection.inputSchema.safeParse(input);
|
|
12642
12622
|
if (!parsed.success) {
|
|
@@ -12767,11 +12747,8 @@ var evidenceContracts = [
|
|
|
12767
12747
|
sdkNamespace: "evidence",
|
|
12768
12748
|
sdkMethod: "listEvidence",
|
|
12769
12749
|
summary: "List evidence for a topic.",
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
functionName: "getByTopic",
|
|
12773
|
-
kind: "query",
|
|
12774
|
-
inputProjection: evidenceTopicInput
|
|
12750
|
+
gateway: {
|
|
12751
|
+
handler: "evidence.list"
|
|
12775
12752
|
}
|
|
12776
12753
|
}),
|
|
12777
12754
|
surfaceContract({
|
|
@@ -13006,11 +12983,8 @@ var questionsContracts = [
|
|
|
13006
12983
|
sdkNamespace: "questions",
|
|
13007
12984
|
sdkMethod: "listQuestions",
|
|
13008
12985
|
summary: "List questions for a topic.",
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
functionName: "getByTopic",
|
|
13012
|
-
kind: "query",
|
|
13013
|
-
inputProjection: questionTopicInput
|
|
12986
|
+
gateway: {
|
|
12987
|
+
handler: "questions.list"
|
|
13014
12988
|
}
|
|
13015
12989
|
}),
|
|
13016
12990
|
surfaceContract({
|