@lucern/contracts 0.3.0-alpha.14 → 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.
Files changed (53) hide show
  1. package/CHANGELOG.md +4 -1
  2. package/dist/function-registry/beliefs.d.ts +1 -1
  3. package/dist/function-registry/beliefs.js +3 -15
  4. package/dist/function-registry/beliefs.js.map +1 -1
  5. package/dist/function-registry/coding.d.ts +1 -1
  6. package/dist/function-registry/context.d.ts +1 -1
  7. package/dist/function-registry/contracts.d.ts +1 -1
  8. package/dist/function-registry/coordination.d.ts +1 -1
  9. package/dist/function-registry/edges.d.ts +1 -1
  10. package/dist/function-registry/evidence.d.ts +1 -1
  11. package/dist/function-registry/evidence.js +2 -11
  12. package/dist/function-registry/evidence.js.map +1 -1
  13. package/dist/function-registry/graph.d.ts +1 -1
  14. package/dist/function-registry/identity.d.ts +1 -1
  15. package/dist/function-registry/identity.js +3 -6
  16. package/dist/function-registry/identity.js.map +1 -1
  17. package/dist/function-registry/judgments.d.ts +1 -1
  18. package/dist/function-registry/legacy.d.ts +1 -1
  19. package/dist/function-registry/lenses.d.ts +1 -1
  20. package/dist/function-registry/nodes.d.ts +1 -1
  21. package/dist/function-registry/ontologies.d.ts +1 -1
  22. package/dist/function-registry/pipeline.d.ts +1 -1
  23. package/dist/function-registry/questions.d.ts +1 -1
  24. package/dist/function-registry/questions.js +2 -5
  25. package/dist/function-registry/questions.js.map +1 -1
  26. package/dist/function-registry/tasks.d.ts +1 -1
  27. package/dist/function-registry/tasks.js +15 -1
  28. package/dist/function-registry/tasks.js.map +1 -1
  29. package/dist/function-registry/topics.d.ts +1 -1
  30. package/dist/function-registry/types.d.ts +1 -1
  31. package/dist/function-registry/worktrees.d.ts +1 -1
  32. package/dist/generated/convexSchemas.js +1 -1
  33. package/dist/generated/convexSchemas.js.map +1 -1
  34. package/dist/generated/infisicalRuntimeEnv.js +122 -0
  35. package/dist/generated/infisicalRuntimeEnv.js.map +1 -1
  36. package/dist/index.js +167 -0
  37. package/dist/index.js.map +1 -1
  38. package/dist/infisical-runtime.contract.d.ts +39 -0
  39. package/dist/infisical-runtime.contract.js +44 -0
  40. package/dist/infisical-runtime.contract.js.map +1 -1
  41. package/dist/manifests/infisical-runtime-manifest.d.ts +38 -0
  42. package/dist/manifests/infisical-runtime-manifest.js +44 -0
  43. package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
  44. package/dist/proof-attestation.json +1 -1
  45. package/dist/schemas/index.js +1 -0
  46. package/dist/schemas/index.js.map +1 -1
  47. package/dist/schemas/manifest.d.ts +5 -0
  48. package/dist/schemas/manifest.js +1 -0
  49. package/dist/schemas/manifest.js.map +1 -1
  50. package/dist/schemas/tables/mc/tenant.d.ts +1 -0
  51. package/dist/schemas/tables/mc/tenant.js +1 -0
  52. package/dist/schemas/tables/mc/tenant.js.map +1 -1
  53. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2253,6 +2253,7 @@ var apiKeys = defineTable({
2253
2253
  shape: z.object({
2254
2254
  "tenantId": idOf("tenants"),
2255
2255
  "workspaceId": idOf("workspaces").optional(),
2256
+ "environment": z.enum(["dev", "staging", "prod"]).optional(),
2256
2257
  "keyPrefix": z.enum(["luc", "stk"]),
2257
2258
  "keyHash": z.string(),
2258
2259
  "keyHint": z.string(),
@@ -8244,6 +8245,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
8244
8245
  vercelProjectName: "ai-chatbot-diao",
8245
8246
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
8246
8247
  vercelProjectId: "prj_PihFw8kohSSw14nZs9YQV3xVo517",
8248
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
8247
8249
  repository: {
8248
8250
  owner: "stack-vc",
8249
8251
  name: "front-end"
@@ -8264,6 +8266,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
8264
8266
  vercelProjectName: "stackos",
8265
8267
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
8266
8268
  vercelProjectId: "prj_rXLAL0Z6v9p1fasKbomby6GI7kau",
8269
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
8267
8270
  repository: {
8268
8271
  owner: "stack-vc",
8269
8272
  name: "stackos"
@@ -8284,6 +8287,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
8284
8287
  vercelProjectName: "stackos-engineering-graph",
8285
8288
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
8286
8289
  vercelProjectId: "prj_zAU0Zn9GkbHjHI63dxW4vLpmoqTJ",
8290
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
8287
8291
  repository: {
8288
8292
  owner: "stack-vc",
8289
8293
  name: "stackos-engineering-graph"
@@ -8304,6 +8308,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
8304
8308
  vercelProjectName: "lucern-graph",
8305
8309
  vercelTeamId: "team_vTHxxs8GAoAFUe6RWMlYt7fY",
8306
8310
  vercelProjectId: "prj_KJ8EKV8vGM5xURpqmwTwmECEGPgQ",
8311
+ vercelWriterTokenEnv: "LUCERN_VERCEL_TOKEN",
8307
8312
  repository: {
8308
8313
  owner: "LucernAI",
8309
8314
  name: "lucern-graph"
@@ -9523,6 +9528,46 @@ var PLATFORM_DEPLOY_AUTOMATION_SECRET_DEFINITIONS = [
9523
9528
  ],
9524
9529
  description: "Vercel API token for the future reviewed live writer. Never copy into tenant apps."
9525
9530
  },
9531
+ {
9532
+ id: "platform.deploy.vercel-token.stack",
9533
+ canonicalName: "STACK_VERCEL_TOKEN",
9534
+ owner: "provider",
9535
+ scope: "global",
9536
+ sourcePath: "/platform/deploy/vercel",
9537
+ environmentPolicy: "same_all_environments",
9538
+ required: false,
9539
+ secret: true,
9540
+ public: false,
9541
+ consumers: ["lucern-repo-ci"],
9542
+ destinations: [
9543
+ {
9544
+ kind: "operator_local",
9545
+ target: "secret-sync-writer",
9546
+ environmentPolicy: "same_all_environments"
9547
+ }
9548
+ ],
9549
+ description: "Stack Vercel API token for manifest-scoped Stack tenant Vercel secret sync. Never copy into tenant apps."
9550
+ },
9551
+ {
9552
+ id: "platform.deploy.vercel-token.lucern",
9553
+ canonicalName: "LUCERN_VERCEL_TOKEN",
9554
+ owner: "provider",
9555
+ scope: "global",
9556
+ sourcePath: "/platform/deploy/vercel",
9557
+ environmentPolicy: "same_all_environments",
9558
+ required: false,
9559
+ secret: true,
9560
+ public: false,
9561
+ consumers: ["lucern-repo-ci"],
9562
+ destinations: [
9563
+ {
9564
+ kind: "operator_local",
9565
+ target: "secret-sync-writer",
9566
+ environmentPolicy: "same_all_environments"
9567
+ }
9568
+ ],
9569
+ description: "Lucern Vercel API token for manifest-scoped Lucern tenant Vercel secret sync. Never copy into tenant apps."
9570
+ },
9526
9571
  {
9527
9572
  id: "platform.deploy.vercel-org-id",
9528
9573
  canonicalName: "VERCEL_ORG_ID",
@@ -11267,6 +11312,7 @@ var GENERATED_INFISICAL_RUNTIME_ENV = {
11267
11312
  "LUCERN_TENANT_SECRET_ENCRYPTION_KEY",
11268
11313
  "LUCERN_TOPIC_ID",
11269
11314
  "LUCERN_USER_TOKEN",
11315
+ "LUCERN_VERCEL_TOKEN",
11270
11316
  "LUCERN_WEB_BASE_URL",
11271
11317
  "LUCERN_WORKSPACE_ID",
11272
11318
  "LUCERN_WORKTREE_ID",
@@ -11338,6 +11384,7 @@ var GENERATED_INFISICAL_RUNTIME_ENV = {
11338
11384
  "STACK_CONVEX_URL",
11339
11385
  "STACK_DEPLOY_KEY",
11340
11386
  "STACK_DEPLOY_RECONCILIATION_SCHEMA_JSON",
11387
+ "STACK_VERCEL_TOKEN",
11341
11388
  "STACKOS_DEPLOY_ENTRYPOINT",
11342
11389
  "STACKOS_DEPLOY_TARGET",
11343
11390
  "STACKOS_ENGINEERING_GRAPH_CONVEX_URL",
@@ -11521,6 +11568,7 @@ var GENERATED_INFISICAL_RUNTIME_ENV = {
11521
11568
  "LUCERN_TENANT_SECRET_ENCRYPTION_KEY",
11522
11569
  "LUCERN_TOPIC_ID",
11523
11570
  "LUCERN_USER_TOKEN",
11571
+ "LUCERN_VERCEL_TOKEN",
11524
11572
  "LUCERN_WEB_BASE_URL",
11525
11573
  "LUCERN_WORKSPACE_ID",
11526
11574
  "LUCERN_WORKTREE_ID",
@@ -11596,6 +11644,7 @@ var GENERATED_INFISICAL_RUNTIME_ENV = {
11596
11644
  "STACK_CONVEX_URL",
11597
11645
  "STACK_DEPLOY_KEY",
11598
11646
  "STACK_DEPLOY_RECONCILIATION_SCHEMA_JSON",
11647
+ "STACK_VERCEL_TOKEN",
11599
11648
  "STACKOS_DEPLOY_ENTRYPOINT",
11600
11649
  "STACKOS_DEPLOY_TARGET",
11601
11650
  "STACKOS_ENGINEERING_GRAPH_CONVEX_URL",
@@ -14718,6 +14767,35 @@ var GENERATED_INFISICAL_RUNTIME_ENV = {
14718
14767
  ],
14719
14768
  "description": "Encrypts tenant deployment credentials stored in MC. Session-token fallback is legacy only."
14720
14769
  },
14770
+ "LUCERN_VERCEL_TOKEN": {
14771
+ "secretId": "platform.deploy.vercel-token.lucern",
14772
+ "canonicalName": "LUCERN_VERCEL_TOKEN",
14773
+ "envNames": [
14774
+ "LUCERN_VERCEL_TOKEN"
14775
+ ],
14776
+ "aliases": [],
14777
+ "writeNames": [
14778
+ "LUCERN_VERCEL_TOKEN"
14779
+ ],
14780
+ "required": false,
14781
+ "secret": true,
14782
+ "public": false,
14783
+ "sourcePath": "/platform/deploy/vercel",
14784
+ "environmentPolicy": "same_all_environments",
14785
+ "consumers": [
14786
+ "lucern-repo-ci"
14787
+ ],
14788
+ "destinations": [
14789
+ {
14790
+ "kind": "operator_local",
14791
+ "target": "secret-sync-writer",
14792
+ "writeNames": [
14793
+ "LUCERN_VERCEL_TOKEN"
14794
+ ]
14795
+ }
14796
+ ],
14797
+ "description": "Lucern Vercel API token for manifest-scoped Lucern tenant Vercel secret sync. Never copy into tenant apps."
14798
+ },
14721
14799
  "NEO4J_DATABASE": {
14722
14800
  "secretId": "platform.neo4j.database",
14723
14801
  "canonicalName": "NEO4J_DATABASE",
@@ -16782,6 +16860,35 @@ var GENERATED_INFISICAL_RUNTIME_ENV = {
16782
16860
  ],
16783
16861
  "description": "stack/frontend: Tenant-owned Sentry webhook verification secret. stack/stackos: Tenant-owned Sentry webhook verification secret."
16784
16862
  },
16863
+ "STACK_VERCEL_TOKEN": {
16864
+ "secretId": "platform.deploy.vercel-token.stack",
16865
+ "canonicalName": "STACK_VERCEL_TOKEN",
16866
+ "envNames": [
16867
+ "STACK_VERCEL_TOKEN"
16868
+ ],
16869
+ "aliases": [],
16870
+ "writeNames": [
16871
+ "STACK_VERCEL_TOKEN"
16872
+ ],
16873
+ "required": false,
16874
+ "secret": true,
16875
+ "public": false,
16876
+ "sourcePath": "/platform/deploy/vercel",
16877
+ "environmentPolicy": "same_all_environments",
16878
+ "consumers": [
16879
+ "lucern-repo-ci"
16880
+ ],
16881
+ "destinations": [
16882
+ {
16883
+ "kind": "operator_local",
16884
+ "target": "secret-sync-writer",
16885
+ "writeNames": [
16886
+ "STACK_VERCEL_TOKEN"
16887
+ ]
16888
+ }
16889
+ ],
16890
+ "description": "Stack Vercel API token for manifest-scoped Stack tenant Vercel secret sync. Never copy into tenant apps."
16891
+ },
16785
16892
  "STACKOS_DEPLOY_TARGET": {
16786
16893
  "secretId": "tenant.stackos.deploy-guard.local",
16787
16894
  "canonicalName": "STACKOS_DEPLOY_TARGET",
@@ -17146,6 +17253,7 @@ var GENERATED_INFISICAL_RUNTIME_ENV = {
17146
17253
  "LUCERN_WORKSPACE_ID": "LUCERN_TENANT_ID",
17147
17254
  "LUCERN_WORKTREE_ID": "LUCERN_TENANT_ID",
17148
17255
  "LUCERN_TENANT_SECRET_ENCRYPTION_KEY": "LUCERN_TENANT_SECRET_ENCRYPTION_KEY",
17256
+ "LUCERN_VERCEL_TOKEN": "LUCERN_VERCEL_TOKEN",
17149
17257
  "NEO4J_DATABASE": "NEO4J_DATABASE",
17150
17258
  "NEO4J_ENG_PASSWORD": "NEO4J_PASSWORD",
17151
17259
  "NEO4J_PASSWORD": "NEO4J_PASSWORD",
@@ -17199,6 +17307,7 @@ var GENERATED_INFISICAL_RUNTIME_ENV = {
17199
17307
  "SENTRY_PROJECT": "SENTRY_PROJECT",
17200
17308
  "SENTRY_PROJECT_NEXTJS": "SENTRY_PROJECT",
17201
17309
  "SENTRY_WEBHOOK_SECRET": "SENTRY_WEBHOOK_SECRET",
17310
+ "STACK_VERCEL_TOKEN": "STACK_VERCEL_TOKEN",
17202
17311
  "STACK_DEPLOY_RECONCILIATION_SCHEMA_JSON": "STACKOS_DEPLOY_TARGET",
17203
17312
  "STACKOS_DEPLOY_ENTRYPOINT": "STACKOS_DEPLOY_TARGET",
17204
17313
  "STACKOS_DEPLOY_TARGET": "STACKOS_DEPLOY_TARGET",
@@ -30128,6 +30237,64 @@ var GENERATED_INFISICAL_RUNTIME_ENV = {
30128
30237
  }
30129
30238
  ],
30130
30239
  "operator_local:secret-sync-writer": [
30240
+ {
30241
+ "secretId": "platform.deploy.vercel-token.lucern",
30242
+ "canonicalName": "LUCERN_VERCEL_TOKEN",
30243
+ "envNames": [
30244
+ "LUCERN_VERCEL_TOKEN"
30245
+ ],
30246
+ "aliases": [],
30247
+ "writeNames": [
30248
+ "LUCERN_VERCEL_TOKEN"
30249
+ ],
30250
+ "required": false,
30251
+ "secret": true,
30252
+ "public": false,
30253
+ "sourcePath": "/platform/deploy/vercel",
30254
+ "environmentPolicy": "same_all_environments",
30255
+ "consumers": [
30256
+ "lucern-repo-ci"
30257
+ ],
30258
+ "destinations": [
30259
+ {
30260
+ "kind": "operator_local",
30261
+ "target": "secret-sync-writer",
30262
+ "writeNames": [
30263
+ "LUCERN_VERCEL_TOKEN"
30264
+ ]
30265
+ }
30266
+ ],
30267
+ "description": "Lucern Vercel API token for manifest-scoped Lucern tenant Vercel secret sync. Never copy into tenant apps."
30268
+ },
30269
+ {
30270
+ "secretId": "platform.deploy.vercel-token.stack",
30271
+ "canonicalName": "STACK_VERCEL_TOKEN",
30272
+ "envNames": [
30273
+ "STACK_VERCEL_TOKEN"
30274
+ ],
30275
+ "aliases": [],
30276
+ "writeNames": [
30277
+ "STACK_VERCEL_TOKEN"
30278
+ ],
30279
+ "required": false,
30280
+ "secret": true,
30281
+ "public": false,
30282
+ "sourcePath": "/platform/deploy/vercel",
30283
+ "environmentPolicy": "same_all_environments",
30284
+ "consumers": [
30285
+ "lucern-repo-ci"
30286
+ ],
30287
+ "destinations": [
30288
+ {
30289
+ "kind": "operator_local",
30290
+ "target": "secret-sync-writer",
30291
+ "writeNames": [
30292
+ "STACK_VERCEL_TOKEN"
30293
+ ]
30294
+ }
30295
+ ],
30296
+ "description": "Stack Vercel API token for manifest-scoped Stack tenant Vercel secret sync. Never copy into tenant apps."
30297
+ },
30131
30298
  {
30132
30299
  "secretId": "platform.deploy.vercel-org-id",
30133
30300
  "canonicalName": "VERCEL_ORG_ID",