@objectstack/platform-objects 7.1.0 → 7.2.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/apps/index.js +3 -0
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/index.mjs +3 -0
- package/dist/apps/index.mjs.map +1 -1
- package/dist/audit/index.d.mts +144 -48
- package/dist/audit/index.d.ts +144 -48
- package/dist/identity/index.d.mts +183 -61
- package/dist/identity/index.d.ts +183 -61
- package/dist/identity/index.js +4 -1
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/index.mjs +4 -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 +137 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +137 -2
- package/dist/index.mjs.map +1 -1
- package/dist/integration/index.d.mts +9 -3
- package/dist/integration/index.d.ts +9 -3
- package/dist/metadata/index.d.mts +3246 -7
- package/dist/metadata/index.d.ts +3246 -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 +63 -21
- package/dist/security/index.d.ts +63 -21
- package/dist/system/index.d.mts +27 -9
- package/dist/system/index.d.ts +27 -9
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -10,6 +10,9 @@ var SysUser = ObjectSchema.create({
|
|
|
10
10
|
icon: "user",
|
|
11
11
|
isSystem: true,
|
|
12
12
|
managedBy: "better-auth",
|
|
13
|
+
// ADR-0010 — identity table is managed by better-auth, schema must not drift.
|
|
14
|
+
_lock: "full",
|
|
15
|
+
_lockReason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
13
16
|
description: "User accounts for authentication",
|
|
14
17
|
displayNameField: "name",
|
|
15
18
|
titleFormat: "{name}",
|
|
@@ -601,7 +604,7 @@ var SysAccount = ObjectSchema.create({
|
|
|
601
604
|
mode: "create",
|
|
602
605
|
locations: ["list_toolbar"],
|
|
603
606
|
type: "url",
|
|
604
|
-
target: "/api/v1/auth/sign-in/social?provider=${param.provider}&callbackURL=${ctx.origin}/apps/account/sys_account",
|
|
607
|
+
target: "/api/v1/auth/sign-in/social?provider=${param.provider}&callbackURL=${ctx.origin}/_console/apps/account/sys_account",
|
|
605
608
|
params: [
|
|
606
609
|
{
|
|
607
610
|
name: "provider",
|
|
@@ -6922,6 +6925,135 @@ var SysMetadataHistoryObject = ObjectSchema.create({
|
|
|
6922
6925
|
trash: false
|
|
6923
6926
|
}
|
|
6924
6927
|
});
|
|
6928
|
+
var SysMetadataAuditObject = ObjectSchema.create({
|
|
6929
|
+
name: "sys_metadata_audit",
|
|
6930
|
+
label: "Metadata Audit",
|
|
6931
|
+
pluralLabel: "Metadata Audit",
|
|
6932
|
+
icon: "shield-check",
|
|
6933
|
+
isSystem: true,
|
|
6934
|
+
managedBy: "append-only",
|
|
6935
|
+
description: "Append-only audit trail of metadata write decisions (ADR-0010).",
|
|
6936
|
+
fields: {
|
|
6937
|
+
/** Primary Key (UUID) */
|
|
6938
|
+
id: Field.text({
|
|
6939
|
+
label: "ID",
|
|
6940
|
+
required: true,
|
|
6941
|
+
readonly: true
|
|
6942
|
+
}),
|
|
6943
|
+
/** When the decision was made (ISO-8601 UTC). */
|
|
6944
|
+
occurred_at: Field.datetime({
|
|
6945
|
+
label: "Occurred At",
|
|
6946
|
+
required: true,
|
|
6947
|
+
readonly: true
|
|
6948
|
+
}),
|
|
6949
|
+
/** Acting principal (user id, system id, or 'system'). */
|
|
6950
|
+
actor: Field.text({
|
|
6951
|
+
label: "Actor",
|
|
6952
|
+
required: true,
|
|
6953
|
+
readonly: true,
|
|
6954
|
+
maxLength: 255,
|
|
6955
|
+
description: 'Acting principal \u2014 user id, system id, or "system".'
|
|
6956
|
+
}),
|
|
6957
|
+
/** Code path that produced the decision (e.g. `protocol.saveMetaItem`). */
|
|
6958
|
+
source: Field.text({
|
|
6959
|
+
label: "Source",
|
|
6960
|
+
required: false,
|
|
6961
|
+
readonly: true,
|
|
6962
|
+
maxLength: 128
|
|
6963
|
+
}),
|
|
6964
|
+
/** Metadata type (singular, e.g. `app`, `object`, `view`). */
|
|
6965
|
+
type: Field.text({
|
|
6966
|
+
label: "Metadata Type",
|
|
6967
|
+
required: true,
|
|
6968
|
+
readonly: true,
|
|
6969
|
+
searchable: true,
|
|
6970
|
+
maxLength: 100
|
|
6971
|
+
}),
|
|
6972
|
+
/** Item machine name. */
|
|
6973
|
+
name: Field.text({
|
|
6974
|
+
label: "Name",
|
|
6975
|
+
required: true,
|
|
6976
|
+
readonly: true,
|
|
6977
|
+
searchable: true,
|
|
6978
|
+
maxLength: 255
|
|
6979
|
+
}),
|
|
6980
|
+
/** Organization for multi-tenant filtering. NULL for env-wide writes. */
|
|
6981
|
+
organization_id: Field.lookup("sys_organization", {
|
|
6982
|
+
label: "Organization",
|
|
6983
|
+
required: false,
|
|
6984
|
+
readonly: true
|
|
6985
|
+
}),
|
|
6986
|
+
/** Operation kind. */
|
|
6987
|
+
operation: Field.select(["save", "publish", "rollback", "delete", "reset"], {
|
|
6988
|
+
label: "Operation",
|
|
6989
|
+
required: true,
|
|
6990
|
+
readonly: true
|
|
6991
|
+
}),
|
|
6992
|
+
/** Decision outcome — allowed, denied (refused), or forced (bypassed via override). */
|
|
6993
|
+
outcome: Field.select(["allowed", "denied", "forced"], {
|
|
6994
|
+
label: "Outcome",
|
|
6995
|
+
required: true,
|
|
6996
|
+
readonly: true
|
|
6997
|
+
}),
|
|
6998
|
+
/**
|
|
6999
|
+
* Machine-readable code for the decision:
|
|
7000
|
+
* - on `allowed`: `'ok'`
|
|
7001
|
+
* - on `denied`: `'not_overridable'` | `'not_creatable'` |
|
|
7002
|
+
* `'item_locked'` | `'invalid_metadata'` | `'destructive_change'` |
|
|
7003
|
+
* `'metadata_conflict'`
|
|
7004
|
+
* - on `forced`: `'lock_override'` (Phase 3)
|
|
7005
|
+
*/
|
|
7006
|
+
code: Field.text({
|
|
7007
|
+
label: "Code",
|
|
7008
|
+
required: true,
|
|
7009
|
+
readonly: true,
|
|
7010
|
+
maxLength: 64
|
|
7011
|
+
}),
|
|
7012
|
+
/**
|
|
7013
|
+
* Lock state observed at the time of the decision (`none` if the
|
|
7014
|
+
* item carried no `_lock`). Captured even on `allowed` rows so
|
|
7015
|
+
* later compliance queries can see "what was the lock state when
|
|
7016
|
+
* this write succeeded".
|
|
7017
|
+
*/
|
|
7018
|
+
lock_state: Field.select(["none", "no-overlay", "no-delete", "full"], {
|
|
7019
|
+
label: "Lock State",
|
|
7020
|
+
required: false,
|
|
7021
|
+
readonly: true
|
|
7022
|
+
}),
|
|
7023
|
+
/** True when the write succeeded by bypassing a lock (Phase 3). */
|
|
7024
|
+
lock_overridden: Field.boolean({
|
|
7025
|
+
label: "Lock Overridden",
|
|
7026
|
+
required: false,
|
|
7027
|
+
readonly: true
|
|
7028
|
+
}),
|
|
7029
|
+
/** Optional request correlation id for tracing. */
|
|
7030
|
+
request_id: Field.text({
|
|
7031
|
+
label: "Request ID",
|
|
7032
|
+
required: false,
|
|
7033
|
+
readonly: true,
|
|
7034
|
+
maxLength: 128
|
|
7035
|
+
}),
|
|
7036
|
+
/** Optional free-form context (e.g. brief diff summary). */
|
|
7037
|
+
note: Field.textarea({
|
|
7038
|
+
label: "Note",
|
|
7039
|
+
required: false,
|
|
7040
|
+
readonly: true
|
|
7041
|
+
})
|
|
7042
|
+
},
|
|
7043
|
+
indexes: [
|
|
7044
|
+
{ fields: ["organization_id", "occurred_at"] },
|
|
7045
|
+
{ fields: ["type", "name", "occurred_at"] },
|
|
7046
|
+
{ fields: ["actor", "occurred_at"] },
|
|
7047
|
+
{ fields: ["outcome"] }
|
|
7048
|
+
],
|
|
7049
|
+
enable: {
|
|
7050
|
+
trackHistory: false,
|
|
7051
|
+
searchable: false,
|
|
7052
|
+
apiEnabled: true,
|
|
7053
|
+
apiMethods: ["get", "list"],
|
|
7054
|
+
trash: false
|
|
7055
|
+
}
|
|
7056
|
+
});
|
|
6925
7057
|
var SysSetting = ObjectSchema.create({
|
|
6926
7058
|
name: "sys_setting",
|
|
6927
7059
|
label: "Setting",
|
|
@@ -7315,6 +7447,9 @@ var SETUP_APP = {
|
|
|
7315
7447
|
icon: "settings",
|
|
7316
7448
|
active: true,
|
|
7317
7449
|
isDefault: false,
|
|
7450
|
+
// ADR-0010 — core admin UI must not be overlay-edited or deleted.
|
|
7451
|
+
_lock: "full",
|
|
7452
|
+
_lockReason: "Core admin UI shipped by @objectstack/platform-objects \u2014 see ADR-0010.",
|
|
7318
7453
|
branding: {
|
|
7319
7454
|
primaryColor: "#475569"
|
|
7320
7455
|
// Slate-600 — neutral admin palette
|
|
@@ -26000,6 +26135,6 @@ function createPlatformObjectsPlugin() {
|
|
|
26000
26135
|
return new PlatformObjectsPlugin();
|
|
26001
26136
|
}
|
|
26002
26137
|
|
|
26003
|
-
export { ACCOUNT_APP, MetadataFormsTranslations, PlatformObjectsPlugin, SETUP_APP, STUDIO_APP, SetupAppTranslations, SysAccount, SysActivity, SysApiKey, SysApprovalAction, SysApprovalProcess, SysApprovalRequest, SysAttachment, SysAuditLog, SysComment, SysDepartment, SysDepartmentMember, SysDeviceCode, SysEmail, SysEmailTemplate, SysInvitation, SysJob, SysJobQueue, SysJobRun, SysJwks, SysMember, SysMetadataObject as SysMetadata, SysMetadataHistoryObject, SysMetadataObject, SysNotification, SysOauthAccessToken, SysOauthApplication, SysOauthConsent, SysOauthRefreshToken, SysOrganization, SysOrganizationDetailPage, SysPermissionSet, SysPresence, SysRecordShare, SysReportSchedule, SysRole, SysRolePermissionSet, SysSavedReport, SysSecret, SysSession, SysSetting, SysSettingAudit, SysShareLink, SysSharingRule, SysTeam, SysTeamMember, SysTwoFactor, SysUser, SysUserDetailPage, SysUserPermissionSet, SysUserPreference, SysVerification, SysWebhook, SystemOverviewDashboard, createPlatformObjectsPlugin, defaultPermissionSets, en, esES, jaJP, zhCN };
|
|
26138
|
+
export { ACCOUNT_APP, MetadataFormsTranslations, PlatformObjectsPlugin, SETUP_APP, STUDIO_APP, SetupAppTranslations, SysAccount, SysActivity, SysApiKey, SysApprovalAction, SysApprovalProcess, SysApprovalRequest, SysAttachment, SysAuditLog, SysComment, SysDepartment, SysDepartmentMember, SysDeviceCode, SysEmail, SysEmailTemplate, SysInvitation, SysJob, SysJobQueue, SysJobRun, SysJwks, SysMember, SysMetadataObject as SysMetadata, SysMetadataAuditObject, SysMetadataHistoryObject, SysMetadataObject, SysNotification, SysOauthAccessToken, SysOauthApplication, SysOauthConsent, SysOauthRefreshToken, SysOrganization, SysOrganizationDetailPage, SysPermissionSet, SysPresence, SysRecordShare, SysReportSchedule, SysRole, SysRolePermissionSet, SysSavedReport, SysSecret, SysSession, SysSetting, SysSettingAudit, SysShareLink, SysSharingRule, SysTeam, SysTeamMember, SysTwoFactor, SysUser, SysUserDetailPage, SysUserPermissionSet, SysUserPreference, SysVerification, SysWebhook, SystemOverviewDashboard, createPlatformObjectsPlugin, defaultPermissionSets, en, esES, jaJP, zhCN };
|
|
26004
26139
|
//# sourceMappingURL=index.mjs.map
|
|
26005
26140
|
//# sourceMappingURL=index.mjs.map
|