@objectstack/platform-objects 5.2.0 → 6.0.0

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