@objectstack/platform-objects 5.2.0 → 6.1.1

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.mjs CHANGED
@@ -3828,12 +3828,12 @@ var SysActivity = ObjectSchema.create({
3828
3828
  group: "Target"
3829
3829
  }),
3830
3830
  // ── Context ──────────────────────────────────────────────────
3831
- project_id: Field.lookup("sys_project", {
3832
- label: "Project",
3831
+ environment_id: Field.lookup("sys_environment", {
3832
+ label: "Environment",
3833
3833
  required: false,
3834
3834
  readonly: true,
3835
3835
  searchable: true,
3836
- description: "Project context (multi-project deployments)",
3836
+ description: "Environment context (multi-environment deployments)",
3837
3837
  group: "Context"
3838
3838
  }),
3839
3839
  metadata: Field.textarea({
@@ -3849,7 +3849,7 @@ var SysActivity = ObjectSchema.create({
3849
3849
  { fields: ["actor_id"] },
3850
3850
  { fields: ["object_name", "record_id"] },
3851
3851
  { fields: ["type"] },
3852
- { fields: ["project_id"] }
3852
+ { fields: ["environment_id"] }
3853
3853
  ],
3854
3854
  enable: {
3855
3855
  trackHistory: false,
@@ -5637,12 +5637,12 @@ var SysMetadataObject = ObjectSchema.create({
5637
5637
  }),
5638
5638
  /**
5639
5639
  * @deprecated ADR-0005 (revised 2026-05): per-env DBs replace per-project
5640
- * isolation. `project_id` is no longer written by saveMetaItem and not
5640
+ * isolation. `environment_id` is no longer written by saveMetaItem and not
5641
5641
  * consulted by overlay reads. Kept for legacy rows; new writes leave it
5642
5642
  * NULL. Will be dropped in a future schema migration.
5643
5643
  */
5644
- project_id: Field.lookup("sys_project", {
5645
- label: "Project (deprecated)",
5644
+ environment_id: Field.lookup("sys_environment", {
5645
+ label: "Environment (deprecated)",
5646
5646
  required: false,
5647
5647
  description: "DEPRECATED. Use organization_id for tenant isolation."
5648
5648
  }),
@@ -5692,7 +5692,7 @@ var SysMetadataObject = ObjectSchema.create({
5692
5692
  indexes: [
5693
5693
  // ADR-0005 (revised 2026-05): overlay uniqueness is scoped by
5694
5694
  // (type, name, organization_id), restricted to active rows so resets
5695
- // / archived versions don't collide. project_id is deprecated and
5695
+ // / archived versions don't collide. environment_id is deprecated and
5696
5696
  // not part of the discriminator. The runtime layer (protocol.ts
5697
5697
  // ensureOverlayIndex) issues a DROP-then-CREATE migration to
5698
5698
  // replace any pre-existing legacy composite index in-place.
@@ -6380,7 +6380,7 @@ var SETUP_APP = {
6380
6380
  // - The marketplace-only `sys_app` / `sys_package` /
6381
6381
  // `sys_package_installation` menus have been removed entirely;
6382
6382
  // they are contributed by `@objectstack/service-tenant`
6383
- // (control-plane) and are not present in single-project runtimes.
6383
+ // (control-plane) and are not present in single-environment runtimes.
6384
6384
  { id: "nav_oauth_apps", type: "object", label: "OAuth Applications", objectName: "sys_oauth_application", icon: "app-window" },
6385
6385
  { id: "nav_jwks", type: "object", label: "Signing Keys (JWKS)", objectName: "sys_jwks", icon: "key-round" },
6386
6386
  { id: "nav_verifications", type: "object", label: "Verifications", objectName: "sys_verification", icon: "mail-check" },
@@ -6459,7 +6459,7 @@ var SystemOverviewDashboard = Dashboard.create({
6459
6459
  type: "metric",
6460
6460
  object: "sys_package_installation",
6461
6461
  // Cloud-only object — only registered when service-tenant is loaded.
6462
- // Hide this widget gracefully in single-project runtimes.
6462
+ // Hide this widget gracefully in single-environment runtimes.
6463
6463
  requiresObject: "sys_package_installation",
6464
6464
  layout: {
6465
6465
  x: 9,
@@ -8311,9 +8311,9 @@ var enObjects = {
8311
8311
  label: "URL",
8312
8312
  help: "Optional deep-link to the activity target"
8313
8313
  },
8314
- project_id: {
8314
+ environment_id: {
8315
8315
  label: "Project",
8316
- help: "Project context (multi-project deployments)"
8316
+ help: "Environment context (multi-environment deployments)"
8317
8317
  },
8318
8318
  metadata: {
8319
8319
  label: "Metadata",
@@ -9306,7 +9306,7 @@ var enObjects = {
9306
9306
  label: "Organization",
9307
9307
  help: "Organization for multi-tenant isolation."
9308
9308
  },
9309
- project_id: {
9309
+ environment_id: {
9310
9310
  label: "Project (deprecated)",
9311
9311
  help: "DEPRECATED. Use organization_id for tenant isolation."
9312
9312
  },
@@ -9388,7 +9388,7 @@ var enObjects = {
9388
9388
  label: "Organization",
9389
9389
  help: "Organization for multi-tenant isolation."
9390
9390
  },
9391
- project_id: {
9391
+ environment_id: {
9392
9392
  label: "Environment ID",
9393
9393
  help: "Scopes this history entry to a specific environment."
9394
9394
  },
@@ -11346,7 +11346,7 @@ var zhCNObjects = {
11346
11346
  label: "URL",
11347
11347
  help: "\u6307\u5411\u6D3B\u52A8\u76EE\u6807\u7684\u53EF\u9009\u6DF1\u5EA6\u94FE\u63A5"
11348
11348
  },
11349
- project_id: {
11349
+ environment_id: {
11350
11350
  label: "\u9879\u76EE",
11351
11351
  help: "\u9879\u76EE\u4E0A\u4E0B\u6587\uFF08\u591A\u9879\u76EE\u90E8\u7F72\uFF09"
11352
11352
  },
@@ -12345,7 +12345,7 @@ var zhCNObjects = {
12345
12345
  label: "\u7EC4\u7EC7",
12346
12346
  help: "\u7528\u4E8E\u591A\u79DF\u6237\u9694\u79BB\u7684\u7EC4\u7EC7\u3002"
12347
12347
  },
12348
- project_id: {
12348
+ environment_id: {
12349
12349
  label: "\u9879\u76EE\uFF08\u5DF2\u5E9F\u5F03\uFF09",
12350
12350
  help: "\u5DF2\u5E9F\u5F03\u3002\u8BF7\u4F7F\u7528 organization_id \u8FDB\u884C\u79DF\u6237\u9694\u79BB\u3002"
12351
12351
  },
@@ -12427,7 +12427,7 @@ var zhCNObjects = {
12427
12427
  label: "\u7EC4\u7EC7",
12428
12428
  help: "\u7528\u4E8E\u591A\u79DF\u6237\u9694\u79BB\u7684\u7EC4\u7EC7\u3002"
12429
12429
  },
12430
- project_id: {
12430
+ environment_id: {
12431
12431
  label: "\u73AF\u5883 ID",
12432
12432
  help: "\u5C06\u8BE5\u5386\u53F2\u8BB0\u5F55\u9650\u5B9A\u5230\u7279\u5B9A\u73AF\u5883\u3002"
12433
12433
  },
@@ -14335,7 +14335,7 @@ var jaJPObjects = {
14335
14335
  label: "URL",
14336
14336
  help: "\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30BF\u30FC\u30B2\u30C3\u30C8\u3078\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u30C7\u30A3\u30FC\u30D7\u30EA\u30F3\u30AF"
14337
14337
  },
14338
- project_id: {
14338
+ environment_id: {
14339
14339
  label: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8",
14340
14340
  help: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\uFF08\u30DE\u30EB\u30C1\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30C7\u30D7\u30ED\u30A4\u30E1\u30F3\u30C8\uFF09"
14341
14341
  },
@@ -15330,7 +15330,7 @@ var jaJPObjects = {
15330
15330
  label: "\u7D44\u7E54",
15331
15331
  help: "\u30DE\u30EB\u30C1\u30C6\u30CA\u30F3\u30C8\u5206\u96E2\u306E\u305F\u3081\u306E\u7D44\u7E54\u3002"
15332
15332
  },
15333
- project_id: {
15333
+ environment_id: {
15334
15334
  label: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\uFF08\u975E\u63A8\u5968\uFF09",
15335
15335
  help: "\u975E\u63A8\u5968\u3002\u30C6\u30CA\u30F3\u30C8\u5206\u96E2\u306B\u306F organization_id \u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
15336
15336
  },
@@ -15412,7 +15412,7 @@ var jaJPObjects = {
15412
15412
  label: "\u7D44\u7E54",
15413
15413
  help: "\u30DE\u30EB\u30C1\u30C6\u30CA\u30F3\u30C8\u5206\u96E2\u306E\u305F\u3081\u306E\u7D44\u7E54\u3002"
15414
15414
  },
15415
- project_id: {
15415
+ environment_id: {
15416
15416
  label: "\u74B0\u5883 ID",
15417
15417
  help: "\u3053\u306E\u5C65\u6B74\u30A8\u30F3\u30C8\u30EA\u3092\u7279\u5B9A\u306E\u74B0\u5883\u306B\u30B9\u30B3\u30FC\u30D7\u3057\u307E\u3059\u3002"
15418
15418
  },
@@ -17320,7 +17320,7 @@ var esESObjects = {
17320
17320
  label: "URL",
17321
17321
  help: "Enlace profundo opcional al destino de la actividad."
17322
17322
  },
17323
- project_id: {
17323
+ environment_id: {
17324
17324
  label: "Proyecto",
17325
17325
  help: "Contexto del proyecto (implementaciones multiproyecto)."
17326
17326
  },
@@ -18315,7 +18315,7 @@ var esESObjects = {
18315
18315
  label: "Organizaci\xF3n",
18316
18316
  help: "Organizaci\xF3n para el aislamiento multi-tenant."
18317
18317
  },
18318
- project_id: {
18318
+ environment_id: {
18319
18319
  label: "Proyecto (obsoleto)",
18320
18320
  help: "OBSOLETO. Use organization_id para el aislamiento del tenant."
18321
18321
  },
@@ -18397,7 +18397,7 @@ var esESObjects = {
18397
18397
  label: "Organizaci\xF3n",
18398
18398
  help: "Organizaci\xF3n para el aislamiento multi-tenant."
18399
18399
  },
18400
- project_id: {
18400
+ environment_id: {
18401
18401
  label: "ID del entorno",
18402
18402
  help: "Limita esta entrada de historial a un entorno espec\xEDfico."
18403
18403
  },