@objectstack/platform-objects 7.1.0 → 7.2.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/apps/index.d.mts +12 -0
- package/dist/apps/index.d.ts +12 -0
- package/dist/apps/index.js +48 -16
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/index.mjs +48 -16
- package/dist/apps/index.mjs.map +1 -1
- package/dist/audit/index.d.mts +240 -48
- package/dist/audit/index.d.ts +240 -48
- package/dist/identity/index.d.mts +386 -61
- package/dist/identity/index.d.ts +386 -61
- package/dist/identity/index.js +135 -1
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/index.mjs +135 -1
- package/dist/identity/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +327 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +327 -18
- package/dist/index.mjs.map +1 -1
- package/dist/integration/index.d.mts +15 -3
- package/dist/integration/index.d.ts +15 -3
- package/dist/metadata/index.d.mts +3264 -7
- package/dist/metadata/index.d.ts +3264 -7
- package/dist/metadata/index.js +130 -0
- package/dist/metadata/index.js.map +1 -1
- package/dist/metadata/index.mjs +130 -1
- package/dist/metadata/index.mjs.map +1 -1
- package/dist/security/index.d.mts +115 -21
- package/dist/security/index.d.ts +115 -21
- package/dist/security/index.js +14 -0
- package/dist/security/index.js.map +1 -1
- package/dist/security/index.mjs +14 -0
- package/dist/security/index.mjs.map +1 -1
- package/dist/system/index.d.mts +45 -9
- package/dist/system/index.d.ts +45 -9
- package/package.json +2 -2
package/dist/apps/index.d.mts
CHANGED
|
@@ -223,6 +223,13 @@ declare const SystemOverviewDashboard: {
|
|
|
223
223
|
role?: string | undefined;
|
|
224
224
|
} | undefined;
|
|
225
225
|
}[];
|
|
226
|
+
_lock?: "full" | "none" | "no-overlay" | "no-delete" | undefined;
|
|
227
|
+
_lockReason?: string | undefined;
|
|
228
|
+
_lockSource?: "artifact" | "package" | "env-forced" | undefined;
|
|
229
|
+
_provenance?: "package" | "env-forced" | "org" | undefined;
|
|
230
|
+
_packageId?: string | undefined;
|
|
231
|
+
_packageVersion?: string | undefined;
|
|
232
|
+
_lockDocsUrl?: string | undefined;
|
|
226
233
|
description?: string | undefined;
|
|
227
234
|
header?: {
|
|
228
235
|
showTitle: boolean;
|
|
@@ -277,6 +284,11 @@ declare const SystemOverviewDashboard: {
|
|
|
277
284
|
pageSize?: number | undefined;
|
|
278
285
|
debounceMs?: number | undefined;
|
|
279
286
|
} | undefined;
|
|
287
|
+
protection?: {
|
|
288
|
+
lock: "full" | "none" | "no-overlay" | "no-delete";
|
|
289
|
+
reason: string;
|
|
290
|
+
docsUrl?: string | undefined;
|
|
291
|
+
} | undefined;
|
|
280
292
|
};
|
|
281
293
|
|
|
282
294
|
/**
|
package/dist/apps/index.d.ts
CHANGED
|
@@ -223,6 +223,13 @@ declare const SystemOverviewDashboard: {
|
|
|
223
223
|
role?: string | undefined;
|
|
224
224
|
} | undefined;
|
|
225
225
|
}[];
|
|
226
|
+
_lock?: "full" | "none" | "no-overlay" | "no-delete" | undefined;
|
|
227
|
+
_lockReason?: string | undefined;
|
|
228
|
+
_lockSource?: "artifact" | "package" | "env-forced" | undefined;
|
|
229
|
+
_provenance?: "package" | "env-forced" | "org" | undefined;
|
|
230
|
+
_packageId?: string | undefined;
|
|
231
|
+
_packageVersion?: string | undefined;
|
|
232
|
+
_lockDocsUrl?: string | undefined;
|
|
226
233
|
description?: string | undefined;
|
|
227
234
|
header?: {
|
|
228
235
|
showTitle: boolean;
|
|
@@ -277,6 +284,11 @@ declare const SystemOverviewDashboard: {
|
|
|
277
284
|
pageSize?: number | undefined;
|
|
278
285
|
debounceMs?: number | undefined;
|
|
279
286
|
} | undefined;
|
|
287
|
+
protection?: {
|
|
288
|
+
lock: "full" | "none" | "no-overlay" | "no-delete";
|
|
289
|
+
reason: string;
|
|
290
|
+
docsUrl?: string | undefined;
|
|
291
|
+
} | undefined;
|
|
280
292
|
};
|
|
281
293
|
|
|
282
294
|
/**
|
package/dist/apps/index.js
CHANGED
|
@@ -10,6 +10,13 @@ var SETUP_APP = {
|
|
|
10
10
|
icon: "settings",
|
|
11
11
|
active: true,
|
|
12
12
|
isDefault: false,
|
|
13
|
+
// ADR-0010 §3.7 — author-facing protection block. Loader translates
|
|
14
|
+
// this into the `_lock` envelope at registration time.
|
|
15
|
+
protection: {
|
|
16
|
+
lock: "full",
|
|
17
|
+
reason: "Core admin UI shipped by @objectstack/platform-objects \u2014 see ADR-0010.",
|
|
18
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
19
|
+
},
|
|
13
20
|
branding: {
|
|
14
21
|
primaryColor: "#475569"
|
|
15
22
|
// Slate-600 — neutral admin palette
|
|
@@ -241,6 +248,31 @@ var STUDIO_APP = {
|
|
|
241
248
|
// Indigo-500 — distinct from Setup's slate
|
|
242
249
|
},
|
|
243
250
|
requiredPermissions: ["studio.access"],
|
|
251
|
+
contextSelectors: [
|
|
252
|
+
{
|
|
253
|
+
// Package scope — pinned to the sidebar header. Selecting a package
|
|
254
|
+
// injects `{active_package}` into every `metadata:resource` nav
|
|
255
|
+
// item below, so the whole workbench filters to that package in
|
|
256
|
+
// one click. Options come from the installed-packages REST surface,
|
|
257
|
+
// narrowed to project-scoped packages: this dropdown exists so
|
|
258
|
+
// third-party developers can scope to *their* custom package, so we
|
|
259
|
+
// deliberately hide the platform's own system/cloud kernel packages
|
|
260
|
+
// (auth, security, audit, queue, …) which are not user-authored.
|
|
261
|
+
id: "active_package",
|
|
262
|
+
label: "Package",
|
|
263
|
+
icon: "package",
|
|
264
|
+
optionsSource: {
|
|
265
|
+
endpoint: "/api/v1/packages",
|
|
266
|
+
valueKey: "manifest.id",
|
|
267
|
+
labelKey: "manifest.name",
|
|
268
|
+
filter: [{ key: "manifest.scope", op: "nin", value: ["system", "cloud"] }]
|
|
269
|
+
},
|
|
270
|
+
includeAll: true,
|
|
271
|
+
allValue: "",
|
|
272
|
+
persist: "query",
|
|
273
|
+
placement: "sidebar_header"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
244
276
|
navigation: [
|
|
245
277
|
{
|
|
246
278
|
id: "group_overview",
|
|
@@ -271,7 +303,7 @@ var STUDIO_APP = {
|
|
|
271
303
|
type: "component",
|
|
272
304
|
label: "Objects",
|
|
273
305
|
componentRef: "metadata:resource",
|
|
274
|
-
params: { type: "object" },
|
|
306
|
+
params: { type: "object", package: "{active_package}" },
|
|
275
307
|
icon: "box"
|
|
276
308
|
},
|
|
277
309
|
{
|
|
@@ -279,7 +311,7 @@ var STUDIO_APP = {
|
|
|
279
311
|
type: "component",
|
|
280
312
|
label: "Validations",
|
|
281
313
|
componentRef: "metadata:resource",
|
|
282
|
-
params: { type: "validation" },
|
|
314
|
+
params: { type: "validation", package: "{active_package}" },
|
|
283
315
|
icon: "check-square"
|
|
284
316
|
}
|
|
285
317
|
]
|
|
@@ -296,7 +328,7 @@ var STUDIO_APP = {
|
|
|
296
328
|
type: "component",
|
|
297
329
|
label: "Apps",
|
|
298
330
|
componentRef: "metadata:resource",
|
|
299
|
-
params: { type: "app" },
|
|
331
|
+
params: { type: "app", package: "{active_package}" },
|
|
300
332
|
icon: "app-window"
|
|
301
333
|
},
|
|
302
334
|
{
|
|
@@ -304,7 +336,7 @@ var STUDIO_APP = {
|
|
|
304
336
|
type: "component",
|
|
305
337
|
label: "Views",
|
|
306
338
|
componentRef: "metadata:resource",
|
|
307
|
-
params: { type: "view" },
|
|
339
|
+
params: { type: "view", package: "{active_package}" },
|
|
308
340
|
icon: "table"
|
|
309
341
|
},
|
|
310
342
|
{
|
|
@@ -312,7 +344,7 @@ var STUDIO_APP = {
|
|
|
312
344
|
type: "component",
|
|
313
345
|
label: "Pages",
|
|
314
346
|
componentRef: "metadata:resource",
|
|
315
|
-
params: { type: "page" },
|
|
347
|
+
params: { type: "page", package: "{active_package}" },
|
|
316
348
|
icon: "file-text"
|
|
317
349
|
},
|
|
318
350
|
{
|
|
@@ -320,7 +352,7 @@ var STUDIO_APP = {
|
|
|
320
352
|
type: "component",
|
|
321
353
|
label: "Dashboards",
|
|
322
354
|
componentRef: "metadata:resource",
|
|
323
|
-
params: { type: "dashboard" },
|
|
355
|
+
params: { type: "dashboard", package: "{active_package}" },
|
|
324
356
|
icon: "layout-dashboard"
|
|
325
357
|
},
|
|
326
358
|
{
|
|
@@ -328,7 +360,7 @@ var STUDIO_APP = {
|
|
|
328
360
|
type: "component",
|
|
329
361
|
label: "Reports",
|
|
330
362
|
componentRef: "metadata:resource",
|
|
331
|
-
params: { type: "report" },
|
|
363
|
+
params: { type: "report", package: "{active_package}" },
|
|
332
364
|
icon: "bar-chart-3"
|
|
333
365
|
}
|
|
334
366
|
]
|
|
@@ -345,7 +377,7 @@ var STUDIO_APP = {
|
|
|
345
377
|
type: "component",
|
|
346
378
|
label: "Actions",
|
|
347
379
|
componentRef: "metadata:resource",
|
|
348
|
-
params: { type: "action" },
|
|
380
|
+
params: { type: "action", package: "{active_package}" },
|
|
349
381
|
icon: "mouse-pointer-click"
|
|
350
382
|
},
|
|
351
383
|
{
|
|
@@ -353,7 +385,7 @@ var STUDIO_APP = {
|
|
|
353
385
|
type: "component",
|
|
354
386
|
label: "Hooks",
|
|
355
387
|
componentRef: "metadata:resource",
|
|
356
|
-
params: { type: "hook" },
|
|
388
|
+
params: { type: "hook", package: "{active_package}" },
|
|
357
389
|
icon: "webhook"
|
|
358
390
|
}
|
|
359
391
|
]
|
|
@@ -370,7 +402,7 @@ var STUDIO_APP = {
|
|
|
370
402
|
type: "component",
|
|
371
403
|
label: "Flows",
|
|
372
404
|
componentRef: "metadata:resource",
|
|
373
|
-
params: { type: "flow" },
|
|
405
|
+
params: { type: "flow", package: "{active_package}" },
|
|
374
406
|
icon: "git-branch"
|
|
375
407
|
},
|
|
376
408
|
{
|
|
@@ -378,7 +410,7 @@ var STUDIO_APP = {
|
|
|
378
410
|
type: "component",
|
|
379
411
|
label: "Workflow Rules",
|
|
380
412
|
componentRef: "metadata:resource",
|
|
381
|
-
params: { type: "workflow" },
|
|
413
|
+
params: { type: "workflow", package: "{active_package}" },
|
|
382
414
|
icon: "zap"
|
|
383
415
|
},
|
|
384
416
|
{
|
|
@@ -386,7 +418,7 @@ var STUDIO_APP = {
|
|
|
386
418
|
type: "component",
|
|
387
419
|
label: "Approval Processes",
|
|
388
420
|
componentRef: "metadata:resource",
|
|
389
|
-
params: { type: "approval" },
|
|
421
|
+
params: { type: "approval", package: "{active_package}" },
|
|
390
422
|
icon: "check-circle"
|
|
391
423
|
}
|
|
392
424
|
]
|
|
@@ -405,7 +437,7 @@ var STUDIO_APP = {
|
|
|
405
437
|
type: "component",
|
|
406
438
|
label: "Agents",
|
|
407
439
|
componentRef: "metadata:resource",
|
|
408
|
-
params: { type: "agent" },
|
|
440
|
+
params: { type: "agent", package: "{active_package}" },
|
|
409
441
|
icon: "bot"
|
|
410
442
|
},
|
|
411
443
|
{
|
|
@@ -413,7 +445,7 @@ var STUDIO_APP = {
|
|
|
413
445
|
type: "component",
|
|
414
446
|
label: "Tools",
|
|
415
447
|
componentRef: "metadata:resource",
|
|
416
|
-
params: { type: "tool" },
|
|
448
|
+
params: { type: "tool", package: "{active_package}" },
|
|
417
449
|
icon: "wrench"
|
|
418
450
|
},
|
|
419
451
|
{
|
|
@@ -421,7 +453,7 @@ var STUDIO_APP = {
|
|
|
421
453
|
type: "component",
|
|
422
454
|
label: "Skills",
|
|
423
455
|
componentRef: "metadata:resource",
|
|
424
|
-
params: { type: "skill" },
|
|
456
|
+
params: { type: "skill", package: "{active_package}" },
|
|
425
457
|
icon: "brain"
|
|
426
458
|
}
|
|
427
459
|
]
|
|
@@ -474,7 +506,7 @@ var STUDIO_APP = {
|
|
|
474
506
|
type: "component",
|
|
475
507
|
label: "Email Templates",
|
|
476
508
|
componentRef: "metadata:resource",
|
|
477
|
-
params: { type: "email_template" },
|
|
509
|
+
params: { type: "email_template", package: "{active_package}" },
|
|
478
510
|
icon: "mail"
|
|
479
511
|
}
|
|
480
512
|
]
|