@lucern/contracts 0.3.0-alpha.1 → 0.3.0-alpha.11
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 +4 -0
- package/dist/api-enums.contract.d.ts +5 -3
- package/dist/api-enums.contract.js +14 -12
- package/dist/api-enums.contract.js.map +1 -1
- package/dist/component-boundary.contract.d.ts +14 -0
- package/dist/component-boundary.contract.js +174 -0
- package/dist/component-boundary.contract.js.map +1 -0
- package/dist/component-host-boundary.contract.d.ts +46 -0
- package/dist/component-host-boundary.contract.js +60 -0
- package/dist/component-host-boundary.contract.js.map +1 -0
- package/dist/context-pack.contract.d.ts +5 -3
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/{defineTable-CBQ03FXl.d.ts → defineTable-t1wr5wgn.d.ts} +1 -1
- package/dist/{dsl-BgpoVOVQ.d.ts → dsl-DVPthQGY.d.ts} +2 -2
- package/dist/dsl.d.ts +2 -2
- package/dist/dsl.js +1 -4
- package/dist/dsl.js.map +1 -1
- package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +133 -0
- package/dist/function-registry/beliefs.d.ts +54 -41
- package/dist/function-registry/beliefs.js +759 -38
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +9 -0
- package/dist/function-registry/coding.js +811 -39
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +19 -13
- package/dist/function-registry/context.js +750 -42
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +6 -0
- package/dist/function-registry/contracts.js +715 -35
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +12 -0
- package/dist/function-registry/coordination.js +715 -35
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +165 -0
- package/dist/function-registry/edges.js +923 -67
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +44 -33
- package/dist/function-registry/evidence.js +769 -47
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +149 -53
- package/dist/function-registry/graph.js +831 -42
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +6 -3
- package/dist/function-registry/helpers.js +716 -36
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +6 -0
- package/dist/function-registry/identity.js +715 -35
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +5 -3
- package/dist/function-registry/index.js +722 -39
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +14 -9
- package/dist/function-registry/judgments.js +727 -38
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +4 -0
- package/dist/function-registry/legacy.js +715 -35
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +24 -17
- package/dist/function-registry/lenses.js +738 -38
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +6 -6
- package/dist/function-registry/manifest.js +18 -2
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.d.ts +412 -0
- package/dist/function-registry/nodes.js +5303 -0
- package/dist/function-registry/nodes.js.map +1 -0
- package/dist/function-registry/ontologies.d.ts +59 -45
- package/dist/function-registry/ontologies.js +733 -41
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +19 -13
- package/dist/function-registry/pipeline.js +724 -38
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +64 -49
- package/dist/function-registry/questions.js +812 -43
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +24 -17
- package/dist/function-registry/tasks.js +776 -44
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +109 -21
- package/dist/function-registry/topics.js +797 -39
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +6 -2
- package/dist/function-registry/worktrees.d.ts +94 -41
- package/dist/function-registry/worktrees.js +854 -47
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/function-registry-input-audit.d.ts +13 -0
- package/dist/function-registry-input-audit.js +166 -0
- package/dist/function-registry-input-audit.js.map +1 -0
- package/dist/gateway.contract.d.ts +5 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.d.ts +3 -3
- package/dist/generated/convexSchemas.js +38 -18
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.d.ts +70 -0
- package/dist/generated/infisicalRuntimeEnv.js +26572 -0
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -0
- package/dist/generated/lucernGatewayEnv.d.ts +17 -0
- package/dist/generated/lucernGatewayEnv.js +38 -0
- package/dist/generated/lucernGatewayEnv.js.map +1 -0
- package/dist/generated/lucernWebPublicEnv.d.ts +26 -0
- package/dist/generated/lucernWebPublicEnv.js +32 -0
- package/dist/generated/lucernWebPublicEnv.js.map +1 -0
- package/dist/generated/lucernWebServerEnv.d.ts +33 -0
- package/dist/generated/lucernWebServerEnv.js +51 -0
- package/dist/generated/lucernWebServerEnv.js.map +1 -0
- package/dist/generated/schema-manifest.json +1199 -138
- package/dist/generated/tableOwnership.d.ts +47 -27
- package/dist/generated/tableOwnership.js +66 -26
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +62 -8
- package/dist/graph-intelligence.contract.d.ts +506 -0
- package/dist/graph-intelligence.contract.js +595 -0
- package/dist/graph-intelligence.contract.js.map +1 -0
- package/dist/graph-types/index.d.ts +5 -1
- package/dist/graph-types/index.js +15 -4
- package/dist/graph-types/index.js.map +1 -1
- package/dist/index-CM1Pl_vI.d.ts +28 -0
- package/dist/index.d.ts +29 -414
- package/dist/index.js +34791 -1088
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +1768 -0
- package/dist/infisical-runtime.contract.js +3093 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- package/dist/lens-filter.contract.js +4 -3
- package/dist/lens-filter.contract.js.map +1 -1
- package/dist/lens-workflow.contract.js +4 -3
- package/dist/lens-workflow.contract.js.map +1 -1
- package/dist/manifests/edge-policy-manifest.d.ts +2 -0
- package/dist/manifests/edge-policy-manifest.data.d.ts +13 -0
- package/dist/manifests/edge-policy-manifest.data.js +26 -0
- package/dist/manifests/edge-policy-manifest.data.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.js +92 -0
- package/dist/manifests/edge-policy-manifest.js.map +1 -0
- package/dist/manifests/infisical-runtime-manifest.d.ts +1672 -0
- package/dist/manifests/infisical-runtime-manifest.js +2948 -0
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -0
- package/dist/manifests/invariant-manifest.d.ts +65 -0
- package/dist/manifests/invariant-manifest.js +18 -0
- package/dist/manifests/invariant-manifest.js.map +1 -0
- package/dist/manifests/invariants/ast-utils.d.ts +14 -0
- package/dist/manifests/invariants/ast-utils.js +54 -0
- package/dist/manifests/invariants/ast-utils.js.map +1 -0
- package/dist/manifests/invariants/index.d.ts +15 -0
- package/dist/manifests/invariants/index.js +183 -0
- package/dist/manifests/invariants/index.js.map +1 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +12 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js +94 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +1 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +12 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js +99 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +1 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +12 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +42 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +1 -0
- package/dist/manifests/tenant-client-manifest.d.ts +322 -0
- package/dist/manifests/tenant-client-manifest.js +432 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -0
- package/dist/mcp-gateway-boundary.contract.d.ts +201 -0
- package/dist/mcp-gateway-boundary.contract.js +45 -0
- package/dist/mcp-gateway-boundary.contract.js.map +1 -0
- package/dist/projections/check-convex-args-shape.d.ts +3 -0
- package/dist/projections/check-convex-args-shape.js +403 -0
- package/dist/projections/check-convex-args-shape.js.map +1 -0
- package/dist/projections/create-evidence.projection.d.ts +176 -0
- package/dist/projections/create-evidence.projection.js +130 -0
- package/dist/projections/create-evidence.projection.js.map +1 -0
- package/dist/projections/index.d.ts +102 -0
- package/dist/projections/index.js +352 -0
- package/dist/projections/index.js.map +1 -0
- package/dist/projections/list-beliefs.projection.d.ts +36 -0
- package/dist/projections/list-beliefs.projection.js +54 -0
- package/dist/projections/list-beliefs.projection.js.map +1 -0
- package/dist/projections/list-tasks.projection.d.ts +44 -0
- package/dist/projections/list-tasks.projection.js +57 -0
- package/dist/projections/list-tasks.projection.js.map +1 -0
- package/dist/projections/modulate-confidence.projection.d.ts +219 -0
- package/dist/projections/modulate-confidence.projection.js +148 -0
- package/dist/projections/modulate-confidence.projection.js.map +1 -0
- package/dist/projections/projection-dsl.d.ts +11 -0
- package/dist/projections/projection-dsl.js +8 -0
- package/dist/projections/projection-dsl.js.map +1 -0
- package/dist/proof-attestation.json +45 -0
- package/dist/schema-helpers/enumValidation.js +2 -5
- package/dist/schema-helpers/enumValidation.js.map +1 -1
- package/dist/schema-helpers/spine/nodes/decision.js +2 -1
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
- package/dist/schemas/component-table-manifest.d.ts +6 -6
- package/dist/schemas/component-table-manifest.js +2 -2
- package/dist/schemas/component-table-manifest.js.map +1 -1
- package/dist/schemas/enums.d.ts +5 -2
- package/dist/schemas/enums.js +5 -2
- package/dist/schemas/enums.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/index.js +1129 -139
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +2979 -949
- package/dist/schemas/manifest.js +1127 -137
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/controlPlane/accessControl.d.ts +260 -0
- package/dist/schemas/tables/controlPlane/accessControl.js +653 -0
- package/dist/schemas/tables/controlPlane/accessControl.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/agent.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/agent.js +3 -3
- package/dist/schemas/tables/controlPlane/agent.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/epistemic.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/epistemic.js +3 -3
- package/dist/schemas/tables/controlPlane/epistemic.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/model.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/model.js +6 -6
- package/dist/schemas/tables/controlPlane/model.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/platform.d.ts +11 -11
- package/dist/schemas/tables/{identity → controlPlane}/platform.js +18 -18
- package/dist/schemas/tables/controlPlane/platform.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/project.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/project.js +3 -3
- package/dist/schemas/tables/controlPlane/project.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/user.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/user.js +3 -3
- package/dist/schemas/tables/controlPlane/user.js.map +1 -0
- package/dist/schemas/tables/kernel/config.d.ts +1 -1
- package/dist/schemas/tables/kernel/config.js.map +1 -1
- package/dist/schemas/tables/kernel/coordination.d.ts +1 -1
- package/dist/schemas/tables/kernel/coordination.js.map +1 -1
- package/dist/schemas/tables/kernel/decision.d.ts +1 -1
- package/dist/schemas/tables/kernel/decision.js.map +1 -1
- package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
- package/dist/schemas/tables/kernel/embedding.js.map +1 -1
- package/dist/schemas/tables/kernel/epistemic.d.ts +7 -7
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
- package/dist/schemas/tables/kernel/idempotency.d.ts +1 -1
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
- package/dist/schemas/tables/kernel/infra.d.ts +5 -5
- package/dist/schemas/tables/kernel/infra.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +11 -11
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
- package/dist/schemas/tables/kernel/lens.d.ts +5 -5
- package/dist/schemas/tables/kernel/lens.js.map +1 -1
- package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
- package/dist/schemas/tables/kernel/ontology.js.map +1 -1
- package/dist/schemas/tables/kernel/platform.d.ts +13 -13
- package/dist/schemas/tables/kernel/platform.js.map +1 -1
- package/dist/schemas/tables/kernel/spine.d.ts +5 -4
- package/dist/schemas/tables/kernel/spine.js +6 -2
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +43 -43
- package/dist/schemas/tables/kernel/task.js.map +1 -1
- package/dist/schemas/tables/kernel/topic.d.ts +1 -1
- package/dist/schemas/tables/kernel/topic.js +5 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
- package/dist/schemas/tables/kernel/workflow.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +55 -55
- package/dist/schemas/tables/kernel/worktree.js.map +1 -1
- package/dist/schemas/tables/mc/identity.d.ts +44 -4
- package/dist/schemas/tables/mc/identity.js +66 -1
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/methodology.d.ts +1 -1
- package/dist/schemas/tables/mc/methodology.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +21 -21
- package/dist/schemas/tables/mc/pack.js.map +1 -1
- package/dist/schemas/tables/mc/policy.d.ts +2 -2
- package/dist/schemas/tables/mc/policy.js +1 -1
- package/dist/schemas/tables/mc/policy.js.map +1 -1
- package/dist/schemas/tables/mc/registry.d.ts +5 -5
- package/dist/schemas/tables/mc/registry.js.map +1 -1
- package/dist/schemas/tables/mc/runtime.d.ts +109 -3
- package/dist/schemas/tables/mc/runtime.js +330 -104
- package/dist/schemas/tables/mc/runtime.js.map +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +3 -2
- package/dist/schemas/tables/mc/tenant.js +2 -1
- package/dist/schemas/tables/mc/tenant.js.map +1 -1
- package/dist/schemas/tables/mc/workspace.d.ts +28 -5
- package/dist/schemas/tables/mc/workspace.js +36 -2
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +2 -2
- package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-BNklQDfB.d.ts} +2 -2
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +672 -24
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1269 -0
- package/dist/tenant-bootstrap-seed.contract.js +751 -0
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -0
- package/dist/tenant-bootstrap-seed.defaults.d.ts +16 -0
- package/dist/tenant-bootstrap-seed.defaults.js +303 -0
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -0
- package/dist/tenant-client.contract.d.ts +349 -0
- package/dist/tenant-client.contract.js +488 -0
- package/dist/tenant-client.contract.js.map +1 -0
- package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-BevD9Ho2.d.ts} +36 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +673 -25
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +30 -1
- package/dist/index-CV-0_VWJ.d.ts +0 -25
- package/dist/schemas/tables/identity/agent.js.map +0 -1
- package/dist/schemas/tables/identity/epistemic.js.map +0 -1
- package/dist/schemas/tables/identity/model.js.map +0 -1
- package/dist/schemas/tables/identity/platform.js.map +0 -1
- package/dist/schemas/tables/identity/project.js.map +0 -1
- package/dist/schemas/tables/identity/user.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { T as TableContract } from '../../../defineTable-
|
|
2
|
+
import { T as TableContract } from '../../../defineTable-t1wr5wgn.js';
|
|
3
3
|
import { C as ConvexIdSchema } from '../../../idOf-DR8tkhQS.js';
|
|
4
4
|
|
|
5
5
|
declare const compatibilityShims: TableContract<{
|
|
@@ -41,6 +41,7 @@ declare const cutoverFlags: TableContract<{
|
|
|
41
41
|
declare const tenantDeploymentCredentials: TableContract<{
|
|
42
42
|
credentialRef: z.ZodString;
|
|
43
43
|
tenantId: ConvexIdSchema<"tenants">;
|
|
44
|
+
workspaceId: z.ZodOptional<ConvexIdSchema<"workspaces">>;
|
|
44
45
|
target: z.ZodEnum<["kernelDeployment", "appDeployment"]>;
|
|
45
46
|
environment: z.ZodEnum<["dev", "staging", "prod"]>;
|
|
46
47
|
encryptedDeployKey: z.ZodString;
|
|
@@ -57,9 +58,84 @@ declare const tenantDeploymentCredentials: TableContract<{
|
|
|
57
58
|
createdAt: z.ZodNumber;
|
|
58
59
|
updatedAt: z.ZodNumber;
|
|
59
60
|
}>;
|
|
61
|
+
declare const permitSyncStates: TableContract<{
|
|
62
|
+
syncKey: z.ZodString;
|
|
63
|
+
objectType: z.ZodEnum<["resource", "role", "resource_role", "resource_relation", "tenant", "workspace", "principal", "membership", "group", "resource_instance", "relationship_tuple", "role_assignment"]>;
|
|
64
|
+
objectId: z.ZodString;
|
|
65
|
+
tenantId: z.ZodOptional<ConvexIdSchema<"tenants">>;
|
|
66
|
+
workspaceId: z.ZodOptional<ConvexIdSchema<"workspaces">>;
|
|
67
|
+
principalId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
permitTenantKey: z.ZodOptional<z.ZodString>;
|
|
69
|
+
permitResourceType: z.ZodOptional<z.ZodString>;
|
|
70
|
+
permitResourceKey: z.ZodOptional<z.ZodString>;
|
|
71
|
+
desiredPayload: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
72
|
+
lastAppliedPayloadHash: z.ZodOptional<z.ZodString>;
|
|
73
|
+
status: z.ZodEnum<["pending", "synced", "error", "skipped"]>;
|
|
74
|
+
attemptCount: z.ZodNumber;
|
|
75
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
76
|
+
nextAttemptAt: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
lastSyncedAt: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
createdBy: z.ZodString;
|
|
79
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
80
|
+
createdAt: z.ZodNumber;
|
|
81
|
+
updatedAt: z.ZodNumber;
|
|
82
|
+
}>;
|
|
83
|
+
declare const secretSyncDriftReports: TableContract<{
|
|
84
|
+
reportId: z.ZodString;
|
|
85
|
+
source: z.ZodEnum<["infisical_manifest", "manual", "ci"]>;
|
|
86
|
+
generatedAt: z.ZodNumber;
|
|
87
|
+
recordedAt: z.ZodNumber;
|
|
88
|
+
recordedBy: z.ZodString;
|
|
89
|
+
status: z.ZodEnum<["in_sync", "drift", "exception", "blocked", "not_observed"]>;
|
|
90
|
+
reportHash: z.ZodString;
|
|
91
|
+
manifestHash: z.ZodOptional<z.ZodString>;
|
|
92
|
+
dryRunReceiptId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
appliedReceiptId: z.ZodOptional<z.ZodString>;
|
|
94
|
+
summary: z.ZodObject<{
|
|
95
|
+
totalPipelines: z.ZodNumber;
|
|
96
|
+
inSync: z.ZodNumber;
|
|
97
|
+
drift: z.ZodNumber;
|
|
98
|
+
exception: z.ZodNumber;
|
|
99
|
+
blocked: z.ZodNumber;
|
|
100
|
+
notObserved: z.ZodNumber;
|
|
101
|
+
missingKeys: z.ZodNumber;
|
|
102
|
+
valueDriftKeys: z.ZodNumber;
|
|
103
|
+
extraKeys: z.ZodNumber;
|
|
104
|
+
deniedConvexLeakage: z.ZodNumber;
|
|
105
|
+
approvedExceptions: z.ZodNumber;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
blocked: number;
|
|
108
|
+
drift: number;
|
|
109
|
+
exception: number;
|
|
110
|
+
totalPipelines: number;
|
|
111
|
+
inSync: number;
|
|
112
|
+
notObserved: number;
|
|
113
|
+
missingKeys: number;
|
|
114
|
+
valueDriftKeys: number;
|
|
115
|
+
extraKeys: number;
|
|
116
|
+
deniedConvexLeakage: number;
|
|
117
|
+
approvedExceptions: number;
|
|
118
|
+
}, {
|
|
119
|
+
blocked: number;
|
|
120
|
+
drift: number;
|
|
121
|
+
exception: number;
|
|
122
|
+
totalPipelines: number;
|
|
123
|
+
inSync: number;
|
|
124
|
+
notObserved: number;
|
|
125
|
+
missingKeys: number;
|
|
126
|
+
valueDriftKeys: number;
|
|
127
|
+
extraKeys: number;
|
|
128
|
+
deniedConvexLeakage: number;
|
|
129
|
+
approvedExceptions: number;
|
|
130
|
+
}>;
|
|
131
|
+
redactedReport: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
132
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
133
|
+
}>;
|
|
60
134
|
declare const controlPlaneTenantModelSlotBindings: TableContract<{
|
|
61
135
|
bindingId: z.ZodString;
|
|
62
136
|
tenantId: ConvexIdSchema<"tenants">;
|
|
137
|
+
workspaceId: z.ZodOptional<ConvexIdSchema<"workspaces">>;
|
|
138
|
+
environment: z.ZodOptional<z.ZodEnum<["dev", "staging", "prod"]>>;
|
|
63
139
|
providerId: z.ZodString;
|
|
64
140
|
modelSlotId: z.ZodString;
|
|
65
141
|
secretRef: z.ZodString;
|
|
@@ -75,9 +151,14 @@ declare const controlPlaneTenantModelSlotBindings: TableContract<{
|
|
|
75
151
|
declare const controlPlaneTenantProviderSecrets: TableContract<{
|
|
76
152
|
secretRef: z.ZodString;
|
|
77
153
|
tenantId: ConvexIdSchema<"tenants">;
|
|
154
|
+
workspaceId: z.ZodOptional<ConvexIdSchema<"workspaces">>;
|
|
155
|
+
environment: z.ZodOptional<z.ZodEnum<["dev", "staging", "prod"]>>;
|
|
78
156
|
providerId: z.ZodString;
|
|
79
157
|
label: z.ZodOptional<z.ZodString>;
|
|
80
|
-
encryptedSecret: z.ZodString
|
|
158
|
+
encryptedSecret: z.ZodOptional<z.ZodString>;
|
|
159
|
+
infisicalPath: z.ZodOptional<z.ZodString>;
|
|
160
|
+
infisicalSecretKey: z.ZodOptional<z.ZodString>;
|
|
161
|
+
infisicalProjectId: z.ZodOptional<z.ZodString>;
|
|
81
162
|
encryptionVersion: z.ZodString;
|
|
82
163
|
secretFingerprint: z.ZodString;
|
|
83
164
|
keyHint: z.ZodString;
|
|
@@ -115,5 +196,30 @@ declare const controlPlaneTenantProxyGatewayUsage: TableContract<{
|
|
|
115
196
|
createdAt: z.ZodNumber;
|
|
116
197
|
updatedAt: z.ZodNumber;
|
|
117
198
|
}>;
|
|
199
|
+
declare const controlPlaneTenantProxyTokenLeases: TableContract<{
|
|
200
|
+
leaseId: z.ZodString;
|
|
201
|
+
proxyTokenId: z.ZodString;
|
|
202
|
+
tenantId: ConvexIdSchema<"tenants">;
|
|
203
|
+
workspaceId: z.ZodOptional<ConvexIdSchema<"workspaces">>;
|
|
204
|
+
environment: z.ZodEnum<["dev", "staging", "prod"]>;
|
|
205
|
+
providerId: z.ZodString;
|
|
206
|
+
modelSlotId: z.ZodString;
|
|
207
|
+
bindingId: z.ZodString;
|
|
208
|
+
secretRef: z.ZodString;
|
|
209
|
+
sessionId: z.ZodString;
|
|
210
|
+
principalId: z.ZodString;
|
|
211
|
+
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
212
|
+
status: z.ZodEnum<["active", "revoked"]>;
|
|
213
|
+
expiresAt: z.ZodNumber;
|
|
214
|
+
renewedAt: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
revokedBy: z.ZodOptional<z.ZodString>;
|
|
217
|
+
revokeReason: z.ZodOptional<z.ZodString>;
|
|
218
|
+
permitDecisionLogId: z.ZodOptional<ConvexIdSchema<"policyDecisionLogs">>;
|
|
219
|
+
permitTraceId: z.ZodOptional<z.ZodString>;
|
|
220
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
221
|
+
createdAt: z.ZodNumber;
|
|
222
|
+
updatedAt: z.ZodNumber;
|
|
223
|
+
}>;
|
|
118
224
|
|
|
119
|
-
export { compatibilityShims, controlPlaneTenantModelSlotBindings, controlPlaneTenantProviderSecrets, controlPlaneTenantProxyGatewayUsage, cutoverFlags, tenantDeploymentCredentials };
|
|
225
|
+
export { compatibilityShims, controlPlaneTenantModelSlotBindings, controlPlaneTenantProviderSecrets, controlPlaneTenantProxyGatewayUsage, controlPlaneTenantProxyTokenLeases, cutoverFlags, permitSyncStates, secretSyncDriftReports, tenantDeploymentCredentials };
|
|
@@ -24,29 +24,37 @@ var compatibilityShims = defineTable({
|
|
|
24
24
|
component: "mc",
|
|
25
25
|
category: "runtime",
|
|
26
26
|
shape: z.object({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
shimId: z.string(),
|
|
28
|
+
gateId: z.string(),
|
|
29
|
+
removalDate: z.string(),
|
|
30
|
+
removalPriority: z.enum(["P1", "P2", "P3"]),
|
|
31
|
+
description: z.string(),
|
|
32
|
+
owner: z.string(),
|
|
33
|
+
createdAt: z.string(),
|
|
34
|
+
status: z.enum(["active", "overdue", "removed"]),
|
|
35
|
+
bridgeType: z.enum(["tool", "agent"]),
|
|
36
|
+
bridgeTarget: z.object({
|
|
37
|
+
type: z.enum(["tool", "agent"]),
|
|
38
|
+
legacyPath: z.string(),
|
|
39
|
+
harnessPath: z.string()
|
|
40
40
|
}),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
shimBehavior: z.enum([
|
|
42
|
+
"passthrough_with_logging",
|
|
43
|
+
"adapter",
|
|
44
|
+
"feature_flag_gate"
|
|
45
|
+
]),
|
|
46
|
+
producesLedgerEntries: z.boolean(),
|
|
47
|
+
lastAuditedAt: z.number(),
|
|
48
|
+
metadata: z.record(z.any()).optional()
|
|
45
49
|
}),
|
|
46
50
|
indices: [
|
|
47
51
|
{ kind: "index", name: "by_shimId", columns: ["shimId"] },
|
|
48
52
|
{ kind: "index", name: "by_status", columns: ["status"] },
|
|
49
|
-
{
|
|
53
|
+
{
|
|
54
|
+
kind: "index",
|
|
55
|
+
name: "by_bridgeType_status",
|
|
56
|
+
columns: ["bridgeType", "status"]
|
|
57
|
+
}
|
|
50
58
|
]
|
|
51
59
|
});
|
|
52
60
|
var cutoverFlags = defineTable({
|
|
@@ -54,12 +62,23 @@ var cutoverFlags = defineTable({
|
|
|
54
62
|
component: "mc",
|
|
55
63
|
category: "runtime",
|
|
56
64
|
shape: z.object({
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
domain: z.enum([
|
|
66
|
+
"graph",
|
|
67
|
+
"schema",
|
|
68
|
+
"identity",
|
|
69
|
+
"policy",
|
|
70
|
+
"audit",
|
|
71
|
+
"admin",
|
|
72
|
+
"agent",
|
|
73
|
+
"tool",
|
|
74
|
+
"prompt",
|
|
75
|
+
"intelligence"
|
|
76
|
+
]),
|
|
77
|
+
state: z.enum(["legacy", "cutover", "disabled"]),
|
|
78
|
+
metadata: z.record(z.any()).optional(),
|
|
79
|
+
updatedBy: z.string(),
|
|
80
|
+
createdAt: z.number(),
|
|
81
|
+
updatedAt: z.number()
|
|
63
82
|
}),
|
|
64
83
|
indices: [
|
|
65
84
|
{ kind: "index", name: "by_domain", columns: ["domain"] },
|
|
@@ -71,57 +90,193 @@ var tenantDeploymentCredentials = defineTable({
|
|
|
71
90
|
component: "mc",
|
|
72
91
|
category: "runtime",
|
|
73
92
|
shape: z.object({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
credentialRef: z.string(),
|
|
94
|
+
tenantId: idOf("tenants"),
|
|
95
|
+
workspaceId: idOf("workspaces").optional(),
|
|
96
|
+
target: z.enum(["kernelDeployment", "appDeployment"]),
|
|
97
|
+
environment: z.enum(["dev", "staging", "prod"]),
|
|
98
|
+
encryptedDeployKey: z.string(),
|
|
99
|
+
encryptionVersion: z.string(),
|
|
100
|
+
keyFingerprint: z.string(),
|
|
101
|
+
keyHint: z.string(),
|
|
102
|
+
status: z.enum(["active", "revoked"]),
|
|
103
|
+
rotatedFromCredentialRef: z.string().optional(),
|
|
104
|
+
revokedAt: z.number().optional(),
|
|
105
|
+
revokedBy: z.string().optional(),
|
|
106
|
+
lastUsedAt: z.number().optional(),
|
|
107
|
+
metadata: z.record(z.any()).optional(),
|
|
108
|
+
createdBy: z.string(),
|
|
109
|
+
createdAt: z.number(),
|
|
110
|
+
updatedAt: z.number()
|
|
91
111
|
}),
|
|
92
112
|
indices: [
|
|
93
113
|
{ kind: "index", name: "by_credentialRef", columns: ["credentialRef"] },
|
|
94
114
|
{ kind: "index", name: "by_tenantId", columns: ["tenantId"] },
|
|
95
|
-
{ kind: "index", name: "
|
|
96
|
-
{
|
|
97
|
-
|
|
115
|
+
{ kind: "index", name: "by_workspaceId", columns: ["workspaceId"] },
|
|
116
|
+
{
|
|
117
|
+
kind: "index",
|
|
118
|
+
name: "by_tenant_target",
|
|
119
|
+
columns: ["tenantId", "target"]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
kind: "index",
|
|
123
|
+
name: "by_tenant_target_environment",
|
|
124
|
+
columns: ["tenantId", "target", "environment"]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
kind: "index",
|
|
128
|
+
name: "by_tenant_target_environment_status",
|
|
129
|
+
columns: ["tenantId", "target", "environment", "status"]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
kind: "index",
|
|
133
|
+
name: "by_tenant_workspace_target_environment_status",
|
|
134
|
+
columns: ["tenantId", "workspaceId", "target", "environment", "status"]
|
|
135
|
+
},
|
|
98
136
|
{ kind: "index", name: "by_status", columns: ["status"] }
|
|
99
137
|
]
|
|
100
138
|
});
|
|
139
|
+
var permitSyncStates = defineTable({
|
|
140
|
+
name: "permitSyncStates",
|
|
141
|
+
component: "mc",
|
|
142
|
+
category: "runtime",
|
|
143
|
+
shape: z.object({
|
|
144
|
+
syncKey: z.string(),
|
|
145
|
+
objectType: z.enum([
|
|
146
|
+
"resource",
|
|
147
|
+
"role",
|
|
148
|
+
"resource_role",
|
|
149
|
+
"resource_relation",
|
|
150
|
+
"tenant",
|
|
151
|
+
"workspace",
|
|
152
|
+
"principal",
|
|
153
|
+
"membership",
|
|
154
|
+
"group",
|
|
155
|
+
"resource_instance",
|
|
156
|
+
"relationship_tuple",
|
|
157
|
+
"role_assignment"
|
|
158
|
+
]),
|
|
159
|
+
objectId: z.string(),
|
|
160
|
+
tenantId: idOf("tenants").optional(),
|
|
161
|
+
workspaceId: idOf("workspaces").optional(),
|
|
162
|
+
principalId: z.string().optional(),
|
|
163
|
+
permitTenantKey: z.string().optional(),
|
|
164
|
+
permitResourceType: z.string().optional(),
|
|
165
|
+
permitResourceKey: z.string().optional(),
|
|
166
|
+
desiredPayload: z.record(z.any()),
|
|
167
|
+
lastAppliedPayloadHash: z.string().optional(),
|
|
168
|
+
status: z.enum(["pending", "synced", "error", "skipped"]),
|
|
169
|
+
attemptCount: z.number(),
|
|
170
|
+
lastError: z.string().optional(),
|
|
171
|
+
nextAttemptAt: z.number().optional(),
|
|
172
|
+
lastSyncedAt: z.number().optional(),
|
|
173
|
+
createdBy: z.string(),
|
|
174
|
+
updatedBy: z.string().optional(),
|
|
175
|
+
createdAt: z.number(),
|
|
176
|
+
updatedAt: z.number()
|
|
177
|
+
}),
|
|
178
|
+
indices: [
|
|
179
|
+
{ kind: "index", name: "by_syncKey", columns: ["syncKey"] },
|
|
180
|
+
{ kind: "index", name: "by_status", columns: ["status"] },
|
|
181
|
+
{
|
|
182
|
+
kind: "index",
|
|
183
|
+
name: "by_tenant_status",
|
|
184
|
+
columns: ["tenantId", "status"]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
kind: "index",
|
|
188
|
+
name: "by_workspace_status",
|
|
189
|
+
columns: ["workspaceId", "status"]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
kind: "index",
|
|
193
|
+
name: "by_principal_status",
|
|
194
|
+
columns: ["principalId", "status"]
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
});
|
|
198
|
+
var secretSyncDriftReports = defineTable({
|
|
199
|
+
name: "secretSyncDriftReports",
|
|
200
|
+
component: "mc",
|
|
201
|
+
category: "runtime",
|
|
202
|
+
shape: z.object({
|
|
203
|
+
reportId: z.string(),
|
|
204
|
+
source: z.enum(["infisical_manifest", "manual", "ci"]),
|
|
205
|
+
generatedAt: z.number(),
|
|
206
|
+
recordedAt: z.number(),
|
|
207
|
+
recordedBy: z.string(),
|
|
208
|
+
status: z.enum([
|
|
209
|
+
"in_sync",
|
|
210
|
+
"drift",
|
|
211
|
+
"exception",
|
|
212
|
+
"blocked",
|
|
213
|
+
"not_observed"
|
|
214
|
+
]),
|
|
215
|
+
reportHash: z.string(),
|
|
216
|
+
manifestHash: z.string().optional(),
|
|
217
|
+
dryRunReceiptId: z.string().optional(),
|
|
218
|
+
appliedReceiptId: z.string().optional(),
|
|
219
|
+
summary: z.object({
|
|
220
|
+
totalPipelines: z.number(),
|
|
221
|
+
inSync: z.number(),
|
|
222
|
+
drift: z.number(),
|
|
223
|
+
exception: z.number(),
|
|
224
|
+
blocked: z.number(),
|
|
225
|
+
notObserved: z.number(),
|
|
226
|
+
missingKeys: z.number(),
|
|
227
|
+
valueDriftKeys: z.number(),
|
|
228
|
+
extraKeys: z.number(),
|
|
229
|
+
deniedConvexLeakage: z.number(),
|
|
230
|
+
approvedExceptions: z.number()
|
|
231
|
+
}),
|
|
232
|
+
redactedReport: z.record(z.any()),
|
|
233
|
+
metadata: z.record(z.any()).optional()
|
|
234
|
+
}),
|
|
235
|
+
indices: [
|
|
236
|
+
{ kind: "index", name: "by_reportId", columns: ["reportId"] },
|
|
237
|
+
{ kind: "index", name: "by_reportHash", columns: ["reportHash"] },
|
|
238
|
+
{ kind: "index", name: "by_generatedAt", columns: ["generatedAt"] },
|
|
239
|
+
{
|
|
240
|
+
kind: "index",
|
|
241
|
+
name: "by_status_generatedAt",
|
|
242
|
+
columns: ["status", "generatedAt"]
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
});
|
|
101
246
|
var controlPlaneTenantModelSlotBindings = defineTable({
|
|
102
247
|
name: "controlPlaneTenantModelSlotBindings",
|
|
103
248
|
component: "mc",
|
|
104
249
|
category: "runtime",
|
|
105
250
|
shape: z.object({
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
251
|
+
bindingId: z.string(),
|
|
252
|
+
tenantId: idOf("tenants"),
|
|
253
|
+
workspaceId: idOf("workspaces").optional(),
|
|
254
|
+
environment: z.enum(["dev", "staging", "prod"]).optional(),
|
|
255
|
+
providerId: z.string(),
|
|
256
|
+
modelSlotId: z.string(),
|
|
257
|
+
secretRef: z.string(),
|
|
258
|
+
status: z.enum(["active", "revoked"]),
|
|
259
|
+
passThroughOnly: z.boolean(),
|
|
260
|
+
revokedAt: z.number().optional(),
|
|
261
|
+
revokedBy: z.string().optional(),
|
|
262
|
+
metadata: z.record(z.any()).optional(),
|
|
263
|
+
createdBy: z.string(),
|
|
264
|
+
createdAt: z.number(),
|
|
265
|
+
updatedAt: z.number()
|
|
119
266
|
}),
|
|
120
267
|
indices: [
|
|
121
268
|
{ kind: "index", name: "by_bindingId", columns: ["bindingId"] },
|
|
122
269
|
{ kind: "index", name: "by_tenantId", columns: ["tenantId"] },
|
|
123
|
-
{
|
|
124
|
-
|
|
270
|
+
{
|
|
271
|
+
kind: "index",
|
|
272
|
+
name: "by_tenant_slot",
|
|
273
|
+
columns: ["tenantId", "modelSlotId"]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
kind: "index",
|
|
277
|
+
name: "by_tenant_provider_slot",
|
|
278
|
+
columns: ["tenantId", "providerId", "modelSlotId"]
|
|
279
|
+
},
|
|
125
280
|
{ kind: "index", name: "by_secretRef", columns: ["secretRef"] },
|
|
126
281
|
{ kind: "index", name: "by_status", columns: ["status"] }
|
|
127
282
|
]
|
|
@@ -131,29 +286,42 @@ var controlPlaneTenantProviderSecrets = defineTable({
|
|
|
131
286
|
component: "mc",
|
|
132
287
|
category: "runtime",
|
|
133
288
|
shape: z.object({
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
289
|
+
secretRef: z.string(),
|
|
290
|
+
tenantId: idOf("tenants"),
|
|
291
|
+
workspaceId: idOf("workspaces").optional(),
|
|
292
|
+
environment: z.enum(["dev", "staging", "prod"]).optional(),
|
|
293
|
+
providerId: z.string(),
|
|
294
|
+
label: z.string().optional(),
|
|
295
|
+
encryptedSecret: z.string().optional(),
|
|
296
|
+
infisicalPath: z.string().optional(),
|
|
297
|
+
infisicalSecretKey: z.string().optional(),
|
|
298
|
+
infisicalProjectId: z.string().optional(),
|
|
299
|
+
encryptionVersion: z.string(),
|
|
300
|
+
secretFingerprint: z.string(),
|
|
301
|
+
keyHint: z.string(),
|
|
302
|
+
status: z.enum(["active", "revoked"]),
|
|
303
|
+
rotatedFromSecretRef: z.string().optional(),
|
|
304
|
+
revokedAt: z.number().optional(),
|
|
305
|
+
revokedBy: z.string().optional(),
|
|
306
|
+
lastUsedAt: z.number().optional(),
|
|
307
|
+
metadata: z.record(z.any()).optional(),
|
|
308
|
+
createdBy: z.string(),
|
|
309
|
+
createdAt: z.number(),
|
|
310
|
+
updatedAt: z.number()
|
|
151
311
|
}),
|
|
152
312
|
indices: [
|
|
153
313
|
{ kind: "index", name: "by_secretRef", columns: ["secretRef"] },
|
|
154
314
|
{ kind: "index", name: "by_tenantId", columns: ["tenantId"] },
|
|
155
|
-
{
|
|
156
|
-
|
|
315
|
+
{
|
|
316
|
+
kind: "index",
|
|
317
|
+
name: "by_tenant_provider",
|
|
318
|
+
columns: ["tenantId", "providerId"]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
kind: "index",
|
|
322
|
+
name: "by_tenant_provider_status",
|
|
323
|
+
columns: ["tenantId", "providerId", "status"]
|
|
324
|
+
},
|
|
157
325
|
{ kind: "index", name: "by_status", columns: ["status"] }
|
|
158
326
|
]
|
|
159
327
|
});
|
|
@@ -162,38 +330,96 @@ var controlPlaneTenantProxyGatewayUsage = defineTable({
|
|
|
162
330
|
component: "mc",
|
|
163
331
|
category: "runtime",
|
|
164
332
|
shape: z.object({
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
333
|
+
usageId: z.string(),
|
|
334
|
+
tenantId: idOf("tenants"),
|
|
335
|
+
providerId: z.string(),
|
|
336
|
+
modelSlotId: z.string(),
|
|
337
|
+
secretRef: z.string(),
|
|
338
|
+
proxyTokenId: z.string(),
|
|
339
|
+
sessionId: z.string(),
|
|
340
|
+
principalId: z.string(),
|
|
341
|
+
workspaceId: z.string().optional(),
|
|
342
|
+
modelId: z.string().optional(),
|
|
343
|
+
requestPath: z.string(),
|
|
344
|
+
status: z.enum(["success", "error"]),
|
|
345
|
+
responseStatus: z.number().optional(),
|
|
346
|
+
inputTokens: z.number().optional(),
|
|
347
|
+
outputTokens: z.number().optional(),
|
|
348
|
+
tokenCount: z.number().optional(),
|
|
349
|
+
latencyMs: z.number(),
|
|
350
|
+
estimatedCostUsd: z.number().optional(),
|
|
351
|
+
failureCode: z.string().optional(),
|
|
352
|
+
metadata: z.record(z.any()).optional(),
|
|
353
|
+
createdAt: z.number(),
|
|
354
|
+
updatedAt: z.number()
|
|
187
355
|
}),
|
|
188
356
|
indices: [
|
|
189
357
|
{ kind: "index", name: "by_usageId", columns: ["usageId"] },
|
|
190
358
|
{ kind: "index", name: "by_tenantId", columns: ["tenantId", "createdAt"] },
|
|
191
|
-
{
|
|
192
|
-
|
|
193
|
-
|
|
359
|
+
{
|
|
360
|
+
kind: "index",
|
|
361
|
+
name: "by_tenant_provider",
|
|
362
|
+
columns: ["tenantId", "providerId", "createdAt"]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
kind: "index",
|
|
366
|
+
name: "by_proxyTokenId",
|
|
367
|
+
columns: ["proxyTokenId", "createdAt"]
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
kind: "index",
|
|
371
|
+
name: "by_sessionId",
|
|
372
|
+
columns: ["sessionId", "createdAt"]
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
});
|
|
376
|
+
var controlPlaneTenantProxyTokenLeases = defineTable({
|
|
377
|
+
name: "controlPlaneTenantProxyTokenLeases",
|
|
378
|
+
component: "mc",
|
|
379
|
+
category: "runtime",
|
|
380
|
+
shape: z.object({
|
|
381
|
+
leaseId: z.string(),
|
|
382
|
+
proxyTokenId: z.string(),
|
|
383
|
+
tenantId: idOf("tenants"),
|
|
384
|
+
workspaceId: idOf("workspaces").optional(),
|
|
385
|
+
environment: z.enum(["dev", "staging", "prod"]),
|
|
386
|
+
providerId: z.string(),
|
|
387
|
+
modelSlotId: z.string(),
|
|
388
|
+
bindingId: z.string(),
|
|
389
|
+
secretRef: z.string(),
|
|
390
|
+
sessionId: z.string(),
|
|
391
|
+
principalId: z.string(),
|
|
392
|
+
agentSessionId: z.string().optional(),
|
|
393
|
+
status: z.enum(["active", "revoked"]),
|
|
394
|
+
expiresAt: z.number(),
|
|
395
|
+
renewedAt: z.number().optional(),
|
|
396
|
+
revokedAt: z.number().optional(),
|
|
397
|
+
revokedBy: z.string().optional(),
|
|
398
|
+
revokeReason: z.string().optional(),
|
|
399
|
+
permitDecisionLogId: idOf("policyDecisionLogs").optional(),
|
|
400
|
+
permitTraceId: z.string().optional(),
|
|
401
|
+
metadata: z.record(z.any()).optional(),
|
|
402
|
+
createdAt: z.number(),
|
|
403
|
+
updatedAt: z.number()
|
|
404
|
+
}),
|
|
405
|
+
indices: [
|
|
406
|
+
{ kind: "index", name: "by_leaseId", columns: ["leaseId"] },
|
|
407
|
+
{ kind: "index", name: "by_proxyTokenId", columns: ["proxyTokenId"] },
|
|
408
|
+
{ kind: "index", name: "by_tenantId", columns: ["tenantId", "createdAt"] },
|
|
409
|
+
{ kind: "index", name: "by_sessionId", columns: ["sessionId", "createdAt"] },
|
|
410
|
+
{
|
|
411
|
+
kind: "index",
|
|
412
|
+
name: "by_principalId",
|
|
413
|
+
columns: ["principalId", "createdAt"]
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
kind: "index",
|
|
417
|
+
name: "by_status_expiresAt",
|
|
418
|
+
columns: ["status", "expiresAt"]
|
|
419
|
+
}
|
|
194
420
|
]
|
|
195
421
|
});
|
|
196
422
|
|
|
197
|
-
export { compatibilityShims, controlPlaneTenantModelSlotBindings, controlPlaneTenantProviderSecrets, controlPlaneTenantProxyGatewayUsage, cutoverFlags, tenantDeploymentCredentials };
|
|
423
|
+
export { compatibilityShims, controlPlaneTenantModelSlotBindings, controlPlaneTenantProviderSecrets, controlPlaneTenantProxyGatewayUsage, controlPlaneTenantProxyTokenLeases, cutoverFlags, permitSyncStates, secretSyncDriftReports, tenantDeploymentCredentials };
|
|
198
424
|
//# sourceMappingURL=runtime.js.map
|
|
199
425
|
//# sourceMappingURL=runtime.js.map
|