@lucern/contracts 0.3.0-alpha.15 → 0.3.0-alpha.17
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/CHANGELOG.md +6 -0
- package/dist/auth-context.contract.js +1 -1
- package/dist/auth-context.contract.js.map +1 -1
- package/dist/auth-session.contract.js +1 -1
- package/dist/auth-session.contract.js.map +1 -1
- package/dist/auth.contract.js +1 -1
- package/dist/auth.contract.js.map +1 -1
- package/dist/function-registry/beliefs.d.ts +1 -1
- package/dist/function-registry/beliefs.js +7 -19
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +1 -1
- package/dist/function-registry/coding.js +4 -4
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +1 -1
- package/dist/function-registry/context.js +4 -4
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +1 -1
- package/dist/function-registry/contracts.js +4 -4
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +1 -1
- package/dist/function-registry/coordination.js +4 -4
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +1 -1
- package/dist/function-registry/edges.js +4 -4
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +1 -1
- package/dist/function-registry/evidence.js +6 -15
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +1 -1
- package/dist/function-registry/graph.js +4 -4
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.js +4 -4
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +1 -1
- package/dist/function-registry/identity.js +7 -10
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.js +4 -4
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +1 -1
- package/dist/function-registry/judgments.js +4 -4
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +1 -1
- package/dist/function-registry/legacy.js +4 -4
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +1 -1
- package/dist/function-registry/lenses.js +4 -4
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/nodes.d.ts +1 -1
- package/dist/function-registry/nodes.js +4 -4
- package/dist/function-registry/nodes.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +1 -1
- package/dist/function-registry/ontologies.js +4 -4
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +1 -1
- package/dist/function-registry/pipeline.js +4 -4
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +1 -1
- package/dist/function-registry/questions.js +6 -9
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +1 -1
- package/dist/function-registry/tasks.js +4 -4
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +1 -1
- package/dist/function-registry/topics.js +4 -4
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +1 -1
- package/dist/function-registry/worktrees.d.ts +1 -1
- package/dist/function-registry/worktrees.js +20 -4
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/gateway.contract.d.ts +1 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +2 -2
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.js +300 -6
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -1
- package/dist/index.js +364 -16
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +41 -3
- package/dist/infisical-runtime.contract.js +49 -3
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +41 -3
- package/dist/manifests/infisical-runtime-manifest.js +49 -3
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/permit-principal-projection.contract.js +8 -1
- package/dist/permit-principal-projection.contract.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.js +2 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +10 -5
- package/dist/schemas/manifest.js +2 -1
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +2 -1
- package/dist/schemas/tables/mc/tenant.js +2 -1
- package/dist/schemas/tables/mc/tenant.js.map +1 -1
- package/dist/sdk-tools.contract.js +4 -4
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tool-contracts.js +4 -4
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -1
|
@@ -84,7 +84,7 @@ type FunctionConvexTarget = {
|
|
|
84
84
|
outputProjection?: ContractOutputProjection;
|
|
85
85
|
};
|
|
86
86
|
type FunctionGatewayTarget = {
|
|
87
|
-
handler: "tasks.create" | "tasks.list" | "tasks.update" | "tasks.complete";
|
|
87
|
+
handler: "identity.whoami" | "beliefs.list" | "evidence.list" | "questions.list" | "tasks.create" | "tasks.list" | "tasks.update" | "tasks.complete";
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
declare const evidenceContracts: readonly [{
|
|
@@ -2328,7 +2328,7 @@ var IDENTITY_WHOAMI = {
|
|
|
2328
2328
|
response: {
|
|
2329
2329
|
description: "Canonical identity summary for the current session",
|
|
2330
2330
|
fields: {
|
|
2331
|
-
principalId: "string \u2014 canonical
|
|
2331
|
+
principalId: "string \u2014 canonical principal identifier; for humans this is the Clerk user_... ID",
|
|
2332
2332
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
2333
2333
|
tenantId: "string | undefined \u2014 resolved tenant scope",
|
|
2334
2334
|
workspaceId: "string | undefined \u2014 resolved workspace scope",
|
|
@@ -2342,7 +2342,7 @@ var IDENTITY_WHOAMI = {
|
|
|
2342
2342
|
};
|
|
2343
2343
|
var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
2344
2344
|
name: "resolve_interactive_principal",
|
|
2345
|
-
description: "Read the Permit-backed Lucern principal context for an authenticated Clerk user. Like `git config --get user.email` plus the repository ACL \u2014 resolves the
|
|
2345
|
+
description: "Read the Permit-backed Lucern principal context for an authenticated Clerk user. Like `git config --get user.email` plus the repository ACL \u2014 resolves the Clerk subject into tenant/workspace authorization context.",
|
|
2346
2346
|
parameters: {
|
|
2347
2347
|
clerkId: {
|
|
2348
2348
|
type: "string",
|
|
@@ -2365,7 +2365,7 @@ var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
|
2365
2365
|
response: {
|
|
2366
2366
|
description: "Permit-backed Lucern principal context for tenant SDK bootstrap",
|
|
2367
2367
|
fields: {
|
|
2368
|
-
principalId: "string \u2014 canonical
|
|
2368
|
+
principalId: "string \u2014 canonical Clerk user_... ID for human sessions",
|
|
2369
2369
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
2370
2370
|
clerkId: "string \u2014 authenticated Clerk subject alias",
|
|
2371
2371
|
tenantId: "string \u2014 resolved tenant scope",
|
|
@@ -3193,7 +3193,7 @@ var MANAGE_WRITE_POLICY = {
|
|
|
3193
3193
|
},
|
|
3194
3194
|
role: {
|
|
3195
3195
|
type: "string",
|
|
3196
|
-
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal'
|
|
3196
|
+
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal' or a Permit role key such as 'workspace_admin'."
|
|
3197
3197
|
},
|
|
3198
3198
|
permission: {
|
|
3199
3199
|
type: "string",
|
|
@@ -5151,12 +5151,6 @@ var evidenceIdInput = (input) => compactRecord({
|
|
|
5151
5151
|
insightId: input.insightId,
|
|
5152
5152
|
nodeId: input.nodeId ?? input.id ?? input.evidenceId
|
|
5153
5153
|
});
|
|
5154
|
-
var evidenceTopicInput = (input) => compactRecord({
|
|
5155
|
-
topicId: input.topicId,
|
|
5156
|
-
status: input.status,
|
|
5157
|
-
userId: input.userId,
|
|
5158
|
-
limit: input.limit
|
|
5159
|
-
});
|
|
5160
5154
|
var createEvidenceInput = (input, context) => {
|
|
5161
5155
|
const parsed = createEvidenceProjection.inputSchema.safeParse(input);
|
|
5162
5156
|
if (!parsed.success) {
|
|
@@ -5287,11 +5281,8 @@ var evidenceContracts = [
|
|
|
5287
5281
|
sdkNamespace: "evidence",
|
|
5288
5282
|
sdkMethod: "listEvidence",
|
|
5289
5283
|
summary: "List evidence for a topic.",
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
functionName: "getByTopic",
|
|
5293
|
-
kind: "query",
|
|
5294
|
-
inputProjection: evidenceTopicInput
|
|
5284
|
+
gateway: {
|
|
5285
|
+
handler: "evidence.list"
|
|
5295
5286
|
}
|
|
5296
5287
|
}),
|
|
5297
5288
|
surfaceContract({
|