@lucern/contracts 0.3.0-alpha.12 → 0.3.0-alpha.13
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/auth-context.contract.js +13 -1
- package/dist/auth-context.contract.js.map +1 -1
- package/dist/auth-session.contract.js +13 -1
- package/dist/auth-session.contract.js.map +1 -1
- package/dist/auth.contract.d.ts +1 -1
- package/dist/auth.contract.js +13 -1
- package/dist/auth.contract.js.map +1 -1
- package/dist/component-boundary.contract.js +1 -0
- package/dist/component-boundary.contract.js.map +1 -1
- package/dist/function-registry/beliefs.d.ts +10 -10
- package/dist/function-registry/beliefs.js +53 -2
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +6 -6
- package/dist/function-registry/coding.js +53 -2
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +3 -3
- package/dist/function-registry/context.js +53 -2
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +3 -3
- package/dist/function-registry/contracts.js +53 -2
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +9 -9
- package/dist/function-registry/coordination.js +53 -2
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +6 -6
- package/dist/function-registry/edges.js +53 -2
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +8 -8
- package/dist/function-registry/evidence.js +53 -2
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +15 -15
- package/dist/function-registry/graph.js +53 -2
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +2 -2
- package/dist/function-registry/helpers.js +53 -2
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +56 -16
- package/dist/function-registry/identity.js +75 -4
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +1 -1
- package/dist/function-registry/index.js +53 -2
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +2 -2
- package/dist/function-registry/judgments.js +53 -2
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +1 -1
- package/dist/function-registry/legacy.js +53 -2
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +4 -4
- package/dist/function-registry/lenses.js +53 -2
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +3 -3
- package/dist/function-registry/manifest.js +1 -0
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.d.ts +8 -8
- package/dist/function-registry/nodes.js +53 -2
- package/dist/function-registry/nodes.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +11 -11
- package/dist/function-registry/ontologies.js +53 -2
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +3 -3
- package/dist/function-registry/pipeline.js +53 -2
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +12 -12
- package/dist/function-registry/questions.js +53 -2
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +4 -4
- package/dist/function-registry/tasks.js +53 -2
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +7 -7
- package/dist/function-registry/topics.js +53 -2
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +2 -2
- package/dist/function-registry/worktrees.d.ts +11 -11
- package/dist/function-registry/worktrees.js +53 -2
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/generated/convexSchemas.js +2 -1
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.js +111 -0
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -1
- package/dist/generated/schema-manifest.json +88 -3
- package/dist/generated/tableOwnership.d.ts +2 -1
- package/dist/generated/tableOwnership.js +2 -0
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +6 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +290 -20
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +18 -0
- package/dist/infisical-runtime.contract.js +21 -0
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +18 -0
- package/dist/manifests/infisical-runtime-manifest.js +21 -0
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/manifests/tenant-client-manifest.d.ts +8 -3
- package/dist/manifests/tenant-client-manifest.js +18 -1
- package/dist/manifests/tenant-client-manifest.js.map +1 -1
- package/dist/permit-principal-projection.contract.js +2 -3
- package/dist/permit-principal-projection.contract.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.js +33 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +75 -0
- package/dist/schemas/manifest.js +33 -0
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/controlPlane/accessControl.js +3 -0
- package/dist/schemas/tables/controlPlane/accessControl.js.map +1 -1
- package/dist/schemas/tables/kernel/events.d.ts +21 -0
- package/dist/schemas/tables/kernel/events.js +43 -0
- package/dist/schemas/tables/kernel/events.js.map +1 -0
- package/dist/{sdk-tools.contract-BNklQDfB.d.ts → sdk-tools.contract-CKmSsrZ2.d.ts} +1 -1
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +45 -1
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +22 -2
- package/dist/tenant-bootstrap-seed.contract.js +15 -2
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.defaults.d.ts +1 -1
- package/dist/tenant-bootstrap-seed.defaults.js +30 -12
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -1
- package/dist/tenant-client.contract.d.ts +8 -3
- package/dist/tenant-client.contract.js +18 -1
- package/dist/tenant-client.contract.js.map +1 -1
- package/dist/{tool-contracts-BevD9Ho2.d.ts → tool-contracts-C_xvM9q2.d.ts} +4 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +46 -2
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -1
|
@@ -193,6 +193,21 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
193
193
|
lockedBy: zod.ZodString;
|
|
194
194
|
lockedAt: zod.ZodNumber;
|
|
195
195
|
createdAt: zod.ZodNumber;
|
|
196
|
+
}>, TableContract<{
|
|
197
|
+
eventId: zod.ZodString;
|
|
198
|
+
type: zod.ZodString;
|
|
199
|
+
version: zod.ZodString;
|
|
200
|
+
timestamp: zod.ZodNumber;
|
|
201
|
+
tenantId: zod.ZodOptional<zod.ZodString>;
|
|
202
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
203
|
+
topicId: zod.ZodString;
|
|
204
|
+
resourceId: zod.ZodString;
|
|
205
|
+
resourceType: zod.ZodString;
|
|
206
|
+
actorId: zod.ZodString;
|
|
207
|
+
actorType: zod.ZodEnum<["human", "agent", "service"]>;
|
|
208
|
+
data: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
209
|
+
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
210
|
+
expiresAt: zod.ZodNumber;
|
|
196
211
|
}>, TableContract<{
|
|
197
212
|
sessionId: ConvexIdSchema<"deliberationSessions">;
|
|
198
213
|
topicId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -5516,6 +5531,21 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
5516
5531
|
lockedBy: zod.ZodString;
|
|
5517
5532
|
lockedAt: zod.ZodNumber;
|
|
5518
5533
|
createdAt: zod.ZodNumber;
|
|
5534
|
+
}>, TableContract<{
|
|
5535
|
+
eventId: zod.ZodString;
|
|
5536
|
+
type: zod.ZodString;
|
|
5537
|
+
version: zod.ZodString;
|
|
5538
|
+
timestamp: zod.ZodNumber;
|
|
5539
|
+
tenantId: zod.ZodOptional<zod.ZodString>;
|
|
5540
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
5541
|
+
topicId: zod.ZodString;
|
|
5542
|
+
resourceId: zod.ZodString;
|
|
5543
|
+
resourceType: zod.ZodString;
|
|
5544
|
+
actorId: zod.ZodString;
|
|
5545
|
+
actorType: zod.ZodEnum<["human", "agent", "service"]>;
|
|
5546
|
+
data: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
5547
|
+
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
5548
|
+
expiresAt: zod.ZodNumber;
|
|
5519
5549
|
}>, TableContract<{
|
|
5520
5550
|
sessionId: ConvexIdSchema<"deliberationSessions">;
|
|
5521
5551
|
topicId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -10840,6 +10870,21 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
10840
10870
|
lockedBy: zod.ZodString;
|
|
10841
10871
|
lockedAt: zod.ZodNumber;
|
|
10842
10872
|
createdAt: zod.ZodNumber;
|
|
10873
|
+
}>, TableContract<{
|
|
10874
|
+
eventId: zod.ZodString;
|
|
10875
|
+
type: zod.ZodString;
|
|
10876
|
+
version: zod.ZodString;
|
|
10877
|
+
timestamp: zod.ZodNumber;
|
|
10878
|
+
tenantId: zod.ZodOptional<zod.ZodString>;
|
|
10879
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
10880
|
+
topicId: zod.ZodString;
|
|
10881
|
+
resourceId: zod.ZodString;
|
|
10882
|
+
resourceType: zod.ZodString;
|
|
10883
|
+
actorId: zod.ZodString;
|
|
10884
|
+
actorType: zod.ZodEnum<["human", "agent", "service"]>;
|
|
10885
|
+
data: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
10886
|
+
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
10887
|
+
expiresAt: zod.ZodNumber;
|
|
10843
10888
|
}>, TableContract<{
|
|
10844
10889
|
sessionId: ConvexIdSchema<"deliberationSessions">;
|
|
10845
10890
|
topicId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -16427,6 +16472,21 @@ declare function listTableContractsByName(name: string): (TableContract<{
|
|
|
16427
16472
|
metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
16428
16473
|
traceId: zod.ZodOptional<zod.ZodString>;
|
|
16429
16474
|
createdAt: zod.ZodNumber;
|
|
16475
|
+
}> | TableContract<{
|
|
16476
|
+
eventId: zod.ZodString;
|
|
16477
|
+
type: zod.ZodString;
|
|
16478
|
+
version: zod.ZodString;
|
|
16479
|
+
timestamp: zod.ZodNumber;
|
|
16480
|
+
tenantId: zod.ZodOptional<zod.ZodString>;
|
|
16481
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
16482
|
+
topicId: zod.ZodString;
|
|
16483
|
+
resourceId: zod.ZodString;
|
|
16484
|
+
resourceType: zod.ZodString;
|
|
16485
|
+
actorId: zod.ZodString;
|
|
16486
|
+
actorType: zod.ZodEnum<["human", "agent", "service"]>;
|
|
16487
|
+
data: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
16488
|
+
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
16489
|
+
expiresAt: zod.ZodNumber;
|
|
16430
16490
|
}> | TableContract<{
|
|
16431
16491
|
beliefId: zod.ZodString;
|
|
16432
16492
|
belief: zod.ZodNumber;
|
|
@@ -21747,6 +21807,21 @@ declare function getTableContract(name: string, component?: string): TableContra
|
|
|
21747
21807
|
metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
21748
21808
|
traceId: zod.ZodOptional<zod.ZodString>;
|
|
21749
21809
|
createdAt: zod.ZodNumber;
|
|
21810
|
+
}> | TableContract<{
|
|
21811
|
+
eventId: zod.ZodString;
|
|
21812
|
+
type: zod.ZodString;
|
|
21813
|
+
version: zod.ZodString;
|
|
21814
|
+
timestamp: zod.ZodNumber;
|
|
21815
|
+
tenantId: zod.ZodOptional<zod.ZodString>;
|
|
21816
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
21817
|
+
topicId: zod.ZodString;
|
|
21818
|
+
resourceId: zod.ZodString;
|
|
21819
|
+
resourceType: zod.ZodString;
|
|
21820
|
+
actorId: zod.ZodString;
|
|
21821
|
+
actorType: zod.ZodEnum<["human", "agent", "service"]>;
|
|
21822
|
+
data: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
21823
|
+
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
21824
|
+
expiresAt: zod.ZodNumber;
|
|
21750
21825
|
}> | TableContract<{
|
|
21751
21826
|
beliefId: zod.ZodString;
|
|
21752
21827
|
belief: zod.ZodNumber;
|
package/dist/schemas/manifest.js
CHANGED
|
@@ -486,6 +486,35 @@ var systemLogs = defineTable({
|
|
|
486
486
|
{ kind: "index", name: "by_source", columns: ["source"] }
|
|
487
487
|
]
|
|
488
488
|
});
|
|
489
|
+
var domainEvents = defineTable({
|
|
490
|
+
name: "domainEvents",
|
|
491
|
+
component: "kernel",
|
|
492
|
+
category: "events",
|
|
493
|
+
shape: z.object({
|
|
494
|
+
"eventId": z.string(),
|
|
495
|
+
"type": z.string(),
|
|
496
|
+
"version": z.string(),
|
|
497
|
+
"timestamp": z.number(),
|
|
498
|
+
"tenantId": z.string().optional(),
|
|
499
|
+
"workspaceId": z.string().optional(),
|
|
500
|
+
"topicId": z.string(),
|
|
501
|
+
"resourceId": z.string(),
|
|
502
|
+
"resourceType": z.string(),
|
|
503
|
+
"actorId": z.string(),
|
|
504
|
+
"actorType": z.enum(["human", "agent", "service"]),
|
|
505
|
+
"data": z.record(z.any()),
|
|
506
|
+
"correlationId": z.string().optional(),
|
|
507
|
+
"expiresAt": z.number()
|
|
508
|
+
}),
|
|
509
|
+
indices: [
|
|
510
|
+
{ kind: "index", name: "by_eventId", columns: ["eventId"] },
|
|
511
|
+
{ kind: "index", name: "by_topic_timestamp", columns: ["topicId", "timestamp"] },
|
|
512
|
+
{ kind: "index", name: "by_tenant_workspace_timestamp", columns: ["tenantId", "workspaceId", "timestamp"] },
|
|
513
|
+
{ kind: "index", name: "by_type_timestamp", columns: ["type", "timestamp"] },
|
|
514
|
+
{ kind: "index", name: "by_resource", columns: ["resourceType", "resourceId", "timestamp"] },
|
|
515
|
+
{ kind: "index", name: "by_expiresAt", columns: ["expiresAt"] }
|
|
516
|
+
]
|
|
517
|
+
});
|
|
489
518
|
var beliefConfidence = defineTable({
|
|
490
519
|
name: "beliefConfidence",
|
|
491
520
|
component: "kernel",
|
|
@@ -3901,7 +3930,10 @@ var permitPrincipalAliases = defineTable({
|
|
|
3901
3930
|
}),
|
|
3902
3931
|
indices: [
|
|
3903
3932
|
{ kind: "index", name: "by_principalId", columns: ["principalId"] },
|
|
3933
|
+
{ kind: "index", name: "by_provider_subject", columns: ["provider", "providerSubjectId"] },
|
|
3934
|
+
{ kind: "index", name: "by_provider_project_subject", columns: ["provider", "providerProjectId", "providerSubjectId"] },
|
|
3904
3935
|
{ kind: "index", name: "by_tenant_provider_subject", columns: ["tenantId", "provider", "providerSubjectId"] },
|
|
3936
|
+
{ kind: "index", name: "by_tenant_provider_project_subject", columns: ["tenantId", "provider", "providerProjectId", "providerSubjectId"] },
|
|
3905
3937
|
{
|
|
3906
3938
|
kind: "index",
|
|
3907
3939
|
name: "by_tenant_provider_alias",
|
|
@@ -5110,6 +5142,7 @@ var KERNEL_TABLE_CONTRACTS = [
|
|
|
5110
5142
|
decisionParticipants,
|
|
5111
5143
|
decisionRiskLedger,
|
|
5112
5144
|
decisionSnapshots,
|
|
5145
|
+
domainEvents,
|
|
5113
5146
|
deliberationContributions,
|
|
5114
5147
|
deliberationSessions,
|
|
5115
5148
|
stakeholderGroups,
|