import * as _objectstack_spec_data from '@objectstack/spec/data'; export { SysBusinessUnit, SysBusinessUnitMember } from '@objectstack/platform-objects/identity'; import { ISharingService, IHierarchyScopeResolver, AuthoredRowWriteOperation, AuthoredRowWriteVerdict, ExplainAccessRequest, IOwnershipQueueService, SharingWriteVerdict, GrantShareInput, RecordShare, SharingRuleRecipientType, ShareAccessLevel, SharingRuleEvaluationResult, ISharingRuleService, DefineSharingRuleInput, SharingRuleRow, IShareLinkService, CreateShareLinkInput, ShareLink, ListShareLinksFilter, ResolveShareLinkResult, IHttpRequest, IHttpServer, ITeamGraphService, IBusinessUnitGraphService, OwnershipQueueCallerPackage, ResolvedQueue, QueueExpansionPurpose, OwnershipQueueFailedReadAnswer, QueueMemberSpec } from '@objectstack/spec/contracts'; export { CreateShareLinkInput, DefineSharingRuleInput, GrantShareInput, IBusinessUnitGraphService, IOwnershipQueueService, IShareLinkService, ISharingRuleService, ISharingService, ITeamGraphService, ListShareLinksFilter, OWNERSHIP_QUEUE_SERVICE, QueueMemberSpec, RecordShare, RecordShareRecipientType, ResolveShareLinkResult, ResolvedQueue, SHARE_LINK_SERVICE, ShareAccessLevel, ShareLink, ShareLinkAudience, ShareLinkExecutionContext, ShareLinkPermission, ShareSource, SharingRuleEvaluationResult, SharingRuleRecipientType, SharingRuleRow } from '@objectstack/spec/contracts'; import { ExplainDecision, TenancyPosture } from '@objectstack/spec/security'; import { ExecutionContext } from '@objectstack/spec/kernel'; import { CelFilterFailReason } from '@objectstack/formula'; import { PackageScopedRefusal, EngineMiddleware } from '@objectstack/objectql'; import { FieldErrorCode } from '@objectstack/spec/api'; import { Plugin, PluginContext } from '@objectstack/core'; import { ValidationMessageTranslator } from '@objectstack/spec/system'; /** * sys_record_share — Per-Record Sharing Grant * * Bridges the ownership-only baseline established by `object.sharingModel` * with the real-world need to delegate access to a single record. Each * row says: "principal P has access level L on (object O, record R), * because of source S (manual grant or rule)." * * Enforcement lives in `@objectstack/plugin-sharing`: * - For objects with `sharingModel: 'private'`, the engine middleware * AND-s `{$or:[{owner_id:userId},{id:{$in:[grantedRecordIds]}}]}` * into every `find` against that object. * - For objects with `sharingModel: 'private' | 'read'`, the same * middleware enforces edit/delete by checking ownership OR a share * row with `access_level in ('edit','full')`. `full` is no longer * authorable (#3865 — it never granted more than `edit`); the gates * keep matching it so not-yet-normalised rows stay honoured. * * Conventions: * - `object_name` is the short object name (e.g. `account`, `lead`). * - `recipient_type` mirrors `RecordShareRecipientType` from * `@objectstack/spec/contracts` (`user` is enforced today; * `group`/`position` are persisted for forward-compatibility). * - `source = 'manual'` rows are created by a user via the REST * `POST /data/:object/:id/shares` endpoint. `source = 'rule'` rows * are materialised by the sharing-rule evaluator (future); the * `source_id` lets the evaluator reconcile stale grants. * * @namespace sys */ declare const SysRecordShare: Omit<{ name: string; fields: Record; }[] | undefined; widget?: string | undefined; hidden?: boolean | undefined; internal?: boolean | undefined; readonly?: boolean | undefined; requiredPermissions?: string[] | undefined; maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; ackPlaintextMasking?: boolean | undefined; system?: boolean | undefined; sortable?: boolean | undefined; inlineHelpText?: string | undefined; placeholder?: string | undefined; autonumberFormat?: string | undefined; externalId?: boolean | undefined; renamedFrom?: string[] | undefined; }>; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; label?: string | undefined; pluralLabel?: string | undefined; description?: string | undefined; icon?: string | undefined; isSystem?: boolean | undefined; managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "synced" | "better-auth" | undefined; ownership?: "none" | "org" | "user" | "business_unit" | undefined; userActions?: { create?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; import?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; edit?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; delete?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; exportCsv?: boolean | undefined; } | undefined; systemFields?: false | { tenant?: boolean | undefined; audit?: boolean | undefined; } | undefined; datasource?: string | undefined; external?: { remoteName?: string | undefined; remoteSchema?: string | undefined; writable?: boolean | undefined; columnMap?: Record | undefined; introspectedAt?: string | undefined; ignoreColumns?: string[] | undefined; } | undefined; attachedOnRead?: Record> | undefined; indexes?: { fields: string[]; name?: string | undefined; unique?: false | "global" | "organization" | undefined; }[] | undefined; fieldGroups?: { key: string; label: string; icon?: string | undefined; description?: string | undefined; relatedList?: string | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; collapse?: "none" | "collapsed" | "expanded" | undefined; defaultExpanded?: boolean | undefined; collapsible?: boolean | undefined; collapsed?: boolean | undefined; }[] | undefined; tenancy?: { enabled: boolean; tenantField?: string | undefined; } | undefined; access?: { default?: "public" | "private" | undefined; } | undefined; requiredPermissions?: string[] | { read?: string[] | undefined; create?: string[] | undefined; update?: string[] | undefined; delete?: string[] | undefined; } | undefined; lifecycle?: { class: "audit" | "record" | "telemetry" | "transient" | "event"; retention?: { maxAge: string; onlyWhen?: Record | undefined; } | undefined; ttl?: { field: string; expireAfter: string; onlyWhen?: Record | undefined; } | undefined; storage?: { strategy: "rotation"; shards: number; unit: "day" | "week" | "month"; } | undefined; archive?: { after: string; to: string; keep?: string | undefined; } | undefined; seal?: { valueFields: string[]; chainField?: string | undefined; } | undefined; reclaim?: boolean | undefined; } | undefined; fileAccessDelegate?: string | undefined; schemaReadDelegate?: string | undefined; validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined; activityMilestones?: { field: string; value: string; summary: string; type?: string | undefined; }[] | undefined; nameField?: string | undefined; displayNameField?: string | undefined; titleFormat?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; imageField?: string | undefined; highlightFields?: string[] | undefined; relatedLists?: string[] | undefined; stageField?: string | false | undefined; editMode?: "page" | "modal" | undefined; listViews?: Record & { key?: never; defaultValue?: never; }) | undefined; width?: number | undefined; align?: "center" | "left" | "right" | undefined; hidden?: boolean | undefined; sortable?: boolean | undefined; resizable?: boolean | undefined; wrap?: boolean | undefined; type?: string | undefined; pinned?: "left" | "right" | undefined; summary?: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { type: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; field?: string | undefined; } | undefined; prefix?: { field: string; type?: "text" | "badge" | undefined; } | undefined; link?: boolean | undefined; action?: string | undefined; }[]; map?: { latitudeField?: string | undefined; longitudeField?: string | undefined; locationField?: string | undefined; titleField?: string | undefined; descriptionField?: string | undefined; zoom?: number | undefined; center?: [number, number] | undefined; style?: string | undefined; } | undefined; type?: "map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid" | undefined; sort?: { field: string; order: "asc" | "desc"; }[] | undefined; filter?: ({ field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; } | { or: { field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; }[]; })[] | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; emptyState?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; message?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; icon?: string | undefined; link?: { label: string | (Record & { key?: never; defaultValue?: never; }); url: string; } | undefined; } | undefined; name?: string | undefined; bulkActions?: string[] | undefined; bulkActionDefs?: { name: string; operation: "delete" | "update" | "custom"; label?: string | undefined; icon?: string | undefined; variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; execution?: "aggregate" | "perRecord" | undefined; patch?: Record | undefined; params?: { name: string; type: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector"; label?: string | undefined; help?: string | undefined; required?: boolean | undefined; default?: unknown; options?: { [x: string]: unknown; label: string; value: string | number | boolean; }[] | undefined; object?: string | undefined; labelField?: string | undefined; multiple?: boolean | undefined; placeholder?: string | undefined; dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; }[] | undefined; confirmText?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; confirmLabel?: string | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; maxRecords?: number | undefined; batchSize?: number | undefined; }[] | undefined; rowActions?: string[] | undefined; navigation?: { mode?: "none" | "page" | "drawer" | "new_window" | undefined; view?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; preventNavigation?: boolean | undefined; openNewTab?: boolean | undefined; size?: "full" | "auto" | "sm" | "md" | "lg" | "xl" | undefined; width?: string | number | undefined; } | undefined; tree?: { parentField?: string | undefined; labelField?: string | undefined; fields?: string[] | undefined; defaultExpandedDepth?: number | undefined; } | undefined; inlineEdit?: boolean | undefined; conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; requiredPermissions?: string[] | undefined; sharing?: { type?: { "[REMOVED] Key retired: run `os validate` for its migration.": never; } | undefined; lockedBy?: string | undefined; } | undefined; data?: { provider: "object"; object: string; } | { provider: "value"; items: unknown[]; } | { provider: "schema"; schemaId: string; schema?: Record | undefined; } | undefined; aria?: { ariaLabel?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; ariaDescribedBy?: string | undefined; role?: string | undefined; } | undefined; appearance?: { showDescription?: boolean | undefined; allowedVisualizations?: ("map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid")[] | undefined; } | undefined; resizable?: boolean | undefined; kanban?: { groupByField: string; columns: string[]; lanes?: string[] | undefined; summarizeField?: string | undefined; titleField?: string | undefined; } | undefined; gantt?: { startDateField: string; endDateField: string; titleField: string; progressField?: string | undefined; dependenciesField?: string | undefined; colorField?: string | undefined; parentField?: string | undefined; typeField?: string | undefined; baselineStartField?: string | undefined; baselineEndField?: string | undefined; groupByField?: string | undefined; resourceView?: boolean | undefined; assigneeField?: string | undefined; effortField?: string | undefined; capacity?: number | undefined; tooltipFields?: (string | { field: string; label?: string | undefined; })[] | undefined; quickFilters?: { field: string; label?: string | undefined; options?: (string | { value: string | number; label?: string | undefined; })[] | undefined; }[] | undefined; autoZoomToFilter?: boolean | undefined; viewMode?: "day" | "week" | "month" | "quarter" | "year" | undefined; borderColorField?: string | undefined; lockField?: string | undefined; objectField?: string | undefined; summaryExtent?: "self" | "children" | undefined; defaultCollapsedDepth?: number | undefined; dependencyTypes?: boolean | undefined; timeZone?: string | undefined; exportFileName?: string | undefined; interactions?: { move?: boolean | undefined; resize?: boolean | undefined; progress?: boolean | undefined; link?: boolean | undefined; } | undefined; timeSegments?: { bands: { label: string; start: string; end: string; key?: string | undefined; color?: string | undefined; }[]; dayStart?: string | undefined; showMidnight?: boolean | undefined; } | undefined; } | undefined; timeline?: { startDateField: string; titleField: string; endDateField?: string | undefined; groupByField?: string | undefined; colorField?: string | undefined; scale?: "day" | "week" | "month" | "quarter" | "year" | "hour" | undefined; } | undefined; gallery?: { coverField?: string | undefined; coverFit?: "cover" | "contain" | undefined; cardSize?: "small" | "medium" | "large" | undefined; titleField?: string | undefined; visibleFields?: string[] | undefined; } | undefined; calendar?: { startDateField: string; endDateField?: string | undefined; titleField?: string | undefined; colorField?: string | undefined; allDayField?: string | undefined; initialDate?: string | undefined; } | undefined; chart?: { dataset: string; values: string[]; chartType?: "bar" | "line" | "area" | "pie" | "scatter" | undefined; dimensions?: string[] | undefined; } | undefined; timesheet?: { rowFields: string[]; dateField: string; valueField: string; } | undefined; rowHeight?: "medium" | "compact" | "short" | "tall" | "extra_tall" | undefined; rowColor?: { field: string; colors?: Record | undefined; } | undefined; tabs?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; searchableFields?: string[] | undefined; filterableFields?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; compactToolbar?: boolean | undefined; selection?: { type?: "none" | "multiple" | "single" | undefined; } | undefined; pagination?: { pageSize?: number | undefined; pageSizeOptions?: number[] | undefined; } | undefined; pageName?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; grouping?: { fields: { field: string; order?: "asc" | "desc" | undefined; orderBy?: string | undefined; collapsed?: boolean | undefined; }[]; } | undefined; hiddenFields?: string[] | undefined; fieldOrder?: string[] | undefined; exportOptions?: ("json" | "csv" | "xlsx")[] | { formats?: ("json" | "csv" | "xlsx")[] | undefined; maxRecords?: number | undefined; includeHeaders?: boolean | undefined; fileNamePrefix?: string | undefined; streaming?: boolean | undefined; } | undefined; userActions?: { sort?: boolean | undefined; search?: boolean | undefined; filter?: boolean | undefined; refresh?: boolean | undefined; rowHeight?: boolean | undefined; group?: boolean | undefined; addRecordForm?: boolean | undefined; editInline?: boolean | undefined; hideFields?: boolean | undefined; rowColor?: boolean | undefined; buttons?: string[] | undefined; } | undefined; addRecord?: { enabled: boolean; position?: "top" | "bottom" | "both" | undefined; mode?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; formView?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; } | undefined; showRecordCount?: boolean | undefined; allowPrinting?: boolean | undefined; userFilters?: { element?: "toggle" | "dropdown" | undefined; fields?: { field: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "boolean" | "text" | "select" | "multi-select" | "date-range" | undefined; options?: { value: string | number | boolean; label: string | (Record & { key?: never; defaultValue?: never; }); color?: string | undefined; }[] | undefined; showCount?: boolean | undefined; defaultValues?: (string | number | boolean)[] | undefined; }[] | undefined; } | undefined; }> | undefined; searchableFields?: string[] | undefined; enable?: { trackHistory?: boolean | undefined; searchable?: boolean | undefined; apiEnabled?: boolean | undefined; apiMethods?: ("create" | "delete" | "update" | "get" | "bulk" | "list")[] | undefined; aiReadable?: boolean | undefined; files?: boolean | undefined; feeds?: boolean | undefined; activities?: boolean | undefined; clone?: boolean | undefined; approvalsVisibleToReaders?: boolean | undefined; } | undefined; sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; sharing?: { controlledByParent?: { ownerMayEdit?: boolean | undefined; writeRequiresMasterRead?: boolean | undefined; } | undefined; } | undefined; defaultRowScope?: { name: string; operation: "delete" | "update" | "select" | "insert" | "all"; label?: string | undefined; description?: string | undefined; using?: string | undefined; check?: string | undefined; positions?: string[] | undefined; enabled?: boolean | undefined; } | undefined; membershipKeys?: Record | undefined; externalSharingModel?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; publicSharing?: { enabled?: boolean | undefined; allowedAudiences?: ("public" | "email" | "link_only" | "signed_in")[] | undefined; allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; maxExpiryDays?: number | undefined; redactFields?: string[] | undefined; eligibility?: string | undefined; } | undefined; actions?: { name: string; label: string | (Record & { key?: never; defaultValue?: never; }); overrides?: { package: string; basedOn: string; } | undefined; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; objectName?: string | undefined; icon?: string | undefined; locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section")[] | undefined; component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; type?: "modal" | "url" | "flow" | "form" | "script" | "api" | undefined; target?: string | undefined; openIn?: "self" | "new-tab" | undefined; body?: { language: "expression"; source: string; } | { language: "js"; source: string; capabilities?: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log" | "email.send" | "activity.append")[] | undefined; timeoutMs?: number | undefined; memoryMb?: number | undefined; } | undefined; refusals?: Record | undefined; params?: string[] | undefined; }> | undefined; operation?: "update" | undefined; patch?: Record | undefined; execution?: "aggregate" | "perRecord" | undefined; params?: { name?: string | undefined; field?: string | undefined; objectOverride?: string | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; widget?: string | undefined; required?: boolean | undefined; options?: { label: string | (Record & { key?: never; defaultValue?: never; }); value: string; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; placeholder?: string | undefined; helpText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; defaultValue?: unknown; multiple?: boolean | undefined; accept?: string[] | undefined; maxSize?: number | undefined; reference?: string | undefined; defaultFromRow?: boolean | undefined; carryOver?: boolean | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; }[] | undefined; submitText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; cancelText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; order?: number | undefined; confirmText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; successMessage?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; outcomeMessages?: Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }> | undefined; errorMessage?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; refreshAfter?: boolean | undefined; undoable?: boolean | undefined; resultDialog?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; acknowledge?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; } | undefined; preflight?: { read: { url: string; method?: "GET" | undefined; }; path?: string | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; seed?: { param: string; path: string; }[] | undefined; } | undefined; visible?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; requiresMembershipReach?: "invite_member" | "cancel_invitation" | "update_member_role" | "transfer_ownership" | "remove_member" | "create_team" | "update_team" | "remove_team" | "add_team_member" | "remove_team_member" | "update_organization" | "delete_organization" | undefined; disabled?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledReason?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; pressed?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; ai?: { exposed?: boolean | undefined; description?: string | undefined; category?: "data" | "flow" | "action" | "integration" | "vector_search" | "analytics" | "utility" | undefined; paramHints?: Record | undefined; outputSchema?: Record | undefined; requiresConfirmation?: boolean | undefined; } | undefined; recordIdParam?: string | undefined; recordIdField?: string | undefined; bodyShape?: "flat" | { wrap: string; } | undefined; method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined; bodyExtra?: Record | undefined; mode?: "create" | "edit" | "delete" | "custom" | undefined; opensInNewTab?: boolean | undefined; newTabUrl?: string | undefined; onSuccess?: { navigate: string; openIn?: "self" | "newTab" | undefined; } | undefined; aria?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; }[] | undefined; protection?: { lock: "none" | "no-overlay" | "no-delete" | "full"; reason: string; docsUrl?: string | undefined; } | undefined; }, "fields"> & Pick<{ readonly name: "sys_record_share"; readonly label: "Record Share"; readonly pluralLabel: "Record Shares"; readonly icon: "share"; readonly isSystem: true; readonly managedBy: "engine-owned"; readonly description: "Records shared beyond their owner, one row per grant."; readonly nameField: "recipient_id"; readonly highlightFields: ["recipient_id", "access_level", "source"]; readonly listViews: { readonly all_shares: { readonly type: "grid"; readonly name: "all_shares"; readonly label: "All"; readonly data: { readonly provider: "object"; readonly object: "sys_record_share"; }; readonly columns: ["record_id", "recipient_type", "recipient_id", "access_level", "source", "created_at"]; readonly sort: [{ readonly field: "created_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 100; }; }; readonly granted_to_me: { readonly type: "grid"; readonly name: "granted_to_me"; readonly label: "Granted to Me"; readonly data: { readonly provider: "object"; readonly object: "sys_record_share"; }; readonly columns: ["record_id", "access_level", "source", "granted_by", "created_at"]; readonly filter: [{ readonly field: "recipient_type"; readonly operator: "equals"; readonly value: "user"; }, { readonly field: "recipient_id"; readonly operator: "equals"; readonly value: "{current_user_id}"; }]; readonly sort: [{ readonly field: "created_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 50; }; }; readonly granted_by_me: { readonly type: "grid"; readonly name: "granted_by_me"; readonly label: "Granted by Me"; readonly data: { readonly provider: "object"; readonly object: "sys_record_share"; }; readonly columns: ["record_id", "recipient_id", "access_level", "source", "created_at"]; readonly filter: [{ readonly field: "granted_by"; readonly operator: "equals"; readonly value: "{current_user_id}"; }]; readonly sort: [{ readonly field: "created_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 50; }; }; readonly by_object: { readonly type: "grid"; readonly name: "by_object"; readonly label: "By Object"; readonly data: { readonly provider: "object"; readonly object: "sys_record_share"; }; readonly columns: ["record_id", "recipient_id", "access_level", "source", "created_at"]; readonly sort: [{ readonly field: "object_name"; readonly order: "asc"; }, { readonly field: "created_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 100; }; }; readonly manual_grants: { readonly type: "grid"; readonly name: "manual_grants"; readonly label: "Manual Grants"; readonly data: { readonly provider: "object"; readonly object: "sys_record_share"; }; readonly columns: ["record_id", "recipient_id", "access_level", "granted_by", "reason", "created_at"]; readonly filter: [{ readonly field: "source"; readonly operator: "equals"; readonly value: "manual"; }]; readonly sort: [{ readonly field: "created_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 50; }; }; readonly rule_grants: { readonly type: "grid"; readonly name: "rule_grants"; readonly label: "Rule Grants"; readonly data: { readonly provider: "object"; readonly object: "sys_record_share"; }; readonly columns: ["record_id", "recipient_id", "access_level", "source_id", "created_at"]; readonly filter: [{ readonly field: "source"; readonly operator: "in"; readonly value: ["rule", "team", "inherited"]; }]; readonly sort: [{ readonly field: "source_id"; readonly order: "asc"; }, { readonly field: "created_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 50; }; }; }; readonly fields: { readonly id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly object_name: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly record_id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly recipient_type: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly recipient_id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly access_level: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly source: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly source_id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly granted_by: _objectstack_spec_data.FieldInput & { readonly label: "Granted By"; readonly required: false; readonly description: "User that created the grant (manual only)"; readonly group: "Provenance"; } & { readonly type: "lookup"; readonly reference: string; }; readonly reason: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly created_at: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "datetime"; }; readonly updated_at: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "datetime"; }; }; readonly indexes: [{ readonly fields: ["object_name", "recipient_type", "recipient_id"]; }, { readonly fields: ["object_name", "record_id"]; }, { readonly fields: ["source", "source_id"]; }]; readonly enable: { readonly apiMethods: ["get", "list"]; }; }, "fields">; /** * sys_sharing_rule — Declarative record-sharing rule. * * Salesforce-style criteria-based sharing: "any record on object O that * matches criteria C is granted access level A to recipient R". Rules * are evaluated by `@objectstack/plugin-sharing` and materialise their * grants as rows in `sys_record_share` with `source='rule'` and * `source_id={rule.id}` so the evaluator can reconcile (delete + re- * insert) on rule updates without touching manual grants. * * Evaluation triggers: * - `afterInsert` / `afterUpdate` on the target object (per-record, * incremental — the hot path). * - REST `POST /sharing/rules/:id/evaluate` (admin-initiated * bulk reconcile — used after rule edits). * * Criteria are stored as JSON (a normal `FilterCondition`) so the * existing engine `find()` can do the matching natively. v1 supports * simple `{field, op, value}` style filters; CEL predicates are a * follow-up. * * @namespace sys */ declare const SysSharingRule: Omit<{ name: string; fields: Record; }[] | undefined; widget?: string | undefined; hidden?: boolean | undefined; internal?: boolean | undefined; readonly?: boolean | undefined; requiredPermissions?: string[] | undefined; maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; ackPlaintextMasking?: boolean | undefined; system?: boolean | undefined; sortable?: boolean | undefined; inlineHelpText?: string | undefined; placeholder?: string | undefined; autonumberFormat?: string | undefined; externalId?: boolean | undefined; renamedFrom?: string[] | undefined; }>; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; label?: string | undefined; pluralLabel?: string | undefined; description?: string | undefined; icon?: string | undefined; isSystem?: boolean | undefined; managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "synced" | "better-auth" | undefined; ownership?: "none" | "org" | "user" | "business_unit" | undefined; userActions?: { create?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; import?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; edit?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; delete?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; exportCsv?: boolean | undefined; } | undefined; systemFields?: false | { tenant?: boolean | undefined; audit?: boolean | undefined; } | undefined; datasource?: string | undefined; external?: { remoteName?: string | undefined; remoteSchema?: string | undefined; writable?: boolean | undefined; columnMap?: Record | undefined; introspectedAt?: string | undefined; ignoreColumns?: string[] | undefined; } | undefined; attachedOnRead?: Record> | undefined; indexes?: { fields: string[]; name?: string | undefined; unique?: false | "global" | "organization" | undefined; }[] | undefined; fieldGroups?: { key: string; label: string; icon?: string | undefined; description?: string | undefined; relatedList?: string | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; collapse?: "none" | "collapsed" | "expanded" | undefined; defaultExpanded?: boolean | undefined; collapsible?: boolean | undefined; collapsed?: boolean | undefined; }[] | undefined; tenancy?: { enabled: boolean; tenantField?: string | undefined; } | undefined; access?: { default?: "public" | "private" | undefined; } | undefined; requiredPermissions?: string[] | { read?: string[] | undefined; create?: string[] | undefined; update?: string[] | undefined; delete?: string[] | undefined; } | undefined; lifecycle?: { class: "audit" | "record" | "telemetry" | "transient" | "event"; retention?: { maxAge: string; onlyWhen?: Record | undefined; } | undefined; ttl?: { field: string; expireAfter: string; onlyWhen?: Record | undefined; } | undefined; storage?: { strategy: "rotation"; shards: number; unit: "day" | "week" | "month"; } | undefined; archive?: { after: string; to: string; keep?: string | undefined; } | undefined; seal?: { valueFields: string[]; chainField?: string | undefined; } | undefined; reclaim?: boolean | undefined; } | undefined; fileAccessDelegate?: string | undefined; schemaReadDelegate?: string | undefined; validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined; activityMilestones?: { field: string; value: string; summary: string; type?: string | undefined; }[] | undefined; nameField?: string | undefined; displayNameField?: string | undefined; titleFormat?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; imageField?: string | undefined; highlightFields?: string[] | undefined; relatedLists?: string[] | undefined; stageField?: string | false | undefined; editMode?: "page" | "modal" | undefined; listViews?: Record & { key?: never; defaultValue?: never; }) | undefined; width?: number | undefined; align?: "center" | "left" | "right" | undefined; hidden?: boolean | undefined; sortable?: boolean | undefined; resizable?: boolean | undefined; wrap?: boolean | undefined; type?: string | undefined; pinned?: "left" | "right" | undefined; summary?: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { type: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; field?: string | undefined; } | undefined; prefix?: { field: string; type?: "text" | "badge" | undefined; } | undefined; link?: boolean | undefined; action?: string | undefined; }[]; map?: { latitudeField?: string | undefined; longitudeField?: string | undefined; locationField?: string | undefined; titleField?: string | undefined; descriptionField?: string | undefined; zoom?: number | undefined; center?: [number, number] | undefined; style?: string | undefined; } | undefined; type?: "map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid" | undefined; sort?: { field: string; order: "asc" | "desc"; }[] | undefined; filter?: ({ field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; } | { or: { field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; }[]; })[] | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; emptyState?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; message?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; icon?: string | undefined; link?: { label: string | (Record & { key?: never; defaultValue?: never; }); url: string; } | undefined; } | undefined; name?: string | undefined; bulkActions?: string[] | undefined; bulkActionDefs?: { name: string; operation: "delete" | "update" | "custom"; label?: string | undefined; icon?: string | undefined; variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; execution?: "aggregate" | "perRecord" | undefined; patch?: Record | undefined; params?: { name: string; type: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector"; label?: string | undefined; help?: string | undefined; required?: boolean | undefined; default?: unknown; options?: { [x: string]: unknown; label: string; value: string | number | boolean; }[] | undefined; object?: string | undefined; labelField?: string | undefined; multiple?: boolean | undefined; placeholder?: string | undefined; dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; }[] | undefined; confirmText?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; confirmLabel?: string | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; maxRecords?: number | undefined; batchSize?: number | undefined; }[] | undefined; rowActions?: string[] | undefined; navigation?: { mode?: "none" | "page" | "drawer" | "new_window" | undefined; view?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; preventNavigation?: boolean | undefined; openNewTab?: boolean | undefined; size?: "full" | "auto" | "sm" | "md" | "lg" | "xl" | undefined; width?: string | number | undefined; } | undefined; tree?: { parentField?: string | undefined; labelField?: string | undefined; fields?: string[] | undefined; defaultExpandedDepth?: number | undefined; } | undefined; inlineEdit?: boolean | undefined; conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; requiredPermissions?: string[] | undefined; sharing?: { type?: { "[REMOVED] Key retired: run `os validate` for its migration.": never; } | undefined; lockedBy?: string | undefined; } | undefined; data?: { provider: "object"; object: string; } | { provider: "value"; items: unknown[]; } | { provider: "schema"; schemaId: string; schema?: Record | undefined; } | undefined; aria?: { ariaLabel?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; ariaDescribedBy?: string | undefined; role?: string | undefined; } | undefined; appearance?: { showDescription?: boolean | undefined; allowedVisualizations?: ("map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid")[] | undefined; } | undefined; resizable?: boolean | undefined; kanban?: { groupByField: string; columns: string[]; lanes?: string[] | undefined; summarizeField?: string | undefined; titleField?: string | undefined; } | undefined; gantt?: { startDateField: string; endDateField: string; titleField: string; progressField?: string | undefined; dependenciesField?: string | undefined; colorField?: string | undefined; parentField?: string | undefined; typeField?: string | undefined; baselineStartField?: string | undefined; baselineEndField?: string | undefined; groupByField?: string | undefined; resourceView?: boolean | undefined; assigneeField?: string | undefined; effortField?: string | undefined; capacity?: number | undefined; tooltipFields?: (string | { field: string; label?: string | undefined; })[] | undefined; quickFilters?: { field: string; label?: string | undefined; options?: (string | { value: string | number; label?: string | undefined; })[] | undefined; }[] | undefined; autoZoomToFilter?: boolean | undefined; viewMode?: "day" | "week" | "month" | "quarter" | "year" | undefined; borderColorField?: string | undefined; lockField?: string | undefined; objectField?: string | undefined; summaryExtent?: "self" | "children" | undefined; defaultCollapsedDepth?: number | undefined; dependencyTypes?: boolean | undefined; timeZone?: string | undefined; exportFileName?: string | undefined; interactions?: { move?: boolean | undefined; resize?: boolean | undefined; progress?: boolean | undefined; link?: boolean | undefined; } | undefined; timeSegments?: { bands: { label: string; start: string; end: string; key?: string | undefined; color?: string | undefined; }[]; dayStart?: string | undefined; showMidnight?: boolean | undefined; } | undefined; } | undefined; timeline?: { startDateField: string; titleField: string; endDateField?: string | undefined; groupByField?: string | undefined; colorField?: string | undefined; scale?: "day" | "week" | "month" | "quarter" | "year" | "hour" | undefined; } | undefined; gallery?: { coverField?: string | undefined; coverFit?: "cover" | "contain" | undefined; cardSize?: "small" | "medium" | "large" | undefined; titleField?: string | undefined; visibleFields?: string[] | undefined; } | undefined; calendar?: { startDateField: string; endDateField?: string | undefined; titleField?: string | undefined; colorField?: string | undefined; allDayField?: string | undefined; initialDate?: string | undefined; } | undefined; chart?: { dataset: string; values: string[]; chartType?: "bar" | "line" | "area" | "pie" | "scatter" | undefined; dimensions?: string[] | undefined; } | undefined; timesheet?: { rowFields: string[]; dateField: string; valueField: string; } | undefined; rowHeight?: "medium" | "compact" | "short" | "tall" | "extra_tall" | undefined; rowColor?: { field: string; colors?: Record | undefined; } | undefined; tabs?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; searchableFields?: string[] | undefined; filterableFields?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; compactToolbar?: boolean | undefined; selection?: { type?: "none" | "multiple" | "single" | undefined; } | undefined; pagination?: { pageSize?: number | undefined; pageSizeOptions?: number[] | undefined; } | undefined; pageName?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; grouping?: { fields: { field: string; order?: "asc" | "desc" | undefined; orderBy?: string | undefined; collapsed?: boolean | undefined; }[]; } | undefined; hiddenFields?: string[] | undefined; fieldOrder?: string[] | undefined; exportOptions?: ("json" | "csv" | "xlsx")[] | { formats?: ("json" | "csv" | "xlsx")[] | undefined; maxRecords?: number | undefined; includeHeaders?: boolean | undefined; fileNamePrefix?: string | undefined; streaming?: boolean | undefined; } | undefined; userActions?: { sort?: boolean | undefined; search?: boolean | undefined; filter?: boolean | undefined; refresh?: boolean | undefined; rowHeight?: boolean | undefined; group?: boolean | undefined; addRecordForm?: boolean | undefined; editInline?: boolean | undefined; hideFields?: boolean | undefined; rowColor?: boolean | undefined; buttons?: string[] | undefined; } | undefined; addRecord?: { enabled: boolean; position?: "top" | "bottom" | "both" | undefined; mode?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; formView?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; } | undefined; showRecordCount?: boolean | undefined; allowPrinting?: boolean | undefined; userFilters?: { element?: "toggle" | "dropdown" | undefined; fields?: { field: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "boolean" | "text" | "select" | "multi-select" | "date-range" | undefined; options?: { value: string | number | boolean; label: string | (Record & { key?: never; defaultValue?: never; }); color?: string | undefined; }[] | undefined; showCount?: boolean | undefined; defaultValues?: (string | number | boolean)[] | undefined; }[] | undefined; } | undefined; }> | undefined; searchableFields?: string[] | undefined; enable?: { trackHistory?: boolean | undefined; searchable?: boolean | undefined; apiEnabled?: boolean | undefined; apiMethods?: ("create" | "delete" | "update" | "get" | "bulk" | "list")[] | undefined; aiReadable?: boolean | undefined; files?: boolean | undefined; feeds?: boolean | undefined; activities?: boolean | undefined; clone?: boolean | undefined; approvalsVisibleToReaders?: boolean | undefined; } | undefined; sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; sharing?: { controlledByParent?: { ownerMayEdit?: boolean | undefined; writeRequiresMasterRead?: boolean | undefined; } | undefined; } | undefined; defaultRowScope?: { name: string; operation: "delete" | "update" | "select" | "insert" | "all"; label?: string | undefined; description?: string | undefined; using?: string | undefined; check?: string | undefined; positions?: string[] | undefined; enabled?: boolean | undefined; } | undefined; membershipKeys?: Record | undefined; externalSharingModel?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; publicSharing?: { enabled?: boolean | undefined; allowedAudiences?: ("public" | "email" | "link_only" | "signed_in")[] | undefined; allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; maxExpiryDays?: number | undefined; redactFields?: string[] | undefined; eligibility?: string | undefined; } | undefined; actions?: { name: string; label: string | (Record & { key?: never; defaultValue?: never; }); overrides?: { package: string; basedOn: string; } | undefined; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; objectName?: string | undefined; icon?: string | undefined; locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section")[] | undefined; component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; type?: "modal" | "url" | "flow" | "form" | "script" | "api" | undefined; target?: string | undefined; openIn?: "self" | "new-tab" | undefined; body?: { language: "expression"; source: string; } | { language: "js"; source: string; capabilities?: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log" | "email.send" | "activity.append")[] | undefined; timeoutMs?: number | undefined; memoryMb?: number | undefined; } | undefined; refusals?: Record | undefined; params?: string[] | undefined; }> | undefined; operation?: "update" | undefined; patch?: Record | undefined; execution?: "aggregate" | "perRecord" | undefined; params?: { name?: string | undefined; field?: string | undefined; objectOverride?: string | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; widget?: string | undefined; required?: boolean | undefined; options?: { label: string | (Record & { key?: never; defaultValue?: never; }); value: string; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; placeholder?: string | undefined; helpText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; defaultValue?: unknown; multiple?: boolean | undefined; accept?: string[] | undefined; maxSize?: number | undefined; reference?: string | undefined; defaultFromRow?: boolean | undefined; carryOver?: boolean | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; }[] | undefined; submitText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; cancelText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; order?: number | undefined; confirmText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; successMessage?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; outcomeMessages?: Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }> | undefined; errorMessage?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; refreshAfter?: boolean | undefined; undoable?: boolean | undefined; resultDialog?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; acknowledge?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; } | undefined; preflight?: { read: { url: string; method?: "GET" | undefined; }; path?: string | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; seed?: { param: string; path: string; }[] | undefined; } | undefined; visible?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; requiresMembershipReach?: "invite_member" | "cancel_invitation" | "update_member_role" | "transfer_ownership" | "remove_member" | "create_team" | "update_team" | "remove_team" | "add_team_member" | "remove_team_member" | "update_organization" | "delete_organization" | undefined; disabled?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledReason?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; pressed?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; ai?: { exposed?: boolean | undefined; description?: string | undefined; category?: "data" | "flow" | "action" | "integration" | "vector_search" | "analytics" | "utility" | undefined; paramHints?: Record | undefined; outputSchema?: Record | undefined; requiresConfirmation?: boolean | undefined; } | undefined; recordIdParam?: string | undefined; recordIdField?: string | undefined; bodyShape?: "flat" | { wrap: string; } | undefined; method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined; bodyExtra?: Record | undefined; mode?: "create" | "edit" | "delete" | "custom" | undefined; opensInNewTab?: boolean | undefined; newTabUrl?: string | undefined; onSuccess?: { navigate: string; openIn?: "self" | "newTab" | undefined; } | undefined; aria?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; }[] | undefined; protection?: { lock: "none" | "no-overlay" | "no-delete" | "full"; reason: string; docsUrl?: string | undefined; } | undefined; }, "fields"> & Pick<{ readonly name: "sys_sharing_rule"; readonly label: "Sharing Rule"; readonly pluralLabel: "Sharing Rules"; readonly icon: "shield-check"; readonly isSystem: true; readonly managedBy: "config"; readonly userActions: { readonly create: true; readonly edit: true; readonly delete: true; readonly import: false; }; readonly description: "Grants a group of people access to the records that match a condition."; readonly displayNameField: "name"; readonly nameField: "name"; readonly highlightFields: ["name", "object_name", "recipient_type", "recipient_id", "access_level", "active"]; readonly listViews: { readonly active: { readonly type: "grid"; readonly name: "active"; readonly label: "Active"; readonly data: { readonly provider: "object"; readonly object: "sys_sharing_rule"; }; readonly columns: ["label", "object_name", "recipient_type", "recipient_id", "access_level", "updated_at"]; readonly filter: [{ readonly field: "active"; readonly operator: "equals"; readonly value: true; }]; readonly sort: [{ readonly field: "object_name"; readonly order: "asc"; }, { readonly field: "label"; readonly order: "asc"; }]; readonly pagination: { readonly pageSize: 50; }; }; readonly inactive: { readonly type: "grid"; readonly name: "inactive"; readonly label: "Inactive"; readonly data: { readonly provider: "object"; readonly object: "sys_sharing_rule"; }; readonly columns: ["label", "object_name", "recipient_type", "recipient_id", "updated_at"]; readonly filter: [{ readonly field: "active"; readonly operator: "equals"; readonly value: false; }]; readonly sort: [{ readonly field: "label"; readonly order: "asc"; }]; readonly pagination: { readonly pageSize: 50; }; }; readonly by_object: { readonly type: "grid"; readonly name: "by_object"; readonly label: "By Object"; readonly data: { readonly provider: "object"; readonly object: "sys_sharing_rule"; }; readonly columns: ["object_name", "label", "recipient_type", "access_level", "active"]; readonly sort: [{ readonly field: "object_name"; readonly order: "asc"; }, { readonly field: "label"; readonly order: "asc"; }]; readonly pagination: { readonly pageSize: 100; }; }; readonly all_rules: { readonly type: "grid"; readonly name: "all_rules"; readonly label: "All"; readonly data: { readonly provider: "object"; readonly object: "sys_sharing_rule"; }; readonly columns: ["label", "object_name", "recipient_type", "recipient_id", "access_level", "active", "updated_at"]; readonly sort: [{ readonly field: "label"; readonly order: "asc"; }]; readonly pagination: { readonly pageSize: 50; }; }; }; readonly fields: { readonly id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly organization_id: _objectstack_spec_data.FieldInput & { readonly label: "Organization"; readonly required: false; readonly group: "System"; readonly description: "The organization this rule belongs to."; } & { readonly type: "lookup"; readonly reference: string; }; readonly name: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly label: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly description: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "textarea"; }; readonly object_name: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly criteria_json: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "textarea"; }; readonly recipient_type: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly recipient_id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly access_level: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly active: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "boolean"; }; readonly managed_by: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly package_id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly customized: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "boolean"; }; readonly created_at: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "datetime"; }; readonly updated_at: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "datetime"; }; }; readonly indexes: [{ readonly fields: ["object_name", "active"]; }, { readonly fields: ["name"]; readonly unique: "organization"; }, { readonly fields: ["organization_id"]; }]; }, "fields">; /** * sys_share_link — Capability-Token Public Share Links * * Each row authorises read (or write) access to ONE record of ONE * object via an opaque URL-safe token. Complements `sys_record_share`, * which models principal-based grants (share with a specific user / * team / role). A single record may have rows in both tables; the * union determines effective access. * * Lifecycle: * * 1. `IShareLinkService.createLink` validates the request against the * target object's `publicSharing` whitelist and inserts a row. * Token is a 24-char URL-safe random string. * * 2. `IShareLinkService.resolveToken` (called from the public * `/api/v1/share-links/:token` middleware on every request) * verifies the row is not revoked / not expired, applies audience * / password gates, increments `use_count` + `last_used_at`, and * returns the effective redaction set. * * 3. `IShareLinkService.revokeLink` stamps `revoked_at`. Rows are * preserved for audit; resolveToken returns null after revocation. * * Conventions: * - `object_name` is the short object name (`account`, `ai_conversation`, …) * - `record_id` is the primary key of the target record within object_name * - `audience` mirrors `ShareLinkAudience` in spec/contracts; the * middleware enforces additional gating per audience * - `redact_fields` overlays on top of the schema-default redaction * set declared on `object.publicSharing.redactFields` * * managedBy: 'engine-owned' — admins inspect via the audit grid but all * writes flow through `IShareLinkService` so the per-object opt-in, * expiry caps, and audit hooks fire. * * @namespace sys */ declare const SysShareLink: Omit<{ name: string; fields: Record; }[] | undefined; widget?: string | undefined; hidden?: boolean | undefined; internal?: boolean | undefined; readonly?: boolean | undefined; requiredPermissions?: string[] | undefined; maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; ackPlaintextMasking?: boolean | undefined; system?: boolean | undefined; sortable?: boolean | undefined; inlineHelpText?: string | undefined; placeholder?: string | undefined; autonumberFormat?: string | undefined; externalId?: boolean | undefined; renamedFrom?: string[] | undefined; }>; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; label?: string | undefined; pluralLabel?: string | undefined; description?: string | undefined; icon?: string | undefined; isSystem?: boolean | undefined; managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "synced" | "better-auth" | undefined; ownership?: "none" | "org" | "user" | "business_unit" | undefined; userActions?: { create?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; import?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; edit?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; delete?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; exportCsv?: boolean | undefined; } | undefined; systemFields?: false | { tenant?: boolean | undefined; audit?: boolean | undefined; } | undefined; datasource?: string | undefined; external?: { remoteName?: string | undefined; remoteSchema?: string | undefined; writable?: boolean | undefined; columnMap?: Record | undefined; introspectedAt?: string | undefined; ignoreColumns?: string[] | undefined; } | undefined; attachedOnRead?: Record> | undefined; indexes?: { fields: string[]; name?: string | undefined; unique?: false | "global" | "organization" | undefined; }[] | undefined; fieldGroups?: { key: string; label: string; icon?: string | undefined; description?: string | undefined; relatedList?: string | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; collapse?: "none" | "collapsed" | "expanded" | undefined; defaultExpanded?: boolean | undefined; collapsible?: boolean | undefined; collapsed?: boolean | undefined; }[] | undefined; tenancy?: { enabled: boolean; tenantField?: string | undefined; } | undefined; access?: { default?: "public" | "private" | undefined; } | undefined; requiredPermissions?: string[] | { read?: string[] | undefined; create?: string[] | undefined; update?: string[] | undefined; delete?: string[] | undefined; } | undefined; lifecycle?: { class: "audit" | "record" | "telemetry" | "transient" | "event"; retention?: { maxAge: string; onlyWhen?: Record | undefined; } | undefined; ttl?: { field: string; expireAfter: string; onlyWhen?: Record | undefined; } | undefined; storage?: { strategy: "rotation"; shards: number; unit: "day" | "week" | "month"; } | undefined; archive?: { after: string; to: string; keep?: string | undefined; } | undefined; seal?: { valueFields: string[]; chainField?: string | undefined; } | undefined; reclaim?: boolean | undefined; } | undefined; fileAccessDelegate?: string | undefined; schemaReadDelegate?: string | undefined; validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined; activityMilestones?: { field: string; value: string; summary: string; type?: string | undefined; }[] | undefined; nameField?: string | undefined; displayNameField?: string | undefined; titleFormat?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; imageField?: string | undefined; highlightFields?: string[] | undefined; relatedLists?: string[] | undefined; stageField?: string | false | undefined; editMode?: "page" | "modal" | undefined; listViews?: Record & { key?: never; defaultValue?: never; }) | undefined; width?: number | undefined; align?: "center" | "left" | "right" | undefined; hidden?: boolean | undefined; sortable?: boolean | undefined; resizable?: boolean | undefined; wrap?: boolean | undefined; type?: string | undefined; pinned?: "left" | "right" | undefined; summary?: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { type: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; field?: string | undefined; } | undefined; prefix?: { field: string; type?: "text" | "badge" | undefined; } | undefined; link?: boolean | undefined; action?: string | undefined; }[]; map?: { latitudeField?: string | undefined; longitudeField?: string | undefined; locationField?: string | undefined; titleField?: string | undefined; descriptionField?: string | undefined; zoom?: number | undefined; center?: [number, number] | undefined; style?: string | undefined; } | undefined; type?: "map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid" | undefined; sort?: { field: string; order: "asc" | "desc"; }[] | undefined; filter?: ({ field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; } | { or: { field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; }[]; })[] | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; emptyState?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; message?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; icon?: string | undefined; link?: { label: string | (Record & { key?: never; defaultValue?: never; }); url: string; } | undefined; } | undefined; name?: string | undefined; bulkActions?: string[] | undefined; bulkActionDefs?: { name: string; operation: "delete" | "update" | "custom"; label?: string | undefined; icon?: string | undefined; variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; execution?: "aggregate" | "perRecord" | undefined; patch?: Record | undefined; params?: { name: string; type: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector"; label?: string | undefined; help?: string | undefined; required?: boolean | undefined; default?: unknown; options?: { [x: string]: unknown; label: string; value: string | number | boolean; }[] | undefined; object?: string | undefined; labelField?: string | undefined; multiple?: boolean | undefined; placeholder?: string | undefined; dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; }[] | undefined; confirmText?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; confirmLabel?: string | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; maxRecords?: number | undefined; batchSize?: number | undefined; }[] | undefined; rowActions?: string[] | undefined; navigation?: { mode?: "none" | "page" | "drawer" | "new_window" | undefined; view?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; preventNavigation?: boolean | undefined; openNewTab?: boolean | undefined; size?: "full" | "auto" | "sm" | "md" | "lg" | "xl" | undefined; width?: string | number | undefined; } | undefined; tree?: { parentField?: string | undefined; labelField?: string | undefined; fields?: string[] | undefined; defaultExpandedDepth?: number | undefined; } | undefined; inlineEdit?: boolean | undefined; conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; requiredPermissions?: string[] | undefined; sharing?: { type?: { "[REMOVED] Key retired: run `os validate` for its migration.": never; } | undefined; lockedBy?: string | undefined; } | undefined; data?: { provider: "object"; object: string; } | { provider: "value"; items: unknown[]; } | { provider: "schema"; schemaId: string; schema?: Record | undefined; } | undefined; aria?: { ariaLabel?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; ariaDescribedBy?: string | undefined; role?: string | undefined; } | undefined; appearance?: { showDescription?: boolean | undefined; allowedVisualizations?: ("map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid")[] | undefined; } | undefined; resizable?: boolean | undefined; kanban?: { groupByField: string; columns: string[]; lanes?: string[] | undefined; summarizeField?: string | undefined; titleField?: string | undefined; } | undefined; gantt?: { startDateField: string; endDateField: string; titleField: string; progressField?: string | undefined; dependenciesField?: string | undefined; colorField?: string | undefined; parentField?: string | undefined; typeField?: string | undefined; baselineStartField?: string | undefined; baselineEndField?: string | undefined; groupByField?: string | undefined; resourceView?: boolean | undefined; assigneeField?: string | undefined; effortField?: string | undefined; capacity?: number | undefined; tooltipFields?: (string | { field: string; label?: string | undefined; })[] | undefined; quickFilters?: { field: string; label?: string | undefined; options?: (string | { value: string | number; label?: string | undefined; })[] | undefined; }[] | undefined; autoZoomToFilter?: boolean | undefined; viewMode?: "day" | "week" | "month" | "quarter" | "year" | undefined; borderColorField?: string | undefined; lockField?: string | undefined; objectField?: string | undefined; summaryExtent?: "self" | "children" | undefined; defaultCollapsedDepth?: number | undefined; dependencyTypes?: boolean | undefined; timeZone?: string | undefined; exportFileName?: string | undefined; interactions?: { move?: boolean | undefined; resize?: boolean | undefined; progress?: boolean | undefined; link?: boolean | undefined; } | undefined; timeSegments?: { bands: { label: string; start: string; end: string; key?: string | undefined; color?: string | undefined; }[]; dayStart?: string | undefined; showMidnight?: boolean | undefined; } | undefined; } | undefined; timeline?: { startDateField: string; titleField: string; endDateField?: string | undefined; groupByField?: string | undefined; colorField?: string | undefined; scale?: "day" | "week" | "month" | "quarter" | "year" | "hour" | undefined; } | undefined; gallery?: { coverField?: string | undefined; coverFit?: "cover" | "contain" | undefined; cardSize?: "small" | "medium" | "large" | undefined; titleField?: string | undefined; visibleFields?: string[] | undefined; } | undefined; calendar?: { startDateField: string; endDateField?: string | undefined; titleField?: string | undefined; colorField?: string | undefined; allDayField?: string | undefined; initialDate?: string | undefined; } | undefined; chart?: { dataset: string; values: string[]; chartType?: "bar" | "line" | "area" | "pie" | "scatter" | undefined; dimensions?: string[] | undefined; } | undefined; timesheet?: { rowFields: string[]; dateField: string; valueField: string; } | undefined; rowHeight?: "medium" | "compact" | "short" | "tall" | "extra_tall" | undefined; rowColor?: { field: string; colors?: Record | undefined; } | undefined; tabs?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; searchableFields?: string[] | undefined; filterableFields?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; compactToolbar?: boolean | undefined; selection?: { type?: "none" | "multiple" | "single" | undefined; } | undefined; pagination?: { pageSize?: number | undefined; pageSizeOptions?: number[] | undefined; } | undefined; pageName?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; grouping?: { fields: { field: string; order?: "asc" | "desc" | undefined; orderBy?: string | undefined; collapsed?: boolean | undefined; }[]; } | undefined; hiddenFields?: string[] | undefined; fieldOrder?: string[] | undefined; exportOptions?: ("json" | "csv" | "xlsx")[] | { formats?: ("json" | "csv" | "xlsx")[] | undefined; maxRecords?: number | undefined; includeHeaders?: boolean | undefined; fileNamePrefix?: string | undefined; streaming?: boolean | undefined; } | undefined; userActions?: { sort?: boolean | undefined; search?: boolean | undefined; filter?: boolean | undefined; refresh?: boolean | undefined; rowHeight?: boolean | undefined; group?: boolean | undefined; addRecordForm?: boolean | undefined; editInline?: boolean | undefined; hideFields?: boolean | undefined; rowColor?: boolean | undefined; buttons?: string[] | undefined; } | undefined; addRecord?: { enabled: boolean; position?: "top" | "bottom" | "both" | undefined; mode?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; formView?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; } | undefined; showRecordCount?: boolean | undefined; allowPrinting?: boolean | undefined; userFilters?: { element?: "toggle" | "dropdown" | undefined; fields?: { field: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "boolean" | "text" | "select" | "multi-select" | "date-range" | undefined; options?: { value: string | number | boolean; label: string | (Record & { key?: never; defaultValue?: never; }); color?: string | undefined; }[] | undefined; showCount?: boolean | undefined; defaultValues?: (string | number | boolean)[] | undefined; }[] | undefined; } | undefined; }> | undefined; searchableFields?: string[] | undefined; enable?: { trackHistory?: boolean | undefined; searchable?: boolean | undefined; apiEnabled?: boolean | undefined; apiMethods?: ("create" | "delete" | "update" | "get" | "bulk" | "list")[] | undefined; aiReadable?: boolean | undefined; files?: boolean | undefined; feeds?: boolean | undefined; activities?: boolean | undefined; clone?: boolean | undefined; approvalsVisibleToReaders?: boolean | undefined; } | undefined; sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; sharing?: { controlledByParent?: { ownerMayEdit?: boolean | undefined; writeRequiresMasterRead?: boolean | undefined; } | undefined; } | undefined; defaultRowScope?: { name: string; operation: "delete" | "update" | "select" | "insert" | "all"; label?: string | undefined; description?: string | undefined; using?: string | undefined; check?: string | undefined; positions?: string[] | undefined; enabled?: boolean | undefined; } | undefined; membershipKeys?: Record | undefined; externalSharingModel?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; publicSharing?: { enabled?: boolean | undefined; allowedAudiences?: ("public" | "email" | "link_only" | "signed_in")[] | undefined; allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; maxExpiryDays?: number | undefined; redactFields?: string[] | undefined; eligibility?: string | undefined; } | undefined; actions?: { name: string; label: string | (Record & { key?: never; defaultValue?: never; }); overrides?: { package: string; basedOn: string; } | undefined; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; objectName?: string | undefined; icon?: string | undefined; locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section")[] | undefined; component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; type?: "modal" | "url" | "flow" | "form" | "script" | "api" | undefined; target?: string | undefined; openIn?: "self" | "new-tab" | undefined; body?: { language: "expression"; source: string; } | { language: "js"; source: string; capabilities?: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log" | "email.send" | "activity.append")[] | undefined; timeoutMs?: number | undefined; memoryMb?: number | undefined; } | undefined; refusals?: Record | undefined; params?: string[] | undefined; }> | undefined; operation?: "update" | undefined; patch?: Record | undefined; execution?: "aggregate" | "perRecord" | undefined; params?: { name?: string | undefined; field?: string | undefined; objectOverride?: string | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; widget?: string | undefined; required?: boolean | undefined; options?: { label: string | (Record & { key?: never; defaultValue?: never; }); value: string; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; placeholder?: string | undefined; helpText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; defaultValue?: unknown; multiple?: boolean | undefined; accept?: string[] | undefined; maxSize?: number | undefined; reference?: string | undefined; defaultFromRow?: boolean | undefined; carryOver?: boolean | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; }[] | undefined; submitText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; cancelText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; order?: number | undefined; confirmText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; successMessage?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; outcomeMessages?: Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }> | undefined; errorMessage?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; refreshAfter?: boolean | undefined; undoable?: boolean | undefined; resultDialog?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; acknowledge?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; } | undefined; preflight?: { read: { url: string; method?: "GET" | undefined; }; path?: string | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; seed?: { param: string; path: string; }[] | undefined; } | undefined; visible?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; requiresMembershipReach?: "invite_member" | "cancel_invitation" | "update_member_role" | "transfer_ownership" | "remove_member" | "create_team" | "update_team" | "remove_team" | "add_team_member" | "remove_team_member" | "update_organization" | "delete_organization" | undefined; disabled?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledReason?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; pressed?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; ai?: { exposed?: boolean | undefined; description?: string | undefined; category?: "data" | "flow" | "action" | "integration" | "vector_search" | "analytics" | "utility" | undefined; paramHints?: Record | undefined; outputSchema?: Record | undefined; requiresConfirmation?: boolean | undefined; } | undefined; recordIdParam?: string | undefined; recordIdField?: string | undefined; bodyShape?: "flat" | { wrap: string; } | undefined; method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined; bodyExtra?: Record | undefined; mode?: "create" | "edit" | "delete" | "custom" | undefined; opensInNewTab?: boolean | undefined; newTabUrl?: string | undefined; onSuccess?: { navigate: string; openIn?: "self" | "newTab" | undefined; } | undefined; aria?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; }[] | undefined; protection?: { lock: "none" | "no-overlay" | "no-delete" | "full"; reason: string; docsUrl?: string | undefined; } | undefined; }, "fields"> & Pick<{ readonly name: "sys_share_link"; readonly label: "Share Link"; readonly pluralLabel: "Share Links"; readonly icon: "link-2"; readonly isSystem: true; readonly managedBy: "engine-owned"; readonly description: "Opaque capability token granting access to a single record. Notion/Figma-style public link sharing."; readonly nameField: "label"; readonly highlightFields: ["permission", "audience", "expires_at", "revoked_at"]; readonly listViews: { readonly active_links: { readonly type: "grid"; readonly name: "active_links"; readonly label: "Active"; readonly data: { readonly provider: "object"; readonly object: "sys_share_link"; }; readonly columns: ["record_id", "permission", "audience", "expires_at", "use_count", "last_used_at"]; readonly filter: [{ readonly field: "revoked_at"; readonly operator: "is_null"; }]; readonly sort: [{ readonly field: "created_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 100; }; }; readonly by_me: { readonly type: "grid"; readonly name: "by_me"; readonly label: "Created by Me"; readonly data: { readonly provider: "object"; readonly object: "sys_share_link"; }; readonly columns: ["record_id", "permission", "audience", "expires_at", "revoked_at"]; readonly filter: [{ readonly field: "created_by"; readonly operator: "equals"; readonly value: "{current_user_id}"; }]; readonly sort: [{ readonly field: "created_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 100; }; }; readonly revoked: { readonly type: "grid"; readonly name: "revoked"; readonly label: "Revoked"; readonly data: { readonly provider: "object"; readonly object: "sys_share_link"; }; readonly columns: ["record_id", "revoked_at", "created_by"]; readonly filter: [{ readonly field: "revoked_at"; readonly operator: "is_not_null"; }]; readonly sort: [{ readonly field: "revoked_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 50; }; }; readonly all_links: { readonly type: "grid"; readonly name: "all_links"; readonly label: "All"; readonly data: { readonly provider: "object"; readonly object: "sys_share_link"; }; readonly columns: ["record_id", "permission", "audience", "expires_at", "revoked_at", "created_at"]; readonly sort: [{ readonly field: "created_at"; readonly order: "desc"; }]; readonly pagination: { readonly pageSize: 200; }; }; }; readonly fields: { readonly id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly token: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly object_name: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly record_id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly permission: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly audience: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly expires_at: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "datetime"; }; readonly email_allowlist: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "json"; }; readonly password_hash: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly redact_fields: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "json"; }; readonly label: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly revoked_at: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "datetime"; }; readonly created_by: _objectstack_spec_data.FieldInput & { readonly label: "Created By"; readonly readonly: true; readonly description: "Issuer of the link"; readonly group: "Lifecycle"; } & { readonly type: "lookup"; readonly reference: string; }; readonly created_at: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "datetime"; }; readonly last_used_at: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "datetime"; }; readonly use_count: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "number"; }; }; readonly indexes: [{ readonly fields: ["token"]; readonly unique: "global"; }, { readonly fields: ["object_name", "record_id"]; }, { readonly fields: ["created_by", "revoked_at"]; }, { readonly fields: ["expires_at"]; }]; readonly enable: { readonly trackHistory: false; readonly searchable: false; readonly apiEnabled: true; readonly apiMethods: ["get", "list"]; readonly clone: false; }; }, "fields">; /** * sys_queue — an organization's own ownership queue (ADR-0142 D1). * * A queue is a named set of people that records of any `ownership: 'user'` * object can sit in: a record SITS IN queue Q while its `owner_id` is empty and * its `queue` column names Q, and Q's members read, edit and claim it. * * Two sources, one namespace (ADR-0131 D6, regime C): a package declares * queues in its stack's `queues` (registry items, never copied into this * table); an organization authors its own here, with its members in * `sys_queue_member`. Every reference — the `queue` column, an assignment * rule's target, an approver, a sharing recipient — names a queue by `name`, * resolved registry-first. A row may not take a declared queue's name: the * ownership-queue service refuses that write. * * ⛔ Not the job queue. `sys_job_queue` and the `queue` kernel service are a * queue of WORK; this is a queue of PEOPLE. * * @namespace sys */ declare const SysQueue: Omit<{ name: string; fields: Record; }[] | undefined; widget?: string | undefined; hidden?: boolean | undefined; internal?: boolean | undefined; readonly?: boolean | undefined; requiredPermissions?: string[] | undefined; maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; ackPlaintextMasking?: boolean | undefined; system?: boolean | undefined; sortable?: boolean | undefined; inlineHelpText?: string | undefined; placeholder?: string | undefined; autonumberFormat?: string | undefined; externalId?: boolean | undefined; renamedFrom?: string[] | undefined; }>; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; label?: string | undefined; pluralLabel?: string | undefined; description?: string | undefined; icon?: string | undefined; isSystem?: boolean | undefined; managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "synced" | "better-auth" | undefined; ownership?: "none" | "org" | "user" | "business_unit" | undefined; userActions?: { create?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; import?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; edit?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; delete?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; exportCsv?: boolean | undefined; } | undefined; systemFields?: false | { tenant?: boolean | undefined; audit?: boolean | undefined; } | undefined; datasource?: string | undefined; external?: { remoteName?: string | undefined; remoteSchema?: string | undefined; writable?: boolean | undefined; columnMap?: Record | undefined; introspectedAt?: string | undefined; ignoreColumns?: string[] | undefined; } | undefined; attachedOnRead?: Record> | undefined; indexes?: { fields: string[]; name?: string | undefined; unique?: false | "global" | "organization" | undefined; }[] | undefined; fieldGroups?: { key: string; label: string; icon?: string | undefined; description?: string | undefined; relatedList?: string | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; collapse?: "none" | "collapsed" | "expanded" | undefined; defaultExpanded?: boolean | undefined; collapsible?: boolean | undefined; collapsed?: boolean | undefined; }[] | undefined; tenancy?: { enabled: boolean; tenantField?: string | undefined; } | undefined; access?: { default?: "public" | "private" | undefined; } | undefined; requiredPermissions?: string[] | { read?: string[] | undefined; create?: string[] | undefined; update?: string[] | undefined; delete?: string[] | undefined; } | undefined; lifecycle?: { class: "audit" | "record" | "telemetry" | "transient" | "event"; retention?: { maxAge: string; onlyWhen?: Record | undefined; } | undefined; ttl?: { field: string; expireAfter: string; onlyWhen?: Record | undefined; } | undefined; storage?: { strategy: "rotation"; shards: number; unit: "day" | "week" | "month"; } | undefined; archive?: { after: string; to: string; keep?: string | undefined; } | undefined; seal?: { valueFields: string[]; chainField?: string | undefined; } | undefined; reclaim?: boolean | undefined; } | undefined; fileAccessDelegate?: string | undefined; schemaReadDelegate?: string | undefined; validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined; activityMilestones?: { field: string; value: string; summary: string; type?: string | undefined; }[] | undefined; nameField?: string | undefined; displayNameField?: string | undefined; titleFormat?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; imageField?: string | undefined; highlightFields?: string[] | undefined; relatedLists?: string[] | undefined; stageField?: string | false | undefined; editMode?: "page" | "modal" | undefined; listViews?: Record & { key?: never; defaultValue?: never; }) | undefined; width?: number | undefined; align?: "center" | "left" | "right" | undefined; hidden?: boolean | undefined; sortable?: boolean | undefined; resizable?: boolean | undefined; wrap?: boolean | undefined; type?: string | undefined; pinned?: "left" | "right" | undefined; summary?: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { type: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; field?: string | undefined; } | undefined; prefix?: { field: string; type?: "text" | "badge" | undefined; } | undefined; link?: boolean | undefined; action?: string | undefined; }[]; map?: { latitudeField?: string | undefined; longitudeField?: string | undefined; locationField?: string | undefined; titleField?: string | undefined; descriptionField?: string | undefined; zoom?: number | undefined; center?: [number, number] | undefined; style?: string | undefined; } | undefined; type?: "map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid" | undefined; sort?: { field: string; order: "asc" | "desc"; }[] | undefined; filter?: ({ field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; } | { or: { field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; }[]; })[] | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; emptyState?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; message?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; icon?: string | undefined; link?: { label: string | (Record & { key?: never; defaultValue?: never; }); url: string; } | undefined; } | undefined; name?: string | undefined; bulkActions?: string[] | undefined; bulkActionDefs?: { name: string; operation: "delete" | "update" | "custom"; label?: string | undefined; icon?: string | undefined; variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; execution?: "aggregate" | "perRecord" | undefined; patch?: Record | undefined; params?: { name: string; type: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector"; label?: string | undefined; help?: string | undefined; required?: boolean | undefined; default?: unknown; options?: { [x: string]: unknown; label: string; value: string | number | boolean; }[] | undefined; object?: string | undefined; labelField?: string | undefined; multiple?: boolean | undefined; placeholder?: string | undefined; dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; }[] | undefined; confirmText?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; confirmLabel?: string | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; maxRecords?: number | undefined; batchSize?: number | undefined; }[] | undefined; rowActions?: string[] | undefined; navigation?: { mode?: "none" | "page" | "drawer" | "new_window" | undefined; view?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; preventNavigation?: boolean | undefined; openNewTab?: boolean | undefined; size?: "full" | "auto" | "sm" | "md" | "lg" | "xl" | undefined; width?: string | number | undefined; } | undefined; tree?: { parentField?: string | undefined; labelField?: string | undefined; fields?: string[] | undefined; defaultExpandedDepth?: number | undefined; } | undefined; inlineEdit?: boolean | undefined; conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; requiredPermissions?: string[] | undefined; sharing?: { type?: { "[REMOVED] Key retired: run `os validate` for its migration.": never; } | undefined; lockedBy?: string | undefined; } | undefined; data?: { provider: "object"; object: string; } | { provider: "value"; items: unknown[]; } | { provider: "schema"; schemaId: string; schema?: Record | undefined; } | undefined; aria?: { ariaLabel?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; ariaDescribedBy?: string | undefined; role?: string | undefined; } | undefined; appearance?: { showDescription?: boolean | undefined; allowedVisualizations?: ("map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid")[] | undefined; } | undefined; resizable?: boolean | undefined; kanban?: { groupByField: string; columns: string[]; lanes?: string[] | undefined; summarizeField?: string | undefined; titleField?: string | undefined; } | undefined; gantt?: { startDateField: string; endDateField: string; titleField: string; progressField?: string | undefined; dependenciesField?: string | undefined; colorField?: string | undefined; parentField?: string | undefined; typeField?: string | undefined; baselineStartField?: string | undefined; baselineEndField?: string | undefined; groupByField?: string | undefined; resourceView?: boolean | undefined; assigneeField?: string | undefined; effortField?: string | undefined; capacity?: number | undefined; tooltipFields?: (string | { field: string; label?: string | undefined; })[] | undefined; quickFilters?: { field: string; label?: string | undefined; options?: (string | { value: string | number; label?: string | undefined; })[] | undefined; }[] | undefined; autoZoomToFilter?: boolean | undefined; viewMode?: "day" | "week" | "month" | "quarter" | "year" | undefined; borderColorField?: string | undefined; lockField?: string | undefined; objectField?: string | undefined; summaryExtent?: "self" | "children" | undefined; defaultCollapsedDepth?: number | undefined; dependencyTypes?: boolean | undefined; timeZone?: string | undefined; exportFileName?: string | undefined; interactions?: { move?: boolean | undefined; resize?: boolean | undefined; progress?: boolean | undefined; link?: boolean | undefined; } | undefined; timeSegments?: { bands: { label: string; start: string; end: string; key?: string | undefined; color?: string | undefined; }[]; dayStart?: string | undefined; showMidnight?: boolean | undefined; } | undefined; } | undefined; timeline?: { startDateField: string; titleField: string; endDateField?: string | undefined; groupByField?: string | undefined; colorField?: string | undefined; scale?: "day" | "week" | "month" | "quarter" | "year" | "hour" | undefined; } | undefined; gallery?: { coverField?: string | undefined; coverFit?: "cover" | "contain" | undefined; cardSize?: "small" | "medium" | "large" | undefined; titleField?: string | undefined; visibleFields?: string[] | undefined; } | undefined; calendar?: { startDateField: string; endDateField?: string | undefined; titleField?: string | undefined; colorField?: string | undefined; allDayField?: string | undefined; initialDate?: string | undefined; } | undefined; chart?: { dataset: string; values: string[]; chartType?: "bar" | "line" | "area" | "pie" | "scatter" | undefined; dimensions?: string[] | undefined; } | undefined; timesheet?: { rowFields: string[]; dateField: string; valueField: string; } | undefined; rowHeight?: "medium" | "compact" | "short" | "tall" | "extra_tall" | undefined; rowColor?: { field: string; colors?: Record | undefined; } | undefined; tabs?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; searchableFields?: string[] | undefined; filterableFields?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; compactToolbar?: boolean | undefined; selection?: { type?: "none" | "multiple" | "single" | undefined; } | undefined; pagination?: { pageSize?: number | undefined; pageSizeOptions?: number[] | undefined; } | undefined; pageName?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; grouping?: { fields: { field: string; order?: "asc" | "desc" | undefined; orderBy?: string | undefined; collapsed?: boolean | undefined; }[]; } | undefined; hiddenFields?: string[] | undefined; fieldOrder?: string[] | undefined; exportOptions?: ("json" | "csv" | "xlsx")[] | { formats?: ("json" | "csv" | "xlsx")[] | undefined; maxRecords?: number | undefined; includeHeaders?: boolean | undefined; fileNamePrefix?: string | undefined; streaming?: boolean | undefined; } | undefined; userActions?: { sort?: boolean | undefined; search?: boolean | undefined; filter?: boolean | undefined; refresh?: boolean | undefined; rowHeight?: boolean | undefined; group?: boolean | undefined; addRecordForm?: boolean | undefined; editInline?: boolean | undefined; hideFields?: boolean | undefined; rowColor?: boolean | undefined; buttons?: string[] | undefined; } | undefined; addRecord?: { enabled: boolean; position?: "top" | "bottom" | "both" | undefined; mode?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; formView?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; } | undefined; showRecordCount?: boolean | undefined; allowPrinting?: boolean | undefined; userFilters?: { element?: "toggle" | "dropdown" | undefined; fields?: { field: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "boolean" | "text" | "select" | "multi-select" | "date-range" | undefined; options?: { value: string | number | boolean; label: string | (Record & { key?: never; defaultValue?: never; }); color?: string | undefined; }[] | undefined; showCount?: boolean | undefined; defaultValues?: (string | number | boolean)[] | undefined; }[] | undefined; } | undefined; }> | undefined; searchableFields?: string[] | undefined; enable?: { trackHistory?: boolean | undefined; searchable?: boolean | undefined; apiEnabled?: boolean | undefined; apiMethods?: ("create" | "delete" | "update" | "get" | "bulk" | "list")[] | undefined; aiReadable?: boolean | undefined; files?: boolean | undefined; feeds?: boolean | undefined; activities?: boolean | undefined; clone?: boolean | undefined; approvalsVisibleToReaders?: boolean | undefined; } | undefined; sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; sharing?: { controlledByParent?: { ownerMayEdit?: boolean | undefined; writeRequiresMasterRead?: boolean | undefined; } | undefined; } | undefined; defaultRowScope?: { name: string; operation: "delete" | "update" | "select" | "insert" | "all"; label?: string | undefined; description?: string | undefined; using?: string | undefined; check?: string | undefined; positions?: string[] | undefined; enabled?: boolean | undefined; } | undefined; membershipKeys?: Record | undefined; externalSharingModel?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; publicSharing?: { enabled?: boolean | undefined; allowedAudiences?: ("public" | "email" | "link_only" | "signed_in")[] | undefined; allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; maxExpiryDays?: number | undefined; redactFields?: string[] | undefined; eligibility?: string | undefined; } | undefined; actions?: { name: string; label: string | (Record & { key?: never; defaultValue?: never; }); overrides?: { package: string; basedOn: string; } | undefined; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; objectName?: string | undefined; icon?: string | undefined; locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section")[] | undefined; component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; type?: "modal" | "url" | "flow" | "form" | "script" | "api" | undefined; target?: string | undefined; openIn?: "self" | "new-tab" | undefined; body?: { language: "expression"; source: string; } | { language: "js"; source: string; capabilities?: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log" | "email.send" | "activity.append")[] | undefined; timeoutMs?: number | undefined; memoryMb?: number | undefined; } | undefined; refusals?: Record | undefined; params?: string[] | undefined; }> | undefined; operation?: "update" | undefined; patch?: Record | undefined; execution?: "aggregate" | "perRecord" | undefined; params?: { name?: string | undefined; field?: string | undefined; objectOverride?: string | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; widget?: string | undefined; required?: boolean | undefined; options?: { label: string | (Record & { key?: never; defaultValue?: never; }); value: string; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; placeholder?: string | undefined; helpText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; defaultValue?: unknown; multiple?: boolean | undefined; accept?: string[] | undefined; maxSize?: number | undefined; reference?: string | undefined; defaultFromRow?: boolean | undefined; carryOver?: boolean | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; }[] | undefined; submitText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; cancelText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; order?: number | undefined; confirmText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; successMessage?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; outcomeMessages?: Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }> | undefined; errorMessage?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; refreshAfter?: boolean | undefined; undoable?: boolean | undefined; resultDialog?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; acknowledge?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; } | undefined; preflight?: { read: { url: string; method?: "GET" | undefined; }; path?: string | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; seed?: { param: string; path: string; }[] | undefined; } | undefined; visible?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; requiresMembershipReach?: "invite_member" | "cancel_invitation" | "update_member_role" | "transfer_ownership" | "remove_member" | "create_team" | "update_team" | "remove_team" | "add_team_member" | "remove_team_member" | "update_organization" | "delete_organization" | undefined; disabled?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledReason?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; pressed?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; ai?: { exposed?: boolean | undefined; description?: string | undefined; category?: "data" | "flow" | "action" | "integration" | "vector_search" | "analytics" | "utility" | undefined; paramHints?: Record | undefined; outputSchema?: Record | undefined; requiresConfirmation?: boolean | undefined; } | undefined; recordIdParam?: string | undefined; recordIdField?: string | undefined; bodyShape?: "flat" | { wrap: string; } | undefined; method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined; bodyExtra?: Record | undefined; mode?: "create" | "edit" | "delete" | "custom" | undefined; opensInNewTab?: boolean | undefined; newTabUrl?: string | undefined; onSuccess?: { navigate: string; openIn?: "self" | "newTab" | undefined; } | undefined; aria?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; }[] | undefined; protection?: { lock: "none" | "no-overlay" | "no-delete" | "full"; reason: string; docsUrl?: string | undefined; } | undefined; }, "fields"> & Pick<{ readonly name: "sys_queue"; readonly label: "Queue"; readonly pluralLabel: "Queues"; readonly icon: "inbox"; readonly isSystem: true; readonly managedBy: "config"; readonly description: "A named group of people that unassigned records can wait in until one of them takes the record."; readonly displayNameField: "name"; readonly nameField: "name"; readonly highlightFields: ["name", "label"]; readonly listViews: { readonly all_queues: { readonly type: "grid"; readonly name: "all_queues"; readonly label: "All"; readonly data: { readonly provider: "object"; readonly object: "sys_queue"; }; readonly columns: ["label", "name", "updated_at"]; readonly sort: [{ readonly field: "label"; readonly order: "asc"; }]; readonly pagination: { readonly pageSize: 50; }; }; }; readonly fields: { readonly name: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly label: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly description: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "textarea"; }; }; readonly indexes: [{ readonly fields: ["name"]; readonly unique: "organization"; }]; }, "fields">; /** * sys_queue_member — one member specification of an organization's queue * (ADR-0142 D1/D2). * * A row names a set of people the way a sharing rule's recipient does — a * user, a team, a position, one business unit, or a unit and every unit below * it — and the ownership-queue service expands the union of a queue's rows, * de-duplicated and ordered by user id, in the queue's organization. The * members of a DECLARED queue are positions only, named in its declaration; an * organization adds users, teams and units to a declared queue here too, under * the declared queue's name. * * `field` and `queue` are not member kinds: a field names people per record, * and a queue does not contain queues. * * @namespace sys */ declare const SysQueueMember: Omit<{ name: string; fields: Record; }[] | undefined; widget?: string | undefined; hidden?: boolean | undefined; internal?: boolean | undefined; readonly?: boolean | undefined; requiredPermissions?: string[] | undefined; maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; ackPlaintextMasking?: boolean | undefined; system?: boolean | undefined; sortable?: boolean | undefined; inlineHelpText?: string | undefined; placeholder?: string | undefined; autonumberFormat?: string | undefined; externalId?: boolean | undefined; renamedFrom?: string[] | undefined; }>; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; label?: string | undefined; pluralLabel?: string | undefined; description?: string | undefined; icon?: string | undefined; isSystem?: boolean | undefined; managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "synced" | "better-auth" | undefined; ownership?: "none" | "org" | "user" | "business_unit" | undefined; userActions?: { create?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; import?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; edit?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; delete?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; exportCsv?: boolean | undefined; } | undefined; systemFields?: false | { tenant?: boolean | undefined; audit?: boolean | undefined; } | undefined; datasource?: string | undefined; external?: { remoteName?: string | undefined; remoteSchema?: string | undefined; writable?: boolean | undefined; columnMap?: Record | undefined; introspectedAt?: string | undefined; ignoreColumns?: string[] | undefined; } | undefined; attachedOnRead?: Record> | undefined; indexes?: { fields: string[]; name?: string | undefined; unique?: false | "global" | "organization" | undefined; }[] | undefined; fieldGroups?: { key: string; label: string; icon?: string | undefined; description?: string | undefined; relatedList?: string | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; collapse?: "none" | "collapsed" | "expanded" | undefined; defaultExpanded?: boolean | undefined; collapsible?: boolean | undefined; collapsed?: boolean | undefined; }[] | undefined; tenancy?: { enabled: boolean; tenantField?: string | undefined; } | undefined; access?: { default?: "public" | "private" | undefined; } | undefined; requiredPermissions?: string[] | { read?: string[] | undefined; create?: string[] | undefined; update?: string[] | undefined; delete?: string[] | undefined; } | undefined; lifecycle?: { class: "audit" | "record" | "telemetry" | "transient" | "event"; retention?: { maxAge: string; onlyWhen?: Record | undefined; } | undefined; ttl?: { field: string; expireAfter: string; onlyWhen?: Record | undefined; } | undefined; storage?: { strategy: "rotation"; shards: number; unit: "day" | "week" | "month"; } | undefined; archive?: { after: string; to: string; keep?: string | undefined; } | undefined; seal?: { valueFields: string[]; chainField?: string | undefined; } | undefined; reclaim?: boolean | undefined; } | undefined; fileAccessDelegate?: string | undefined; schemaReadDelegate?: string | undefined; validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined; activityMilestones?: { field: string; value: string; summary: string; type?: string | undefined; }[] | undefined; nameField?: string | undefined; displayNameField?: string | undefined; titleFormat?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; imageField?: string | undefined; highlightFields?: string[] | undefined; relatedLists?: string[] | undefined; stageField?: string | false | undefined; editMode?: "page" | "modal" | undefined; listViews?: Record & { key?: never; defaultValue?: never; }) | undefined; width?: number | undefined; align?: "center" | "left" | "right" | undefined; hidden?: boolean | undefined; sortable?: boolean | undefined; resizable?: boolean | undefined; wrap?: boolean | undefined; type?: string | undefined; pinned?: "left" | "right" | undefined; summary?: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { type: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; field?: string | undefined; } | undefined; prefix?: { field: string; type?: "text" | "badge" | undefined; } | undefined; link?: boolean | undefined; action?: string | undefined; }[]; map?: { latitudeField?: string | undefined; longitudeField?: string | undefined; locationField?: string | undefined; titleField?: string | undefined; descriptionField?: string | undefined; zoom?: number | undefined; center?: [number, number] | undefined; style?: string | undefined; } | undefined; type?: "map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid" | undefined; sort?: { field: string; order: "asc" | "desc"; }[] | undefined; filter?: ({ field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; } | { or: { field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; }[]; })[] | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; emptyState?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; message?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; icon?: string | undefined; link?: { label: string | (Record & { key?: never; defaultValue?: never; }); url: string; } | undefined; } | undefined; name?: string | undefined; bulkActions?: string[] | undefined; bulkActionDefs?: { name: string; operation: "delete" | "update" | "custom"; label?: string | undefined; icon?: string | undefined; variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; execution?: "aggregate" | "perRecord" | undefined; patch?: Record | undefined; params?: { name: string; type: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector"; label?: string | undefined; help?: string | undefined; required?: boolean | undefined; default?: unknown; options?: { [x: string]: unknown; label: string; value: string | number | boolean; }[] | undefined; object?: string | undefined; labelField?: string | undefined; multiple?: boolean | undefined; placeholder?: string | undefined; dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; }[] | undefined; confirmText?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; confirmLabel?: string | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; maxRecords?: number | undefined; batchSize?: number | undefined; }[] | undefined; rowActions?: string[] | undefined; navigation?: { mode?: "none" | "page" | "drawer" | "new_window" | undefined; view?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; preventNavigation?: boolean | undefined; openNewTab?: boolean | undefined; size?: "full" | "auto" | "sm" | "md" | "lg" | "xl" | undefined; width?: string | number | undefined; } | undefined; tree?: { parentField?: string | undefined; labelField?: string | undefined; fields?: string[] | undefined; defaultExpandedDepth?: number | undefined; } | undefined; inlineEdit?: boolean | undefined; conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; requiredPermissions?: string[] | undefined; sharing?: { type?: { "[REMOVED] Key retired: run `os validate` for its migration.": never; } | undefined; lockedBy?: string | undefined; } | undefined; data?: { provider: "object"; object: string; } | { provider: "value"; items: unknown[]; } | { provider: "schema"; schemaId: string; schema?: Record | undefined; } | undefined; aria?: { ariaLabel?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; ariaDescribedBy?: string | undefined; role?: string | undefined; } | undefined; appearance?: { showDescription?: boolean | undefined; allowedVisualizations?: ("map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid")[] | undefined; } | undefined; resizable?: boolean | undefined; kanban?: { groupByField: string; columns: string[]; lanes?: string[] | undefined; summarizeField?: string | undefined; titleField?: string | undefined; } | undefined; gantt?: { startDateField: string; endDateField: string; titleField: string; progressField?: string | undefined; dependenciesField?: string | undefined; colorField?: string | undefined; parentField?: string | undefined; typeField?: string | undefined; baselineStartField?: string | undefined; baselineEndField?: string | undefined; groupByField?: string | undefined; resourceView?: boolean | undefined; assigneeField?: string | undefined; effortField?: string | undefined; capacity?: number | undefined; tooltipFields?: (string | { field: string; label?: string | undefined; })[] | undefined; quickFilters?: { field: string; label?: string | undefined; options?: (string | { value: string | number; label?: string | undefined; })[] | undefined; }[] | undefined; autoZoomToFilter?: boolean | undefined; viewMode?: "day" | "week" | "month" | "quarter" | "year" | undefined; borderColorField?: string | undefined; lockField?: string | undefined; objectField?: string | undefined; summaryExtent?: "self" | "children" | undefined; defaultCollapsedDepth?: number | undefined; dependencyTypes?: boolean | undefined; timeZone?: string | undefined; exportFileName?: string | undefined; interactions?: { move?: boolean | undefined; resize?: boolean | undefined; progress?: boolean | undefined; link?: boolean | undefined; } | undefined; timeSegments?: { bands: { label: string; start: string; end: string; key?: string | undefined; color?: string | undefined; }[]; dayStart?: string | undefined; showMidnight?: boolean | undefined; } | undefined; } | undefined; timeline?: { startDateField: string; titleField: string; endDateField?: string | undefined; groupByField?: string | undefined; colorField?: string | undefined; scale?: "day" | "week" | "month" | "quarter" | "year" | "hour" | undefined; } | undefined; gallery?: { coverField?: string | undefined; coverFit?: "cover" | "contain" | undefined; cardSize?: "small" | "medium" | "large" | undefined; titleField?: string | undefined; visibleFields?: string[] | undefined; } | undefined; calendar?: { startDateField: string; endDateField?: string | undefined; titleField?: string | undefined; colorField?: string | undefined; allDayField?: string | undefined; initialDate?: string | undefined; } | undefined; chart?: { dataset: string; values: string[]; chartType?: "bar" | "line" | "area" | "pie" | "scatter" | undefined; dimensions?: string[] | undefined; } | undefined; timesheet?: { rowFields: string[]; dateField: string; valueField: string; } | undefined; rowHeight?: "medium" | "compact" | "short" | "tall" | "extra_tall" | undefined; rowColor?: { field: string; colors?: Record | undefined; } | undefined; tabs?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; searchableFields?: string[] | undefined; filterableFields?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; compactToolbar?: boolean | undefined; selection?: { type?: "none" | "multiple" | "single" | undefined; } | undefined; pagination?: { pageSize?: number | undefined; pageSizeOptions?: number[] | undefined; } | undefined; pageName?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; grouping?: { fields: { field: string; order?: "asc" | "desc" | undefined; orderBy?: string | undefined; collapsed?: boolean | undefined; }[]; } | undefined; hiddenFields?: string[] | undefined; fieldOrder?: string[] | undefined; exportOptions?: ("json" | "csv" | "xlsx")[] | { formats?: ("json" | "csv" | "xlsx")[] | undefined; maxRecords?: number | undefined; includeHeaders?: boolean | undefined; fileNamePrefix?: string | undefined; streaming?: boolean | undefined; } | undefined; userActions?: { sort?: boolean | undefined; search?: boolean | undefined; filter?: boolean | undefined; refresh?: boolean | undefined; rowHeight?: boolean | undefined; group?: boolean | undefined; addRecordForm?: boolean | undefined; editInline?: boolean | undefined; hideFields?: boolean | undefined; rowColor?: boolean | undefined; buttons?: string[] | undefined; } | undefined; addRecord?: { enabled: boolean; position?: "top" | "bottom" | "both" | undefined; mode?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; formView?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; } | undefined; showRecordCount?: boolean | undefined; allowPrinting?: boolean | undefined; userFilters?: { element?: "toggle" | "dropdown" | undefined; fields?: { field: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "boolean" | "text" | "select" | "multi-select" | "date-range" | undefined; options?: { value: string | number | boolean; label: string | (Record & { key?: never; defaultValue?: never; }); color?: string | undefined; }[] | undefined; showCount?: boolean | undefined; defaultValues?: (string | number | boolean)[] | undefined; }[] | undefined; } | undefined; }> | undefined; searchableFields?: string[] | undefined; enable?: { trackHistory?: boolean | undefined; searchable?: boolean | undefined; apiEnabled?: boolean | undefined; apiMethods?: ("create" | "delete" | "update" | "get" | "bulk" | "list")[] | undefined; aiReadable?: boolean | undefined; files?: boolean | undefined; feeds?: boolean | undefined; activities?: boolean | undefined; clone?: boolean | undefined; approvalsVisibleToReaders?: boolean | undefined; } | undefined; sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; sharing?: { controlledByParent?: { ownerMayEdit?: boolean | undefined; writeRequiresMasterRead?: boolean | undefined; } | undefined; } | undefined; defaultRowScope?: { name: string; operation: "delete" | "update" | "select" | "insert" | "all"; label?: string | undefined; description?: string | undefined; using?: string | undefined; check?: string | undefined; positions?: string[] | undefined; enabled?: boolean | undefined; } | undefined; membershipKeys?: Record | undefined; externalSharingModel?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; publicSharing?: { enabled?: boolean | undefined; allowedAudiences?: ("public" | "email" | "link_only" | "signed_in")[] | undefined; allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; maxExpiryDays?: number | undefined; redactFields?: string[] | undefined; eligibility?: string | undefined; } | undefined; actions?: { name: string; label: string | (Record & { key?: never; defaultValue?: never; }); overrides?: { package: string; basedOn: string; } | undefined; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; objectName?: string | undefined; icon?: string | undefined; locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section")[] | undefined; component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; type?: "modal" | "url" | "flow" | "form" | "script" | "api" | undefined; target?: string | undefined; openIn?: "self" | "new-tab" | undefined; body?: { language: "expression"; source: string; } | { language: "js"; source: string; capabilities?: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log" | "email.send" | "activity.append")[] | undefined; timeoutMs?: number | undefined; memoryMb?: number | undefined; } | undefined; refusals?: Record | undefined; params?: string[] | undefined; }> | undefined; operation?: "update" | undefined; patch?: Record | undefined; execution?: "aggregate" | "perRecord" | undefined; params?: { name?: string | undefined; field?: string | undefined; objectOverride?: string | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; widget?: string | undefined; required?: boolean | undefined; options?: { label: string | (Record & { key?: never; defaultValue?: never; }); value: string; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; placeholder?: string | undefined; helpText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; defaultValue?: unknown; multiple?: boolean | undefined; accept?: string[] | undefined; maxSize?: number | undefined; reference?: string | undefined; defaultFromRow?: boolean | undefined; carryOver?: boolean | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; }[] | undefined; submitText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; cancelText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; order?: number | undefined; confirmText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; successMessage?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; outcomeMessages?: Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }> | undefined; errorMessage?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; refreshAfter?: boolean | undefined; undoable?: boolean | undefined; resultDialog?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; acknowledge?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; } | undefined; preflight?: { read: { url: string; method?: "GET" | undefined; }; path?: string | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; seed?: { param: string; path: string; }[] | undefined; } | undefined; visible?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; requiresMembershipReach?: "invite_member" | "cancel_invitation" | "update_member_role" | "transfer_ownership" | "remove_member" | "create_team" | "update_team" | "remove_team" | "add_team_member" | "remove_team_member" | "update_organization" | "delete_organization" | undefined; disabled?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledReason?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; pressed?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; ai?: { exposed?: boolean | undefined; description?: string | undefined; category?: "data" | "flow" | "action" | "integration" | "vector_search" | "analytics" | "utility" | undefined; paramHints?: Record | undefined; outputSchema?: Record | undefined; requiresConfirmation?: boolean | undefined; } | undefined; recordIdParam?: string | undefined; recordIdField?: string | undefined; bodyShape?: "flat" | { wrap: string; } | undefined; method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined; bodyExtra?: Record | undefined; mode?: "create" | "edit" | "delete" | "custom" | undefined; opensInNewTab?: boolean | undefined; newTabUrl?: string | undefined; onSuccess?: { navigate: string; openIn?: "self" | "newTab" | undefined; } | undefined; aria?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; }[] | undefined; protection?: { lock: "none" | "no-overlay" | "no-delete" | "full"; reason: string; docsUrl?: string | undefined; } | undefined; }, "fields"> & Pick<{ readonly name: "sys_queue_member"; readonly label: "Queue Member"; readonly pluralLabel: "Queue Members"; readonly icon: "users"; readonly isSystem: true; readonly managedBy: "config"; readonly description: "Who belongs to a queue: a user, a team, a position or a business unit."; readonly displayNameField: "queue"; readonly nameField: "queue"; readonly highlightFields: ["queue", "recipient_type", "recipient_id"]; readonly listViews: { readonly by_queue: { readonly type: "grid"; readonly name: "by_queue"; readonly label: "By Queue"; readonly data: { readonly provider: "object"; readonly object: "sys_queue_member"; }; readonly columns: ["queue", "recipient_type", "recipient_id", "updated_at"]; readonly sort: [{ readonly field: "queue"; readonly order: "asc"; }]; readonly pagination: { readonly pageSize: 100; }; }; }; readonly fields: { readonly queue: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly queue_package: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly recipient_type: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly recipient_id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; }; readonly indexes: [{ readonly fields: ["queue"]; }, { readonly fields: ["recipient_type", "recipient_id"]; }, { readonly fields: ["queue", "recipient_type", "recipient_id"]; readonly unique: "organization"; }]; }, "fields">; /** * sys_assignment_cursor — the round-robin position of one assignment-rule * entry in one organization (ADR-0142 D5). * * One row per (rule, entry, organization), holding the member the entry last * chose and a version. The engine advances it under its by-id write * precondition (`expect: { version }` as read), so two concurrent inserts * cannot both read the same position and pick the same member; the loser * re-reads and retries. A member set that changed since the last assignment * is handled by position: the next member after `last_user_id` in the current * ordering. * * Engine-owned: no user writes it, and nothing reads it but the assignment * step. * * @namespace sys */ declare const SysAssignmentCursor: Omit<{ name: string; fields: Record; }[] | undefined; widget?: string | undefined; hidden?: boolean | undefined; internal?: boolean | undefined; readonly?: boolean | undefined; requiredPermissions?: string[] | undefined; maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; ackPlaintextMasking?: boolean | undefined; system?: boolean | undefined; sortable?: boolean | undefined; inlineHelpText?: string | undefined; placeholder?: string | undefined; autonumberFormat?: string | undefined; externalId?: boolean | undefined; renamedFrom?: string[] | undefined; }>; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; label?: string | undefined; pluralLabel?: string | undefined; description?: string | undefined; icon?: string | undefined; isSystem?: boolean | undefined; managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "synced" | "better-auth" | undefined; ownership?: "none" | "org" | "user" | "business_unit" | undefined; userActions?: { create?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; import?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; edit?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; delete?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; exportCsv?: boolean | undefined; } | undefined; systemFields?: false | { tenant?: boolean | undefined; audit?: boolean | undefined; } | undefined; datasource?: string | undefined; external?: { remoteName?: string | undefined; remoteSchema?: string | undefined; writable?: boolean | undefined; columnMap?: Record | undefined; introspectedAt?: string | undefined; ignoreColumns?: string[] | undefined; } | undefined; attachedOnRead?: Record> | undefined; indexes?: { fields: string[]; name?: string | undefined; unique?: false | "global" | "organization" | undefined; }[] | undefined; fieldGroups?: { key: string; label: string; icon?: string | undefined; description?: string | undefined; relatedList?: string | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; collapse?: "none" | "collapsed" | "expanded" | undefined; defaultExpanded?: boolean | undefined; collapsible?: boolean | undefined; collapsed?: boolean | undefined; }[] | undefined; tenancy?: { enabled: boolean; tenantField?: string | undefined; } | undefined; access?: { default?: "public" | "private" | undefined; } | undefined; requiredPermissions?: string[] | { read?: string[] | undefined; create?: string[] | undefined; update?: string[] | undefined; delete?: string[] | undefined; } | undefined; lifecycle?: { class: "audit" | "record" | "telemetry" | "transient" | "event"; retention?: { maxAge: string; onlyWhen?: Record | undefined; } | undefined; ttl?: { field: string; expireAfter: string; onlyWhen?: Record | undefined; } | undefined; storage?: { strategy: "rotation"; shards: number; unit: "day" | "week" | "month"; } | undefined; archive?: { after: string; to: string; keep?: string | undefined; } | undefined; seal?: { valueFields: string[]; chainField?: string | undefined; } | undefined; reclaim?: boolean | undefined; } | undefined; fileAccessDelegate?: string | undefined; schemaReadDelegate?: string | undefined; validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined; activityMilestones?: { field: string; value: string; summary: string; type?: string | undefined; }[] | undefined; nameField?: string | undefined; displayNameField?: string | undefined; titleFormat?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; imageField?: string | undefined; highlightFields?: string[] | undefined; relatedLists?: string[] | undefined; stageField?: string | false | undefined; editMode?: "page" | "modal" | undefined; listViews?: Record & { key?: never; defaultValue?: never; }) | undefined; width?: number | undefined; align?: "center" | "left" | "right" | undefined; hidden?: boolean | undefined; sortable?: boolean | undefined; resizable?: boolean | undefined; wrap?: boolean | undefined; type?: string | undefined; pinned?: "left" | "right" | undefined; summary?: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { type: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; field?: string | undefined; } | undefined; prefix?: { field: string; type?: "text" | "badge" | undefined; } | undefined; link?: boolean | undefined; action?: string | undefined; }[]; map?: { latitudeField?: string | undefined; longitudeField?: string | undefined; locationField?: string | undefined; titleField?: string | undefined; descriptionField?: string | undefined; zoom?: number | undefined; center?: [number, number] | undefined; style?: string | undefined; } | undefined; type?: "map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid" | undefined; sort?: { field: string; order: "asc" | "desc"; }[] | undefined; filter?: ({ field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; } | { or: { field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; }[]; })[] | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; emptyState?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; message?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; icon?: string | undefined; link?: { label: string | (Record & { key?: never; defaultValue?: never; }); url: string; } | undefined; } | undefined; name?: string | undefined; bulkActions?: string[] | undefined; bulkActionDefs?: { name: string; operation: "delete" | "update" | "custom"; label?: string | undefined; icon?: string | undefined; variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; execution?: "aggregate" | "perRecord" | undefined; patch?: Record | undefined; params?: { name: string; type: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector"; label?: string | undefined; help?: string | undefined; required?: boolean | undefined; default?: unknown; options?: { [x: string]: unknown; label: string; value: string | number | boolean; }[] | undefined; object?: string | undefined; labelField?: string | undefined; multiple?: boolean | undefined; placeholder?: string | undefined; dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; }[] | undefined; confirmText?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; confirmLabel?: string | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; maxRecords?: number | undefined; batchSize?: number | undefined; }[] | undefined; rowActions?: string[] | undefined; navigation?: { mode?: "none" | "page" | "drawer" | "new_window" | undefined; view?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; preventNavigation?: boolean | undefined; openNewTab?: boolean | undefined; size?: "full" | "auto" | "sm" | "md" | "lg" | "xl" | undefined; width?: string | number | undefined; } | undefined; tree?: { parentField?: string | undefined; labelField?: string | undefined; fields?: string[] | undefined; defaultExpandedDepth?: number | undefined; } | undefined; inlineEdit?: boolean | undefined; conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; requiredPermissions?: string[] | undefined; sharing?: { type?: { "[REMOVED] Key retired: run `os validate` for its migration.": never; } | undefined; lockedBy?: string | undefined; } | undefined; data?: { provider: "object"; object: string; } | { provider: "value"; items: unknown[]; } | { provider: "schema"; schemaId: string; schema?: Record | undefined; } | undefined; aria?: { ariaLabel?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; ariaDescribedBy?: string | undefined; role?: string | undefined; } | undefined; appearance?: { showDescription?: boolean | undefined; allowedVisualizations?: ("map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid")[] | undefined; } | undefined; resizable?: boolean | undefined; kanban?: { groupByField: string; columns: string[]; lanes?: string[] | undefined; summarizeField?: string | undefined; titleField?: string | undefined; } | undefined; gantt?: { startDateField: string; endDateField: string; titleField: string; progressField?: string | undefined; dependenciesField?: string | undefined; colorField?: string | undefined; parentField?: string | undefined; typeField?: string | undefined; baselineStartField?: string | undefined; baselineEndField?: string | undefined; groupByField?: string | undefined; resourceView?: boolean | undefined; assigneeField?: string | undefined; effortField?: string | undefined; capacity?: number | undefined; tooltipFields?: (string | { field: string; label?: string | undefined; })[] | undefined; quickFilters?: { field: string; label?: string | undefined; options?: (string | { value: string | number; label?: string | undefined; })[] | undefined; }[] | undefined; autoZoomToFilter?: boolean | undefined; viewMode?: "day" | "week" | "month" | "quarter" | "year" | undefined; borderColorField?: string | undefined; lockField?: string | undefined; objectField?: string | undefined; summaryExtent?: "self" | "children" | undefined; defaultCollapsedDepth?: number | undefined; dependencyTypes?: boolean | undefined; timeZone?: string | undefined; exportFileName?: string | undefined; interactions?: { move?: boolean | undefined; resize?: boolean | undefined; progress?: boolean | undefined; link?: boolean | undefined; } | undefined; timeSegments?: { bands: { label: string; start: string; end: string; key?: string | undefined; color?: string | undefined; }[]; dayStart?: string | undefined; showMidnight?: boolean | undefined; } | undefined; } | undefined; timeline?: { startDateField: string; titleField: string; endDateField?: string | undefined; groupByField?: string | undefined; colorField?: string | undefined; scale?: "day" | "week" | "month" | "quarter" | "year" | "hour" | undefined; } | undefined; gallery?: { coverField?: string | undefined; coverFit?: "cover" | "contain" | undefined; cardSize?: "small" | "medium" | "large" | undefined; titleField?: string | undefined; visibleFields?: string[] | undefined; } | undefined; calendar?: { startDateField: string; endDateField?: string | undefined; titleField?: string | undefined; colorField?: string | undefined; allDayField?: string | undefined; initialDate?: string | undefined; } | undefined; chart?: { dataset: string; values: string[]; chartType?: "bar" | "line" | "area" | "pie" | "scatter" | undefined; dimensions?: string[] | undefined; } | undefined; timesheet?: { rowFields: string[]; dateField: string; valueField: string; } | undefined; rowHeight?: "medium" | "compact" | "short" | "tall" | "extra_tall" | undefined; rowColor?: { field: string; colors?: Record | undefined; } | undefined; tabs?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; searchableFields?: string[] | undefined; filterableFields?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; compactToolbar?: boolean | undefined; selection?: { type?: "none" | "multiple" | "single" | undefined; } | undefined; pagination?: { pageSize?: number | undefined; pageSizeOptions?: number[] | undefined; } | undefined; pageName?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; grouping?: { fields: { field: string; order?: "asc" | "desc" | undefined; orderBy?: string | undefined; collapsed?: boolean | undefined; }[]; } | undefined; hiddenFields?: string[] | undefined; fieldOrder?: string[] | undefined; exportOptions?: ("json" | "csv" | "xlsx")[] | { formats?: ("json" | "csv" | "xlsx")[] | undefined; maxRecords?: number | undefined; includeHeaders?: boolean | undefined; fileNamePrefix?: string | undefined; streaming?: boolean | undefined; } | undefined; userActions?: { sort?: boolean | undefined; search?: boolean | undefined; filter?: boolean | undefined; refresh?: boolean | undefined; rowHeight?: boolean | undefined; group?: boolean | undefined; addRecordForm?: boolean | undefined; editInline?: boolean | undefined; hideFields?: boolean | undefined; rowColor?: boolean | undefined; buttons?: string[] | undefined; } | undefined; addRecord?: { enabled: boolean; position?: "top" | "bottom" | "both" | undefined; mode?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; formView?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; } | undefined; showRecordCount?: boolean | undefined; allowPrinting?: boolean | undefined; userFilters?: { element?: "toggle" | "dropdown" | undefined; fields?: { field: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "boolean" | "text" | "select" | "multi-select" | "date-range" | undefined; options?: { value: string | number | boolean; label: string | (Record & { key?: never; defaultValue?: never; }); color?: string | undefined; }[] | undefined; showCount?: boolean | undefined; defaultValues?: (string | number | boolean)[] | undefined; }[] | undefined; } | undefined; }> | undefined; searchableFields?: string[] | undefined; enable?: { trackHistory?: boolean | undefined; searchable?: boolean | undefined; apiEnabled?: boolean | undefined; apiMethods?: ("create" | "delete" | "update" | "get" | "bulk" | "list")[] | undefined; aiReadable?: boolean | undefined; files?: boolean | undefined; feeds?: boolean | undefined; activities?: boolean | undefined; clone?: boolean | undefined; approvalsVisibleToReaders?: boolean | undefined; } | undefined; sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; sharing?: { controlledByParent?: { ownerMayEdit?: boolean | undefined; writeRequiresMasterRead?: boolean | undefined; } | undefined; } | undefined; defaultRowScope?: { name: string; operation: "delete" | "update" | "select" | "insert" | "all"; label?: string | undefined; description?: string | undefined; using?: string | undefined; check?: string | undefined; positions?: string[] | undefined; enabled?: boolean | undefined; } | undefined; membershipKeys?: Record | undefined; externalSharingModel?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; publicSharing?: { enabled?: boolean | undefined; allowedAudiences?: ("public" | "email" | "link_only" | "signed_in")[] | undefined; allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; maxExpiryDays?: number | undefined; redactFields?: string[] | undefined; eligibility?: string | undefined; } | undefined; actions?: { name: string; label: string | (Record & { key?: never; defaultValue?: never; }); overrides?: { package: string; basedOn: string; } | undefined; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; objectName?: string | undefined; icon?: string | undefined; locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section")[] | undefined; component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; type?: "modal" | "url" | "flow" | "form" | "script" | "api" | undefined; target?: string | undefined; openIn?: "self" | "new-tab" | undefined; body?: { language: "expression"; source: string; } | { language: "js"; source: string; capabilities?: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log" | "email.send" | "activity.append")[] | undefined; timeoutMs?: number | undefined; memoryMb?: number | undefined; } | undefined; refusals?: Record | undefined; params?: string[] | undefined; }> | undefined; operation?: "update" | undefined; patch?: Record | undefined; execution?: "aggregate" | "perRecord" | undefined; params?: { name?: string | undefined; field?: string | undefined; objectOverride?: string | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; widget?: string | undefined; required?: boolean | undefined; options?: { label: string | (Record & { key?: never; defaultValue?: never; }); value: string; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; placeholder?: string | undefined; helpText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; defaultValue?: unknown; multiple?: boolean | undefined; accept?: string[] | undefined; maxSize?: number | undefined; reference?: string | undefined; defaultFromRow?: boolean | undefined; carryOver?: boolean | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; }[] | undefined; submitText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; cancelText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; order?: number | undefined; confirmText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; successMessage?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; outcomeMessages?: Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }> | undefined; errorMessage?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; refreshAfter?: boolean | undefined; undoable?: boolean | undefined; resultDialog?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; acknowledge?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; } | undefined; preflight?: { read: { url: string; method?: "GET" | undefined; }; path?: string | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; seed?: { param: string; path: string; }[] | undefined; } | undefined; visible?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; requiresMembershipReach?: "invite_member" | "cancel_invitation" | "update_member_role" | "transfer_ownership" | "remove_member" | "create_team" | "update_team" | "remove_team" | "add_team_member" | "remove_team_member" | "update_organization" | "delete_organization" | undefined; disabled?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledReason?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; pressed?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; ai?: { exposed?: boolean | undefined; description?: string | undefined; category?: "data" | "flow" | "action" | "integration" | "vector_search" | "analytics" | "utility" | undefined; paramHints?: Record | undefined; outputSchema?: Record | undefined; requiresConfirmation?: boolean | undefined; } | undefined; recordIdParam?: string | undefined; recordIdField?: string | undefined; bodyShape?: "flat" | { wrap: string; } | undefined; method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined; bodyExtra?: Record | undefined; mode?: "create" | "edit" | "delete" | "custom" | undefined; opensInNewTab?: boolean | undefined; newTabUrl?: string | undefined; onSuccess?: { navigate: string; openIn?: "self" | "newTab" | undefined; } | undefined; aria?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; }[] | undefined; protection?: { lock: "none" | "no-overlay" | "no-delete" | "full"; reason: string; docsUrl?: string | undefined; } | undefined; }, "fields"> & Pick<{ readonly name: "sys_assignment_cursor"; readonly label: "Assignment Cursor"; readonly pluralLabel: "Assignment Cursors"; readonly icon: "rotate-cw"; readonly isSystem: true; readonly managedBy: "engine-owned"; readonly description: "Where round-robin assignment last left off, per assignment rule entry."; readonly displayNameField: "rule"; readonly nameField: "rule"; readonly highlightFields: ["rule", "entry", "last_user_id", "version"]; readonly fields: { readonly rule: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly rule_package: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly entry: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly last_user_id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly version: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "number"; }; }; readonly indexes: [{ readonly fields: ["rule", "entry"]; readonly unique: "organization"; }]; }, "fields">; /** * sys_assignment_rule — an organization's own assignment rule (ADR-0142 D5, * ruling A on organization-authored routing). * * One row is one rule with one entry: when an inserted record of * `object_name` matches `criteria`, it goes to the queue or the user the * recipient columns name, and a queue target may pick one member by * `strategy`. The engine reads the row the way it reads a declared rule's * entry (`packages/objectql/src/assignment-rules.ts`). * * ## Two sources, one namespace * * A package declares assignment rules in its stack's `assignmentRules` * (registry items, never copied into this table); an organization authors its * own here, the model `sys_sharing_rule` and `sys_queue` already follow. * A row may not take a declared rule's name (ADR-0131 D4): the save guard * (`assignment-rule-hooks.ts`) refuses that write. * * ## Order * * The engine is first-match. An object's organization rules are evaluated * first, ascending by `sort_order` and then by `name`, and the rules packages * declare are the fallback. The other order would let an organization's rule * never win: the activation ledger that switches a declared rule off is one * row per deployment, with no organization column, so an organization cannot * switch a package rule off for itself alone. * * ## Validated on save * * The save guard refuses, naming the field: a name that is not snake_case or * that a package rule holds; an object that does not exist or has no * ownership queue column; the shape the stack schema refuses for a declared * entry (a strategy on a user target, `least_loaded` without `load`, …); * a `criteria` or `load` the engine's CEL paths cannot compile; a user target * who is not an active member of the rule's organization; a row with no * organization. At insert time a target that no longer resolves leaves the * record ownerless and is logged once — intake is never refused. * * Field `description`s here are ADMIN-FACING help text rendered under each * input in Setup; implementation detail belongs in this comment. * * @namespace sys */ declare const SysAssignmentRule: Omit<{ name: string; fields: Record; }[] | undefined; widget?: string | undefined; hidden?: boolean | undefined; internal?: boolean | undefined; readonly?: boolean | undefined; requiredPermissions?: string[] | undefined; maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; ackPlaintextMasking?: boolean | undefined; system?: boolean | undefined; sortable?: boolean | undefined; inlineHelpText?: string | undefined; placeholder?: string | undefined; autonumberFormat?: string | undefined; externalId?: boolean | undefined; renamedFrom?: string[] | undefined; }>; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; label?: string | undefined; pluralLabel?: string | undefined; description?: string | undefined; icon?: string | undefined; isSystem?: boolean | undefined; managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "synced" | "better-auth" | undefined; ownership?: "none" | "org" | "user" | "business_unit" | undefined; userActions?: { create?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; import?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; edit?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; delete?: boolean | { enabled?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; } | undefined; exportCsv?: boolean | undefined; } | undefined; systemFields?: false | { tenant?: boolean | undefined; audit?: boolean | undefined; } | undefined; datasource?: string | undefined; external?: { remoteName?: string | undefined; remoteSchema?: string | undefined; writable?: boolean | undefined; columnMap?: Record | undefined; introspectedAt?: string | undefined; ignoreColumns?: string[] | undefined; } | undefined; attachedOnRead?: Record> | undefined; indexes?: { fields: string[]; name?: string | undefined; unique?: false | "global" | "organization" | undefined; }[] | undefined; fieldGroups?: { key: string; label: string; icon?: string | undefined; description?: string | undefined; relatedList?: string | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; collapse?: "none" | "collapsed" | "expanded" | undefined; defaultExpanded?: boolean | undefined; collapsible?: boolean | undefined; collapsed?: boolean | undefined; }[] | undefined; tenancy?: { enabled: boolean; tenantField?: string | undefined; } | undefined; access?: { default?: "public" | "private" | undefined; } | undefined; requiredPermissions?: string[] | { read?: string[] | undefined; create?: string[] | undefined; update?: string[] | undefined; delete?: string[] | undefined; } | undefined; lifecycle?: { class: "audit" | "record" | "telemetry" | "transient" | "event"; retention?: { maxAge: string; onlyWhen?: Record | undefined; } | undefined; ttl?: { field: string; expireAfter: string; onlyWhen?: Record | undefined; } | undefined; storage?: { strategy: "rotation"; shards: number; unit: "day" | "week" | "month"; } | undefined; archive?: { after: string; to: string; keep?: string | undefined; } | undefined; seal?: { valueFields: string[]; chainField?: string | undefined; } | undefined; reclaim?: boolean | undefined; } | undefined; fileAccessDelegate?: string | undefined; schemaReadDelegate?: string | undefined; validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined; activityMilestones?: { field: string; value: string; summary: string; type?: string | undefined; }[] | undefined; nameField?: string | undefined; displayNameField?: string | undefined; titleFormat?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; imageField?: string | undefined; highlightFields?: string[] | undefined; relatedLists?: string[] | undefined; stageField?: string | false | undefined; editMode?: "page" | "modal" | undefined; listViews?: Record & { key?: never; defaultValue?: never; }) | undefined; width?: number | undefined; align?: "center" | "left" | "right" | undefined; hidden?: boolean | undefined; sortable?: boolean | undefined; resizable?: boolean | undefined; wrap?: boolean | undefined; type?: string | undefined; pinned?: "left" | "right" | undefined; summary?: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { type: "none" | "min" | "max" | "count" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; field?: string | undefined; } | undefined; prefix?: { field: string; type?: "text" | "badge" | undefined; } | undefined; link?: boolean | undefined; action?: string | undefined; }[]; map?: { latitudeField?: string | undefined; longitudeField?: string | undefined; locationField?: string | undefined; titleField?: string | undefined; descriptionField?: string | undefined; zoom?: number | undefined; center?: [number, number] | undefined; style?: string | undefined; } | undefined; type?: "map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid" | undefined; sort?: { field: string; order: "asc" | "desc"; }[] | undefined; filter?: ({ field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; } | { or: { field: string; operator: "in" | "after" | "starts_with" | "ends_with" | "contains" | "equals" | "not_equals" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal" | "before" | "not_in" | "not_contains" | "icontains" | "between" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; value?: string | number | boolean | (string | number)[] | null | undefined; }[]; })[] | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; emptyState?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; message?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; icon?: string | undefined; link?: { label: string | (Record & { key?: never; defaultValue?: never; }); url: string; } | undefined; } | undefined; name?: string | undefined; bulkActions?: string[] | undefined; bulkActionDefs?: { name: string; operation: "delete" | "update" | "custom"; label?: string | undefined; icon?: string | undefined; variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; execution?: "aggregate" | "perRecord" | undefined; patch?: Record | undefined; params?: { name: string; type: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector"; label?: string | undefined; help?: string | undefined; required?: boolean | undefined; default?: unknown; options?: { [x: string]: unknown; label: string; value: string | number | boolean; }[] | undefined; object?: string | undefined; labelField?: string | undefined; multiple?: boolean | undefined; placeholder?: string | undefined; dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; }[] | undefined; confirmText?: string | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; confirmLabel?: string | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; maxRecords?: number | undefined; batchSize?: number | undefined; }[] | undefined; rowActions?: string[] | undefined; navigation?: { mode?: "none" | "page" | "drawer" | "new_window" | undefined; view?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; preventNavigation?: boolean | undefined; openNewTab?: boolean | undefined; size?: "full" | "auto" | "sm" | "md" | "lg" | "xl" | undefined; width?: string | number | undefined; } | undefined; tree?: { parentField?: string | undefined; labelField?: string | undefined; fields?: string[] | undefined; defaultExpandedDepth?: number | undefined; } | undefined; inlineEdit?: boolean | undefined; conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; requiredPermissions?: string[] | undefined; sharing?: { type?: { "[REMOVED] Key retired: run `os validate` for its migration.": never; } | undefined; lockedBy?: string | undefined; } | undefined; data?: { provider: "object"; object: string; } | { provider: "value"; items: unknown[]; } | { provider: "schema"; schemaId: string; schema?: Record | undefined; } | undefined; aria?: { ariaLabel?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; ariaDescribedBy?: string | undefined; role?: string | undefined; } | undefined; appearance?: { showDescription?: boolean | undefined; allowedVisualizations?: ("map" | "tree" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart" | "timesheet" | "grid")[] | undefined; } | undefined; resizable?: boolean | undefined; kanban?: { groupByField: string; columns: string[]; lanes?: string[] | undefined; summarizeField?: string | undefined; titleField?: string | undefined; } | undefined; gantt?: { startDateField: string; endDateField: string; titleField: string; progressField?: string | undefined; dependenciesField?: string | undefined; colorField?: string | undefined; parentField?: string | undefined; typeField?: string | undefined; baselineStartField?: string | undefined; baselineEndField?: string | undefined; groupByField?: string | undefined; resourceView?: boolean | undefined; assigneeField?: string | undefined; effortField?: string | undefined; capacity?: number | undefined; tooltipFields?: (string | { field: string; label?: string | undefined; })[] | undefined; quickFilters?: { field: string; label?: string | undefined; options?: (string | { value: string | number; label?: string | undefined; })[] | undefined; }[] | undefined; autoZoomToFilter?: boolean | undefined; viewMode?: "day" | "week" | "month" | "quarter" | "year" | undefined; borderColorField?: string | undefined; lockField?: string | undefined; objectField?: string | undefined; summaryExtent?: "self" | "children" | undefined; defaultCollapsedDepth?: number | undefined; dependencyTypes?: boolean | undefined; timeZone?: string | undefined; exportFileName?: string | undefined; interactions?: { move?: boolean | undefined; resize?: boolean | undefined; progress?: boolean | undefined; link?: boolean | undefined; } | undefined; timeSegments?: { bands: { label: string; start: string; end: string; key?: string | undefined; color?: string | undefined; }[]; dayStart?: string | undefined; showMidnight?: boolean | undefined; } | undefined; } | undefined; timeline?: { startDateField: string; titleField: string; endDateField?: string | undefined; groupByField?: string | undefined; colorField?: string | undefined; scale?: "day" | "week" | "month" | "quarter" | "year" | "hour" | undefined; } | undefined; gallery?: { coverField?: string | undefined; coverFit?: "cover" | "contain" | undefined; cardSize?: "small" | "medium" | "large" | undefined; titleField?: string | undefined; visibleFields?: string[] | undefined; } | undefined; calendar?: { startDateField: string; endDateField?: string | undefined; titleField?: string | undefined; colorField?: string | undefined; allDayField?: string | undefined; initialDate?: string | undefined; } | undefined; chart?: { dataset: string; values: string[]; chartType?: "bar" | "line" | "area" | "pie" | "scatter" | undefined; dimensions?: string[] | undefined; } | undefined; timesheet?: { rowFields: string[]; dateField: string; valueField: string; } | undefined; rowHeight?: "medium" | "compact" | "short" | "tall" | "extra_tall" | undefined; rowColor?: { field: string; colors?: Record | undefined; } | undefined; tabs?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; searchableFields?: string[] | undefined; filterableFields?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; compactToolbar?: boolean | undefined; selection?: { type?: "none" | "multiple" | "single" | undefined; } | undefined; pagination?: { pageSize?: number | undefined; pageSizeOptions?: number[] | undefined; } | undefined; pageName?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; grouping?: { fields: { field: string; order?: "asc" | "desc" | undefined; orderBy?: string | undefined; collapsed?: boolean | undefined; }[]; } | undefined; hiddenFields?: string[] | undefined; fieldOrder?: string[] | undefined; exportOptions?: ("json" | "csv" | "xlsx")[] | { formats?: ("json" | "csv" | "xlsx")[] | undefined; maxRecords?: number | undefined; includeHeaders?: boolean | undefined; fileNamePrefix?: string | undefined; streaming?: boolean | undefined; } | undefined; userActions?: { sort?: boolean | undefined; search?: boolean | undefined; filter?: boolean | undefined; refresh?: boolean | undefined; rowHeight?: boolean | undefined; group?: boolean | undefined; addRecordForm?: boolean | undefined; editInline?: boolean | undefined; hideFields?: boolean | undefined; rowColor?: boolean | undefined; buttons?: string[] | undefined; } | undefined; addRecord?: { enabled: boolean; position?: "top" | "bottom" | "both" | undefined; mode?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; formView?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; } | undefined; showRecordCount?: boolean | undefined; allowPrinting?: boolean | undefined; userFilters?: { element?: "toggle" | "dropdown" | undefined; fields?: { field: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "boolean" | "text" | "select" | "multi-select" | "date-range" | undefined; options?: { value: string | number | boolean; label: string | (Record & { key?: never; defaultValue?: never; }); color?: string | undefined; }[] | undefined; showCount?: boolean | undefined; defaultValues?: (string | number | boolean)[] | undefined; }[] | undefined; } | undefined; }> | undefined; searchableFields?: string[] | undefined; enable?: { trackHistory?: boolean | undefined; searchable?: boolean | undefined; apiEnabled?: boolean | undefined; apiMethods?: ("create" | "delete" | "update" | "get" | "bulk" | "list")[] | undefined; aiReadable?: boolean | undefined; files?: boolean | undefined; feeds?: boolean | undefined; activities?: boolean | undefined; clone?: boolean | undefined; approvalsVisibleToReaders?: boolean | undefined; } | undefined; sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; sharing?: { controlledByParent?: { ownerMayEdit?: boolean | undefined; writeRequiresMasterRead?: boolean | undefined; } | undefined; } | undefined; defaultRowScope?: { name: string; operation: "delete" | "update" | "select" | "insert" | "all"; label?: string | undefined; description?: string | undefined; using?: string | undefined; check?: string | undefined; positions?: string[] | undefined; enabled?: boolean | undefined; } | undefined; membershipKeys?: Record | undefined; externalSharingModel?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; publicSharing?: { enabled?: boolean | undefined; allowedAudiences?: ("public" | "email" | "link_only" | "signed_in")[] | undefined; allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; maxExpiryDays?: number | undefined; redactFields?: string[] | undefined; eligibility?: string | undefined; } | undefined; actions?: { name: string; label: string | (Record & { key?: never; defaultValue?: never; }); overrides?: { package: string; basedOn: string; } | undefined; _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; _lockReason?: string | undefined; _lockSource?: "artifact" | "package" | "env-forced" | undefined; _provenance?: "package" | "env-forced" | "org" | undefined; _packageId?: string | undefined; _packageVersion?: string | undefined; _lockDocsUrl?: string | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; objectName?: string | undefined; icon?: string | undefined; locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section")[] | undefined; component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; type?: "modal" | "url" | "flow" | "form" | "script" | "api" | undefined; target?: string | undefined; openIn?: "self" | "new-tab" | undefined; body?: { language: "expression"; source: string; } | { language: "js"; source: string; capabilities?: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log" | "email.send" | "activity.append")[] | undefined; timeoutMs?: number | undefined; memoryMb?: number | undefined; } | undefined; refusals?: Record | undefined; params?: string[] | undefined; }> | undefined; operation?: "update" | undefined; patch?: Record | undefined; execution?: "aggregate" | "perRecord" | undefined; params?: { name?: string | undefined; field?: string | undefined; objectOverride?: string | undefined; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; type?: "number" | "boolean" | "user" | "date" | "text" | "record" | "summary" | "tree" | "file" | "url" | "code" | "email" | "datetime" | "time" | "color" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "image" | "avatar" | "video" | "audio" | "formula" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; widget?: string | undefined; required?: boolean | undefined; options?: { label: string | (Record & { key?: never; defaultValue?: never; }); value: string; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; placeholder?: string | undefined; helpText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; defaultValue?: unknown; multiple?: boolean | undefined; accept?: string[] | undefined; maxSize?: number | undefined; reference?: string | undefined; defaultFromRow?: boolean | undefined; carryOver?: boolean | undefined; visible?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; }[] | undefined; submitText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; cancelText?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; order?: number | undefined; confirmText?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; successMessage?: string | (Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; outcomeMessages?: Record & { key?: never; defaultValue?: never; }) | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | { dialect: "template"; source?: string | undefined; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }> | undefined; errorMessage?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; refreshAfter?: boolean | undefined; undoable?: boolean | undefined; resultDialog?: { title?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; description?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; acknowledge?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; } | undefined; preflight?: { read: { url: string; method?: "GET" | undefined; }; path?: string | undefined; fields?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | "table" | undefined; columns?: { path: string; label?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; format?: "text" | "secret" | "json" | "qrcode" | "code-list" | undefined; }[] | undefined; }[] | undefined; seed?: { param: string; path: string; }[] | undefined; } | undefined; visible?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "directSignIn" | "deviceAuthorization" | "admin" | "phoneNumber" | "cloudManaged" | "phoneNumberOtp" | "emailDelivery" | "developerEditionCreate" | undefined; requiresMembershipReach?: "invite_member" | "cancel_invitation" | "update_member_role" | "transfer_ownership" | "remove_member" | "create_team" | "update_team" | "remove_team" | "add_team_member" | "remove_team_member" | "update_organization" | "delete_organization" | undefined; disabled?: string | boolean | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; disabledReason?: string | (Record & { key?: never; defaultValue?: never; }) | undefined; pressed?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredPermissions?: string[] | undefined; ai?: { exposed?: boolean | undefined; description?: string | undefined; category?: "data" | "flow" | "action" | "integration" | "vector_search" | "analytics" | "utility" | undefined; paramHints?: Record | undefined; outputSchema?: Record | undefined; requiresConfirmation?: boolean | undefined; } | undefined; recordIdParam?: string | undefined; recordIdField?: string | undefined; bodyShape?: "flat" | { wrap: string; } | undefined; method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined; bodyExtra?: Record | undefined; mode?: "create" | "edit" | "delete" | "custom" | undefined; opensInNewTab?: boolean | undefined; newTabUrl?: string | undefined; onSuccess?: { navigate: string; openIn?: "self" | "newTab" | undefined; } | undefined; aria?: { '[REMOVED] Key retired: run `os validate` for its migration.': never; } | undefined; }[] | undefined; protection?: { lock: "none" | "no-overlay" | "no-delete" | "full"; reason: string; docsUrl?: string | undefined; } | undefined; }, "fields"> & Pick<{ readonly name: "sys_assignment_rule"; readonly label: "Assignment Rule"; readonly pluralLabel: "Assignment Rules"; readonly icon: "route"; readonly isSystem: true; readonly managedBy: "config"; readonly description: "Sends each new record that matches a condition to a queue or a person."; readonly displayNameField: "name"; readonly nameField: "name"; readonly highlightFields: ["name", "object_name", "recipient_type", "recipient_id", "strategy", "active"]; readonly listViews: { readonly by_object: { readonly type: "grid"; readonly name: "by_object"; readonly label: "By Object"; readonly data: { readonly provider: "object"; readonly object: "sys_assignment_rule"; }; readonly columns: ["object_name", "sort_order", "label", "recipient_type", "recipient_id", "strategy", "active"]; readonly sort: [{ readonly field: "object_name"; readonly order: "asc"; }, { readonly field: "sort_order"; readonly order: "asc"; }, { readonly field: "name"; readonly order: "asc"; }]; readonly pagination: { readonly pageSize: 100; }; }; }; readonly fields: { readonly organization_id: _objectstack_spec_data.FieldInput & { readonly label: "Organization"; readonly required: true; readonly group: "System"; readonly description: "The organization this rule belongs to."; } & { readonly type: "lookup"; readonly reference: string; }; readonly name: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly label: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly description: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "textarea"; }; readonly object_name: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly criteria: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "textarea"; }; readonly sort_order: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "number"; }; readonly recipient_type: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly recipient_id: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "text"; }; readonly strategy: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; options: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[]; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "select"; }; readonly load: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "textarea"; }; readonly active: { readonly readonly?: boolean | undefined; readonly format?: string | undefined; readonly options?: { label: string; value: string; description?: string | undefined; color?: string | undefined; default?: boolean | undefined; visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; kind?: "open" | "won" | "lost" | undefined; }[] | undefined; readonly description?: string | undefined; readonly storage?: { notNull?: boolean | undefined; } | undefined; readonly label?: string | undefined; readonly placeholder?: string | undefined; readonly inlineTitle?: string | undefined; readonly relatedListTitle?: string | undefined; readonly picklist?: string | undefined; readonly name?: string | undefined; readonly dimensions?: number | undefined; readonly inlineHelpText?: string | undefined; readonly system?: boolean | undefined; readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; readonly _lockReason?: string | undefined; readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; readonly _provenance?: "package" | "env-forced" | "org" | undefined; readonly _packageId?: string | undefined; readonly _packageVersion?: string | undefined; readonly _lockDocsUrl?: string | undefined; readonly language?: string | undefined; readonly group?: string | undefined; readonly precision?: number | undefined; readonly expression?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly visibleWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly required?: boolean | undefined; readonly step?: number | undefined; readonly reference?: string | undefined; readonly displayField?: string | undefined; readonly multiple?: boolean | undefined; readonly accept?: string[] | undefined; readonly scale?: number | undefined; readonly readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly hidden?: boolean | undefined; readonly searchable?: boolean | undefined; readonly unique?: boolean | "global" | "organization" | undefined; readonly defaultValue?: unknown; readonly maxLength?: number | undefined; readonly minLength?: number | undefined; readonly valueDomain?: "iana_time_zone" | "iso_4217_currency" | "iso_3166_alpha2" | undefined; readonly rows?: number | undefined; readonly min?: number | undefined; readonly max?: number | undefined; readonly useGrouping?: boolean | undefined; readonly percentDisplay?: "bar" | "plain" | undefined; readonly maxSize?: number | undefined; readonly referenceVia?: string | undefined; readonly referenceDeletedWhen?: { field: string; value: string; } | undefined; readonly referenceNameVisible?: boolean | undefined; readonly mailAssociation?: boolean | undefined; readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; readonly inlineEdit?: boolean | "grid" | "form" | undefined; readonly inlineColumns?: { name: string; label?: string | undefined; type?: "number" | "date" | "file" | "text" | "datetime" | "time" | "currency" | "select" | "lookup" | undefined; width?: number | undefined; required?: boolean | undefined; options?: { label: string; value: string; }[] | undefined; prefix?: string | undefined; step?: number | undefined; reference?: string | undefined; displayField?: string | undefined; idField?: string | undefined; multiple?: boolean | undefined; accept?: string[] | undefined; defaultHidden?: boolean | undefined; computed?: boolean | undefined; expr?: string | undefined; scale?: number | undefined; autofill?: boolean | undefined; readonlyWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; requiredWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; }[] | undefined; readonly inlineAmountField?: string | undefined; readonly relatedList?: boolean | "primary" | undefined; readonly relatedListColumns?: string[] | undefined; readonly relatedListFilter?: _objectstack_spec_data.FilterCondition | undefined; readonly descriptionField?: string | undefined; readonly lookupColumns?: (string | { field: string; label?: string | undefined; width?: string | undefined; type?: string | undefined; })[] | undefined; readonly lookupPageSize?: number | undefined; readonly lookupFilters?: { field: string; operator: "in" | "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "notIn"; value: any; orEmpty?: boolean | undefined; }[] | undefined; readonly dependsOn?: (string | { field: string; param?: string | undefined; })[] | undefined; readonly allowCreate?: boolean | undefined; readonly lookupAutofill?: { target: string; source: string; overwrite?: boolean | undefined; }[] | undefined; readonly returnType?: "number" | "boolean" | "date" | "text" | "currency" | undefined; readonly summaryOperations?: { object: string; function: "min" | "max" | "count" | "sum" | "avg"; field?: string | undefined; relationshipField?: string | undefined; filter?: _objectstack_spec_data.FilterCondition | undefined; } | undefined; readonly currencyConfig?: { currencyMode?: "record" | "fixed" | "dynamic" | undefined; defaultCurrency?: string | undefined; currencyField?: string | undefined; homeAmount?: { field: string; rateDate: string; rateField: string; } | undefined; } | undefined; readonly trackHistory?: boolean | undefined; readonly dueLike?: boolean | undefined; readonly settledWhen?: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; } | undefined; readonly conditionalFormatting?: { condition: string | { dialect: "template" | "cron" | "cel"; source: string; ast?: unknown; meta?: { rationale?: string | undefined; generatedBy?: string | undefined; } | undefined; }; style: Record; }[] | undefined; readonly widget?: string | undefined; readonly internal?: boolean | undefined; readonly requiredPermissions?: string[] | undefined; readonly maskingRule?: "name" | "email" | "phone" | "id_card" | "bank_account" | { keepHead: number; keepTail: number; } | undefined; readonly ackPlaintextMasking?: boolean | undefined; readonly sortable?: boolean | undefined; readonly autonumberFormat?: string | undefined; readonly externalId?: boolean | undefined; readonly renamedFrom?: string[] | undefined; readonly type: "boolean"; }; }; readonly indexes: [{ readonly fields: ["object_name", "active"]; }, { readonly fields: ["name"]; readonly unique: "organization"; }, { readonly fields: ["organization_id"]; }]; }, "fields">; /** The slice of the engine these primitives need. */ interface OrphanCleanupEngine { find(object: string, options?: any): Promise; delete(object: string, options?: any): Promise; } /** * [#5103] Ids per `$in`. Mirrors the chunk * `SharingRuleService.revokeRuleGrantsForRecords` already uses: a single * statement binding a thousand parameters is a portability trap (SQLite's * default `SQLITE_MAX_VARIABLE_NUMBER` is 999 on older builds), and one number * for every revoke path keeps them from drifting. */ declare const RECORD_SCOPED_DELETE_CHUNK = 200; /** [#5103] Rows read per page by an orphan sweep. */ declare const ORPHAN_SWEEP_PAGE_SIZE = 500; /** * [#5103] Rows one sweep will scan before stopping and reporting truncation. * The sweep runs on every boot, so it must cost a bounded amount on a table * that only grows; the next boot resumes from the start and the rows it did not * reach stay reachable by the object-scoped sweep. A cap is not a failure — but * an unreported cap turns a partial scan into a false "nothing to clean", which * is why {@link OrphanShareSweepResult} carries it. */ declare const ORPHAN_SWEEP_MAX_ROWS = 50000; /** [#5103] Options for a record-existence orphan sweep. */ interface OrphanShareSweepOptions { /** Restrict the sweep to one object. Default: every object with rows. */ object?: string; /** Rows per page. Default {@link ORPHAN_SWEEP_PAGE_SIZE}. */ batchSize?: number; /** Stop after scanning this many rows. Default {@link ORPHAN_SWEEP_MAX_ROWS}. */ max?: number; } /** [#5103] What one orphan-sweep pass did. */ interface OrphanShareSweepResult { /** Rows examined. */ scanned: number; /** Rows revoked because their record no longer exists. */ revoked: number; /** * Objects whose existence probe could not be run (unregistered object, * driver error). Their rows were LEFT ALONE — "could not ask" is not * "the record is gone", and only the second one may delete anything. */ unresolvedObjects: string[]; /** True when {@link OrphanShareSweepOptions.max} stopped the scan early. */ truncated: boolean; } /** * Structural on purpose — it accepts both owning services' option shapes * (`SharingServiceOptions['logger']`, `ShareLinkServiceOptions['logger']`) * and a bare `{ warn }` stub in a test. * * `warn` is REQUIRED, and the members carry the same real signatures as the * producers that feed this parameter (#10692, ruled 2026-08-25). Every report * this module emits lands on `warn` — the "could not check", "stopped early" * and "revoked N rows" lines — so a logger without a guaranteed `warn` is one * this sweep can lose its ONLY output into: #9754's silence rule, one module * downstream of the producers #10556 tightened. Both owning services' `logger` * members require `warn` since PR #11856, so they stay assignable; what stops * compiling is a logger with no `warn`, which was never a useful argument * here. The bare-`Function` spelling this replaces documented no call shape * and could not tighten until those producers dropped bare `Function` * (`Function` is assignable to no concrete signature). * * Deliberately NO `error` member — adding one would enrol this sink in * `check:optional-error-sink`'s population (see `logger-shapes.ts`, "Why this * shape declares no `error`"). Requiredness is pinned in * `logger-required-warn.pin.ts`. */ interface MinimalLogger$3 { info?: (msg: any, ...rest: any[]) => void; warn: (msg: any, ...rest: any[]) => void; } /** How one caller's rows are named in this module's log lines. */ interface OrphanSweepSubject { /** Table to sweep, e.g. `sys_record_share`. */ table: string; /** Noun for log messages: `share` → "orphan share sweep", "share rows". */ noun: string; /** * Why the rows go, appended to the "revoked N rows" warning. Runtime text * carries no tracker number, so this states the decision in words. */ issue: string; } /** * [#5103] Delete every row of `table` that belongs to records just deleted from * `object`. * * Set-based and chunked, so its cost tracks the number of ids, not the number * of rows. Returns nothing: counting would need a read the hot delete path * should not pay for, and callers that need a count (tests, the sweep) can read * the table. */ declare function deleteRowsForDeletedRecords(engine: OrphanCleanupEngine, table: string, object: string, recordIds: readonly string[]): Promise; /** * [#5103] Remove every row of `subject.table` whose RECORD no longer exists. * * The convergence half of the record-delete cascade, and the shape * `SharingRuleService.sweepOrphanedRuleGrants` (#4433) established — with a * different predicate, which is the whole point: that sweep asks "does the RULE * row still exist", so it can never see a manual share, nor a rule grant whose * rule is alive and whose record is not. This one asks "does the RECORD still * exist", which is the question the invariant is actually made of, and it is * source-agnostic (and, for `sys_share_link`, holder-agnostic). * * Two callers, one primitive: * - `kernel:bootstrapped`, unscoped — historical orphans from before the * cascade existed, plus anything a crashed hook missed, converge on the next * boot; * - the cascade's unbounded-delete branch, scoped to one object — a bulk * delete whose row set could not be enumerated cannot name the ids to * revoke, but the sweep does not need them: it reads the rows and asks about * each record. This is deliberately NOT the rule path's "revoke everything on * the object and re-grant asynchronously" — that trade is only available * where a reconcile can put the grants back, and nothing can re-create a * manual share or re-mint a link someone already holds. * * Bounded on both axes: rows are read by keyset page (never `OFFSET`, which * skips rows in a walk that deletes as it goes — #4363), the scan stops at * `max` and SAYS so, and existence is probed one batched `id IN (…)` per object * per page rather than one query per row. * * Fails SAFE per object: a probe that throws leaves that object's rows * untouched and is reported in `unresolvedObjects`. "Nothing was queried" is not * "nothing matched" — deleting on a failed probe would turn a transient driver * error into permanent access loss. (The RESOLVE path fails the other way, and * for the same reason: there, "cannot ask" must not grant. Both refuse to act on * an unanswered question; only the safe direction differs.) */ declare function sweepOrphanedRowsByRecordExistence(engine: OrphanCleanupEngine, subject: OrphanSweepSubject, options?: OrphanShareSweepOptions, logger?: MinimalLogger$3): Promise; /** * Shape of the data engine the service actually needs. Kept narrow so * unit tests can pass an in-memory fake without depending on the full * ObjectQL engine class. */ interface SharingEngine { find(object: string, options?: any): Promise; findOne?(object: string, options?: any): Promise; insert(object: string, data: any, options?: any): Promise; update(object: string, idOrData: any, dataOrOptions?: any, options?: any): Promise; delete(object: string, options?: any): Promise; getSchema?(object: string): any | undefined; /** * [#21197] The engine's privileged batch accessor for a field declared * `internal: true` (ObjectQL `resolveInternalField`, #8118) — the only door * back to a column the generic read path omits. Optional: an engine that * does not implement the `internal` channel strips nothing, so it never * needs it. Used by the share-link service for `sys_share_link.token` and * `.password_hash`. */ resolveInternalField?(object: string, recordIds: readonly string[], field: string): Promise>; } /** * Effective sharing model — collapses the authorable OWD vocabulary onto the * three behaviours this service enforces: * - `private` → owner-only read + write * - `public_read` → everyone reads, owner writes * - `public_read_write` → public (no record-level filter) * - `controlled_by_parent` → public here (scoped separately by the * security plugin's master-detail path, ADR-0055) * * [ADR-0090 D1] Secure default: a CUSTOM object (not `sys_*`, not * `isSystem`) that declares NO `sharingModel` resolves to **`private`** — * the former fall-through-to-public default silently granted org-wide * read/write to any C/R/U grant holder (the objectui#2348 incident). * System/platform objects keep their explicit ADR-0066 posture and the * bypass list; an unset model on them stays public as before. * * [ADR-0090 D4] The legacy aliases (`read`/`read_write`/`full`) no longer * parse at authoring. A stored value this function does not recognise * fails CLOSED to `private` (never silently public). */ declare function effectiveSharingModel(schema: any): 'private' | 'read' | 'public'; /** * [#8418] The one WARN line a write gate emits when it refuses because the * ownership fast-path was defeated by a FEDERATED object's phantom `owner_id` * anchor. * * Ruled on #8418 (2026-08-13 14:22Z, option C): the verdict is UNCHANGED — * `checkEdit` / `checkDelete` stay fail-closed exactly as shipped — and what is * added is this diagnostic, so the refusal stops being invisible. Nothing about * the adjudication reads this constant; removing it would change no verdict. * * ## Why this refusal was the silent one * * Every other unresolvable write gate in this class reaches * {@link SharingService.writeGateFailClosed}, which logs. This one never does, * and the reason is one rung of the SQL driver's recovery ladder: when a query's * `fields` names a column the remote table lacks, the driver DISCARDS the whole * projection and re-runs `select('*')` rather than raising, so * {@link SharingService.matchesOwnerScope} gets a perfectly good row that simply * has no `owner_id` key. No throw ⇒ no `catch` ⇒ no log; `owner == null` ⇒ * `false` ⇒ `deny`. The operator sees a bare 403 and there is no trace of it * anywhere on the server. * * WARN, not INFO: unlike #6783's system-write skip — which is correct and * self-healing, hence INFO — this names a deployment that cannot work as * authored. Every principal at every write DEPTH is refused (`org` included: * the null-owner short-circuit runs before the scope is consulted), and only a * `modifyAllRecords` holder can still write. The remedies are the operator's: * declare the real remote `owner_id` column, or put the object under a sharing * model that does not scope by owner. * * It is a statement about the ANCHOR, not about the row or the caller — see * {@link SharingService.notePhantomAnchorWriteDeny} for why that fixes the * dedup key. */ declare const PHANTOM_ANCHOR_WRITE_DENY_NOTICE: string; /** * [#27662] The second silent cause of the same refusal: a federated object * whose owner column is NOT the phantom anchor — the author mapped a remote * column onto `owner_id` through `external.columnMap`, or declared `owner_id` * outright — served by a driver that returns rows with no `owner_id` key at * all. A plugin driver that does not apply `columnMap` is the measured case: it * answers with the remote column's own name, so the pre-image has no owner, and * every member write is refused exactly as on a phantom anchor (fail closed, * correct). Since #27425 took the mapped class out of * {@link hasPhantomOwnerAnchor}, {@link PHANTOM_ANCHOR_WRITE_DENY_NOTICE} no * longer fires for it, and its wording ("injected anchor") would be wrong if it * did — the metadata is right here, the driver is what drops the column. * * Keyed on the row, not on which of the two declarations the author used: an * absent key is the one fact both share, and a present `null` (an ordinary * owner-less row over a driver that DOES serve the column) stays silent. */ declare const UNSERVED_OWNER_WRITE_DENY_NOTICE: string; /** * [ADR-0111 D2] The narrow slice of `ISecurityService` the management gate * needs — kept structural so unit tests can pass a stub and so a deployment * without `@objectstack/plugin-security` degrades to owner-only (fail closed). */ interface SharingSecurityProbe { hasWriteBypass?(object: string, context: unknown): Promise; /** * [#5493] `ISecurityService.checkAuthoredRowWrite` — "does an APP-AUTHORED * row-level policy admit this row for this write operation, on its own, with * the platform's ownership floor taken out?" * * Read by {@link SharingService.probeAuthoredRowWrite} so the write gate can * DEFER instead of hard-refusing a by-id write that a declared widener * admits. Structural on purpose, exactly like the two members above: this * plugin does not depend on `@objectstack/plugin-security`, it declares the * slice it probes. * * `admit` is EVIDENCE, never authorization — it says a declared policy speaks * for this row, not that the write is permitted. Every other outcome * (`abstain`, an absent method, an absent service, a throw) is one * instruction: keep today's refusal. */ checkAuthoredRowWrite?(object: string, recordId: string, operation: AuthoredRowWriteOperation, context?: unknown): Promise; /** * [ADR-0111 D1 DEPTH] The caller's effective WRITE scope on `object` * (`own` / `own_and_reports` / `unit` / `unit_and_below` / `org`), resolved * from their permission sets exactly as the CRUD middleware resolves it. * Used by {@link SharingService.canManageShares} to let a hierarchy manager * manage shares on records they can write by DEPTH. Fails closed to `own`. */ resolveWriteScope?(object: string, context: unknown): Promise<'own' | 'own_and_reports' | 'unit' | 'unit_and_below' | 'org'>; /** * [ADR-0111 D8 rule 1 — the capability hard stop] `ISecurityService.explain`, * a declared (not optional) contract method, read here for ONE layer of its * declared report: `required_permissions`, the ADR-0066 D3 capability * AND-gate. The explain engine computes that layer with the middleware's own * capability fold, so its `denies` is the refusal the read gate throws. * Used by {@link SharingService.canMintWithoutVisibility} only. Absent while * the service is present, a throw, or a report that does not carry the layer * answers as a refusal. */ explain?(request: ExplainAccessRequest, callerContext?: unknown): Promise>; } /** * [ADR-0105 D1 / #5859] The narrow slice of the `tenancy` service the * organization gate needs — the deployment's posture, i.e. whether an * organization wall is enforced at all. Kept structural (and identical in shape * to what `SecurityPlugin` reads) so a stack without `@objectstack/plugin-auth` * needs no adapter, and so a unit test can state a posture without a kernel. */ interface SharingTenancyProbe { /** `single` | `group` | `isolated` (the legacy `multi` spelling normalizes). */ readonly posture?: TenancyPosture | string; /** Pre-ADR-0105 shape: "is the hard organization wall on?" */ readonly isolationActive?: boolean; } /** * [#26180 · ruling 6429330267, letter A] The one member of the `approvals` * service the read filter asks: the records of an object the caller may READ * because a pending approval step waits on them (record id → the pending * request ids that grant it). Structural, as {@link SharingSecurityProbe} is: * this plugin does not depend on `@objectstack/plugin-approvals`, it declares * the slice it reads, and a stack without approvals grants nothing. */ interface SharingApprovalReadProbe { pendingApproverReadGrants?(object: string, context: ExecutionContext): Promise>; } interface SharingServiceOptions { engine: SharingEngine; /** Object names that bypass sharing — typically platform internals. */ bypassObjects?: string[]; /** * [ADR-0057] Late-bound lookup for the enterprise hierarchy-scope resolver * (`hierarchy-scope-resolver` service). Returns null in the open edition. */ hierarchyResolver?: () => IHierarchyScopeResolver | null | undefined; /** * [ADR-0111 D1/D2] Late-bound lookup for the `security` service, probed for * the super-user write bypass (`modifyAllRecords`) in * {@link SharingService.canManageShares}. Absent / throwing / returning * null → management authority fails CLOSED to owner-only. * * [#5493] The SAME handle carries the authored-row-write verdict read by * {@link SharingService.probeAuthoredRowWrite} — one late binding, two * probes, so a deployment cannot end up with one of them wired and the other * not. Both fail closed on absence, in their own directions. */ securityService?: () => SharingSecurityProbe | null | undefined; /** * [ADR-0105 D1 / #5859] Late-bound lookup for the `tenancy` service — the * single source of truth for which posture is IN FORCE. Read ONLY to decide * whether a missing authoritative organization must refuse a hierarchy scope * (see {@link SharingService.organizationScopeRequired}). * * Absent / throwing / posture-less → the gate assumes a WALLED deployment and * refuses: an unresolvable posture must not be read as "no wall, carry on". */ tenancy?: () => SharingTenancyProbe | null | undefined; /** * [ADR-0142 D3] The ownership-queue service, resolved at use. A record whose * `owner_id` is empty and whose `queue` names a queue the caller belongs to * is readable and editable by the caller — the access path's fifth basis. * Absent, no record sits anywhere: the basis fails closed. */ ownershipQueues?: () => Pick | null | undefined; /** * [#26180] Late-bound lookup for the `approvals` service, asked by * {@link SharingService.buildReadFilter} for the records a pending approver * may read. Absent / throwing / returning null → no approval grant: the * filter is the owner-match and the record shares, as without approvals. */ approvals?: () => SharingApprovalReadProbe | null | undefined; /** [#5103] Optional logger for the record-delete cascade / orphan sweep. */ logger?: { info?: (msg: any, ...rest: any[]) => void; /** * The GUARANTEED fallback channel (#9754, ruled on #10556). `error` stays * optional — hosts do inject reduced sinks — so `warn` is where a * durability report lands when `error` is absent, and a fallback that may * itself be missing is not a fallback. Call sites keep the * `logger?.warn?.(…)` spelling as the backstop for hosts the TYPE cannot * reach; `SweepLogger` in plugin-email's `outbox-sweep.ts` carries the full * reasoning and the measurement. * * ⚠️ This member is REQUIRED, and `SharingServiceOptions` is PUBLICLY EXPORTED * from this package's `index.ts` — so a host passing `{ info, error }` * compiled before this landed and does not after. That break is declared, * shipped `minor`, and named in the changeset (maintainer ruling * 2026-08-24, #10556 limb (c)). */ warn: (msg: any, ...rest: any[]) => void; error?: (msg: any, ...rest: any[]) => void; debug?: (msg: any, ...rest: any[]) => void; }; } /** * Default `ISharingService` implementation. * * Stores every grant in `sys_record_share`. The plugin layer registers * an engine middleware that calls `buildReadFilter` / `canEdit` so that * neither this class nor its callers need to know about middleware * plumbing. */ declare class SharingService implements ISharingService { private readonly engine; private readonly bypassObjects; private readonly hierarchyResolver?; private readonly securityService?; private readonly tenancy?; private readonly ownershipQueues?; private readonly approvals?; private readonly logger?; /** * [ADR-0142 D3] `current_user.queues`, resolved once per request context: * the same context object is threaded through every gate one operation * touches, so a find and its per-record checks resolve membership once. */ private readonly callerQueueMemo; /** * [#8418] Objects that have already reported {@link * PHANTOM_ANCHOR_WRITE_DENY_NOTICE}. * * Keyed by OBJECT NAME and nothing else, which is the whole design of the * dedup and follows #6783's `notified` latch. The condition being reported is * a property of the object's REGISTERED SCHEMA — the platform injected an * `owner_id` into a federated object whose storage it never provisioned — so * it is identical for every row and every caller, and it cannot change while * that schema is registered. Keying by record would emit one line per row of * a bulk write, and keying by caller would multiply one misconfiguration by * the principal count; both trade silence for noise, which is the same defect * wearing a different symptom (#6783 states this reasoning for its own line). * * Scoped to the service instance, the analogue of #6783's binding generation: * the latch re-arms when the service is rebuilt, so a redeployed schema gets * its own line rather than inheriting this instance's silence. */ private readonly phantomAnchorNotified; constructor(options: SharingServiceOptions); /** * Build a `FilterCondition` restricting `find` to records the caller * may see. Returns `null` when no filter should be applied. */ buildReadFilter(object: string, context: ExecutionContext): Promise; /** * [#26180] The pending approval requests that grant the caller READ of * `recordId` — what `explain` names ("via approval request N") beside the * record's shares. The same answer {@link buildReadFilter} ORs in, so the two * cannot disagree; empty where the filter would grant nothing. */ listApprovalReadGrants(object: string, recordId: string, context: ExecutionContext): Promise; /** * [#26180] The `approvals` service's answer for this read, failing CLOSED: * no service, no member, a delegated (on-behalf-of) principal, or a read that * throws all grant nothing, and the read goes on with the owner-match and the * record shares alone. The grant is the person's own, as they act themselves: * an agent acting on their behalf is not on the slate, and its read is never * widened by the delegator's grants (ADR-0090 D10). */ private pendingApproverReadGrants; /** * Build a `FilterCondition` restricting a **bulk** (multi-row) write to the * records the caller may edit — the write analogue of {@link buildReadFilter}. * Single-id writes are gated by {@link canEdit}; a `update({multi:true})` / * `deleteMany` has no single id, so without this filter it would touch every * matching row regardless of ownership (#2982). Returns `null` when no * restriction applies (system/bypass, public objects, no owner field). * * Editable-set = owner-match (widened by write DEPTH) OR records shared to * the caller at a {@link WRITE_ACCESS_LEVELS} level. Unlike reads, this * applies to BOTH `private` and `read` (public_read) models — public_read is * read-open but write-owned; only a fully `public` object is write-open. */ buildWriteFilter(object: string, context: ExecutionContext, verb?: 'update' | 'delete'): Promise; /** * [ADR-0142 D3] The queue names the caller belongs to in the active * organization — `current_user.queues` — memoised on the request context. * `[]` with no queue service, no user, or for the guest; a failed * resolution is `[]` too (the basis fails closed). */ callerQueues(context: ExecutionContext): Promise; /** * [ADR-0142 D3] The read / update-arm disjunct * `owner_id IS NULL AND queue IN (current_user.queues)`, or `null` when the * object has no provisioned `queue` column or the caller sits in no queue. */ private queueSittingMatch; /** * [ADR-0142 D3] Does `(object, recordId)` sit in a queue the caller belongs * to? Membership is asked in the record's own organization (the active one * when the row carries none, and never one the request is not in) — one * holder check, not the caller's whole queue set. */ private sitsInCallersQueue; /** * Does the caller own `(object, recordId)` within their write DEPTH? The * shared ownership fast-path behind both {@link canEdit} and * {@link canDelete}. Returns `false` when the record has no owner value. */ private matchesOwnerScope; /** * [#8418] Emit {@link PHANTOM_ANCHOR_WRITE_DENY_NOTICE} at most once per * object, and ONLY when the null owner is the platform's phantom anchor * rather than an ordinary owner-less row. * * **Verdict-free by construction.** It returns `void`, every path through it * is a no-op or a log, and its caller ignores it entirely — so no ordering of * schema lookup, latch and logger can move a verdict. That is the ruled * constraint (#8418 option C) expressed as a shape rather than as a promise. * * Never throws. This runs on the write path inside `checkEdit` / * `checkDelete`'s own `try`, where an escaping error would be caught by * {@link writeGateFailClosed} — which returns `deny` too, so the verdict * would survive, but the operator would get the WRONG diagnosis (an * unresolvable gate) for a gate that resolved perfectly well. A diagnostic * that can misreport the thing it exists to explain is worse than silence. * The latch is claimed BEFORE the log so a throwing logger cannot turn one * suppressed line into one throw per row (#6783's ordering, same reason). * * [#27662] A federated object whose owner column is real by declaration (a * `columnMap` entry onto `owner_id`, or a declared field) gets * {@link UNSERVED_OWNER_WRITE_DENY_NOTICE} instead, under the same latch, * when the pre-image `row` came back with no `owner_id` key. No row at all * (the record does not exist) says nothing about the driver and stays silent. */ private notePhantomAnchorWriteDeny; /** * [#4647] Does the caller hold **Modify All Data** (`modifyAllRecords`) on * `object`? Probed through the late-bound security service, which answers * from `PermissionEvaluator.superuserBypassSets` — the SAME predicate the * explain engine's `vama_bypass` layer reports. That shared function is the * whole point: before #4647 explain answered "bypass held, ownership and * sharing are skipped" while this side never asked at all, so a Modify All * Data holder was told `allowed: true` by `security/explain` and handed a * 403 by `PATCH /data/…` on the very same record. * * Consulted only AFTER ownership and shares have failed, so the ordinary * write costs no extra resolution. * * **Fails CLOSED** (ADR-0111 D2): no security service (a deployment without * `@objectstack/plugin-security`), a throwing probe, a principal-less or * on-behalf-of context → `false`, i.e. owner-only as before. */ private hasModifyAllBypass; /** * [#6428] The two reasons {@link shouldBypass} answers `true` are NOT the * same verdict, and merging them is what the tri-state exists to undo. * * - `context.isSystem` → **`allow`**. A platform-internal writer (audit, * migrations, this plugin's own reconciliation) is positively permitted; * the contract calls it a complete bypass, and a composing caller must not * re-gate it behind somebody else's floor. * - a bypass-LISTED object → **`abstain`**. Record sharing simply does not * enforce on `sys_user` / `sys_record_share` / … — it is not a statement * that the write is permitted, and whatever else guards those tables * (RLS, the platform ownership floor) still decides. * * `null` = "no bypass applies, keep evaluating". */ private bypassVerdict; /** * [#6428] The one place an unresolvable write gate becomes a verdict. * * **`deny`, never `abstain`** — the two are opposite instructions to a * composing caller (`abstain` hands the row to another authority, `deny` * ends it), and reading a failed lookup as "no opinion" is exactly the * confusion that produced #5492's measured fail-open. Logged rather than * swallowed: a silently-denied write is indistinguishable from a legitimate * refusal, which is how a broken engine looks like a permissions problem. */ private writeGateFailClosed; /** * [#6428] Tri-state UPDATE verdict — the single place the update gate is * decided, and the primary form of {@link canEdit}. * * `allow` when a POSITIVE basis exists: ownership (widened by write DEPTH), * an explicit write-level share, or — [#4647] — the `modifyAllRecords` * super-user bypass. That bypass branch is what makes "Modify All Data" mean * what it says (an admin edits any record regardless of ownership — #1883's * Salesforce reference frame) on rows the DEPTH fast-path cannot reach: an * OWNERLESS row (`owner_id` NULL, which system-context seeds routinely * produce) matches no owner set at any depth, so ownership alone refused it. * * `abstain` when record sharing does not enforce on the row at all — a * public object, an object with no `owner_id` field, a bypass-listed * internal, an object with no resolvable schema. Historically these returned * the same `true` as a real grant, and #5492's E2 experiment measured what * that costs a caller which lets the answer OVERRIDE the platform's * `created_by` ownership floor: an ordinary member's cross-creator UPDATE * succeeded on owner-less objects, where the floor alone had been refusing it. * * `deny` for everything else, including a lookup that throws. */ checkEdit(object: string, recordId: string, context: ExecutionContext): Promise; /** * Return `true` if the caller may UPDATE `(object, recordId)`: ownership * (widened by write DEPTH), an explicit write-level share, or — [#4647] — * the `modifyAllRecords` super-user bypass. Always `true` for system context, * public objects, and objects without an owner field. * * [#6428] The two-state PROJECTION of {@link checkEdit}: `true` for every * verdict that is not `deny`. The truth table is byte-for-byte the historical * one — `abstain` is where the old `true` for public / owner-less / bypassed * objects went — so every existing caller (the sharing middleware, the * ADR-0055 master check) keeps its exact semantics. A caller that would let * this answer OVERRIDE another authority must read {@link checkEdit} instead, * because only there is "I permit this" distinguishable from "I do not * enforce here". */ canEdit(object: string, recordId: string, context: ExecutionContext): Promise; /** * [#6428 / ADR-0111 D3] Tri-state DELETE verdict — the primary form of * {@link canDelete}. * * Deliberately NARROWER than {@link checkEdit}: `allow` is ownership (widened * by write DEPTH) or the `modifyAllRecords` super-user bypass — and NOTHING * ELSE. An `edit` (or legacy `full`) share opens update but not delete * (sharing widens rows, never verbs), so a share holder gets `deny` here * while `checkEdit` answers `allow` on the same row. The `abstain` set is * IDENTICAL to `checkEdit`'s: both gates agree about which objects sharing * enforces on, and differ only about the verb. * * [#4647] The bypass is asked EXPLICITLY (`hasWriteBypass`) instead of only * riding in as `__writeScope === 'org'`. The scope proxy was silently * partial: `matchesOwnerScope` refuses an OWNERLESS row before it ever looks * at the scope, so a Modify All Data holder could not delete a row with a * NULL `owner_id` — while `security/explain` said the bypass applied. */ checkDelete(object: string, recordId: string, context: ExecutionContext): Promise; /** * [ADR-0111 D3] Return `true` if the caller may DELETE `(object, recordId)`. * * Deliberately NARROWER than {@link canEdit}: ownership (widened by write * DEPTH) or the `modifyAllRecords` super-user bypass — and NOTHING ELSE. An * `edit` (or legacy `full`) share opens update but not delete: sharing widens * rows, never verbs. Always `true` for system context, public objects, and * objects without an owner field, matching {@link canEdit}. * * [#6428] The two-state PROJECTION of {@link checkDelete}, on the same rule * as {@link canEdit}: `true` for everything that is not a `deny`. */ canDelete(object: string, recordId: string, context: ExecutionContext): Promise; /** * [#5493 / maintainer ruling 2026-08-08, issue comment 5226389104] Ask the * OTHER row-level write authority whether an APP-AUTHORED RLS policy admits * this row for this operation, so the by-id write gate can DEFER instead of * hard-refusing a write that a declaration already speaks for. * * **This is not a sharing verdict and it never becomes one.** Nothing here * feeds {@link checkEdit} / {@link checkDelete} / {@link buildWriteFilter} — * those keep answering exactly what record sharing knows, which is what * `plugin-security`'s own composition (#5492) reads off this service. Folding * the probe into them would make the two authorities read each other in a * circle. Only the middleware's refusal branch consults it. * * **Why the security service answers it and this plugin does not re-derive * it.** Row-level write authority is ONE composite determination, but its two * halves know different things. The composed RLS answer cannot stand in for * "an app policy admits this row": the platform's own ownership floor * (`owner_only_writes` / `owner_only_deletes`, `created_by == * current_user.id`) ships on the additive `member_default` baseline, so the * composed answer is true for the row's CREATOR whether or not any app policy * mentions it. #5493's probe E-A measured the cost — a creator who is no * longer the owner (a record transferred away) would get their old records * back. Separating the two needs policy PROVENANCE, which is private to * `plugin-security` by design. Hence a verdict on the service, and hence this * method is a PASSTHROUGH with no logic of its own to drift. * * **Fail-closed in the `abstain` direction**, because the caller uses `admit` * to WIDEN: an absent security service (no `plugin-security` at all), a * service that predates the method, a probe that throws, a principal-less * context, a delegated (on-behalf-of) identity, and any verdict this consumer * does not recognise all return `abstain` — byte-for-byte the behaviour of a * deployment that never asked. */ probeAuthoredRowWrite(object: string, recordId: string, operation: AuthoredRowWriteOperation, context: ExecutionContext): Promise; /** * Whether this service's engine middleware is installed and so enforces * {@link admitsByIdWrite} on every by-id write. Set by the plugin when it * registers the middleware; `false` when the deployment runs with * enforcement off (`enforce: false`), where no by-id write meets the gate. */ byIdWriteGateInstalled: boolean; /** * [#27175] The by-id write gate the sharing middleware enforces on an * `update` / `delete` of ONE row, as a verdict: `true` when the middleware * lets the write through, `false` when it refuses it. * * ⛔ This is not a copy of that gate — it IS that gate. The middleware calls * this method and refuses exactly when it answers `false`, so a reader who * must know whether a by-id write would pass record sharing (the record * field-access answer's `writable`, judged in `plugin-security`) asks the * same code the write meets. The calls, in the middleware's order: the * per-verb gate ({@link canEdit} for update, {@link canDelete} for delete, * ADR-0111 D3); [ADR-0090 D10] the same gate under the DELEGATOR's identity * and write depth for an on-behalf-of write; and, on a refusal, the * {@link probeAuthoredRowWrite} deferral, whose `admit` retracts it. * * `context` is the context the middleware reads, so it carries the write * depth `plugin-security` stamps (`__writeScope`, `__delegatorWriteScope`). * Read-only: it writes nothing and records nothing. */ admitsByIdWrite(object: string, recordId: string, verb: 'update' | 'delete', context: ExecutionContext): Promise; /** * [ADR-0111 D1] May `context` MANAGE shares (grant / revoke / list) on * `(object, recordId)`? System → yes. Record owner → yes. Super-user write * bypass (`modifyAllRecords`, probed via the late-bound security service) → * yes. [ADR-0111 D1 DEPTH] A HIERARCHY MANAGER whose write DEPTH * (`unit` / `unit_and_below` / `own_and_reports`) covers the record's owner → * yes. Everything else — a missing record, a principal-less context, a probe * failure, a deployment without plugin-security or the enterprise resolver — * fails CLOSED to `false`. */ canManageShares(object: string, recordId: string, context: ExecutionContext): Promise; /** * [ADR-0111 D8 rule 1 — ruling 5950188467, A′] May `context` mint a share * link on `(object, recordId)` WITHOUT being able to see it? * * Mint authority is "visibility, or the record owner, or an explicit * Modify-All bypass". The link service runs the visibility read itself; this * answers the other two alternatives, and it answers them with * {@link canManageShares}' own first two branches (`ownerOrBypass`) — the * same owner column and the same `hasWriteBypass` probe, so there is one * notion of ownership, not two. * * ## What it deliberately leaves out * * **The hierarchy-depth branch.** A manager whose write DEPTH covers the * owner manages the record's shares (revoke, grant, list — D8 rule 2), but a * link CREATES access, and that manager may hold write depth over a record * the data door will not let them read. Admitting them would let minting * outrun reading; so a hierarchy manager still needs visibility to mint. This * method never calls `resolveWriteScope` or the hierarchy resolver. * * **A deployment that walls organizations.** Under the `group` / `isolated` * postures the visibility read applies Layer 0 (ADR-0095 D1 / ADR-0105 D1), * and neither alternative here knows the record's organization: the owner * column outlives a membership, and `hasWriteBypass` is object-wide. So where * a wall is in force both alternatives are withheld and visibility alone * admits — a member who left an organization cannot mint a public link to a * record they still own in it. The posture is the one * {@link organizationScopeRequired} reads, fail-closed: an unresolvable * posture counts as walled. * * **A capability the object requires.** When the caller lacks a capability * the object's `requiredPermissions` demands for a read (ADR-0066 D3), the * visibility read was refused by that AND-gate, and the gate is a hard stop: * neither alternative applies past it. The owner exception is about the * record ROW (the owner's own record is the thing shared), not about a * capability an administrator withheld from the caller for the whole object; * and a Modify-All holder who lacks it does not "already read everything". * The verdict is the declared `required_permissions` layer of * `ISecurityService.explain` (`capabilityGateRefusesRead`). * * Everything else fails CLOSED to `false`: a missing record, a * principal-less context, a failed read or probe. */ canMintWithoutVisibility(object: string, recordId: string, context: ExecutionContext): Promise; /** * [ADR-0111 D8 rule 1 — the capability hard stop] Does the ADR-0066 D3 * capability AND-gate refuse `context` a READ of `object`? * * Answered by `ISecurityService.explain`, a declared contract method, from * the one layer of its declared report that IS that gate: * `required_permissions`. The explain engine computes the layer with the * read middleware's own capability fold (the same `requiredPermissions` * normalisation, the same held-capability union, the same ADR-0090 D10 * delegator intersection), so `denies` there is the refusal the visibility * read threw. It is NOT the owner-private CRUD refusal, which the same report * attributes to `object_crud` with this layer `not_applicable` — which is * what lets the hard stop leave the owner alternative standing on an object * that requires no capability. * * `false` (the gate admits) needs POSITIVE evidence: the layer present with * `neutral` (capabilities held) or `not_applicable` (none required). A * security service without `explain`, a throw, a report missing the layer or * carrying any other verdict answers `true` — a stop. The one exception is a * deployment with NO security service at all: nothing there enforces a * capability gate, so no read was refused by one. */ private capabilityGateRefusesRead; /** * [ADR-0111 D1] The record OWNER and the explicit Modify-All bypass — the * branches {@link canManageShares} and {@link canMintWithoutVisibility} both * read, written once. * * `admit`: the caller owns the record, or holds `modifyAllRecords` on the * object. `refuse`: there is nothing to decide on — no object, record or * user identity, no such record, or the owner read failed. `undecided`: the * record exists and the caller is neither; `owner` is carried for the DEPTH * branch, which only `canManageShares` consults. * * Ownership is read under the system context so field-level masking cannot * hide the owner column from the decision itself. The bypass is the EXPLICIT * one only (ADR-0111 D1/D2; never the effective write scope, whose * unmatched-object case fails open to 'org'), shared with `canEdit` / * `canDelete` [#4647] so the gates cannot drift. */ private ownerOrBypass; /** * [ADR-0111 D5] Is `(object, recordId)` VISIBLE to the caller? Reads under * the CALLER's own context so the security RLS and sharing read filters * decide, exactly as a plain find would. Any failure → not visible (fail * closed); callers surface that as NOT_FOUND so a missing record and an * invisible one are indistinguishable. */ private isRecordVisible; /** * [ADR-0111 D1/D5] The shared pre-flight for every management verb: * invisible/missing record → NOT_FOUND (404); visible but unmanageable → * PERMISSION_DENIED (403). System context skips both. */ private assertCanManageShares; /** * [ADR-0111 D7] Would a `sys_record_share` row on `object` ever be consulted * by a read/write decision? Returns the REASON it could not be, or `null` * when it could (which includes "this engine cannot tell"). * * ## Why this is a verdict and not an assertion (#8207) * * This is an **inertness** check, not an authorization check — and the two * differ in whether the answer may depend on WHO ASKS. An authorization * check legitimately varies by caller; inertness does not. Whether a share * row can ever be read is a property of the OBJECT: the gates that would * consult it (`buildReadFilter`, `checkEdit`, `checkDelete`) never see the * granter at all. So the verdict is computed here, caller-free, and the two * pre-flights below decide only what to do with it. * * `null` for an engine that cannot answer — no `getSchema`, or a name it * does not resolve. Absence of a schema is absence of EVIDENCE of inertness, * not evidence of liveness, and this function's job is to name a certainty. * The non-system pre-flight still turns an unresolvable name into NOT_FOUND * ({@link assertSharingEnforced}); that is an EXISTENCE verdict, which is a * different act and stays where it was. * * ## The one arm the recipient's population decides (#25549) * * The `public` arm used to be caller-free AND recipient-free: a public model * reads every row for everyone, so no row was ever consulted. That stopped * being true for one population. An EXTERNAL principal meets an owner_only * floor on a public object ({@link owdForPrincipal}, ruling of record * 6355206139), so `buildReadFilter`, `checkEdit` and `checkDelete` DO read * its `sys_record_share` rows there. The verdict therefore takes the * recipient's population as a second input — still never the granter's: * * - `recipient` omitted — "for every recipient": the arm refuses, as before; * - `'external'` — the recipient is an `external` member of the record's * organization, and the arm admits it (`owner_id` present and not a * federated phantom anchor, since the floor composes over that column); * - `'internal'` / `'unknown-organization'` — the arm refuses, naming why. * * Every other arm (bypass, `controlled_by_parent` — ADR-0111 D7.2, owner-less, * phantom anchor) ignores the population: no gate reads a row there for anyone. */ private inertGrantReason; /** * [ADR-0111 D7 / #8207] Refuse a grant whose row could never be consulted. * The caller-independent half of the pre-flight — run for EVERY caller, * system included (see {@link inertGrantReason} for why "who asks" is not an * input to this question). */ private assertNotInertGrant; /** * The caller-independent D7 verdict on `object`: why no share row on it * could ever be consulted, whoever the recipient is, or `null`. */ private objectInertReason; /** * [#30621] The save door's refusal for a sharing rule on `object`, or `null` * when a rule there can grant. * * A rule on an object no sharing gate consults saved and then did nothing: * its reconcile met {@link assertNotInertGrant} and wrote no row. This reads * the SAME verdict ({@link objectInertReason}), so the save door and the * reconcile cannot disagree about which objects are under enforcement. The * sentence adds what the administrator can do about it. */ sharingRuleObjectRefusal(object: string): string | null; /** [#30621] How to make `object` one a sharing rule applies to, per D7 arm. */ private sharingRuleObjectRemedy; /** * [#25549] Does the D7 verdict on `object` depend on the recipient — refused * for every recipient, admitted for an external one? Defined by the verdict * itself, so it cannot drift from {@link inertGrantReason}. */ private recipientDecidesInertness; /** * [#25549] The recipient half of the D7 pre-flight, run for every caller once * the grant's organization is resolved: on an object whose verdict the * recipient's population decides, refuse unless the recipient is an * `external` member of THAT organization. A user who is external in one * organization and a member of another is judged where the record lives. * * The refusal is the same `SHARING_NOT_ENABLED` (422) as the object half, * marked with {@link INTERNAL_RECIPIENT_REFUSAL} so the rule materialiser can * skip the recipient and keep its pass going ({@link isInternalRecipientRefusal}). */ private assertRecipientNotInert; /** * [#25549] Is `userId` an `external` member of `organizationId`? The same * population test as the stage-1 doors (plugin-auth `isExternalMembershipRole`): * a `sys_member` row in that organization whose role list is exactly * `external`. The authorization resolver projects `org_external` from a list * that CONTAINS it; the two agree on every row the engine admits, because a * list carrying `external` beside another role is refused at write. */ private isExternalMemberIn; /** * The NON-system pre-flight: the object must EXIST, and a share row on it * must be one the gates would consult. * * The existence half is deliberately not part of {@link assertNotInertGrant}. * A caller who names an object that does not resolve has made a mistake and * deserves NOT_FOUND (REST: 404); the rule evaluator reconciling under a * system context has a stored `object_name` and an engine that may not have * that schema registered at this instant, and hard-failing its pass on that * would break a legitimate write to answer a question nobody asked. */ private assertSharingEnforced; /** * Upsert a share row. Returning the existing row when an identical * grant already exists keeps the REST endpoint idempotent. * * [ADR-0111 D1/D7] Non-system callers must hold {@link canManageShares} on * the record; the recipient must be a `user` (the only type any gate * enforces); and the object must be in an enforcing sharing posture. The * upsert matches on `(object, record, recipient, source)`, plus `source_id` * for a materialised grant, so a manual grant never clobbers a * rule-materialised row (and vice versa) and one rule never clobbers * another's — when several exist, the gates' `$in` queries make the widest * level win (grants are additive). */ grant(input: GrantShareInput, context: ExecutionContext): Promise; /** * [commit 3f64fe6c6] The organization a SYSTEM caller's grant belongs to. * * First the organization the caller THREADS: `SharingRuleService.reconcile` * / `reconcileForRecord` pass the rule's own `criteriaContext`, so a * rule-materialised grant carries the rule's organization — the 2026-09-02 * ruling's first pin, and the same organization the rule's criteria sweep * ran under (#10119), which is what makes the grant and the sweep agree. * A platform-global rule (`organization_id = null`, #7795) carries none and * sweeps every organization; its grant then belongs where the record does. * * `tenantId` is read through {@link activeOrganizationId} — the ONE field * every transport and every system writer puts the organization on; the * #8844 refusal prescribes exactly `{ isSystem: true, tenantId }`. */ private resolveSystemGrantOrganization; /** * [commit 3f64fe6c6] The organization a DIRECT grant belongs to: the organization of * the record being shared (the ruling's second pin), read from the record * itself — never the caller's active organization first, which under a * `single` posture holding several organizations may not be the record's. * * The acting session's organization is the FALLBACK for a record that * carries NONE — an object with no tenant column, or an organization-less * row — the `sys_approval_request` writer's ruled shape (subject first, the * acting context second). It is a fact of the write, not a guess: a * principal is sharing a record from inside an organization. When neither * exists the grant carries `null` and the engine's #8844 rule decides. * * It is NOT the fallback for a record whose organization could not be READ. * Those are different facts and {@link recordOrganization} keeps them * apart: a record with no organization has nothing the session's could * contradict, while a record whose read failed may well carry one — and a * `single` install holding several organizations, or a `group` member * active in a sibling organization, puts the session in a different one. * Stamping the session's there writes the grant into an organization the * record is not in: invisible to the record's organization under a * tenant-scoped read, visible to the sibling's, and not NULL, so the * backfill could never repair it. #8844's rule is that guessing a tenant is * strictly worse than refusing, so a failed read yields `null` and the * engine's ruled derive-or-refuse decides the row — derived on a * single-organization install (where it can only be the record's), refused * loudly (`ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED`) everywhere else. * (The BLOCKING finding of this change's 2026-09-02 contract review.) */ private resolveDirectGrantOrganization; /** * [commit 3f64fe6c6] The organization `(object, recordId)` is walled by, read off the * column the object is actually walled by ({@link resolveTenantFieldName}: * ADR-0066 opt-out → declared `tenancy.tenantField` → injected * `organization_id`), under the system context so field-level masking cannot * hide the column from the decision — the same reading * {@link canManageShares} takes of the owner column. * * Three readings, kept apart by {@link RecordOrganizationReading}: * `organization` when the record carries one; `none` for an object with no * tenant column, a record that is gone, or an organization-less row; and * `read-failed` when the read threw. The last is logged and is NOT a `none`: * a read that did not happen must not pass for a record with no * organization — the direct path substitutes the acting session's * organization for `none` and must never do so here — and the write it * feeds ends in the engine's ruled derive-or-refuse rather than in a * silently stamped guess. */ private recordOrganization; /** [commit 3f64fe6c6] The tenant column of `object`, or `null` when it has none / the engine cannot say. */ private tenantFieldOf; /** * Delete a share row by id. * * [ADR-0111 D4] `revoke(shareId)` used to delete unconditionally — any * signed-in user holding (or enumerating) a share id could silently strip * any user's access to any record (#3902 ①). Non-system callers now must: * hold {@link canManageShares} on the share's record (revoke is SYMMETRIC * with grant — no granter exception); pass a `scope` match when the caller * supplies one (the REST route forwards its URL's object/record, so a share * id cannot be revoked through an unrelated path); and target a `manual` * row — rule-materialised grants would be silently re-granted on the next * reconcile, so "revoked" would be a lie (deactivate the rule instead). * System callers keep the historical delete-by-id no-op-when-missing * behaviour (the rule evaluator's reconciliation path). */ revoke(shareId: string, context: ExecutionContext, scope?: { object: string; recordId: string; }): Promise; /** * List share rows for `(object, recordId)`. * * [ADR-0111 D5] Management-gated for non-system callers: enumerating who * can see a record is both an information disclosure and the exact recon * that hands an attacker the share ids the revoke gate protects (#3902 ②). * Salesforce's Sharing Detail page is likewise owner/hierarchy/admin-only. * "What is shared with me / by me" is served by the self-scoped * `sys_record_share` read surface instead. */ listShares(object: string, recordId: string, context: ExecutionContext): Promise; /** * [#5103] Revoke EVERY `sys_record_share` row belonging to records that have * just been deleted — regardless of `source`. * * This is the one place manual shares are swept, and the justification is * exactly what makes it safe: the record is GONE. A share says "principal P * has level L on (object O, record R)"; with R deleted the row cannot * describe any access a human decided to give, so keeping it is not respect * for the admin's decision, it is a dangling reference. Contrast rule * RECOMPUTE, which must never touch a manual row (#5102 pinned that, and it * stays pinned): there the record still exists and the human's decision is * still about something. * * Why the orphan matters even though the record is gone: `buildReadFilter` * emits `id IN ()`, which matches nothing today ONLY * because record ids are never reused — an assumption no gate enforces. A * new record landing on a recycled id would inherit the dead record's * recipients outright (#5103). The rows are also unbounded growth and show * up in Setup's Record Shares list pointing at nothing. * * Set-based and chunked, so its cost tracks the number of ids, not the * number of share rows. Returns nothing: counting would need a read the hot * delete path should not pay for, and callers that need a count (tests, the * sweep) can read the table. * * [#5190] The mechanism now lives in `record-orphan-cleanup.ts`, shared with * `sys_share_link`'s identical cascade. This method keeps the meaning. */ revokeSharesForDeletedRecords(object: string, recordIds: readonly string[]): Promise; /** * [#5103] Revoke every share row whose RECORD no longer exists. * * The convergence half of the record-delete cascade, and the shape * `SharingRuleService.sweepOrphanedRuleGrants` (#4433) established — with a * different predicate, which is the whole point: that sweep asks "does the * RULE row still exist", so it can never see a manual share, nor a rule * grant whose rule is alive and whose record is not. This one asks "does the * RECORD still exist", which is the question the invariant is actually made * of, and it is source-agnostic. * * Two callers, one primitive: * - `kernel:bootstrapped`, unscoped — historical orphans from before the * cascade existed, plus anything a crashed hook missed, converge on the * next boot; * - the cascade's unbounded-delete branch, scoped to one object — a bulk * delete whose row set could not be enumerated cannot name the ids to * revoke, but the sweep does not need them: it reads the shares and asks * about each record. This is deliberately NOT the rule path's * "revoke everything on the object and re-grant asynchronously" — that * trade is only available where a reconcile can put the grants back, and * nothing can re-create a manual share. * * Bounded on both axes: rows are read by keyset page (never `OFFSET`, which * skips rows in a walk that deletes as it goes — #4363), the scan stops at * `max` and SAYS so, and existence is probed one batched `id IN (…)` per * object per page rather than one query per share row. * * Fails SAFE per object: a probe that throws leaves that object's rows * untouched and is reported in `unresolvedObjects`. "Nothing was queried" is * not "nothing matched" — deleting on a failed probe would turn a transient * driver error into permanent access loss. * * [#5190] The walk itself lives in `record-orphan-cleanup.ts` — `sys_share_link` * runs the identical one, and a second copy is how two sweeps that must agree * start disagreeing (chunk size, cap, the failed-probe rule). */ sweepOrphanedRecordShares(options?: OrphanShareSweepOptions): Promise; /** * [ADR-0057] Resolve the owner-id set for a DEPTH scope. `own`/unset/`org` * resolve locally to the caller. HIERARCHY scopes (`unit` / `unit_and_below` * / `own_and_reports`) are an ENTERPRISE capability resolved by a pluggable * {@link IHierarchyScopeResolver} (`hierarchy-scope-resolver` service, shipped * only by `@objectstack/security-enterprise`). The open edition has none, so * this fails CLOSED to owner-only — a hierarchy scope NEVER widens without the * enterprise resolver (the spec gate also refuses to compile such a grant). * * [#5859 / #5852] The PRODUCER side of {@link HierarchyScopeContext}: the * authoritative `organizationId` is filled from the execution context's * active organization ({@link activeOrganizationId}). The read this replaced * (`(context as any).organizationId`) named a key NO transport ever sets, so * the field was structurally `null` on every real request and every resolver * ran with no organization to scope by. * * `null` is passed through HONESTLY when the caller has no active * organization — never papered over with the deprecated `tenantId` alias, and * never turned into a blank-string org that would match nothing. What a * resolver must then do is ITS contract: * `IHierarchyScopeResolver.resolveOwnerIds` — "**Fail CLOSED on a missing * organization** … 'no org' is not 'every org'. Return owner-only (or throw, * which the sharing layer treats the same way); never widen." * * On top of that, a WALLED deployment refuses outright: when an organization * wall is in force and the authoritative org is missing, the resolver is not * consulted at all and the caller falls back to owner-only, loudly — see * {@link SharingService.organizationScopeRequired} for why the refusal is * posture-scoped rather than unconditional. */ private resolveOwnerScopeIds; /** * [ADR-0105 D1 / #5859] Must a hierarchy scope be refused when the caller * carries no authoritative organization? * * The answer is the deployment's TENANCY POSTURE, not a constant — which is * the same answer Layer 0 already gives to the same question * (`computeTenantLayer0Filter`, ADR-0095 D1 / ADR-0105 D1): * * - `single` → **no**. There is no organization dimension at all; "no org" * there means "the one implicit tenant", not "every org", and hierarchy * DEPTH is pinned working in exactly that shape (the ADR-0057 D1 proofs * boot a pure single-tenant stack on purpose — `@objectstack/verify`'s * harness sets `autoDefaultOrganization: false` to model it). Refusing * here would retire DEPTH for every org-less deployment. * - `group` / `isolated` → **yes**. A wall is in force, so a caller with no * active organization has no tenancy constraint to scope an owner set by, * and widening one would hand out exactly the cross-organization reach * #5852 measured. Layer 0 denies in the same situation; this is that rule, * applied one layer up where the sharing gates read. * * Fails CLOSED on an unresolvable posture (no `tenancy` probe wired, a * throwing probe, or a value outside the vocabulary): an unknown posture is * NOT evidence of `single`, and reading it as such would restore the widening * on precisely the deployments whose configuration is already suspect. */ private organizationScopeRequired; /** * [#6139] The posture this deployment reports to a * {@link IHierarchyScopeResolver} — and the single place the answer is * decided. * * `HierarchyScopeContext.posture` is what lets a resolver tell "single * posture, legitimately no organization" apart from "walled posture, * organization missing ⇒ fail closed": the two `null`s that were previously * indistinguishable on that interface, and that demand opposite answers. The * producer already had to resolve the posture for * {@link SharingService.organizationScopeRequired}, so reporting it costs * nothing new. Deriving it TWICE is what would let the local refusal and the * reported posture drift apart, which is why that predicate is now expressed * in terms of this one rather than beside it. * * Fails CLOSED, exactly as the contract requires of a producer: an * unresolvable posture (no `tenancy` probe wired, a throwing probe, a value * outside the vocabulary) reports the strictest WALLED posture, never * `single`. An unknown posture is not evidence of `single`, and reading it as * such would restore the #5852 widening on precisely the deployments whose * configuration is already suspect. */ private effectiveTenancyPosture; private shouldBypass; } /** * # Declared sharing rules, queues and assignment rules on `(package, name)` (ADR-0150 D3/D4, child E4) * * The three types this plugin reads from the registry are behavioural metadata * (ADR-0150 D1 bucket 2): two installed packages may each ship an item of the * same name, and that is not a conflict. What used to read them by bare name * took the FIRST registered holder in silence (`declaredItems().find`, the * declared sharing rules' one-rule-per-name skip), or, in one reader, the LAST * (`queuesOf`'s `new Map(declared…)`). Each reader now asks * {@link resolveDeclaredName}, and it answers one item or refuses, naming every * candidate. * * ## The one rule, and who owns it * * ⛔ This file does not resolve anything itself. A name the listing holds * more than once is resolved by objectql's {@link resolvePackageScopedName} * (child R, ADR-0150 D3), the one resolver every reader of the epic shares; * there is no first-registered fallback and no pick between candidates here. * * What this file adds is the POPULATION it asks about: the items * `listItems(type)` lists — which hides a disabled package's items, as every * one of these readers did before (the console stops serving a disabled * package's metadata; disable is reversible). So: * * - **no listed item** of the name → not found, as before; * - **one listed item** → that item: there is one enabled holder and nothing * to choose, the answer every reader gave before (ADR-0150 reading (b)); * - **two or more** → the resolver decides: the environment's own item, or * the unique package holder (an ADR-0005 overlay bound to it answers for * it), or a refusal naming every holder. The caller is the environment * (no package): these reads are the platform enumerating its declarations * and the Setup doors that switch or guard them, which belong to no * package (ADR-0150 D3, "a caller with no package"). * * ## A read from inside a package (`callerPackageId`) * * A reference a package WRITES — a declared sharing rule's queue recipient — * is read from that package (ADR-0150 D3), not from the environment: the * reader passes the package as `callerPackageId`, and the resolver answers * the package's own item, else the unique holder in its declared dependency * closure plus `sys`, else a refusal naming every candidate. That answer is * final: one listed holder is no shortcut there, since the one item listed * may be outside the package's reach. The population still bounds it: the * resolver is asked over {@link listedHoldersView}, which leaves out a holder * the listing hides (its package is disabled). So a package whose one * reachable holder is disabled gets the resolver's own refusal, naming every * holder the listing still serves as outside its closure, never that hidden * holder's item and never silence. * * A registry that cannot answer `(package, name)` — one with no * package-scoped slice (`packageScopedHoldersOf` and its two readers), such * as the kernel `metadata` service the declared sharing rules fall back to on * a registry-less host — gets no pick either: a name listed under two * holders is refused, naming them; under one holder, it is that holder's. * * ## The two red lines (epic #31527) * * - **Never loosens.** A name with one listed holder answers what it * answered; a name with two answers a refusal where it answered the first * (the narrowing ADR-0150's E4 row declares). Nothing that refused before * answers now. * - **Ambiguity is reported, never guessed.** Every refusal is the * resolver's {@link PackageScopedRefusal}, naming every candidate in its * vocabulary; a door answers it as {@link PackageScopedNameRefusedError} * (`409 RESOURCE_CONFLICT`, ADR-0150 D5's status for ambiguity). */ /** What one bare name of a declared type answers. */ type DeclaredNameAnswer = { readonly status: 'resolved'; readonly item: T; } | { readonly status: 'not-found'; } | { readonly status: 'refused'; readonly refusal: PackageScopedRefusal; }; /** * Declared sharing rules, read from the registry — ADR-0131 D2, ADR-0057 D6. * * A stack's `sharingRules` are code. They used to be COPIED into * `sys_sharing_rule` at every boot by a seeder (`bootstrapDeclaredSharingRules`, * retired by ADR-0131 D2 at C3 stage 9 — its retirement note is the ADR-0087 * `sharing-rule-declared-mirror-retired` entry). Enforcement now reads the * declaration itself, here, on every read of the rule set * (`SharingRuleService.listRules` / `getRule` / the orphan sweep), and * `sys_sharing_rule` holds only the rules an organization authors. * * ## Where the declaration is read * * The same two in-process readers, in the same order, the seeder read: * * 1. ObjectQL's `SchemaRegistry` (`engine.registry.listItems('sharing_rule')`), * which `AppPlugin.init()` fills from every manifest's `sharingRules` — * forward-converted before registration, so `sharedWith.type` and * `accessLevel` already carry their current spellings. A disabled * package's items are hidden by `listItems` itself. * 2. The kernel `metadata` service (`list('sharing_rule')`), only when the * registry holds no rule at all — the registry-less host. * * A sharing rule is addressed by `(package, name)` (ADR-0150 D1 bucket 2), so * two packages may each declare a rule of one name. A name is served once, * resolved through `package-scoped-declarations.ts` (objectql's shared * resolver): one holder's rule, or none — the name refused, naming every * holder, and reported once. It is never served as the first holder. * * `sharing_rule` needs no registered metadata kind for either read: the * registry keys items by the type string `METADATA_ARRAY_KEYS` maps * `sharingRules` to, and the metadata service binds the type through its * unregistered-kind schema. * * ## The shape enforcement reads (ADR-0057 D6) * * The RUNTIME shape is canonical, so each declaration is translated into it * ({@link translateDeclaredSharingRule}): CEL `condition` → `criteria` * FilterCondition through the one canonical compiler, `sharedWith{type,value}` * → `recipient_type` / `recipient_id`. The registry copy carries `condition` * as the authored bare string and the metadata door's copy as * `{ dialect, source }`; the compiler takes both, so the two copies translate * to the same rule. What the runtime cannot enforce is SKIPPED (logged once * per rule per process), never served as a match-all rule — silently * over-sharing would be worse than not enforcing (ADR-0049): * - a CEL `condition` the canonical compiler cannot lower (functions, * cross-object traversal) — ADR-0058 D2. Compound predicates (AND/OR, * comparisons, null, in) DO lower and are enforced (ADR-0058 D3). * - a missing or empty `condition`, or one that lowers to no predicate at * all — it would share every record of the object. * - defensively, any stale pre-built package that still registers an old * `owner`-type / unmapped-recipient shape. */ /** * Why a declared rule's `condition` produced no criteria — the compiler's OWN * answer, carried instead of discarded. [#13943] * * `compileCelToFilter` already returns `{ reason, detail }` on every refusal; * `celToFilter` used to consume `!ok` and collapse the rest to `null` one line * before the only WARN that could surface it — so an operator whose declared * rule was silently not granting got the fact ("skipped") and the source text * back, but not WHICH shape the compiler refused or why. The extra member is * this FILE's own drop (the ADR-0049 match-all guard at the call site), which * the compiler reports as a success — same skip, same silence, so it joins the * same vocabulary rather than staying unnamed (the `empty-membership` * precedent in `plugin-security/src/rls-compiler.ts`, #13639). */ type SharingSkipReason = CelFilterFailReason | 'match-all-criteria'; /** A skipped rule's cause: the compiler's `reason` (the aggregatable category) plus its human `detail` (the concrete fault). */ interface SharingSkipCause { reason: SharingSkipReason; detail: string; } /** One declared rule in the runtime shape enforcement reads (ADR-0057 D6). */ interface DeclaredSharingRule { name: string; label: string; description: string | null; object: string; criteria: Record; recipientType: SharingRuleRecipientType; recipientId: string; accessLevel: ShareAccessLevel; active: boolean; /** * The package that ships the declaration (the registry item's `_packageId`), * when it names one — the provenance an activation-ledger row records * (`sys_metadata_activation.package_id`). Absent for a declaration no package * names. */ packageId?: string; } /** Why a declaration is not served: the compiler's own refusal, or a shape the runtime has no slot for. */ type DeclaredSharingRuleSkip = { kind: 'unnamed'; } | { kind: 'unmappable-recipient'; sharedWith: unknown; } | { kind: 'owner-rule'; } | { kind: 'condition'; cause: SharingSkipCause; }; /** * Translate ONE declaration into the runtime shape, or say why it is not * served. Pure: no read, no log — {@link createDeclaredSharingRuleSource} owns * the once-per-rule warning. */ declare function translateDeclaredSharingRule(r: any): { rule: DeclaredSharingRule; skip?: undefined; } | { rule?: undefined; skip: DeclaredSharingRuleSkip; }; /** Where enforcement reads declared rules. Read on every call: the registry is the authority, never a snapshot of it. */ interface DeclaredSharingRuleSource { list(): Promise; /** * [ADR-0150 D3, child E4] The declared rule a bare `name` addresses: the one * holder's, `not-found`, or the resolver's refusal naming every package that * holds it. A name two packages hold is never answered as either one. A * rule whose declaration the runtime cannot serve (the skips above) is * `not-found`, as `list()` leaves it out. */ lookup?(name: string): Promise>; /** * [ADR-0150 D3, child E4] Every declared name the resolver refuses (two or * more holders), with its refusal. The orphaned-grant sweep reads it to * report a refused name's revoked grants as a refusal, naming every holder, * never as a vanished rule. Reports nothing itself; `list()` is the reader * that reports. */ refused?(): Promise; } /** One object a sharing rule can take effect on. */ interface ShareableObject { /** The object's machine name — the value `sys_sharing_rule.object_name` stores. */ name: string; /** The object's declared label, or its name when it declares none. */ label: string; /** `true` for a platform object (`isSystem`, or a `sys_` name); business objects are `false`. */ system: boolean; } /** * [#14754] What one reconcile pass did, plus the grants the engine's * organization rule REFUSED in it. * * [#14969] The NARROWING is the point, not a lag. `@objectstack/spec` declares * `grantsRefused?: number` on {@link SharingRuleEvaluationResult} itself, and * declares it OPTIONAL on purpose: an `ISharingRuleService` implementation that * does not count refusals leaves the key ABSENT, and absent is not `0`. This * implementation always counts them, so it REQUIRES the key — a legal covariant * narrowing, and the reason a caller holding this type never has to decide * whether an unset key means "no grant was refused" or "this implementation * does not report refusals". Consumers typed against the spec contract are * unaffected; for them the key stays optional. The required form is what this * package's own pins assert and what the evaluate route puts on the wire — it * answers this service's return value unfiltered. * * ⛔ `grantsRefused > 0` is NOT "the pass failed". It is the pass reporting that * it met a record it cannot grant on (an organization-less record under a * walled posture) and CONTINUED — which is the whole point: the remaining * grants and, above all, the stale-row revocations still ran. */ interface SharingRuleReconcilePassResult extends SharingRuleEvaluationResult { /** Grants the engine's organization rule refused; each one is also logged. */ grantsRefused: number; /** * [#25549] One line, present only when the pass skipped recipients: the rule * is anchored on a public object, where a share reaches an `external` member * of the record's organization only, so no row was written for the internal * recipients it expands to, nor for any recipient on a record whose * organization could not be resolved. The count is in the pass's log line. */ note?: string; } interface SharingRuleServiceOptions { engine: SharingEngine; sharing: SharingService; /** * [ADR-0131 D2] Where DECLARED rules are read — the registry * (`createDeclaredSharingRuleSource`). Absent, the rule set is the * `sys_sharing_rule` rows alone. */ declaredRules?: DeclaredSharingRuleSource; /** * [ADR-0142 D7] The ownership-queue service, resolved at use: a `queue` * recipient expands to the queue's members through it. Absent (or answering * nothing), a queue rule grants nobody — the recipient fails closed. */ ownershipQueues?: () => Pick | null | undefined; logger?: { info?: (msg: any, ...rest: any[]) => void; /** * The GUARANTEED fallback channel (#9754, ruled on #10556). `error` stays * optional — hosts do inject reduced sinks — so `warn` is where a * durability report lands when `error` is absent, and a fallback that may * itself be missing is not a fallback. Call sites keep the * `logger?.warn?.(…)` spelling as the backstop for hosts the TYPE cannot * reach; `SweepLogger` in plugin-email's `outbox-sweep.ts` carries the full * reasoning and the measurement. * * ⚠️ This member is REQUIRED, and `SharingRuleServiceOptions` is PUBLICLY EXPORTED * from this package's `index.ts` — so a host passing `{ info, error }` * compiled before this landed and does not after. That break is declared, * shipped `minor`, and named in the changeset (maintainer ruling * 2026-08-24, #10556 limb (c)). */ warn: (msg: any, ...rest: any[]) => void; error?: (msg: any, ...rest: any[]) => void; debug?: (msg: any, ...rest: any[]) => void; }; } /** * Default {@link ISharingRuleService} implementation. * * Stores rule definitions in `sys_sharing_rule` and materialises grants * as `sys_record_share` rows with `source='rule'` and `source_id={ruleId}` * so reconcile can diff old grants vs fresh evaluation results without * touching manual / team-derived shares. */ declare class SharingRuleService implements ISharingRuleService { private readonly engine; private readonly sharing; private readonly logger?; /** * [#3929 follow-up] Inert (criteria-less) rules seen this process, for * once-per-rule warn dedup + the boot aggregate. Pre-dedup the evaluator * warned on EVERY pass — findMatchingRecords per evaluation AND * recordMatches per reconciled write — so one legacy row could dominate a * deployment's log. The enforcement is unchanged (such a rule still * matches NOTHING); only the repetition is gone. */ private readonly inertRuleSeen; /** * [#14547] Business-unit rules seen expanding to NOBODY this process — the * same once-per-rule dedup {@link inertRuleSeen} carries, for the same * reason: the reconcilers call {@link expandRecipient} on every matched * write, so an undeduped warn would let one misconfigured rule dominate a * deployment's log. */ private readonly emptyUnitExpansionSeen; /** * [#15072] `field` rules already warned about this process, keyed by cause * — the same once-per-rule dedup {@link inertRuleSeen} and * {@link emptyUnitExpansionSeen} carry, for the same reason: the per-record * path runs on every write of the shared object. */ private readonly fieldRuleWarned; /** [ADR-0131 D2] Where declared rules are read. */ private readonly declaredSource?; private readonly ownershipQueues?; /** * [ADR-0131 D2] The scopes a declared rule is served in: the deployment * under `single` (one {@link DeploymentWideSharingRule} projection), every * organization under a wall. Set by the plugin from the posture * ({@link setDeclaredRuleScopes}). * * `null` is UNKNOWN — the organizations could not be read * ({@link setDeclaredRuleScopesUnknown}). It is a state of its own, never an * empty list: an empty list would read as "no organization serves this * rule", and the orphaned-grant sweep would revoke every declared rule's * grants on that reading. Unknown serves no declared rule and revokes none. */ private declaredScopes; /** [ADR-0131 D2] The held-back sweep under unknown scopes says so once per process. */ private unknownScopesSweepWarned; /** [ADR-0131 D6 regime C] The declaration-over-row conflicts already reported, `name::scope`. */ private readonly declarationOverRowReported; /** [ADR-0150, child E4] Declared rules' queue recipients already reported as refused from their package. */ /** [ADR-0150, child E4] Refused declared names whose grants the orphan sweep already reported revoking. */ private readonly sweptRefusalsReported; private readonly queueRecipientRefusalsReported; /** [ADR-0131 D1/D8] Stored rules refused for carrying no organization, reported once each. */ private readonly organizationlessRuleReported; constructor(opts: SharingRuleServiceOptions); /** * [ADR-0131 D2] Serve declared rules in these scopes — the deployment under * `single`, the organizations under a wall. The same passes the retired * seeder made, as reads instead of rows: one deployment-wide pass under * `single`, one per organization under a wall (#10103). * * `null` is how the plugin's posture read (`resolveDeclaredRuleScopes`) * spells `single`. It is translated here, at the one door, into the * deployment-wide scope, so no NULL travels past this line. */ setDeclaredRuleScopes(scopes: ReadonlyArray): void; /** * [ADR-0131 D2] The scopes are UNKNOWN — the organizations could not be * enumerated. No declared rule is served anywhere (an incomplete scope set * would grant in some organizations and not others), and * {@link sweepOrphanedRuleGrants} revokes no declared rule's grant: a read * that failed is never a revocation. The next boot that reads the * organizations serves them again. */ setDeclaredRuleScopesUnknown(): void; /** * [ADR-0131 D2] An organization created after boot is served from its * creation on. Under unknown scopes it stays unknown: one organization known * is not the set. */ addDeclaredRuleScope(organizationId: string): void; /** * [ADR-0111 D6] The sharing-rule surface is tenant-wide sharing * ADMINISTRATION — a rule is an org-wide grant generator, and `evaluate` * triggers materialisation, so every verb (list/get included) requires the * `manage_sharing` capability. Enforced HERE, not at the route, so every * caller is covered (#3902's widened finding: any signed-in user could * define a broad-criteria rule naming themself and evaluate it into * org-wide `sys_record_share` grants). `manage_platform_settings` is * honoured as the legacy gate the Setup sharing pages used before * `manage_sharing` existed. System contexts (boot seeding, hooks, backfills, * the REST-independent plugin machinery) bypass. */ private assertCanManageRules; /** * The organization this caller operates in — the ONE spelling of that read. * * [#7136] Only the `tenantId` half is a declared field of the envelope; * `organizationId` is not a field of `ExecutionContext` at all (its history * is #5858 / `check:org-identifier`, and #7070 explicitly held it out of the * envelope work), so it stays cast. The asymmetry is the visible marker of * which of the two names the contract actually knows. * * [#8158] Was open-coded at three call sites (`listRules`, `getRule`, * `defineRule`), with `findRuleRowByName` taking `getRule`'s result as a * parameter. Three copies of a security-relevant read is how the fall-open * below stayed invisible: each site could see "no org id", none could see * whether that meant "system" or "authenticated caller who never selected * one". */ private callerOrgId; /** * [#8158] PLATFORM authority — the two spellings, one predicate. * * Both spellings are accepted because they are two independent channels by * which the same unscoped `admin_full_access` grant reaches an * `ExecutionContext` (a `scope: 'platform'` capability on * `systemPermissions`; the ADR-0095 posture RUNG): a context built by the * shared authz resolver carries both, a hand-built one may carry only one, * so accepting either is the fail-safe reading. * * It decides whether an org-less caller may read across tenants. Its other * question — may this caller DELETE a platform-global (`organization_id = * null`) rule (#7795) — retired with that rule class (ADR-0131 D1/D2): a * stored rule belongs to the organization that authored it, and a declared * rule is code, which no caller deletes. * * ⛔ [#15981] The second spelling is the RUNG, never * `positions.includes(BUILTIN_IDENTITY_PLATFORM_ADMIN)`. The two stopped * being the same channel when `positions[]` became the security axis: it * carries ADR-0057 D4 `sys_user_position` names, that table is `apiEnabled` * with unconstrained `position` values, and `resolveUserAuthzGrants` §4 * pushes a minted row's name straight onto the array. `resolve-authz-context.ts` * states the rule at `hasPlatformAdminStanding`, and * `grants.posture === 'PLATFORM_ADMIN'` is byte-for-byte what that predicate * returns — the unscoped `admin_full_access` evidence, which is what this * doc block meant by the built-in position all along. * * Driven, not argued: with the minted row present and only the ORG-scoped * `manage_sharing` capability held, the old read admitted an org-less caller * to every tenant's rules through {@link listRules}. See * `sharing-rule-positions-name-authority.test.ts`. */ private hasPlatformAuthority; /** * [#8158] Refuse an authenticated, non-platform caller whose session * resolves NO organization — the sharing-rule surface's fall-open. * * ## The defect * * {@link adminOrgScope} used to answer the unfiltered `where` for any caller * with no org id (`if (!orgId) return where`). That branch exists for * {@link SYSTEM_CTX} — boot seeding, hooks, backfills — which legitimately * reads every tenant's rows. But it was reached on the ABSENCE OF AN ORG ID, * never on system-ness, and {@link assertCanManageRules} admits any caller * holding the org-scoped `manage_sharing` capability. So an authenticated, * non-system caller arriving with neither `organizationId` nor `tenantId` * got the system read scope: {@link listRules} returned EVERY organization's * rules, {@link getRule} resolved any of them by id or name, and * {@link evaluateRule} reached those rows too — a cross-tenant WRITE, since * it reconciles `sys_record_share` grants. Same class #7761 closed for the * by-id branch, through a different door: there the filter was missing, here * it was skipped. * * ## That context is reachable (measured, not inferred) * * `resolveAuthzContext` derives the tenant from the session's active * organization and stamps it only when truthy, and * `resolveUserAuthzGrants` resolves an org-SCOPED permission-set grant * whenever the caller has no active org to compare it against * (`!(org && tenantId && org !== tenantId)`). A user holding an org-scoped * `manage_sharing` grant with no `sys_member` row — a multi-org deployment * (the membership reconciler binds nobody there), an `invite-only` * deployment, a user removed from their org, an SSO JIT user pending * placement — therefore logs in, resolves the capability, and carries no * tenant. Driven end to end over HTTP in * `packages/qa/dogfood/test/sharing-rule-org-less-caller.dogfood.test.ts`: * before this guard that session listed both tenants' rules. * * ## Refuse, rather than answer empty * * Both are fail-closed; the difference is what the caller is told. An empty * list is the #7676 shape — `{data: []}` over rules that exist and are * actively granting access, which reads as "this deployment has no sharing * rules" and sends the operator to look for the wrong bug. A 403 states the * actual condition and its remedy. `manage_sharing` is declared * `scope: 'org'` in the spec's capability registry: with no organization * resolved there is no scope in which it grants anything, so the honest * answer is a refusal, not an answer. * * Asserted in {@link assertCanManageRules}, which every verb already calls * first — so `defineRule` is covered too, and an org-less caller can no * longer write a rule with no organization of its own (the engine stamps or * refuses such a write, ADR-0131 D9). * * ## Two classes keep the unfiltered read, deliberately * * - **System contexts** (`isSystem`) — the branch's original and only * intended reason: boot seeding, the reconcile hooks, the backfills. * - **Platform operators** — `manage_platform_settings` or the * `platform_admin` position ({@link hasPlatformAuthority}). Their * cross-tenant read is what the Setup sharing pages are (the capability * is `scope: 'platform'`, and those pages are documented platform-only in * plugin-security's default permission sets), and they hold platform * authority whether or not an organization is selected. Refusing them * would be a functional regression dressed as a security fix — a * single-tenant deployment before its default org is bootstrapped, or one * running `autoDefaultOrganization: false`, has a platform admin with no * active organization and nothing else wrong with it. */ private assertResolvableAdminScope; defineRule(input: DefineSharingRuleInput, context: ExecutionContext): Promise; /** * Tenant scope for a sharing-rule ADMIN read: the caller's OWN organization. * * [ADR-0131 D1/D8] This was "this org ∪ platform-global" (#7676): a * `$or` with an `organization_id = null` arm, because the retired boot * seeder (`bootstrapDeclaredSharingRules`) defined declared rules under the * system context and so stamped them with no organization, and a strict * equality made those rows invisible to the admin API while enforcement * kept reading them. Both halves of that reason are gone: declared rules are * read from the registry and never written (D2, {@link declaredRules}, which * serves them beside the rows below), and the organization-ownership * ceremony attributes every stored row before the deployment is certified * (D10), after which a write with no organization is stamped or refused * (D9). No layer keeps a NULL arm (D8), so this one is an equality. * * ⚠️ {@link defineRule}'s existence lookup is the same equality, and must * stay one: it decides UPSERT-or-insert, so a wider lookup would let one * organization's admin overwrite a row another organization reads. * * [#7761] It IS applied to {@link getRule}'s by-**id** branch. Unfiltered, * that branch let an org admin resolve — and, through {@link deleteRule}, * destroy — another organization's rule from its id alone. * * [#8158] Takes the CONTEXT, not a bare org id. The unfiltered branch is * for a system context (and, since #8158, a platform operator) — a fact * only the context carries. Handed an org id alone, this function could not * tell "boot seeding" from "an authenticated caller who never selected an * organization" and answered unfiltered to both; * {@link assertResolvableAdminScope} is where that distinction now lives, * and this signature is what stops a future call site from re-conflating * them. */ private adminOrgScope; /** * [#30209 row 5 B] The objects a sharing rule can take effect on, for * Setup's object picker (`GET /api/v1/sharing/shareable-objects`). * * Admitted as every other verb of this surface admits * ({@link assertCanManageRules}: `manage_sharing`, or the legacy * `manage_platform_settings`, with a resolvable organization), so the list * names nothing the caller could not author a rule on. Listed by the save * doors' own verdict ({@link SharingService.sharingRuleObjectRefusal}) — * handed to {@link listShareableObjects}, never restated — so an object * listed here is one `defineRule` and the `/data` door admit, and one left * out is one they refuse with `SHARING_NOT_ENABLED`. */ listShareableObjects(context: ExecutionContext): ShareableObject[]; listRules(filter: { object?: string; activeOnly?: boolean; }, context: ExecutionContext): Promise; /** * [ADR-0131 D2] The declared rules this caller's scope serves, projected * ({@link projectDeclaredRule}) — the retired seeder's passes, read instead * of written. * * A declaration is NOT served in a scope where a `sys_sharing_rule` row * holds its name — the row the seeder's upsert would have found there: under * `single` a row of that name in any organization, under a wall that * organization's row of that name. Such a row is an organization's own rule * of that name, a seeded copy an administrator customized, or a seeded copy * the ownership ceremony has not deleted yet; it answers for the name, as it * did while the seeder ran (an admin-authored or customized row was never * overwritten), and the declaration does not ALSO grant beside it. */ private declaredRules; /** * [ADR-0131 D6 regime C] A declaration whose name a `sys_sharing_rule` row * already holds in a scope — a package upgrade that ships a rule an * organization authored under the same name, or a copy customised before * same-name shadowing was retired. The row is never made an overlay of the * declaration: it is that organization's own rule and answers as itself. The * declaration is NOT served in that scope beside it — serving both would * re-grant what a customised copy switched off — and that is said loudly, * once per name and scope per process, with the remedy. */ private reportDeclarationOverAuthoredRow; /** * [ADR-0131 D6 regime C] The declared rules the activation ledger * (`sys_metadata_activation`, type `sharing_rule`) switches off. No row means * the declared default — on. Read as {@link readPositionActive} reads the same * ledger: a composition with no ledger object issues no read, and a read that * fails switches nothing off for this pass, never a mass revocation. */ private readSwitchedOffDeclaredRules; /** * [ADR-0131 D2] Which scopes a caller reads declared rules in: the * deployment under `single` (every organization reads the one * deployment-wide projection); under a wall, the caller's own organization, * or every organization for a system context or a platform operator. */ private declaredScopesFor; /** * [ADR-0131 D6 regime C] The declared rule named `name`, or `null` — whatever * scope it is served in, and whether or not the activation ledger has it * switched off: a declaration is the application's in every organization, so * its name is taken in every one ({@link DeclaredSharingRuleNameConflictError}). */ declaredRuleNamed(name: string): Promise; /** * [ADR-0126 §6 wall 3] Every declared rule the registry holds at this boot, * each with the package that ships it, whatever its activation-ledger row * says. `null` when this service reads no declarations at all — a * composition with no registry source, which is no answer about any name. * The access-upgrade boot report (plugin-security) compares the ledger's * `sharing_rule` rows against this list. */ listDeclaredRules(): Promise; /** * [ADR-0131 D6 regime C] Reconcile a declared rule's name-keyed grants with * its activation-ledger row, in the request that wrote the row * ({@link bindSharingRuleActivationReconcile}) — not at the next boot's * {@link sweepOrphanedRuleGrants}. * * The ledger row is deployment-level (it carries no organization), so the * switch covers every scope the declaration is served in. Switched off, it is * served nowhere ({@link declaredRules}) and every grant carrying its name is * revoked; switched on, each projection's one-rule pass re-derives its grants. * An organization's own rules keep their row ids, so no grant of theirs is * touched. */ reconcileDeclaredRuleActivation(name: string): Promise; getRule(idOrName: string, context: ExecutionContext): Promise; /** * Every rule `idOrName` addresses for this caller: the one row, or the * declared rule's projections — one per scope the caller reads, so a system * context evaluating a declared rule under a wall reaches every * organization's projection of it. */ private resolveRules; /** The `sys_sharing_rule` row `idOrName` addresses for this caller — by id, then by name. */ private findRuleRow; /** * Resolve a rule by NAME for an admin read: the caller's own organization's * row of that name. * * [ADR-0131 D1/D8] It used to fall back to the platform-global * (`organization_id IS NULL`) row of that name (#7676) — the seeded copy of * a declared rule. Declared rules are read from the registry now * ({@link getRule} resolves them by name after this lookup misses), and a * certified deployment holds no organization-less row, so the fallback is * gone: the one row this caller can name is its organization's. * * No `orgId` (SYSTEM_CTX — boot seeding, hooks, backfills) keeps the * unfiltered by-name lookup it has always had. * * [#8158] Third site of the same `if (!orgId)` shape, and takes the CONTEXT * for the same reason {@link adminOrgScope} does: an authenticated caller * with no organization used to resolve ANY tenant's rule by name here — the * door a fix confined to `adminOrgScope` would have left open, since * {@link getRule} falls through to this lookup whenever the by-id query * misses (which is exactly what a by-NAME request does). */ private findRuleRowByName; deleteRule(idOrName: string, context: ExecutionContext): Promise; evaluateRule(idOrName: string, context: ExecutionContext): Promise; /** One rule's whole pass, the rule already resolved. */ private evaluateResolvedRule; /** * Revoke every grant this rule materialised, without needing the rule row to * still exist. `evaluateRule` throws `RULE_NOT_FOUND` once the row is gone, * so a rule DELETED through the plain data API (which is what the Setup UI's * delete action issues — it never reaches {@link deleteRule}) would otherwise * leave its grants behind forever (objectstack#3821). */ revokeRuleGrants(ruleId: string): Promise; /** * [#4433] Revoke every `source: 'rule'` grant whose `source_id` no longer * resolves to a rule row at all, and report how many went. * * Reconciling the rules themselves — which the boot backfill now does for * inactive rules too — can only reach grants some surviving rule still * claims. A grant whose rule row is GONE is unreachable that way: there is * nothing left to iterate. Those orphans are exactly the rows #4433 found * still answering after a restart, and they arise from every path that * removes a rule without going through {@link deleteRule} — a data-API * delete while the reconcile hook was unbound, a row dropped by a migration * or by hand, a crash between the two writes in `deleteRule`. Sweeping at * boot is what makes "the rule is gone" and "its access is gone" the same * statement no matter which path removed it. * * Reads the rule ids first and diffs in memory: the grant table is the big * one, and a per-grant existence probe would be one query per row. */ sweepOrphanedRuleGrants(): Promise; /** * [ADR-0150, child E4] The orphaned-grant sweep revoked a grant of a declared * rule name the resolver refuses: warned once per name, naming every * candidate, as a refusal — never as a vanished rule. */ private reportSweptRefusal; /** * Reconcile every rule on `object` against ONE record — the per-record pass * the afterInsert/afterUpdate hooks run. * * [#4433] Deliberately lists ALL rules, not just active ones. Filtering to * `activeOnly` here meant a deactivated rule was simply absent from the * loop, so the grants it had already materialised were never even looked * at: touching the record — the very event that created the grant — walked * straight past it. An inactive rule is not "no rule", it is a rule whose * desired grant set is EMPTY, and only by reconciling it can the stale rows * be revoked. `match: false` for an inactive rule sends `reconcileForRecord` * down its existing revoke-the-remainder branch, so nothing new is needed to * withdraw them. */ evaluateAllForRecord(object: string, recordId: string, context: ExecutionContext): Promise; /** * [#4779] Reconcile EVERY rule bound to `object` — the object-scoped twin of * the `kernel:bootstrapped` backfill. * * This is the re-grant half of the ruling's option C: after a bulk write * whose row set could not be bounded has had its grants revoked set-based, * this pass puts back the grants that are still deserved. Per RULE rather * than per row, deliberately — `evaluateRule` already diffs the whole * matched set against the whole existing grant set in one pass, which is * both cheaper than N per-row reconciles and the exact primitive the boot * backfill uses, so the asynchronous repair and the restart repair are the * same code path rather than two that must be kept agreeing. * * Inactive rules are included: `evaluateRule` purges their grants (#4433), * so excluding them would leave withdrawal to the next restart. Best-effort * per rule — one broken rule must not stop its siblings being restored. */ evaluateAllRulesForObject(object: string): Promise; /** * [#4779] Revoke every rule-materialised grant on `object`, set-based. * * The cheap, uncapped half of the ruling: one predicate delete over * `sys_record_share`, whose cost does not grow with the number of records * the triggering write touched. It is what lets a bulk write proceed * without the recompute bound leaking out as a limit on how many rows an * admin may change — the write lands, every grant that may have gone stale * is gone before it returns, and {@link evaluateAllRulesForObject} puts * back the deserved ones asynchronously. * * `multi: true` is required, not decorative: `ObjectQL.delete` refuses a * predicate-shaped call that does not declare bulk intent * (`resolveEngineDeleteDispatch`), which is precisely the shape that made * every `DELETE /sharing/rules/:id` answer 500 in #4434. * * Only `source: 'rule'` rows are touched. A manual grant is a human's * decision about one record and no rule evaluation would ever re-create it, * so sweeping it here would destroy data this subsystem does not own. */ revokeRuleGrantsForObject(object: string): Promise; /** * [#4779] Revoke the rule-materialised grants of a NAMED set of records — * the delete path's revoke, where the rows are gone and no reconcile can * ever reach them again. * * Chunked because the id set rides in an `$in`, and a single statement * binding a thousand parameters is a portability trap (SQLite's default * `SQLITE_MAX_VARIABLE_NUMBER` is 999 on older builds). Chunking keeps this * O(ids/CHUNK) statements instead of O(ids), which is still set-based in * the sense that matters. */ revokeRuleGrantsForRecords(object: string, recordIds: readonly string[]): Promise; /** * [#7729] Revoke this rule's grants whose RECIPIENT the rule no longer * expands to — the recipient-axis twin of * {@link revokeRuleGrantsForRecords}. * * ## Why a third revoke, and why on this axis * * The two revokes above are both scoped by RECORD, because the writes that * drove them were writes to records. A business-unit re-parent or a * membership edit touches no record at all: what changes is who * {@link expandRecipient} resolves to, and therefore which of the rule's * already-materialised grants have gone stale. Scoping that withdrawal by * record would mean enumerating every record the rule matches — the very * scan {@link RULE_RECOMPUTE_ROW_CAP} exists because we cannot afford on a * write path. Scoping it by recipient needs no record scan at all: one query * for the rule's granted recipients, one recipient expansion, and a * chunked set-based delete of the difference. * * ## Cheap enough to be the SYNCHRONOUS half * * This is the safety half of the same split the #4779 ruling settled * (over-granting is a security incident, under-granting is an availability * wobble): complete and synchronous on the write path, with the expensive * re-grant deferred to {@link evaluateRule} on the shared re-grant queue. * A BU moved OUT of a shared subtree therefore loses its members' access * before the write returns, rather than at the shared record's next write — * which was unbounded in time, and is what #7729 was filed for. * * The `granted.size === 0` short-circuit is load-bearing, not an * optimisation: it is what keeps boot-time BU seeding (thousands of member * inserts against an empty `sys_record_share`) from paying a subtree walk * per row. * * An INACTIVE rule expands to nobody, so every grant it still holds is * stale — the same verdict {@link evaluateRule} reaches by a longer road * (#4433), reached here without one. * * Deletes set-based rather than through `SharingService.revoke`, following * {@link revokeRuleGrantsForObject} / {@link revokeRuleGrantsForRecords}: * under a system context `revoke` is itself a scalar-id delete with no * event and no audit trail, so per-row revocation would buy nothing and * cost one statement per grant on a path whose whole justification is that * it stays cheap. Chunked at 200 for the same `$in` portability reason. * * @returns how many RECIPIENTS were retired (not how many rows went). */ revokeRuleGrantsForRetiredRecipients(rule: SharingRuleRow): Promise; /** * Reconcile ONE rule's grants for ONE user — the user-scoped pass a * recipient-membership write runs (`recipient-membership-recompute.ts`): a * position assignment, a membership role, or a team membership row naming * `userId` was inserted, changed or removed. * * ## What it guarantees * * The outcome equals the whole-rule pass ({@link evaluateRule}) restricted to * `userId`. When the rule reaches the user, the user's grants of this rule * become exactly one per matched record at the rule's access level; when it * does not — the rule is inactive, its position is switched off, or the user * no longer holds its recipient — the user keeps none. A new holder gains the * rule's grants and a former holder loses them in the write that changed the * holding, with nobody re-evaluating the rule by hand. Every other user's * grants of the rule are untouched. * * ## Why per user, and why that is cheap enough to be synchronous * * The `bu-tree-recompute.ts` design refuses to recompute every rule on every * graph write, and queues its grant half, because a BU write can move many * recipients at once and the re-grant fans out to (matched records × moved * members). A membership row moves exactly ONE user. Scoped to that user the * pass costs one recipient check ({@link ruleReachesUser} — an indexed lookup * per source, never the recipient's whole member list), one read of that * user's grants of the rule, and — only when the rule reaches the user — one * criteria read plus a write per grant the user lacks. Nothing in it grows * with how many OTHER users hold the recipient, so a bulk import of N rows * costs N user-scoped passes, never N whole-rule passes. * * Withdrawal goes through `SharingService.revoke`, one grant at a time, as * the whole-rule pass's own withdrawal does ({@link reconcile}); a user holds * at most one grant per matched record, so the count is bounded by the * rule's matched set. * * A `field` rule has no rule-wide recipient to check a user against; its * recipients live on each record and are re-derived by that record's write * ({@link evaluateAllForRecord}), so it is declined here, as it is at * {@link revokeRuleGrantsForRetiredRecipients}' door. */ reconcileRuleForUser(rule: SharingRuleRow, userId: string): Promise; /** * Is `userId` among the users `rule` expands to? The user-scoped twin of * {@link expandRecipient}, used by {@link reconcileRuleForUser}. * * `position` and `team` — the two kinds a membership write moves — are * answered by the graph services' user-scoped checks * (`PositionGraphService.holdsPosition`, `teamHasMember`), which read the * same rows the expansion reads, narrowed to one user. A `position` passes * the same activation gate first ({@link positionConfersAccess}): a * switched-off position reaches nobody. Every other kind is answered from the * rule-wide expansion itself. */ private ruleReachesUser; /** * [#3896] ADR-0049 backstop, evaluated on EVERY pass rather than only at * authoring time: `defineRule` now rejects a match-all criteria, but rows * predating that gate — or written straight to `sys_sharing_rule` through * the data API (what the Setup UI's create action issues) — are already in * the table. Such a rule matches NOTHING and says so in the log, so the * next reconcile revokes whatever it had granted instead of re-granting the * whole object. Under-sharing loudly beats over-sharing silently. */ private isInertMatchAll; /** Names of inert (criteria-less) rules seen so far — the boot aggregate reads this. */ get inertRuleNames(): readonly string[]; /** * [#10119] The context the rule's CRITERIA query runs under — system * elevation, plus the rule's OWN organization when it has one; `null` when * the rule may sweep nowhere. * * ## What was wrong * * Both criteria reads used a bare {@link SYSTEM_CTX}, which carries no * tenant, for EVERY rule. The recipient half is already org-aware — * {@link expandRecipient} threads `rule.organization_id` into * `TeamGraphService` / `BusinessUnitGraphService` / `PositionGraphService` — * so an org-stamped rule expanded recipients inside its own organization and * then swept every OTHER organization's records for matches. `reconcile` * materialised the cross product: `sys_record_share` rows granting one org's * users access to another org's records. * * Those rows are inert under a walled posture (Layer 0 AND-composes over * sharing's Layer-1 widening), which is why this was found by reading the * materialised table rather than by a read crossing the wall. What they cost * is `sys_record_share` bloat — every org-stamped rule scanning the whole * table at `limit: 5000` — and a population that is wrong at rest, which any * consumer reading `sys_record_share` directly would inherit. * * ## Why `tenantId` and not a `filter` clause * * `tenantId` is the platform's ONE spelling of tenant scope on a read: the * engine threads it to `DriverOptions.tenantId` and the driver's own * chokepoint (`SqlDriver.applyTenantScope`) applies the posture's one * predicate (ADR-0131 D8). Open-coding an `organization_id` equality into * `filter` would be a second, worse copy — it would collide with a rule * whose criteria already name that column, and it would not know the * object's declared tenant field. * * ## [ADR-0131 D2/D8] Deployment-wide is a typed marker, never a NULL * * The organization-less branch that answered "no organization ⇒ unscoped * sweep" is retired. What it served is now one of three named cases: * * - **The rule has an organization** — an organization-authored row, or a * declared rule's projection under a wall: the sweep runs inside that * organization's one predicate. * - **A {@link DeploymentWideSharingRule}** — a declared rule under * `single`: no tenant, which is exactly the predicate D8 computes under * `single` (none), so Layer 0 is not widened by a single row. Under a wall * no projection carries the marker ({@link projectDeclaredRule}). * - **A composition with no organization object** (a lean embedding, * `resolveSystemWriteOrganization`'s `no-organization-object`): there are * no organizations to scope by, so every rule is the deployment's. * * Anything else is a STORED row with no organization in a deployment that * has organizations. Certification leaves none and the engine stamps or * refuses every new one (D9/D10), so it is invalid state: `null` here, and * the caller sweeps nothing and grants nothing ({@link sweepContextOrReport} * says so once). ⛔ Never default it to the deployment-wide sweep — that is * the NULL arm this replaced, and it is how one row came to grant across * every organization. * * `isSystem` is retained either way. The elevation and the tenant are * different axes (`ObjectQLEngine.buildDriverOptions` reads them separately): * the evaluator must still see rows no individual recipient could, it must * just stop seeing rows the RULE has no business in. * * ## [commit 3f64fe6c6] The same context is what the grant is WRITTEN under * * `reconcile` / `reconcileForRecord` hand this context to * `SharingService.grant`, which stamps `sys_record_share.organization_id` * from it (ruled 2026-09-02: a rule-materialised grant carries the rule's * organization). One context for the sweep and for the write is what keeps * the two agreeing — the grant lands in the organization whose records the * rule was allowed to sweep. A deployment-wide rule threads none, and its * grants belong where each record does; `grant` derives that from the record. * * Both postures of a declared rule, and the refused row, are pinned in * `rule-criteria-org-scope.test.ts`. */ private criteriaContext; /** * Does this composition register the organization object? Read from the * engine's schema registry — the same fact `resolveSystemWriteOrganization` * separates `no-organization-object` by. An engine that cannot answer is * read as composing organizations: the reading that refuses, never the one * that sweeps every organization. */ private organizationsComposed; /** * {@link criteriaContext}, or `null` with the refusal reported — once per * rule per process, at `error`: the rule looks configured and grants * nothing, which is the degradation an operator cannot see otherwise. */ private sweepContextOrReport; private findMatchingRecords; /** * [#15072] The rule's matched ROWS with `fields` projected — `['id']` for * every rule-wide recipient, `['id', ]` for a `field` * rule, whose recipients are read off these very rows * ({@link desiredGrantsForRule}). */ private findMatchingRows; /** * The per-record half of the criteria read: the matched ROW, or `null`. * * [#15072] Was `recordMatches(): boolean`. It answers with the row because * a `field` rule's recipients are ON it — the match read projects that * column beside `id`, so one query answers "does this record match" and * "whom does it name" together and the two can never be read from two * versions of the row. Every other kind still projects `id` alone. */ private matchRecord; /** * [#15072] The recipients of ONE matched record — the per-record switch. * * `field` is the only member expanded here (maintainer ruling 2026-09-02 on * #14103, B: "`expandRecipient` becomes per-record for that member only"): * the user or users the row's named column holds. Every other member is the * rule-wide expansion, memoised across the pass exactly as before * ({@link expandRecipient}). */ private expandRecipientForRecord; /** * [#15072] Whom `row`'s recipient column names, fail-closed * ({@link usersNamedBy}) — once the column has been judged usable * ({@link fieldRecipientColumnIsUsable}). */ private recipientsNamedOnRecord; /** * [#15072] Does the object DECLARE the column a `field` rule names as one * that holds users? Judged from the registry on every call — a metadata * reload may add the column, and a verdict cached at boot would outlive it * (AGENTS.md "Startup registry reads") — and warned about once per rule. * * Three answers: * - the engine cannot say (no `getSchema`, or an object it does not * resolve) → the column is READ. Absence of a schema is absence of * evidence, and the declared semantics are the column's value. * - declared, and user-typed ({@link fieldHoldsUsers}) → read. * - declared but absent, or of another type → NOBODY, and one warn naming * the rule and the column. A rule that grants nobody in silence is the * authoring trap ADR-0078 names, and a `text` column read as user ids * would grant to whatever strings the records happen to hold. */ private fieldRecipientColumnIsUsable; /** * [#15072] An active `field` rule whose recipient column cannot be read as * users says so — once per rule per cause ({@link fieldRuleWarned}). An * EMPTY column is deliberately not a cause: an unassigned record sharing * with nobody is the declared semantics, not a misconfiguration. */ private warnFieldRuleOnce; /** * [#15072] Every grant a whole-rule pass wants to exist, derived per * recipient kind — the one place the rule-wide and the per-record members * meet, so {@link reconcile} never has to know which it is diffing. * * Rule-wide members: the matched ids × ONE recipient expansion — the * cartesian product `evaluateRule` always materialised, and a `position` * recipient still expands exactly once per rule here (the ruling's explicit * pin). `field`: the matched ROWS, each contributing a (record, user) pair * for every user its own column names — no product, because there is no * rule-wide recipient list to multiply by. `expandedUsers` for that kind is * the number of DISTINCT users across the matched records. */ private desiredGrantsForRule; /** * The RULE-WIDE recipient expansion — "the one switch that decides" * (`bu-tree-recompute.ts`), answered once per rule per pass. * * [#15072] `field` is deliberately NOT a case here, and asking for it is an * error rather than an empty answer. A `field` recipient (maintainer ruling * 2026-09-02 on #14103, B) is the user or users a column on EACH MATCHED * RECORD names, so it has no rule-wide expansion at all — and answering `[]` * (what the `queue` fallthrough below would have done) is precisely how a * rule-wide caller turns "per record" into "nobody": `reconcile` would then * revoke every grant, and `revokeRuleGrantsForRetiredRecipients` would * retire every recipient. The three callers each decide explicitly: a * caller with a record in hand goes through {@link expandRecipientForRecord}; * the whole-rule pass derives per-record pairs in {@link desiredGrantsForRule}; * the recipient-axis revoke declines `field` at its door. Reaching this * throw is a programming error, and it is loud so that it stays one. */ private expandRecipient; /** * [ADR-0150 D3, child E4] A DECLARED rule's queue recipient is a reference * written inside the rule's package P, so it resolves from P through the * shared resolver: P's own queue, else the unique holder in P's declared * dependency closure (plus `sys`), else a refusal naming every holder — * never a holder outside the closure, and never an environment-authored * registry item (D3 (a)). A name no registry item holds passes on: the * queue service then answers an organization's own `sys_queue` row, as * before. * * A refusal throws, like the queue service's own refusals under * `onFailedRead: 'refuse'`: each recompute's caller keeps the rule's grants * and says so, rather than revoking them on an answer nobody could pick. * * Otherwise it answers P, the caller package the queue read passes on * (`callerPackageId`, the contract's `OwnershipQueueCallerPackage`), so the * queue service resolves the name from P too: a name P's closure reaches * once resolves to that holder even when an unrelated package also declares * it. `null` for an organization-authored rule, or where no registry can * answer `(package, name)`: the read is environment-wide, as before. The * check stays ahead of the read on purpose: a queue service written before * the key reads environment-wide and would otherwise serve a holder outside * P's reach — stricter after the check, never looser. */ private queueRecipientCaller; /** * [ADR-0150 D3] The package a rule's queue recipient is read from: the * declared rule's package, or `null` (an organization-authored rule, a name * no declaration answers, or a registry that cannot answer `(package, * name)`). For a look-through that only asks what the queue holds — never a * read that grants: those go through {@link queueRecipientCaller}, which * also refuses a recipient outside the package's reach. */ queueRecipientPackageOf(rule: SharingRuleRow): Promise; /** * [#14547] An ACTIVE business-unit rule that expands to NOBODY says so. * * This is the half of #14547 that is independent of any screen. The reported * failure was not merely that the expansion was empty — it was that nothing * anywhere recorded it: the rule was accepted (201), stayed `active: true`, * materialised zero `sys_record_share` rows and logged nothing, so the only * observable was "the right people cannot see the record", arbitrarily far * from the cause and indistinguishable from a criteria mistake, a * permission-set mistake or a UI bug. * * It also covers the case the screens deliberately leave empty: a rule * stamped with an organization whose unit AND membership rows were both * seeded expands to nobody, because an org-less membership row is of unknown * tenancy and is not a member of an org-scoped rule * ({@link BusinessUnitGraphService} → `memberScope`). Failing closed is the * right answer; failing closed in silence is not. * * Both business-unit recipient kinds route here, and only they: a `user` * recipient cannot be empty, and `team` / `position` / `queue` have their own * reasons for an empty set that this issue did not measure. ⛔ Do not widen * this into "warn whenever any recipient expands to zero" without measuring * those — an empty `queue` is a queue nobody staffs yet (ADR-0142 D2: an * empty expansion is a fact, not a fault), and a `field` rule's empty * column is a legitimate state (an unassigned record shares with nobody, * #15072), not a misconfiguration. * * Named completely: the rule, the object, the recipient kind, the unit, the * organization, and the two causes worth checking first. Once per rule per * process ({@link emptyUnitExpansionSeen}). */ private warnOnEmptyUnitExpansion; /** * [commit 04d03c3a0] Does `positionName` still CONFER access? Memoised for * the pass; the extra read is accepted. * * Maintainer ruling, 2026-08-15, verbatim: * * > Access-conferring paths filter deactivated positions; addressing paths * > do not. * * A sharing rule is an access-conferring path. The grant is authored on the * RULE, which is why the position here reads like a directory selector — but * what the rule produces is a `sys_record_share`, and a record share is * access. The `deactivate_position` dialog promises, unqualified, that "users * keep their assignment but the position stops granting permissions until * re-activated"; #8613 made that true at the authorization DERIVATION seam * (`resolveAuthzContext`), and a sharing rule reaches users by a second road * that never passes it. * * ⛔ The filter lives HERE, at the call site, and must never move down into * `PositionGraphService.expandPositionUsers`. That helper answers "who holds * position P" — an ADDRESSING question, whose other consumers the same ruling * deliberately leaves unfiltered: approval ROUTING, where dropping the * holders is fail-OPEN (a step routing to nobody), and plugin-security's * write gates / blast-radius reads, where dropping a deactivated row makes a * refused binding permitted and narrows a delegate's boundary — access * WIDENING, the opposite of this change. Both are #8613 carve-outs. */ private positionConfersAccess; /** * [ADR-0131 D3, ADR-0126 §4] Whether the activation ledger leaves * `positionName` switched on — the one place a position's deactivation lives * (ADR-0126 §3 regime C, as ADR-0131 D6 amends it), read exactly as the * authorization resolver reads it (`readDisabledCatalogNames`, * `@objectstack/core`): a `position` row of that name whose `active` reads * false (a driver `0` included) switches it off; no row means ACTIVE. The * `sys_position` row's `active` is not read — the resolver reads no catalog * row, so a flag there switches nothing. * * 1. **A name with no ledger row is untouched.** Position names reach a * rule through `sys_member.role` too (ADR-0057 D4's transition source), * and a name no catalog holds has nothing to switch off — the same names * the resolver leaves alone. Only a row that really reads off revokes. * 2. **The verdict is deployment-wide.** The ledger carries no tenant * column, so a switched-off position is off in every organization, as it * is for the resolver; the rule's organization does not choose a row. * 3. **A failed read still grants.** A composition that registers no ledger * object is not read at all; on one whose ledger table was never * provisioned a query failure is indistinguishable from that here. Revoking every position share because a read threw is * the mass revocation "absence means active" exists to avoid. */ private readPositionActive; /** * [#14754] Materialise ONE rule grant, absorbing the engine's organization * refusal so the pass survives it. * * ## The defect this closes, and which half of it is the security half * * `sys_record_share` is tenant-scoped in the #13491 ledger (commit 3f64fe6c6), so on a * walled install an organization-less system insert on it is refused loudly * with {@link SYSTEM_WRITE_ORGANIZATION_REQUIRED_CODE}. `SharingService.grant` * resolves the organization on every path that can; a rule whose sweep * carries no tenant (a {@link DeploymentWideSharingRule}) materialising * onto an organization-less record resolves none, and meets the refusal. * * Without this catch the refusal propagated out of the reconcile loop and * that rule's pass ABORTED mid-loop. The grants already written stayed; the * remaining grants — and **the stale-row revocations of that pass** — did * not happen. The revocation half is the security-relevant one: a stale * over-grant of that rule persisted across every pass that met the same * record, and that record kept aborting the pass until it was repaired. * * ## Why the catch is narrow, and must stay narrow * * ONLY the engine's organization refusal is absorbed — recognised through * the engine's own {@link isSystemWriteOrganizationRequiredError}; everything * else rethrows unchanged. Two reasons, and the second is measured: * * - A catch-all would swallow real defects — a driver outage, a criteria * bug, a permission failure — and report a pass that "completed" having * written nothing, which is the silence #6783 spent a card removing. * - `record-share-organization-stamp.test.ts` DELIBERATELY pins the abort on * the OTHER error a reconcile pass can meet here: the scoped update half * answering `RECORD_NOT_FOUND` (404) for a row stamped with a different * organization. That shape was reviewed on 2026-09-02 and left standing * ("loud beats a wrong count"). Widening this catch to any error would * retire that decision as a side effect, and its three pins are what * notices. * * Returns `'granted'` when the grant landed, `'refused'` when it was refused — * never throws for the refusal, and the caller counts what it is told. * * [#25549] …and `'internal'` for the one other refusal a pass absorbs: on a * public object the grant service admits an `external` member of the * record's organization only ({@link isInternalRecipientRefusal}). That * recipient is skipped, not counted as refused — the row would never be * consulted for it — and the pass reports the skipped half in one line * ({@link withInternalHalfNote}). Every other D7 refusal (bypass, owner-less, * `controlled_by_parent`, phantom anchor) still aborts the rule's pass. */ private grantOrAbsorbOrganizationRefusal; /** * [#25549] Put the one-line note on a pass that skipped internal recipients, * and log the count once per pass — never once per skipped grant, which on a * rule over N records and M staff would be N×M lines of the same fact. */ private withInternalHalfNote; /** * Diff a whole-rule pass's desired pairs against the rule's materialised * grants: upsert what is wanted, revoke the remainder. * * [#15072] Takes the pairs ({@link DesiredGrantSet}) rather than * `(matchedIds, users)`: the product of those two is what a rule-wide * recipient wants, and it is built in {@link desiredGrantsForRule} — where * a `field` rule builds its per-record pairs instead. The diff below is * unchanged, and since #14754 it attempts each grant individually * ({@link grantOrAbsorbOrganizationRefusal}) — a refused grant is counted * in `grantsRefused` and the pass, including its stale-row revocations, * continues. */ private reconcile; private reconcileForRecord; /** Revoke every grant `scope` names ({@link ruleGrantScope}), one row at a time through the sharing service. */ private purgeGrants; } interface ShareLinkServiceOptions { engine: SharingEngine; /** * Override the default password hasher. The default is the platform's * password hash — scrypt with the account-password parameters * (`share-link-password.ts`) — so production needs no override. */ hashPassword?: (plain: string) => Promise; /** * Companion verifier — must accept hashes produced by `hashPassword`. * * [#21839] Legacy stored forms are re-hashed on a successful redemption * only while BOTH members are the defaults: an injected pair owns its own * stored forms, and this service cannot tell which of them are legacy. */ verifyPassword?: (plain: string, hash: string) => Promise; /** * Bypass the per-object opt-in check at MINT (useful when the schema scan * is happening after `start`). When omitted, `createLink` against an object * without `publicSharing.enabled=true` is rejected with 422. * * [#14033] Mint ONLY. `publicSharing.enabled` is a standing policy held * again at every redemption, and `resolveToken` reads the object's CURRENT * block regardless of how a row was minted: a link minted under this bypass * while the block is off does not resolve until the block is enabled. So * during a late schema scan the option helps MINTING, not serving: an object * the engine cannot return a schema for is `enabled: false` by `getPolicy`'s * definition (the same definition `createLink` uses), and redemption refuses * until the schema resolves and the block is enabled. */ permissive?: boolean; /** * [ADR-0111 D8] Late-bound record-share management probe (the sharing * service's `canManageShares`). Lets a record's OWNER / Modify-All admin * revoke a link someone else minted on their record — not just the link's * creator. Absent → only the creator (and system) may revoke, the pre-D8 * behaviour, so a deployment without the sharing service degrades safely. * * [commit 8e13ca876] An ENFORCEMENT probe — it decides a 403, and resolves ownership / * hierarchy scope under the context it is given — so it receives the caller's * COMPLETE envelope, exactly like the visibility read in `createLink`. */ canManageShares?: (object: string, recordId: string, context: ExecutionContext) => Promise; /** * [ADR-0111 D8 rule 1 — ruling 5950188467, A′] Late-bound mint-authority * probe (the sharing service's `canMintWithoutVisibility`): may the caller * mint on a record their visibility read refused, because they are its * OWNER or hold the explicit Modify-All bypass? `createLink` asks it only * after that read refused. It answers with `canManageShares`' own owner and * bypass branches and never with its hierarchy-depth branch. It is withheld * where an organization wall is in force, and it answers `false` when the * refusal was the object's capability AND-gate (`requiredPermissions`, * ADR-0066 D3), which is a hard stop the alternatives do not pass. * * Absent → visibility alone admits (the pre-A′ rule), so a deployment * without the sharing service never widens who may mint. A throwing probe * is a refusal. It receives the caller's COMPLETE envelope, like every * enforcement probe here. */ canMintWithoutVisibility?: (object: string, recordId: string, context: ExecutionContext) => Promise; /** [#5190] Optional logger for the record-delete cascade / orphan sweep. */ logger?: { info?: (msg: any, ...rest: any[]) => void; /** * The GUARANTEED fallback channel (#9754, ruled on #10556). `error` stays * optional — hosts do inject reduced sinks — so `warn` is where a * durability report lands when `error` is absent, and a fallback that may * itself be missing is not a fallback. Call sites keep the * `logger?.warn?.(…)` spelling as the backstop for hosts the TYPE cannot * reach; `SweepLogger` in plugin-email's `outbox-sweep.ts` carries the full * reasoning and the measurement. * * ⚠️ This member is REQUIRED, and `ShareLinkServiceOptions` is PUBLICLY EXPORTED * from this package's `index.ts` — so a host passing `{ info, error }` * compiled before this landed and does not after. That break is declared, * shipped `minor`, and named in the changeset (maintainer ruling * 2026-08-24, #10556 limb (c)). */ warn: (msg: any, ...rest: any[]) => void; error?: (msg: any, ...rest: any[]) => void; debug?: (msg: any, ...rest: any[]) => void; }; } /** * Default `IShareLinkService` implementation. * * Persists every link in `sys_share_link`. The companion REST routes * (`registerShareLinkRoutes`) thin-wrap the service; the public * `/api/v1/share-links/:token` route resolves and re-injects the * "share-link principal" into the execution context so the standard * data middleware can authorise the downstream read. */ declare class ShareLinkService implements IShareLinkService { private readonly engine; private readonly permissive; private readonly hashPassword; private readonly verifyPassword; private readonly canManageShares?; private readonly canMintWithoutVisibility?; private readonly logger?; /** * [#12981] Latched by the FIRST refused usage stamp on this instance and * never reset; `reportUsageStampRefusal` reads it so the durability report * is made once, not once per refused write (the rule's own words). */ private usageStampRefusalReported; /** [#21839] Both password members are the defaults — legacy forms may be upgraded. */ private readonly upgradesLegacyPasswordHashes; /** [#21839] Latched by the first refused legacy-hash upgrade; reported once. */ private passwordUpgradeRefusalReported; constructor(opts: ShareLinkServiceOptions); createLink(input: CreateShareLinkInput, context: ExecutionContext): Promise; /** * [ADR-0131 D9, C8 stage 8b-0h] The organization a minted link is stamped * with — never a NULL row on a tenant-columned `sys_share_link`: * * 1. the LINKED RECORD's organization, read under the system context off the * column the object is walled by, so field-level masking cannot hide it * from the decision. It wins over the session's: under `group` a member * active in one organization may mint on a record of another it can see, * and the link exposes that record, so it belongs where the record does — * the direct-grant rule `SharingService.resolveDirectGrantOrganization` * follows for `sys_record_share`; * 2. the acting context's organization (`tenantId`), when the record names * none — an object with no tenant column, or an organization-less row; * 3. otherwise `@objectstack/core`'s one D9 predicate: the Default * Organization under `single` when exactly one exists, and a loud * `ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED` refusal under a wall (and on a * `single` install holding none or several) — nothing is written. * * The refusal is the engine's own: the envelope its system-insert rule * raises for this same write once the platform-namespace exemption retires, * so the mint answers alike before and after that. * * The posture is the REQUESTED one (`resolveTenancyPosture()`), the source * and fail-stricter direction `resolveAuthzContext` and the `tenancy` * service's `defaultOrgId()` read: a deployment that asked for a wall is * walled here even while it runs degraded. * * `undefined` means there is nothing to stamp: `sys_share_link` carries no * tenant column in this composition, or the composition registers no * organization object at all. * * A failing record read propagates: the mint fails and nothing is written, * rather than stamping the session's organization on a link whose record's * organization is unknown. */ private resolveMintOrganization; /** * The install's organization ids, capped at two — only "0 / 1 / several" * decides. A composition that registers no organization object answers `[]` * without a read, as the engine's own probe does: the data door refuses an * unregistered name. */ private probeOrganizations; /** The tenant column of `object`, or `null` when it has none / the engine cannot say. */ private tenantFieldOf; revokeLink(idOrToken: string, context: ExecutionContext): Promise; listLinks(filter: ListShareLinksFilter, context: ExecutionContext): Promise; resolveToken(token: string, probe?: { signedInUserId?: string; recipientEmail?: string; providedPassword?: string; }): Promise; /** * [#21839] Re-hash a link's password from a legacy stored form into the * current one, after `resolveToken` verified the presented password against * it. The plaintext is the presented one, so the new hash verifies the same * password the old one did — the link keeps working, with the weak form gone. * * A refusal does not block the read (the holder proved the password and is * owed the record), and the legacy hash it leaves behind still verifies. But * the upgrade is a claimed persistence — the stored form was meant to stop * being the weak one — so a refusal is reported at `error`, once per service * instance, the way `reportUsageStampRefusal` reports the usage stamp. The * report names the link, never the password or either hash. */ private upgradeLegacyPasswordHash; /** * [#12981] Storage refused the `use_count` / `last_used_at` stamp that * `resolveToken` issues on a successful resolution. Report it as a * durability degradation — ONCE per service instance. * * ## Why this is a durability site and not "usage telemetry" * * The catch this reporter replaced said "best-effort — usage telemetry is a * nice-to-have". The persistence CLAIM, though, is not made by * `resolveToken`'s response (which carries neither counter; its two public * HTTP callers project a nine-field whitelist that excludes both). It is * made by the declarations: `sys_share_link` declares `use_count` as * "Incremented by resolveToken on every successful resolution" and * `last_used_at` as "Stamped by resolveToken; used by the dashboard to * highlight active links", both `readonly: true` — which is exactly why this * write goes out under `SYSTEM_CTX` (`isSystem` exempts statically readonly * fields). And the shipped `active_links` grid lists both columns. So after * a swallowed refusal: HTTP 200 to the holder, and an admin grid asserting a * count the system's own declaration defines — now wrong, with no signal * anywhere. AGENTS.md → "Degradation log levels", in its own words: * persisted state and runtime state disagree while nothing looks broken. * ⇒ `error`, not `warn`. Neither legal alternative applies: the failure is * handed to no caller, and a write was genuinely issued. * * ## Why ONCE, per instance, never reset * * `resolveToken` runs on EVERY public share-link request. A line per refused * stamp is the mirror-image failure the rule names — "say it once, at the * first degradation, not once per failed write" — a flood nobody reads, * which is what made the founding incident's `warn` unreadable. The latch is * per service instance (the plugin builds one) and deliberately does not * reset on a later successful stamp: a latch that reset would print on every * other request under flapping storage, i.e. the per-request flood again. * Later refusals are silent BY DESIGN, and the one line says so. * * ## The sink, and why `error` is reachable here (published-sink level ruling, commit 953a81f4a) * * `ShareLinkServiceOptions['logger']` is the `{ info?, warn, error? }` shape * — `error` optional, `warn` required and guaranteed (#9754 / #10556) — the * ruling's own option-C terminal shape, and already published. What the * ruling forbids is raising a site to `error` when that means GROWING * `error?` onto a published sink that lacks it (its option B); this sink * declares it, so nothing is widened. Spelled the `outbox-sweep.ts` way: a * conditional `error?.(…)` call against a host sink without `error` emits * nothing, so the `warn` fallback is an explicit branch. */ private reportUsageStampRefusal; /** * [#5190 / commit fc9ba76a5] Read the shared record at redemption time: the existence * probe, and — when the object declares an eligibility predicate — the row * that predicate is judged on. `null` means "do not serve". * * Read under the SYSTEM context on purpose: the questions are EXISTENCE and * the object's own POLICY, not the holder's visibility — the token is the * authorisation, and an anonymous holder has no context to read under in the * first place. * * Fails CLOSED. A probe that throws (driver blip, unregistered object) is an * unanswered question, and an unanswered question must not authorise: the * caller treats `null` exactly like revoked. Note this is the OPPOSITE * direction from the orphan sweep, which leaves rows alone when its probe * fails — and for the same principle. Neither acts on an unanswered question; * for a grant the safe direction is "deny", for a deletion it is "keep". * * [commit fc9ba76a5] `withRecord` widens the projection from `['id']` to the whole row * rather than issuing a second query, and it widens ONLY when a predicate is * there to read it: an object with no `eligibility` key keeps the exact * `id`-only probe it has always had. */ private loadRecordForServing; /** * [commit fc9ba76a5] The redemption half of the eligibility gate. * * ## It is the MINT gate, called again * * The verdict comes from `assertEligible` itself, not from a second * evaluation written to match it. Mint and redemption therefore cannot drift * on strictness (`true`, never merely truthy), on the declared-field binding, * or on which faults refuse: there is one implementation and both seams call * it. * * ## Why the answer collapses to a boolean here (ruling item 2, 2026-08-31) * * `assertEligible` throws two distinct codes on purpose — * `RECORD_NOT_ELIGIBLE` (this record does not qualify) and * `ELIGIBILITY_UNEVALUABLE` (the predicate is broken for every record until * its author fixes it) — because at MINT they reach a caller who has already * proved they can see the record, and the distinction tells them which thing * to fix. * * At REDEMPTION the caller may hold nothing but the token. Telling such a * caller "does not exist" apart from "revoked" apart from "no longer * eligible" is an existence oracle, judged here the same way the * `RESOURCE_NOT_FOUND` family is. So every refusal collapses into the one * answer revoked, expired and record-gone already give: `null` — no code, no * distinct error, nothing an anonymous holder can read a policy out of. * * The human-readable "why this link died" is not discarded; it goes to the * server-side log, which is where the ruling puts it. */ private stillEligible; /** * [#5190] Delete every `sys_share_link` row belonging to records that have * just been deleted — the cascade half, driven by `record-share-cascade.ts`. * * DELETE, not `revoked_at`: the row's whole subject is gone, so there is no * link left to keep a revocation record OF, and the issue names the growth * this table would otherwise show (`sys_share_link` only ever grows, and * Setup's link lists point at records that do not exist). It is also what * #5103 does to the sibling table for the same reason. A link the ADMIN * revoked still keeps its audit row — that path is untouched. */ revokeLinksForDeletedRecords(object: string, recordIds: readonly string[]): Promise; /** * [#5190] Remove every share link whose RECORD no longer exists. * * The `sys_share_link` twin of `SharingService.sweepOrphanedRecordShares`, * running the very same walk (`record-orphan-cleanup.ts`): keyset pages, a * scan cap that reports itself, one batched existence probe per object per * page, and rows left strictly alone when that probe fails. * * Called on `kernel:bootstrapped` (unscoped — every link that predates the * cascade, plus anything a crashed hook missed) and from the cascade's * unbounded-delete branch (scoped to one object). */ sweepOrphanedShareLinks(options?: OrphanShareSweepOptions): Promise; } /** * REST surface for ShareLinkService. * * POST /api/v1/share-links → create a link → data: link * GET /api/v1/share-links → list links → data: link[] * (?object, ?recordId, ?includeRevoked) * DELETE /api/v1/share-links/:idOrToken → revoke → data: { ok: true } * GET /api/v1/share-links/:token/resolve → resolve token → data: { record, link, redactFields, fields } * GET /api/v1/share-links/:token/messages → conversation rows → data: ai_messages[] * * /api/v1/share-links/* → every other verb and path: refused * (anonymous 401, signed-in 404) * * Every body is the declared `{ success: true, data }` / `{ success: false, * error: { code, message } }` envelope, written by the shared `sendOk` / * `sendError` (`@objectstack/types`). Read the note below on why `data` carries * the payload bare: the shapes above are the dispatcher twin's, which this module * converged onto in #3983, and the `success` flag they used to omit is why two * `client.shareLinks.*` methods were broken here. * * The resolve route is intentionally public — it's the only endpoint * holders of a token need. It does: * * 1. Look up the row by token (via ShareLinkService.resolveToken, * which gates audience / expiry / password and stamps usage). * 2. Fetch the underlying record with a SYSTEM context (so the read * bypasses normal RLS — the token IS the authorisation). * 3. Strip `redactFields` from the record before returning, and describe * the fields it still carries (`fields`: label, type, option labels, * currency and lookup display bits — `buildShareLinkResolveAnswer`). * * For browser-rendered share pages, the front-end calls this endpoint * and renders the response read-only. */ interface ShareLinkRoutesOptions { basePath?: string; /** * Derive the VERIFIED caller identity for the authenticated routes * (create / list / revoke). Production wiring (`SharingServicePlugin`) passes * a resolver backed by `resolveAuthzContext` (session / API key / OAuth). * * [Finding-2] The default is SECURE: it trusts NO identity header and yields * an anonymous context (the authenticated routes then 401). The old default * trusted `x-user-id` / `x-tenant-id`, which let a client forge attribution * and enumerate/revoke other users' links. * * [commit 8e13ca876 / #6430] It returns the FULL {@link ExecutionContext} — the whole * `resolveAuthzContext` envelope — because this module forwards it unchanged * into `createLink` / `listLinks` / `revokeLink`, every one of which * ADJUDICATES access. A resolver that rebuilds a subset here silently changes * those verdicts: `accessible_org_ids` is the `group`-posture Layer 0 wall * (ADR-0105 D2) and denies when absent. The routes' OWN decision — is this * request authenticated at all? — is the only thing they read off it * themselves, via {@link refuseAnonymous}. */ contextFromRequest?: (req: IHttpRequest) => ExecutionContext | Promise; } declare function registerShareLinkRoutes(http: IHttpServer, service: ShareLinkService, engine: SharingEngine, opts?: ShareLinkRoutesOptions): void; type Cache = { expandUsers?: Map; expandRole?: Map; /** * [#10231] Keyed `org::userId`, NOT bare `userId`. The answer is now * org-dependent (a manager across a tenant boundary is screened out), so a * user-only key would serve one caller's screened `null` to the next caller * that asked without an organization — turning a screen into a permanent * outage for every unscoped reader that happened to run second. Mirrors the * composite key {@link Cache.expandRole} has carried for the same reason. */ manager?: Map; }; interface TeamGraphOptions { engine: SharingEngine; /** Optional tenant scope; null means cross-tenant lookups. */ organizationId?: string | null; /** Optional shared cache across one evaluator pass. */ cache?: Cache; } declare class TeamGraphService implements ITeamGraphService { private readonly engine; private readonly organizationId; private readonly cache; constructor(opts: TeamGraphOptions); expandUsers(teamId: string): Promise; expandRoleUsers(roleName: string, organizationId?: string): Promise; /** * [#10231] The declared `organizationId` is HONOURED, not discarded. * * It used to be spelled `_organizationId` — accepted and dropped — while the * sibling {@link TeamGraphService.expandRoleUsers} on this same class applied * `organization_id` to its read. That asymmetry was not a considered posture: * the two methods differ only in which table backs them, and `sys_user` * (unlike `sys_member`) has no organization column to filter on. The tenancy * fact lives one table over; see {@link managerIsProvablyOutsideOrg}. * * Resolution order matches `expandRoleUsers` exactly — the argument, else the * instance's `organizationId`, else no screen at all. * * [#29792] The `sys_user` read goes through {@link readMembershipToCompletion} * as a `lookup`, the read `BusinessUnitGraphService`'s standalone fallback * uses: a read that FAILS throws and nothing is cached for it, so the next * caller on the same pass reads again. It caught any error to `null` ("no * manager") and cached that `null` under `org::userId` for the pass, so a * consumer naming "the owner's manager" dropped the manager on an outage and * kept dropping it after the read recovered. A stack that never materialises * `sys_user` has no manager on file and answers `null`. The organization * screen keeps its ruled fail-open posture ({@link managerIsProvablyOutsideOrg}). */ managerOf(userId: string, organizationId?: string): Promise; } /** * Convenience helper used by the sharing-rule evaluator + approval * engine: expand an approver / recipient descriptor of the form * `{type, value}` into a flat list of user IDs by routing to the * appropriate graph service. * * `team` → flat team members (this service). * `department` → recursive department members (delegated; requires a * {@link IBusinessUnitGraphService} instance passed in `opts.dept`). * `role` → tenant role members. * `manager` → submitter's manager via `record[value] ?? record.owner_id`. * `field` → literal user id stored in `record[value]`. * `user` → literal value. * Anything else echoes `type:value` for back-compat with legacy * substring-match approver flows. */ declare function expandPrincipal(input: { type: string; value: string; record?: any; }, ctx: { team: TeamGraphService; dept?: { expandUsers(id: string): Promise; }; organizationId?: string | null; }): Promise; type DeptCache = { descendants?: Map; expandUsers?: Map; /** * [#7807] Members of exactly one unit — a SEPARATE map from * {@link DeptCache.expandUsers} on purpose. Both are keyed by business-unit * id but answer different questions, so sharing one map would let a narrow * `business_unit` expansion be served a cached subtree answer (re-opening * the over-grant this issue closed) or vice versa, depending only on which * recipient kind happened to be evaluated first in the pass. */ unitMembers?: Map; head?: Map; }; interface BusinessUnitGraphOptions { engine: SharingEngine; /** Optional tenant scope; null means cross-tenant lookups. */ organizationId?: string | null; /** Optional shared cache across one evaluator pass. */ cache?: DeptCache; /** * Optional team-graph instance to share role / manager lookups with — * department graph proxies `managerOf` through so callers only need one * service. */ teamGraph?: TeamGraphService; } /** * Default {@link IBusinessUnitGraphService} implementation. * * Walks `sys_business_unit.parent_business_unit_id` for hierarchy and * `sys_business_unit_member` for member expansion. Treats the optional * `active` flag as a hard filter (inactive departments contribute no * members and stop BFS descent into their subtrees). * * Two DIFFERENT widths live here, and keeping them distinct is the point * (#7807): * - {@link BusinessUnitGraphService.expandUsers} — the unit PLUS every * descendant unit (the `IBusinessUnitGraphService` contract; drives the * `unit_and_subordinates` recipient). * - {@link BusinessUnitGraphService.expandUnitMembers} — exactly that one * unit's members (drives the `business_unit` recipient). * * Two tenant screens live here, and BOTH are strict equalities: * - {@link BusinessUnitGraphService.orgScope} screens `sys_business_unit`, * the ANCHOR the rule names; * - `memberScope` screens `sys_business_unit_member`, the SET BEING GRANTED, * added by #14949 and kept (a NULL organization there means unknown * tenancy, and a grant fails closed on it). * Each method carries the measurement it rests on. ⛔ They are not one method, * and ⛔ neither one gets a NULL arm — see {@link BusinessUnitGraphService.orgScope}. * * Reuses {@link TeamGraphService.managerOf} for user-level manager * lookup so callers can use this single service in approval / sharing * pipelines. */ declare class BusinessUnitGraphService implements IBusinessUnitGraphService { private readonly engine; private readonly organizationId; private readonly cache; private readonly teamGraph?; constructor(opts: BusinessUnitGraphOptions); descendants(businessUnitId: string): Promise; /** * [#29655] The ids of every active child unit of `parent`, read to * completion through the one walk the member reads share * ({@link readMembershipToCompletion}) — or a refusal. * * It read once at a 1,000-row bound and answered `[]` on any failure, and * the subtree feeds the `unit_and_subordinates` member read: a child past * the bound, or every child of a parent whose read failed, dropped out of * the subtree with its members, and the reconcilers revoked their grants. A * failed read, or a walk that cannot vouch for completion, now throws before * {@link descendants} caches anything; a stack that never materialises * `sys_business_unit` has no child units. */ private readChildUnits; /** * Is the seed unit itself active and inside the tenant scope? * * Shared by both widths so they agree on what an unusable seed is: a unit * that does not exist, sits in another organization, or carries * `active: false` contributes NOBODY — it is never merely "expanded without * its descendants". * * [#29655] A read that FAILS is not an unusable seed: it throws, so neither * width caches an answer for it. It answered `false` ("fail closed: an * unreadable unit must not grant"), but that `false` was cached as nobody * for the pass, and a business-unit graph write's recompute read it as * "this rule now reaches nobody" and revoked every grant the rule gave. A * refusal grants nothing either, and revokes nothing. A stack that never * materialises `sys_business_unit` has no usable seed and answers `false`. */ private seedIsUsable; /** * [#7807] Members of EXACTLY ONE business unit — no subtree descent. * * This is the enforcement of the `business_unit` sharing-rule recipient, * which the spec (`ShareRecipientType`), the lint red-line table and * ADR-0057 D5 all declare as "exactly one business unit's members (no * subtree)". Until #7807 the runtime routed it through * {@link BusinessUnitGraphService.expandUsers} instead, so a rule anchored * at a division silently reached every department and office beneath it — * an over-grant, and one that made the strictly-wider `unit_and_subordinates` * kind not wider at all. * * Deliberately NOT a variant of `expandUsers`: that method is the * `IBusinessUnitGraphService` contract's SUBTREE expansion ("all user ids in * `businessUnitId` or any descendant business unit") and keeps that meaning * for `unit_and_subordinates`, the `bu:` approver prefix and org rollups. * The two widths are now two methods rather than one method and two * comments. */ expandUnitMembers(businessUnitId: string): Promise; expandUsers(businessUnitId: string): Promise; /** * [#29606] The `user_id`s of every `sys_business_unit_member` row matching * `where`, read to completion through the one walk the team, role and * position reads share ({@link readMembershipToCompletion}) — or a refusal, * never a shortened or an invented empty set. * * Both widths read here. They read once at a 10,000-row bound and answered * `[]` on any failure, and the set feeds sharing GRANTS that the reconcilers * diff against it: a member past the bound lost the grant, and a failed read * revoked every member's. A failed read, or a walk that cannot vouch for * completion, now throws; a stack that never materialises the object has no * members through it and answers `[]`. */ private readMembers; /** * The unit's head (`manager_user_id`), or `null` when the unit has none. * * [#29713] Read through the walk {@link seedIsUsable} uses * ({@link readMembershipToCompletion}), so a read that FAILS throws and * nothing is cached for it. It caught any error to `null` and cached that * for the pass: a consumer naming a unit's head would have dropped the head * on an outage, and kept dropping it after the read recovered. A unit that * does not exist, sits in another organization or names no head answers * `null`, and so does a stack that never materialises `sys_business_unit`. */ headOf(businessUnitId: string): Promise; /** * [#10231] Honours the declared `organizationId` on BOTH limbs. * * The delegating limb always did, by construction — it hands the argument to * {@link TeamGraphService.managerOf}, which now screens. The STANDALONE * fallback below did not, and that gap was the whole risk: the fallback is * reached exactly when no `teamGraph` was supplied, so a caller could get the * unscreened answer from the same method name purely by how the service * happened to be constructed. A screen that depends on a constructor option * is not a screen. * * [#29713] The standalone fallback's `sys_user` read goes through * {@link readMembershipToCompletion}: a read that FAILS throws, where it * answered `null` ("no manager"); a stack that never materialises * `sys_user` has no manager on file and answers `null`. The fallback caches * nothing, before or after. The organization screen keeps its ruled * fail-open posture ({@link managerIsProvablyOutsideOrg}), and the * delegating limb is {@link TeamGraphService.managerOf}'s own answer. * [#29792] That answer now refuses on a failed read too, so both limbs * agree on the failure as well as on the screen. */ managerOf(userId: string, organizationId?: string): Promise; /** * [v18 org-ownership decision · PR #14976 · D8] The UNIT screen — STRICT equality, as 17.2.0 ships it. * * ⛔ Do NOT re-add a NULL arm here. #14949 briefly made this `$or` the rule's * own organization together with a second arm matching an unset * `organization_id`, so that an org-stamped rule could name a seeded * (org-less) `sys_business_unit` row — the shape * `SqlDriver.applyTenantScope` writes. That was reverted before 17.3 was cut on * the maintainer's ruling: it re-implements, a second time and in a second * place, the very predicate `SqlDriver.applyTenantScope` already owns — the * duplication the v18 org-ownership decision (PR #14976) exists to retire (#10103 cause 1) — and it had not * shipped, so reverting cost nothing while shipping it would have owed v18 a * breaking change plus a migration. * * #14547 therefore REMAINS as in 17.2.0: an org-stamped rule naming a seeded * unit expands to nobody. That is a real defect and it is not fixed here. * (#14547 is CLOSED as completed — by #14949, whose unit half this reverts — * so its tracker state no longer matches the runtime; reopening it is the * maintainer's call.) * Its root cause is the seed loader's `sys_` exemption plus first-boot * ordering, and it is fixed STRUCTURALLY on the v18 line by the v18 org-ownership decision (PR #14976), C1 — * the Default Organization exists before application seed datasets load, and * the seed loader stamps `sys_business_unit` seeds — so the row this screen * reads carries an organization and no screen has to special-case it. * `SharingRuleService.warnOnEmptyUnitExpansion` (#14949's other half, kept) * is what keeps the 17.x symptom LOUD instead of silent. */ private orgScope; /** * [#14949, KEPT] The MEMBER screen — STRICT equality. * * ⚠️ This half is NOT part of the the v18 org-ownership decision (PR #14976), D8 revert that restored * {@link orgScope} to a strict equality. It is kept, and it is load-bearing * on its own. * * ## Why the member rows are screened at all * * Both member reads used to carry no organization predicate whatever, under * a system context that carries no tenant either — so the query was * completely unscoped by organization: any unit an org-stamped rule could * see handed back EVERY tenant's membership rows hanging off it, and tenant * A's rule materialised real `sys_record_share` rows for tenant B's users. * A strict {@link orgScope} narrows which units are reachable but does not * close that: `sys_business_unit_member` rows of another organization sit on * org-stamped units too, and those units are exactly the visible ones. This * screen is the only thing that answers there. * * ## Why STRICT * * A member row is part of the SET BEING GRANTED — enumerated by the platform * rather than named by anyone — and its organization is the only tenancy * fact it carries. * * Which write paths stamp `sys_business_unit_member.organization_id`, on * this tree since ADR-0131: * * - REST / session writes — the engine threads the caller's `tenantId` * into `DriverOptions` and `SqlDriver.injectTenantOnInsert` fills the * injected `organization_id` column; * - SEED replay — the seed loader stamps every seed row with the resolved * organization, platform namespaces included (C1); * - ELEVATED (system-context) inserts — an organization-less one takes the * derived organization or is refused (D9, * `Engine.resolveSystemInsertOrganization`), judged by the object's * tenant column alone: no per-table exemption is left (D13); * - `driver-memory` / `driver-mongodb` never stamp a tenant column at all * (both refuse to boot multi-tenant, which is what makes that safe). * * What can still hold a NULL is residue written before 18.0 (the ownership * ceremony attributes it) or a lean composition that registers no * organization object. Either way a NULL organization on a member row does * not mean "platform-global", it means UNKNOWN TENANCY — and admitting an identity of unknown tenancy into * an org-stamped grant is the same cross-tenant over-grant, arriving by the * other door. A grant fails CLOSED: unknown tenancy is not a member here. * The sibling recipient widths already read their membership rows this way — * `TeamGraphService` screens `sys_team_member` and `PositionGraphService` * screens `sys_user_position`, both with a strict equality. * * ⚠️ The cost is declared, not hidden: a rule stamped with an organization * whose memberships carry no organization expands to nobody even on a unit * it can see. * That outcome is LOUD — `SharingRuleService.expandRecipient` warns once per * rule, naming the rule and the unit — where before it was silent, and the * repair is to stamp the membership rows rather than to widen this screen. * * ⛔ Do not "unify" this with {@link orgScope}. One method serving both * screens re-opens whichever half it does not implement. */ private memberScope; } /** * [#4779] Resolve WHICH rows a write touched, so sharing-rule recompute is * driven by the write's row SET instead of by a single record id. * * ## The defect this exists to close * * `bindRuleHooks` used to open its handler with * * ```ts * const id = String(data?.id ?? ctx?.input?.id ?? ''); * if (!id) return; // ← every predicate write, silently * ``` * * and `ObjectQL.update()` — AT THE TIME — only populated `input.id` for a * scalar `where.id`. ([#6966] That is no longer how a predicate write is * dispatched: since #5038/#5574 both phases fire once per matched row with * `input.id` bound, so the guard above would now pass per row rather than skip. * The defect it caused is unchanged history; the mechanism sentence is not * current, and is kept only to explain what was fixed.) * A predicate (`multi: true`) update therefore recomputed NOTHING: an admin * could bulk-move a thousand records out of a sharing rule's criteria and * every `sys_record_share` row the rule had issued stayed in the table, * answering. That is a fail-open on the AUTHORIZATION side — the same family * as #4757 (`sys_attachment`) and #4778 (approval locks), just better hidden, * because the stale grant looks exactly like a legitimate one. * * ## The two answers, and why there are exactly two * * A recompute needs the affected rows one at a time (`evaluateAllForRecord` * runs a criteria probe, a recipient expansion and a grant diff PER ROW), so * it needs a bound. A revoke does not: `sys_record_share` can be scoped by * `object_name` in a single set-based delete. The maintainer's ruling on this * issue (2026-08-04, option C) turns that asymmetry into the design — * **over-granting is a security incident, under-granting is an availability * wobble** — so the safety half is always synchronous and complete, and only * the expensive restoration half is deferred: * * - {@link AffectedRows} `kind: 'rows'` — the write's row set is known and * within {@link RULE_RECOMPUTE_ROW_CAP}. `afterUpdate` recomputes each row * synchronously, which covers BOTH directions (a row bulk-updated INTO a * rule's criteria is granted, one updated OUT of it is revoked) because * `reconcileForRecord` is diff-based. * - {@link AffectedRows} `kind: 'unbounded'` — the row set could not be * bounded. Every rule-sourced grant on the object is revoked synchronously * (one set-based statement, no cap to exceed), then re-granted * asynchronously by reconciling the object's rules. * * The write is never refused (that was option A, the fallback): refusing would * make an internal recompute bound into a business-visible limit on how many * rows an admin may update, reported by a subsystem they never configured. * * ### Why the unbounded revoke is object-wide and not `record_id: {$in: […]}` * * Scoping the revoke to the affected ids would spare the untouched rows their * brief outage — but it needs the full id list, and needing the full id list * is exactly the bound this branch exists because we could not meet. A scoped * revoke would therefore re-import the cap into the one operation that is * free of it. The wider blast radius is deliberate and is in the safe * direction: the extra rows lose access for as long as the re-grant takes, * and no row keeps access it should have lost. * * ## Superset, never subset * * The predicate is resolved with SYSTEM_CTX, while the write itself also * carries the sharing middleware's writable-rows filter (`buildWriteFilter`) * composed into its AST. So the resolved set is a SUPERSET of the rows the * write actually changed. That is the correct direction and is load-bearing: * `evaluateAllForRecord` is idempotent, so recomputing an untouched row costs * a query and changes nothing, whereas MISSING a changed row is the defect. */ /** * Rows a single write may recompute synchronously before the recompute is * deferred. 1000 mirrors the fail-closed bound the sibling authorization * guards already chose — `MULTI_DELETE_AUTH_LIMIT` in service-storage's * attachment hooks (#4757) and #4630's `sys_comment` resolve — so the three * guards in this family answer "how many rows may one write drag through a * per-row pass?" with one number. */ declare const RULE_RECOMPUTE_ROW_CAP = 1000; /** Why a write's row set could not be enumerated. */ type UnboundedReason = /** `multi: true` with no `where` at all — the AST covers the whole table. */ 'no-predicate' /** The predicate matches more rows than {@link RULE_RECOMPUTE_ROW_CAP}. */ | 'over-cap' /** The resolve query itself failed; nothing at all is known about the set. */ | 'resolve-failed'; /** The row set a write touched, as far as it can be known before it lands. */ type AffectedRows = { readonly kind: 'rows'; readonly ids: readonly string[]; } | { readonly kind: 'unbounded'; readonly reason: UnboundedReason; readonly detail?: string; }; /** The slice of the ObjectQL engine this module reads. */ interface RecomputeEngine { find(object: string, options?: any): Promise; } interface MinimalLogger$2 { info?: (msg: any, ...rest: any[]) => void; /** * The GUARANTEED fallback channel (#9754). `error` stays optional — hosts do * inject reduced sinks — so `warn` is where a durability report lands when * `error` is absent, and a fallback that may itself be missing is not a * fallback. Call sites keep the `logger?.warn?.(…)` spelling as the backstop * for hosts the TYPE cannot reach; `SweepLogger` in plugin-email's * `outbox-sweep.ts` carries the full reasoning and the measurement. */ warn: (msg: any, ...rest: any[]) => void; error?: (msg: any, ...rest: any[]) => void; } /** * Ids named directly by a hook's `input.id`. * * `delete()` accepts `{ id: { $in: [...] } }`, so a "single id" input can name * many rows — the same shape `asIdList` handles in service-storage's * attachment guard (#4757). Anything else (a predicate operator, an object) * names no primary key and returns `null` so the caller falls through to the * predicate resolve. */ declare function idsFromHookInput(id: unknown): string[] | null; /** * Resolve the rows a `beforeUpdate` / `beforeDelete` context is about to * change, bounded by {@link RULE_RECOMPUTE_ROW_CAP}. * * Called from a BEFORE hook on purpose: an update that moves rows out of a * rule's criteria makes them unfindable by that same predicate the moment it * lands, and a delete removes them outright. The `after` hook then reads the * stashed answer (the engine reuses one `HookContext` instance across the * before/after pair of a write, which is the seam `primary-bu-projection.ts` * already relies on). */ declare function resolveAffectedRows(engine: RecomputeEngine, objectName: string, hookCtx: any, logger?: MinimalLogger$2): Promise; /** * [#4779] Shared-`HookContext` key holding the row set the write is about to * change, stashed by the `before` hook for the `after` hook to consume. * * The stash is necessary, not a convenience: an update that moves rows OUT of * a rule's criteria makes them unfindable by the write's own predicate the * instant it lands, and a delete removes them outright — so `afterUpdate` / * `afterDelete` are structurally too late to ask "which rows was this?". * * [#5103] Lives HERE, next to the resolver, rather than in `rule-hooks.ts` * where it started: two independent hook packages now need the same answer for * the same write (the rule recompute, and the record-delete share cascade), * and each resolving it separately would double the predicate query on every * bulk write for no gain — the row set is a property of the WRITE, not of * either subscriber. * * ## [#6966] Where the stash actually lives, and why that had to change * * This used to say: "`ObjectQL.update()` / `.delete()` reuse ONE `HookContext` * instance across each before/after pair (they mutate `ctx.event` in place)." * That stopped being true for a predicate (`multi: true`) write when #5574 * made the `before*` phase dispatch PER ROW — each row gets a freshly built * context, so a stash written on it died with that row and the `after*` phase * found nothing. `readAffectedRows` then answered `unbounded/resolve-failed`, * and both subscribers took their safe branch: every bulk update or delete on * a ruled object revoked ALL of that object's rule grants and queued a full * asynchronous re-grant — once per matched row. Safe (the ruling's * "over-granting is an incident, under-granting is a wobble" direction), but * a large and silent behaviour change nobody asked for. * * The seam is now the engine's own: `HookContext.dispatch.scope` is one object * shared by every dispatch of one caller write, across both phases. See * {@link stashHost} for the fallback that keeps hand-built contexts working. */ declare const AFFECTED_ROWS_STASH_KEY = "__sharingAffectedRows"; /** * Resolve (or reuse) the row set a `before` hook's write is about to change and * park it on the shared `HookContext`. * * **Reuse is the point.** The first plugin-sharing `before` hook to run on a * write resolves; every later one reads that answer back. Recomputing would be * wasteful and — worse — could disagree, because a resolve issued after an * earlier hook has already changed something is answering a different question. * * Never throws: `resolveAffectedRows` already fails safe to `unbounded`, and * this adds the belt for a genuinely unexpected throw. "Unknown" must never * degrade to "no rows" — that is the direction that silently skips cleanup. * * ## [#6966] The per-row dispatch does not resolve at all — it accumulates * * On a predicate write the engine has ALREADY matched the rows and dispatches * this hook once per row with `input.id` bound, so re-asking the predicate * would be both wasteful and wrong: `resolveAffectedRows` short-circuits on a * bound `input.id` (step 1), so the "reuse" branch above would have frozen the * whole batch's answer to the FIRST row's id — under-revoking every other row, * which is the fail-OPEN direction this module exists to avoid. Rows are * therefore unioned as they arrive, and the cap is applied to the union. */ declare function stashAffectedRows(engine: RecomputeEngine | { find?: RecomputeEngine['find']; }, objectName: string, hookCtx: any, logger?: MinimalLogger$2): Promise; /** * What an `after` hook should act on. A missing stash means no `before` hook of * ours ran for this write, which is not "nothing changed" — it is "we do not * know", and it reads as `unbounded` so the caller takes its safe branch. * * [#6966] The per-row union is materialised HERE rather than on every `before` * dispatch, so N rows × 2 subscribers cost N set inserts instead of 2N array * copies. The cap is re-applied to the union: a batch the engine's own ceiling * lets through can still exceed what a per-row recompute is willing to do, and * that verdict must be the same `over-cap` the predicate resolver returns. */ declare function readAffectedRows(hookCtx: any): AffectedRows; /** * The asynchronous half of the ruling: re-grant after the synchronous revoke. * * Deliberately in-process and dependency-free rather than routed through * `IJobService`. The job service is an OPTIONAL capability (`serve.ts`'s * `CAPABILITY_PROVIDERS` lists `job` and `sharing` independently, and * plugin-sharing does not depend on it), so routing through it would make the * re-grant happen in some compositions and silently not in others — a * declared-but-not-enforced guarantee, which is the shape AGENTS.md PD #10 * exists to forbid. An in-process queue is present in every composition that * has the hooks at all. * * Durability comes from the layer that already provides it: the plugin's * `kernel:bootstrapped` pass (`backfillRuleGrants`) reconciles EVERY rule on * every boot and `evaluateRule` is idempotent, so a re-grant lost to a crash * is repaired by the next start. That is the compensating executor this * design leans on; nothing here needs to survive the process. * * Tasks are serialized (never concurrent) so a bulk write cannot fan out into * hundreds of parallel criteria queries. */ declare class RuleRegrantQueue { private chain; private depth; /** Tasks enqueued and not yet settled. */ get pending(): number; /** * Queue a re-grant. Returns immediately — the caller is a write hook and * must not wait. Failures are logged, never rethrown: an unhandled rejection * from a detached task would take down the host, and the failure mode here * is under-sharing, which the next boot repairs. */ enqueue(task: () => Promise, onError?: (err: unknown) => void): void; /** * Resolves once every task enqueued BEFORE this call has settled. The seam * tests use to observe the asynchronous half deterministically; production * code never awaits it. */ whenIdle(): Promise; } declare const SHARING_RULE_HOOK_PACKAGE = "plugin-sharing:rules"; /** * Package id for the `sys_sharing_rule` criteria guard (#3896). Separate from * both packages above so neither rebind can unregister it. */ declare const RULE_CRITERIA_GUARD_PACKAGE = "plugin-sharing:rule-criteria-guard"; interface MinimalEngine$4 { registerHook(event: string, handler: (ctx: any) => any | Promise, options?: { object?: string | string[]; priority?: number; packageId?: string; }): void; unregisterHooksByPackage(packageId: string): number; /** * [#4779] Needed to resolve a predicate write's row set in the `before` * hook. Optional so a caller holding only the hook-registry surface still * type-checks; absent, every predicate write is treated as unbounded — the * safe direction (revoke everything, re-grant asynchronously), never the * silent no-op this issue was filed for. */ find?(object: string, options?: any): Promise; } interface MinimalLogger$1 { info?: (msg: any, ...rest: any[]) => void; /** * Non-optional because this logger is FORWARDED into `stashAffectedRowsOnCtx` * (bulk-recompute.ts), whose sink guarantees a `warn` channel under #9754. A * `warn?` here would re-open the silence one module downstream of the place it * was closed — the forwarding seam is exactly where a guarantee gets lost, and * `tsc` reported it the moment the callee's contract tightened (#10556). * * This shape declares no `error` at all, so it is not itself in the * optional-error-sink population; what it must not do is hand a * silence-permitting value to something that promises otherwise. */ warn: (msg: any, ...rest: any[]) => void; } /** * The in-process executor for the asynchronous re-grant half of #4779. * * Module-scoped on purpose: `bindRuleHooks` is called again on every rule * rebind (`bindRuleRebindTriggers` unbinds and re-binds the whole package on * each `sys_sharing_rule` write), and a per-call queue would let a rebind * orphan re-grants that were still in flight. One queue per process keeps the * chain — and therefore the serialization guarantee — continuous across * rebinds. Exported for tests to await; production code never does. */ declare const ruleRegrantQueue: RuleRegrantQueue; /** * Bind the sharing-rule recompute hooks for every distinct object_name in * `rules`. Everything runs with SYSTEM_CTX so the evaluator can write * `sys_record_share` without being blocked by its own enforcement. * * Five hooks per object: * * - `afterInsert` — recompute the inserted row (unchanged behaviour). * - `beforeUpdate` / `beforeDelete` — resolve the affected row set and stash * it for the `after` half (`AFFECTED_ROWS_STASH_KEY`). Must be * `before`: the write is what makes those rows unfindable. Runs for system * writes too, and has to: `afterUpdate` now materialises for them, and with * no stash `readAffectedRows` answers `unbounded` — which would send every * single-row system update down the object-wide revoke branch below. * [#6966] The stash rides `HookContext.dispatch.scope`, the engine's * per-write scratch — NOT the context object. A predicate write dispatches * `before*` per row (#5574) and builds a fresh context for each, so the * older "the engine reuses one HookContext across the pair" assumption held * only for single-id writes and silently dropped every bulk write's stash. * - `afterUpdate` — recompute per row when the set is bounded (which grants * AND revokes, so a bulk update INTO a rule's criteria is covered as well * as one out of it); otherwise revoke the object's rule grants set-based * and queue the re-grant. * - `afterDelete` — revoke the deleted rows' rule grants. Nothing can * re-grant them: `evaluateRule` iterates records that still exist, so a * grant whose record is gone is unreachable by every reconcile path and * outlives restarts (the orphan noted at the tail of #4779). * * [#5103] This package covers `source: 'rule'` rows only, and only on objects * that HAVE a rule — which left a manual share on a deleted record orphaned * forever. The general invariant ("the record is gone, so no share on it can * be valid") is not the rule subsystem's to enforce and now lives in * `record-share-cascade.ts`, bound on every sharing-capable object regardless * of rules. The two are deliberately independent: this one keeps working if * the cascade is unbound, and its unbounded-delete branch (revoke the object's * rule grants, re-grant asynchronously) is a rule-only trade the cascade must * never make on manual rows. * * [#4779] `if (!id) return` — the line these hooks used to open with — is * gone. It read as a cheap guard and was in fact the whole defect: predicate * (`multi: true`) writes never populate `input.id`, so every bulk write * skipped recompute entirely and left stale `sys_record_share` rows granting * access the rules no longer imply. * * [#13533] GRANT MATERIALISATION no longer asks whether the writer is the * platform. The `afterInsert` / `afterUpdate` skips on `session.isSystem` — and * the `before*` stash skip they depended on — are gone, so a system write * materialises exactly as a user write does. See the retirement note at the top * of this file for the ruling and the specimen. `afterDelete` still skips, on * its own separate grounds, spelled out at that hook. * * Caller is responsible for invoking {@link unbindAllRuleHooks} before * re-binding when the rule set changes. */ declare function bindRuleHooks(engine: MinimalEngine$4, service: SharingRuleService, rules: SharingRuleRow[], logger?: MinimalLogger$1): void; declare function unbindAllRuleHooks(engine: MinimalEngine$4): number; /** * [#3896] Reject `sys_sharing_rule` writes whose criteria would share every * record of the target object. * * `SharingRuleService.defineRule` gates the programmatic + REST * (`POST {basePath}/sharing/rules`) entries, but authoring a rule in Setup is * a plain data INSERT on this table — it never reaches that method. Without * this hook the UI path keeps producing rules the evaluator now refuses to * act on: safe, but silently inert, which is its own authoring trap * (ADR-0078). Failing the write instead tells the admin the criteria is * missing while they are still looking at the form. * * LAYERING since ADR-0113: the field now declares `required: true` (write * contract), so the record validator already rejects a missing/null criteria * on insert and an explicit null-out on update — with the same non-regression * update semantics this hook pioneered (only a patch that SUPPLIES * `criteria_json` is checked; a legacy null row can still be `active: false`d). * This hook remains for what `required` cannot express: the NON-null * match-all shapes — `'{}'`, an all-vacuous `$and`/`$or`, unparsable JSON, a * bare scalar — where `isMatchAllCriteria` is the judge and the rejection * names the offending shape instead of saying "required". Defense in depth on * the null cases costs one property check and keeps this guard's better * message on paths where hooks fire before validation. */ declare function bindRuleCriteriaGuard(engine: MinimalEngine$4, logger?: MinimalLogger$1): void; /** * The one `{ info?, warn? }` logger shape this package's fire-and-forget * projection modules share (#10692). * * ## Why this file exists * * `plugin-sharing` declared SEVEN module-local interfaces all named * `MinimalLogger`. Duplication was not the defect; DIVERGENCE under one name * was. When #10556 made `bulk-recompute.ts`'s `warn` non-optional, `tsc` * reported the two modules that forward into it with the unreadable form: * * Type 'MinimalLogger' is not assignable to type 'MinimalLogger'. * Two different types with this name exist, but they are unrelated. * * A shared declaration removes that seam for the modules that can share one, * and the DISTINCT NAME is deliberate: when a future forwarding edge is added * between this shape and a module that still declares its own, the diagnostic * names two different types instead of the same one twice. * * ## Why the members are spelled precisely, and must stay that way * * The members take a `string` message and an optional `Record` of string keys * to `any` values as structured metadata — NOT `(msg: any, ...rest: any[])`. * * This shape first shipped with that loose spelling, carried over from the two * byte-identical declarations it replaced. `sharing-rule-provenance.ts` was * left out of it precisely BECAUSE its own declaration was stricter, and * folding it onto the loose spelling would have deleted real checking. That * open question was ruled the other way (#10692): the shared contract takes the * PRECISE spelling and the third module joins it. * * ⛔ Do not loosen these members back to `any` to make some new caller fit. * `(msg: any, ...rest: any[])` documents nothing and catches nothing — the same * complaint this package's card levels at bare `Function`. All call sites on * this shape already pass exactly a message plus an optional metadata object; * a caller that does not fit is the thing to look at, not this declaration. * * ## ⛔ Why this shape declares no `error`, and must not grow one * * `check:optional-error-sink` (#9754) draws its population STRUCTURALLY: a sink * is in scope only if it DECLARES an `error` member. A shape with no `error` is * out of the population — there is no optional fallback for the rule to * guarantee. Adding `error?` here would enrol every module that uses this type * into that gate's scope at once, and that ledger is being paid DOWN * deliberately (#10556: 15 → 3 → 2, shrink-only). Enlarging it is a contract * decision for the #10556 family, never a side effect of de-duplication. * * ## ⛔ Why the other four modules do NOT use this type * * They are not the same contract, and collapsing them would change meaning: * * - `bulk-recompute.ts` — `{ info?, warn, error? }`. It IS the guaranteed sink; * its `warn` is required and it declares `error?`, so it is in the gate's * population by design. * - `rule-hooks.ts`, `record-share-cascade.ts` — `{ info?, warn }`. Their `warn` * is required because they FORWARD into `bulk-recompute.ts`'s guaranteed sink; * a `warn?` there re-opens the silence one module downstream of where #10556 * closed it. * - `record-orphan-cleanup.ts` — `{ info?, warn }`. Its `warn` is required * because the sweep's every report lands there (#10692, ruled 2026-08-25); * this type must stay optional-`warn` because its consumers are * fire-and-forget projections whose reports are advisory. The bare-`Function` * spelling it once carried could not tighten until the two producers feeding * it — `SharingServiceOptions['logger']` and `ShareLinkServiceOptions * ['logger']` — dropped bare `Function` (#10556 limb (c), PR #11856; * `Function` is assignable to no concrete signature). Requiredness of every * required `warn` in this package's public options types and in the sweep is * pinned by `logger-required-warn.pin.ts`. */ interface OptionalSharingLogger { info?: (msg: string, meta?: Record) => void; warn?: (msg: string, meta?: Record) => void; } /** * [#7729] Recompute sharing-rule grants when the BUSINESS-UNIT GRAPH moves. * * ## The defect * * `bindRuleHooks` registers its recompute hooks scoped to each rule's own * `object_name`, and nothing anywhere registered one on `sys_business_unit` or * `sys_business_unit_member`. So the materialised `sys_record_share` grants of * a rule whose recipient resolves through the BU tree only moved when the * SHARED RECORD was next written — a re-parent or a membership edit moved * nothing at all. * * The measured matrix on the QA run this was extracted from: * `inSubtree=1`, `reparentedOut(no touch)=1`, `reparentedOut(touched)=0`, * `restored(no touch)=0`, `restored(touched)=1`. Read the second column: after * a business unit is moved OUT of a shared subtree its members KEEP read * access, and keep it until someone happens to write the shared record. That * is a revocation with no bound in time, which is the security half of this * issue; the grant direction (`restored(no touch)=0`) is the availability half * and moves the same way here. * * ## Which recipient kinds this covers, measured rather than assumed * * `SharingRuleService.expandRecipient` is the one switch that decides, and it * reads the BU tree for TWO of the seven kinds: * * | recipient_type | resolver | reads the BU tree | * |-------------------------|---------------------------------------------|---| * | `user` | the literal id | no | * | `team` | `TeamGraphService` (`sys_team_member`, `sys_member`, `sys_user`) | no | * | `business_unit` | `BusinessUnitGraphService.expandUnitMembers` | YES | * | `position` | `PositionGraphService` (`sys_user_position`, `sys_member`) | no | * | `unit_and_subordinates` | `BusinessUnitGraphService.expandUsers` | YES | * | `queue` | the ownership-queue service's expansion of the queue's member specifications (ADR-0142 D2) | only when the queue has a `business_unit` or `unit_and_subordinates` member | * | `field` | the matched record's own user column, per record (#15072; `expandRecipientForRecord`, never rule-wide) | no | * * `business_unit` stays in that set after #7807 narrowed it to exactly one * unit's members. The divergence this file originally noted — `expandRecipient` * routing it through the SAME subtree `expandUsers` call as * `unit_and_subordinates`, against a spec declaring it as "exactly one business * unit's members (no subtree)" — was resolved in favour of the declaration, and * membership here was correct under either reading for the reason that fix * confirmed: a unit-only expansion still reads `sys_business_unit` for its own * `active` flag and tenant scope, and `sys_business_unit_member` for its * members. What changed is the blast radius, not the coverage — a re-parent no * longer moves a `business_unit` rule's recipients (its anchor's own membership * is what moves them), while a deactivation or a membership edit still does. * * Everything else is deliberately NOT recomputed. That exclusion is a * requirement, not an optimisation: a fix that recomputed every rule on every * BU write would close the security hole and replace it with a load problem — * see {@link BU_TREE_RECIPIENT_TYPES}. The `position` and `team` kinds are * recomputed by writes to THEIR membership tables instead, per affected user — * `recipient-membership-recompute.ts`. * * ## The design: synchronous revoke, asynchronous re-grant * * This is the #4779 ruling applied on a different axis, deliberately reusing * its seam rather than inventing a second one — the safety half runs to * completion before the write returns, the expensive restoration half is * queued on the shared {@link ruleRegrantQueue}: * * - **Revoke (synchronous, complete).** * `revokeRuleGrantsForRetiredRecipients` re-expands the rule's recipients * and deletes the grants of everyone who dropped out, set-based. Cost is * one grant query + one subtree walk + one member query + a chunked delete * PER AFFECTED RULE — no record scan, so it does not grow with how many * records the rule matches. A BU moved out of a shared subtree has lost its * access by the time the re-parent returns: no window. * - **Re-grant (asynchronous, coalesced).** A BU moved INTO a shared subtree * needs new grants for up to (matched records × new members) pairs, which * is exactly the fan-out that must not sit on a write path. It is queued as * a full `evaluateRule` pass, serialized behind every other queued * re-grant. Under-granting for the length of that queue is the wobble the * ruling already accepts, and `kernel:bootstrapped`'s backfill repairs a * re-grant lost to a crash. * * ## What this costs on a bulk BU write, stated rather than hidden * * A predicate write over the BU tree dispatches these hooks once per matched * row, and the synchronous half runs on EVERY dispatch — it is not memoised * per write, and must not be. Memoising it would mean judging the whole batch * from the tree as it looked at the first row, which re-opens the hole for * rows 2..N (their units would still read as in-subtree). The revoke is * idempotent and converges, so the repeats are wasted work rather than wrong * work, and each repeat is bounded by the per-rule cost above with no record * scan in it. The `granted.size === 0` short-circuit inside the service * absorbs the common case (nothing granted yet → nothing to walk). The * asynchronous half IS coalesced per rule, so a thousand-row import collapses * into one re-grant pass per rule instead of a thousand. */ /** * Package id for the BU-graph recompute hooks. * * Distinct from `SHARING_RULE_HOOK_PACKAGE` for the same reason * `RULE_REBIND_TRIGGER_PACKAGE` is: `unbindAllRuleHooks` runs on every rule * rebind, and these hooks must survive it. They carry no rule snapshot to go * stale — the handler reads `listRules()` live — so there is nothing for a * rebind to refresh here. */ declare const BU_TREE_RECOMPUTE_PACKAGE = "plugin-sharing:bu-tree-recompute"; /** * The recipient kinds whose expansion reads the business-unit graph. * * This set is the non-regression guarantee. A rule recipient that never reads * the BU tree (`user` / `team` / `position` / `field`) is not recomputed by a * BU write at all — not more cheaply, not at all — so a deployment whose rules * are all `user`-recipient pays one `sys_sharing_rule` read per BU write and * nothing else. A `queue` recipient is decided per rule, by its queue's * members ({@link QueueReadsBusinessUnits}), so it is not in this set. */ declare const BU_TREE_RECIPIENT_TYPES: ReadonlySet; /** The two tables whose writes can move a BU-tree recipient expansion. */ declare const BU_GRAPH_OBJECTS: readonly ["sys_business_unit", "sys_business_unit_member"]; interface MinimalEngine$3 { registerHook(event: string, handler: (ctx: any) => any | Promise, options?: { object?: string | string[]; priority?: number; packageId?: string; }): void; unregisterHooksByPackage(packageId: string): number; } /** * [ADR-0142 D2] Does the queue a `queue`-recipient rule names read the * business-unit graph — has it a `business_unit` or `unit_and_subordinates` * member? Answered by the ownership-queue service; absent, no queue rule is * recomputed by a BU write. */ type QueueReadsBusinessUnits = (rule: SharingRuleRow) => Promise; /** The slice of {@link SharingRuleService} this module drives. */ interface BuTreeRecomputeRuleService { listRules(filter: { object?: string; activeOnly?: boolean; }, context: any): Promise; revokeRuleGrantsForRetiredRecipients(rule: SharingRuleRow): Promise; evaluateRule(idOrName: string, context: any): Promise; } /** Test seam: are any coalesced re-grants outstanding? */ declare function pendingBuTreeRegrants(): number; /** * Could this write have changed a BU-tree recipient expansion? * * Inserts and deletes always could. An update is judged on the columns its * patch carries, and anything unreadable (a non-object payload, an absent one) * answers `true` — "we cannot tell" must never collapse into "nothing * changed", which is the direction that silently skips the revocation. */ declare function writeCanChangeExpansion(objectName: string, event: string, hookCtx: any): boolean; /** * Bind the BU-graph recompute hooks. * * Six hooks: `afterInsert` / `afterUpdate` / `afterDelete` on each of * {@link BU_GRAPH_OBJECTS}. * * **`after`, not `before`** — unlike the row-set stash in `bulk-recompute.ts`, * nothing here needs the pre-write state. What the revoke needs is the tree as * it is NOW, and the write is what makes that true. * * **System writes are NOT skipped**, and this file's hooks never carried an * `isSystem` branch to skip them with. `bindRuleHooks` no longer skips them * either: its `afterInsert` / `afterUpdate` materialisation skips, and the * `before*` stash skip that fed them, were removed by the 2026-08-31 ruling on * #13533, so a system write there materialises grants exactly as a user write * does — the one skip it keeps is `afterDelete` revocation, which * `record-share-cascade.ts` delivers instead. Here the payload is REVOCATION, * and the realistic production trigger for a re-parent is an HRIS or directory * sync — a system write. Skipping those would leave the hole open on the very * path most likely to open it. `primary-bu-projection.ts` reached the same * conclusion for the same table. */ declare function bindBusinessUnitTreeRecompute(engine: MinimalEngine$3, service: BuTreeRecomputeRuleService, logger?: OptionalSharingLogger, queueReadsBusinessUnits?: QueueReadsBusinessUnits): void; declare function unbindBusinessUnitTreeRecompute(engine: MinimalEngine$3): number; /** * [#5103 / #5190] The record-delete → share-revoke cascade. * * ## The invariant * * A `sys_record_share` row says "principal P has level L on (object O, record * R)". Delete R and the row cannot describe any access at all — there is * nothing left to have access to. So: **record gone ⇒ every share on it gone, * whatever its `source`.** * * ## What was missing * * #4779 (PR #5102) bound `afterDelete` inside the sharing-RULE package, and * two conditions fenced it in: * * 1. it revokes only `source: 'rule'` rows — correct for that package (rule * recompute must never touch a human's manual decision, which #5102 * pinned and this module does not regress: recompute still only ever sees * rule rows); * 2. it binds only on objects that appear in `sys_sharing_rule` — so an * object using nothing but manual shares had no delete hook at all. * * Together: **manual share + record delete = a permanent orphan, on every * object.** Harmless only while record ids are never reused — an assumption * nothing in the platform enforces. Recycle an id (custom primary keys, an * import that preserves ids) and the new record inherits the dead one's * recipients. * * ## The binding model, and why there is nothing to rebind * * The maintainer ruling (2026-08-04) chose option A: plugin-sharing binds * `afterDelete` on all sharing-enabled objects, "sharing-enabled" decided at * runtime by `sharingModel` METADATA rather than by the rules table — which * the ruling notes is a different enumeration model from the rule hooks', and * asks for metadata hot-updates to be handled if a seam allows it. * * A seam does, and it is better than a rebind: bind ONE hook pair with no * object filter and evaluate the metadata predicate **inside the handler**, at * delete time. An object that gains `sharingModel` an hour after boot is * covered on its very next delete, because the enumeration never happened — * there is no bound set to go stale, and therefore no rebind to forget. (The * same reason `plugin-pinyin-search` binds its companion hooks globally with a * cheap early-out instead of enumerating provisioned objects.) The predicate * is `objectCanCarryRecordShares`, one exported function, tested in isolation. * * Cost of the global bind: one registry lookup (an in-memory map read) per * delete. Objects the predicate rejects return before any query runs. * * ## Bounded and unbounded deletes * * A predicate (`multi: true`) delete does not name its ids, and after it lands * the rows are unfindable — the same problem #4779 solved with a `beforeDelete` * stash, whose resolver and `HookContext` key this module now SHARES rather * than duplicating (`bulk-recompute.ts`). Whichever of the two packages' * `before` hooks runs first resolves; the other reads the same answer. * * - bounded row set → revoke every share of those ids, synchronously, * set-based; * - unbounded (no predicate at all, or over the cap) → queue an * object-scoped orphan sweep. NOT the rule path's "revoke everything on the * object and re-grant asynchronously": that trade is only sound where a * reconcile can put the grants back, and nothing can ever re-create a * manual share. The sweep instead asks, per share row, whether its record * still exists — which needs no id list from the write. * * The `kernel:bootstrapped` sweep (unscoped) is the durable backstop for both: * a hook that failed, a process that died mid-cascade, and every orphan that * predates this code converge on the next boot. * * ## Referential cascades are covered * * `ObjectQLEngine.cascadeDeleteRelations` removes a `deleteBehavior: 'cascade'` * child by recursing through the PUBLIC `delete()` ("so the child's own * cascade, hooks and events fire"), not by calling the driver directly — so a * detail record swept away with its master reaches this hook like any other * delete. That is why `controlled_by_parent` counts as sharing-capable in * {@link objectCanCarryRecordShares} despite refusing manual grants: rows can * exist there (the rule evaluator grants under system context), and this is * the path that reclaims them. * * ## [#5190] Two tables, one cascade * * `sys_share_link` has the same invariant and needed the same three things (the * bounded revoke, the unbounded sweep, the boot backstop), so it rides THIS * seam rather than growing a parallel one: one `beforeDelete` stash, one * `afterDelete`, one serialized sweep queue, one boot pass. What differs is only * the posture predicate — a link is minted under `publicSharing`, which is * orthogonal to `sharingModel` — hence {@link objectCanCarryShareLinks} beside * {@link objectCanCarryRecordShares}, each gating its own half inside the * handler. * * The link half is reached through the `ShareLinkService` (late-bound: the * plugin constructs it after this bind, and `sys_share_link` is * `managedBy: 'engine-owned'` with every write flowing through that service). * Absent service → the boot sweep is the only reclaim, exactly as when the * engine has no hook API at all. */ declare const RECORD_SHARE_CASCADE_PACKAGE = "plugin-sharing:record-share-cascade"; /** * Could `schema`'s object carry `sys_record_share` rows? The runtime, * metadata-driven answer to "is sharing enabled here" — evaluated per delete, * so it tracks metadata changes with no rebind. * * Deliberately WIDER than `assertSharingEnforced`, which gates whether a new * MANUAL grant may be created. Two rows can exist that that gate would refuse * today: one written before the object's `sharingModel` changed, and one * materialised by the rule evaluator (which grants under system context and so * skips the gate entirely). A cleanup predicate narrower than the set of rows * that can exist is how orphans survive, and being wide costs only a delete * statement against a record that is already gone. * * The one exclusion beyond the subsystem's own tables is a SYSTEM object that * declares no `sharingModel`: it resolves to public (ADR-0090 D1 makes the * secure default apply to custom objects, not platform ones), no gate consults * shares on it, and sparing it keeps this hook off the platform's hottest * delete paths. A rule pointed at such an object could still materialise rows * there — that residue is the boot sweep's, and it is the documented boundary * of this predicate rather than an unnoticed hole. * * An unresolvable schema returns `true`: "we cannot tell" must fall toward * cleaning up, never toward the orphan this issue is about. */ declare function objectCanCarryRecordShares(schema: unknown): boolean; /** * [#5190] Could `schema`'s object carry `sys_share_link` rows? * * NOT the same question as {@link objectCanCarryRecordShares}, and that is the * reason this predicate exists rather than reusing it. Link minting is gated by * `publicSharing`, which is INDEPENDENT of `sharingModel`: the object most * likely to hold links is a public-ish one that opted into link sharing, and * that object can be exactly the one the record-share predicate skips. Gating * links on the sharing model would have left the commonest case orphaned. * * Wide, on purpose, in three directions: * * - `publicSharing` DECLARED counts even when `enabled: false` — links minted * while it was on outlive the flip, and cleanup must reach them; * - anything the record-share cascade already covers counts too. `createLink` * lets a SYSTEM (or `permissive`) caller mint on an object that never opted * in, so links can exist wherever records do; those objects are already in * the handler, and the marginal cost is one set-based statement; * - an unresolvable schema counts — "we cannot tell" must fall toward cleanup. * * What is left out is the same documented boundary #5103 drew: an UNMARKED * system object (no `sharingModel`, no `publicSharing`), which keeps this hook * off the platform's hottest delete paths. A system-minted link there is the * boot sweep's to reclaim — and, whether or not it ever is, `resolveToken`'s * existence check already refuses to honour it. */ declare function objectCanCarryShareLinks(schema: unknown): boolean; /** The slice of the engine this module needs. */ interface CascadeEngine { registerHook(event: string, handler: (ctx: any) => any | Promise, options?: { object?: string | string[]; priority?: number; packageId?: string; }): void; unregisterHooksByPackage(packageId: string): number; find?(object: string, options?: any): Promise; getSchema?(object: string): any; registry?: { getObject?(name: string): any; }; } interface MinimalLogger { info?: (msg: any, ...rest: any[]) => void; /** * Non-optional for the same reason as `rule-hooks.ts`'s twin: this logger is * FORWARDED into `stashAffectedRows` (bulk-recompute.ts), whose sink * guarantees a `warn` channel under #9754. A `warn?` here would re-open the * silence one module downstream of where it was closed, and `tsc` said so the * moment the callee tightened (#10556). */ warn: (msg: any, ...rest: any[]) => void; } /** * [#5190] The slice of `ShareLinkService` the cascade drives. Structural, so a * host can supply its own link store, and LATE-BOUND at the call site (see * {@link bindRecordShareCascade}'s `links` parameter) because the plugin binds * this cascade before it constructs the share-link service. */ interface ShareLinkCascade { revokeLinksForDeletedRecords(object: string, recordIds: readonly string[]): Promise; sweepOrphanedShareLinks(options?: { object?: string; }): Promise; } /** * The in-process executor for the unbounded-delete branch's object-scoped * sweep. Module-scoped for the same reason `ruleRegrantQueue` is: a rebind * must not orphan work already in flight. Serialized, so a burst of bulk * deletes cannot fan out into parallel table walks. Exported for tests to * await; production code never does. */ declare const orphanShareSweepQueue: RuleRegrantQueue; /** * Bind the record-delete → share-revoke cascade. Idempotent: unbinds its own * package first, so a re-bind (hot reload, a second `kernel:ready`) never * doubles the hooks. * * Runs for SYSTEM writes too — unlike the rule recompute, which leaves seed * writes to the boot backfill. There is no equivalent backstop here: the * record is gone either way, and a system-context delete (a seed reset, a * platform cleanup job, an admin tool) orphans a manual share exactly as an * interactive one does. */ declare function bindRecordShareCascade(engine: CascadeEngine, sharing: Pick, logger?: MinimalLogger, /** * [#5190] Late-bound `sys_share_link` half. A GETTER, not the service: the * plugin binds this cascade during `kernel:ready` and constructs the share-link * service later in the same handler, and the same indirection is how the * plugin's other optional collaborators are wired (`hierarchyResolver`, * `securityService`). Absent / returning nullish → links are left to the boot * sweep, and `resolveToken` refuses them meanwhile. */ links?: () => ShareLinkCascade | null | undefined): void; /** Unbind the cascade. Returns the number of hooks removed. */ declare function unbindRecordShareCascade(engine: CascadeEngine): number; /** * Sharing-rule criteria normalisation + the ADR-0049 match-all guard (#3896). * * A sharing rule's `criteria` is the ONLY thing standing between a recipient * and every row of the target object: the evaluator feeds it straight to * `engine.find(object, { filter, context: SYSTEM_CTX })`. An absent or empty * predicate is therefore not "no constraint" — it is **share everything**, * which is exactly the shape `SharingRuleSchema` forbids: * * > A `condition` the compiler cannot lower … is skipped and logged — never * > seeded as a permissive match-all (ADR-0049). * * The seed path honoured that; `defineRule` (and through it * `POST {basePath}/sharing/rules`) and direct `sys_sharing_rule` writes did * not — a missing, `null`, or misspelled (`criterias`) key was stored as * `criteria_json: null` and evaluated as `{}`. These helpers are the single * definition of "this predicate constrains nothing", used by every authoring * entry (reject) and by the evaluator itself (match nothing, log) so rows * written before the gate existed cannot over-share either. */ /** * Normalise a stored / submitted criteria value into an engine * `FilterCondition`, or `undefined` when it carries no usable predicate. * * A string is JSON-parsed; an unparsable one (most likely a CEL source typed * into the Setup textarea, which the v1 evaluator does not lower) yields * `undefined` rather than being passed through — the engine would ignore it * and match every row. */ declare function parseCriteria(raw: unknown): unknown | undefined; /** * Does this criteria select EVERY record of its object? * * True for the shapes that reach the engine as an unconstrained filter: * missing / `null` / `''` / unparsable JSON / `{}` / `[]` / a non-object * scalar, and the empty or vacuous boolean combinators (`{ $and: [] }`, * `{ $or: [ {} ] }`). Any concrete field predicate makes it false. * * Conservative by design: it answers "could this fail open?", so an * ambiguous shape counts as match-all. Both consequences of a false positive * are safe — an authoring call is rejected with a message naming the field, * and an already-stored rule under-shares instead of over-sharing. */ declare function isMatchAllCriteria(raw: unknown): boolean; /** * The authoring rejection message. Names the offending shape rather than just * "required": the reported trigger (#3896) was a typo — `criterias` instead of * `criteria` — which a bare "field missing" would not explain. */ declare const MATCH_ALL_CRITERIA_MESSAGE: string; /** * Field-level rejection for the data-API path. * * Structurally what `@objectstack/objectql`'s `ValidationError` is — REST maps * on `code === 'VALIDATION_FAILED' || name === 'ValidationError'` and forwards * `fields[]` — but declared locally so a security guard in a plugin never * depends on another package's build output at runtime. */ declare class SharingCriteriaValidationError extends Error { readonly code = "VALIDATION_FAILED"; readonly fields: Array<{ field: string; code: string; message: string; }>; constructor(field?: string, message?: string); } /** * [#2909 T1] Provenance stamp for `sys_sharing_rule`. * * sys_sharing_rule is RECORD-AUTHORITATIVE (ADR-0094 addendum): declared * rules are a boot seed, and the row — including any admin tuning such as * deactivating an over-sharing rule — is the authority. The seeder * (defineRule in seed mode) skips rows marked `customized`, so this hook is * the half that DETECTS the admin edit: any non-system update touching a * package/platform-seeded row stamps `customized: true` onto the payload. * * Why a data hook (and not a write gate or the REST layer): * - admins edit rules through several doors (Setup UI generic data door, * scripts, console) — an engine hook covers them all; * - there is deliberately NO provenance write gate here (the retired * security catalog rows had one): sharing rules are a first-class * admin authoring surface, so edits are allowed — they just have to be * remembered; * - both provenance columns are `readonly`, and the engine's readonly strip * exempts isSystem callers while snapshotting supplied keys BEFORE hooks * run — so a caller can never forge/clear `customized`, while this hook's * stamp survives. * * Multi-row updates ARE stamped, once per matched row. [#15302] Since #5574 * the engine dispatches `beforeUpdate` PER MATCHED ROW of a predicate * (`multi: true`) write, each context carrying that row's `id` and `previous` * (the `HookContext` contract; ADR-0058 Addendum II D1-D7). The inference this * hook used to draw - "no single `input.id` means a bulk write, decline" - * therefore answered "single write" on every row of a batch and guarded * nothing. It is deleted rather than re-expressed against the engine's * `dispatch` marker: taking part in EVERY write shape is the intent, so there * is no decision left for the marker to gate (#6966 asks it in * `file-reference-lifecycle.ts` because that guard REFUSES; this one stamps). * * What an operator's bulk edit does, measured on the real engine rather than * assumed: the payload is BATCH-scoped (D3 - `driver.updateMany` takes ONE * `SET` clause for N rows). Matched rows that AGREE are all stamped in that one * clause and the write lands. Matched rows that DISAGREE would stamp some and * not others, and the engine refuses the whole batch * (`MULTI_UPDATE_HOOK_KEY_DIVERGENCE`, 400) rather than widening one row's * stamp to the rest - which is what makes a row-conditioned rewrite safe to * leave here. * * Declining on a predicate write was weighed and REJECTED (#15302): the seeder * skips only rows marked `customized`, so the rows left unstamped would be * exactly the ones the next boot clobbers - discarding the operator edit this * stamp exists to remember. */ interface MinimalEngine$2 { registerHook(event: string, handler: (ctx: any) => any, options?: Record): void; unregisterHooksByPackage(packageId: string): number; } declare const SHARING_RULE_PROVENANCE_PACKAGE = "plugin-sharing:rule-provenance"; declare function bindRuleProvenanceStamp(engine: MinimalEngine$2, logger?: OptionalSharingLogger): void; declare function unbindRuleProvenanceStamp(engine: MinimalEngine$2): number; /** * [ADR-0142 D1/D2] The ownership-queue service — the one place a queue name is * resolved and a queue's members are expanded. * * ## Two sources, one namespace * * A queue is DECLARED (a stack's `queues`, read from the engine registry on * every use, never copied into rows) or AUTHORED (an organization's * `sys_queue` row). Resolution reads the registry first, then the * organization's rows (ADR-0131 D4): a declared queue switched off in the * activation ledger (`sys_metadata_activation`, `metadata_type: 'queue'`) * resolves nowhere, and a `sys_queue` row may not take a declared queue's name * ({@link bindQueueGuards} refuses that write). * * A queue's members are the union of its member specifications: a declared * queue's own (positions only), plus the organization's `sys_queue_member` rows * naming the queue (any of the five set-valued kinds), whichever source the * queue has. * * ## One declared holder per name (ADR-0150 D3/D4, child E4) * * A queue is addressed by `(package, name)` (ADR-0150 D1 bucket 2): two * packages may each declare a queue of one name. Every read of a declared * queue by name — resolution, the activation door's lookup, the active set * the session flag, the look-through and the user's queues read — goes * through `package-scoped-declarations.ts` (objectql's shared resolver), so a * name two packages declare is refused, naming both, and reported once; it is * never answered as the first (or, as `queuesOf` once did, the last) holder * listed. It stays a declared name: no `sys_queue` row may take it. * * A read that names the queue from inside a package — a declared sharing * rule's queue recipient — passes that package as `callerPackageId` (the * contract's `OwnershipQueueCallerPackage`), and the name resolves from it * (ADR-0150 D3): the package's own queue, else the unique holder in its * declared closure plus `sys`, else a refusal naming every candidate. So a * name two packages declare resolves for a caller whose closure reaches one of * them, and is refused for a caller with no package. * * ## One expander * * {@link OwnershipQueueService.expandMembers} is the function the access path, * the claim admission, the assignment pool, the approver slate and the sharing * recipient all read. It expands each specification through the expanders the * sharing engine already runs (`TeamGraphService`, `PositionGraphService`, * `BusinessUnitGraphService`), scoped to the queue's organization, and answers * the union de-duplicated and ordered by user id ascending — so round-robin and * the least-loaded tie-break see one stable order wherever they run. * * ## Absence is not a fault; a failed read is * * A name that resolves nowhere answers `null` / `[]` / `false`, and an empty * queue answers `[]`, under every option: those are facts. * * A failed read of a table behind the queue — its `sys_queue` row, its * `sys_queue_member` rows, or a member table a specification reads (team, * position, `sys_member`, business unit) — is a fault, and what the call * answers then is the caller's to say (ADR-0142 D2 as amended, the contract's * `OwnershipQueueFailedReadAnswer`): * * - `onFailedRead: 'nobody'`, the default — what sat behind the failed read * contributes nobody, logged once. The admission consumers take it, because * for them nobody denies: the sitting-record access path (D3), the claim * (D4) and the assignment pool (D5). {@link OwnershipQueueService.queuesOf}, * which the access path reads, has no option and always answers this way. * - `onFailedRead: 'refuse'` (#29604) — the call rejects with a failure that * names the queue, the organization and the read ({@link queueReadRefusal}), * never `[]`, a partial set or `false`. The recompute consumers take it, * because for them nobody revokes: the approver slate (D6) and the * sharing-recipient grant recompute (D7). `isMember` under it still answers * `true` when a read that succeeded reaches the user — a failed read beside * it cannot take that membership away — and `false` only when every read * behind the answer succeeded. * * A failed read of the activation ledger is neither: under either answer it * leaves the declared default — on — for that call and is logged, the posture * the sharing-rule service takes for the same ledger on its own position * recipients, so a queue's position and a rule's position never disagree on * an outage (#29604 keeps it; the contract leaves it to this service). * * ## Read to completion * * [#29604] The authored reads — an organization's `sys_queue` rows and its * `sys_queue_member` rows — are read to completion through the keyset walk the * team, position and business-unit member reads share * (`readMembershipToCompletion`), never cut at a row bound: a queue past the * bound lost its later members, a member past it lost every queue it sits in, * and nothing said so. A read that fails, or a walk that cannot vouch for * completion, is a failed read above, never an answer on the pages already * read. */ /** The authored queue table. */ declare const QUEUE_OBJECT = "sys_queue"; /** The authored member-specification table. */ declare const QUEUE_MEMBER_OBJECT = "sys_queue_member"; /** The `sys_metadata_activation.metadata_type` a declared queue is switched by. */ declare const QUEUE_ACTIVATION_TYPE = "queue"; /** The engine slice the service reads through: the sharing engine plus its registry. */ interface OwnershipQueueEngine extends SharingEngine { registry?: { listItems?: (type: string) => unknown[]; getObject?: (name: string) => unknown; /** Every registered object definition — {@link OwnershipQueueService.objectsUsingQueues}'s population. */ getAllObjects?: () => unknown[]; }; } interface OwnershipQueueServiceOptions { /** * The engine, resolved at use and never at construction: the service is * registered in the plugin's `init` so the engine's `kernel:ready` boot * refusal finds it, before the engine is necessarily reachable. */ engine: () => OwnershipQueueEngine | null | undefined; logger?: OptionalSharingLogger; } declare class OwnershipQueueService implements IOwnershipQueueService { private readonly engine; private readonly logger?; private readonly warned; /** [ADR-0150, child E4] Declared queue names already reported as held by two or more packages. */ private readonly refusedReported; constructor(options: OwnershipQueueServiceOptions); resolveQueue(name: string, organizationId: string | null, options?: { callerPackageId?: OwnershipQueueCallerPackage; }): Promise; /** * {@link resolveQueue}, with the caller's failed-read answer: under `refuse` * a failed `sys_queue` or `sys_queue_member` read rejects (a failure naming * the read, which the public caller wraps in {@link queueReadRefusal}) * instead of resolving nowhere or to no authored members. `callerPackageId` * is the package the name is read from, or none (the module header). */ private resolve; expandMembers(name: string, organizationId: string | null, options?: { purpose?: QueueExpansionPurpose; onFailedRead?: OwnershipQueueFailedReadAnswer; callerPackageId?: OwnershipQueueCallerPackage; }): Promise; isMember(userId: string, name: string, organizationId: string | null, options?: { onFailedRead?: OwnershipQueueFailedReadAnswer; callerPackageId?: OwnershipQueueCallerPackage; }): Promise; queuesOf(userId: string, organizationId: string | null): Promise; /** * Does `organizationId` have at least one ownership queue? A declared queue * the activation ledger leaves on counts for every organization; otherwise * the organization's `sys_queue` rows count, except a row under a declared * queue's name, which resolves nowhere (see {@link resolveQueue}). So the * answer is `true` exactly when some name would resolve. * * The session payload's one boolean (`/auth/me/permissions` `hasAnyQueue`): * the console's list toolbar asks it once per session, for a member who may * not read `sys_queue` themselves. It discloses no name and no count. The * contract states it on {@link IOwnershipQueueService.hasAnyQueue}. */ hasAnyQueue(organizationId: string | null): Promise; /** * [#34602] The objects of `organizationId` on which a queue filter can find * something: a record sits in a queue now (no owner, a queue set — the * list's "in a queue" filter, verbatim), OR an active assignment rule routes * the object's new records into a queue (the organization's * `sys_assignment_rule` rows, and the declared rules the activation ledger * leaves on). The union, so neither reading misses what the other sees: a * rule that assigns an owner parks nothing until nobody holds the queue, and * a record moved into a queue by hand has no rule behind it. * * Only objects carrying the platform's `queue` column with storage behind * it are considered (a federated object's column is the injection's alone). * The routed half is registry reads plus one read of the organization's * rules; the sitting half is one `limit 1` read per remaining object, at most * {@link SITTING_READ_CONCURRENCY} at a time. A failed read leaves that * object (or the organization's rules) out, logged once: the cost is a * hidden filter, never a refused payload. Ordered by name. */ objectsUsingQueues(organizationId: string | null): Promise; /** * The registered objects that carry the `queue` column with storage behind * it, each mapped to whether it also carries the `organization_id` column * (the platform's or the author's). The sitting read names that column only * when it exists: filtering on a column the table lacks is refused by the * driver, which would hide the object's queue filter for good. */ private queueColumnObjects; /** * The objects an active assignment rule routes into a queue: the declared * rules the activation ledger leaves on, and the organization's own rows * (a row under a declared rule's name is not a rule of its own, as the * engine reads it). A failed read of the organization's rows contributes * nothing, logged once. */ private routedObjects; /** * Is a record of `object` sitting in a queue now: no owner, a queue set? The * read always carries `organizationId` as the context's `tenantId`, so a * driver that walls the object on a declared `tenancy.tenantField` keeps * other organizations' rows out. The explicit `organization_id` predicate is * added only when the object has that column (`scopeByColumn`); an object * with neither column nor a declared tenant field holds environment-wide * rows and is read as such. */ private hasSittingRecord; /** * The declared queue named `name`, switched on or off — the reader the * activation door looks a `queue` row's subject up through. It ignores the * ledger on purpose: a queue switched off must stay addressable, or the door * could never switch it back on. {@link resolveQueue} reads the ledger. */ declaredQueueNamed(name: string): Promise<{ name: string; packageId?: string; } | null>; /** * [ADR-0150 D3/D4, child E4] The declared queue a bare `name` addresses — * one holder's, `not-found`, or the shared resolver's refusal naming every * package that declares it (`package-scoped-declarations.ts`). Read from * `callerPackageId` when one is given (ADR-0150 D3), else environment-wide. * Switched on or off: the ledger is read by the caller. A refusal is * reported once per name and caller. */ private declaredQueueAnswer; /** `item`, unless the activation ledger switches its name off. */ private switchedOnDeclared; /** Is `name` a declared queue's name, switched on or off? The authored-row guard's question. */ isDeclaredQueueName(name: string): boolean; /** * The queues in `organizationId` whose member specifications name one of * `values` under `kind` — the recompute's look-through from a position, team * or business-unit write to the queue-recipient sharing rules it moves. * * [ADR-0150 D3] Every declared holder's specifications count, not only the * names an environment-wide read serves: a name two packages declare is * refused for a caller with no package but resolves for a rule whose * package reaches one of them, so a position moving in either holder's * queue re-evaluates the rules naming it. A rule it does not move answers * as before when re-evaluated. */ queuesNaming(kind: string, values: ReadonlySet, organizationId: string | null): Promise; private expandSpecs; private expandSpec; private expandSpecUncached; /** * Does any specification reach `userId`? The user-scoped twin of * {@link expandSpecs}: a position or a team is answered by an indexed * holder check rather than a full expansion, the reason * `PositionGraphService.holdsPosition` exists. * * [#29604] Under `onFailedRead: 'refuse'` a specification whose read fails * does not end the walk: a later one that reaches the user still answers * `true`, because a read that succeeded and found the user is a fact no * failure beside it can take away. Only when none reaches does the first * failure become the answer — `false` is given only when every read behind it * succeeded. Under `'nobody'` no specification rejects (each failed read * contributes nobody in place), so the walk is the one it always was. */ private specsReachUser; private specReachesUser; /** * [#29503] A team or position holder check, answered in the posture the * call asked for (module header). The checks themselves (`teamHasMember`, * `PositionGraphService.holdsPosition`) refuse a failed read instead of * answering `false`. Under `onFailedRead: 'nobody'` that specification * contributes nobody, logged once — the same answer {@link expandSpec} gives * the expansion, so the two twins cannot disagree. Under `'refuse'` (#29604) * the check's refusal is passed on, as the expansion's is. */ private holderCheck; private declaredItems; /** * Every declared queue switched on, one per name (ADR-0150 D3/D4, child E4): * a name two packages declare is refused and serves neither — never the * first or the last one listed. */ private activeDeclaredQueues; /** * Every declared queue item switched on, EVERY holder of a name — the * look-through's population ({@link queuesNaming}). ⛔ Never a resolution: * nothing is served from it, it only says which names a write may move. */ private switchedOnDeclaredHolders; /** * The organization's `sys_queue` row named `name`. A failed read resolves * the name nowhere, logged once — or, under `refuse` (#29604), rejects with * a sentence naming the read: whether the queue exists is itself unknown. */ private authoredQueueRow; private authoredQueueNames; /** * The organization's `sys_queue_member` rows for `names`, grouped by queue. * A failed read counts no authored member, logged once — or, under `refuse` * (#29604), passes the walk's refusal on, which names the read. */ private authoredMemberSpecs; /** * A deactivated position confers nothing, here as for a sharing rule's * position recipient: read from the activation ledger, no row = active. */ private positionActive; /** * The names of `type` the activation ledger switches off. A composition with * no ledger object issues no read; a failed read switches nothing off for * this call and says so. */ private switchedOff; private warnOnce; } /** Does any of a queue's specifications read the business-unit graph? */ declare function specsReadBusinessUnits(specs: readonly QueueMemberSpec[]): boolean; /** * [ADR-0142 D1/D2/D7] The hooks the authored queue tables carry. * * ## The name guard — one namespace * * A queue is referenced everywhere by its machine name, declared or authored, * resolved registry-first. So a `sys_queue` row may not take a declared * queue's name — it would be a second queue under a name that already answers * — and a name must be snake_case, because the `queue` column, an assignment * rule's target, an approver's value and a sharing recipient's value all carry * it verbatim. Authoring a queue in Setup is a plain data insert, so the guard * is a hook on the table rather than a check inside a service method nobody * calls. A declaration that arrives OVER an existing row (a package installed * after the organization authored the name) is not a write this guard sees: it * is reported at boot by {@link reportShadowedAuthoredQueues}, loudly, and the * declared queue answers for the name. * * ## The queue-recipient recompute * * A sharing rule whose recipient is a queue materialises its grants per member * (ADR-0142 D7), so a write that changes who is in the queue must move them. * Three write paths can: * * | written table | module | * |-------------------------------------|---------------------------------------| * | `sys_queue_member`, `sys_queue` | this one — the queue's own rows | * | `sys_user_position`, `sys_team_member` | `recipient-membership-recompute.ts`, which looks through queues naming the written position or team | * | `sys_business_unit(_member)` | `bu-tree-recompute.ts`, for a queue with a business-unit member | * * A member row names a SET of people, not one user, so this module recomputes * the way the business-unit module does: the revocation half synchronously * (`revokeRuleGrantsForRetiredRecipients`) and the re-grant half on the shared * re-grant queue, coalesced per rule. ⛔ The recipient never confers * sitting-record access — that is the access path's (`SharingService`), read * per request, and needs no recompute at all. */ /** Package id of the name / row guards. */ declare const QUEUE_GUARD_PACKAGE = "plugin-sharing:queue-guard"; /** Package id of the queue-recipient recompute hooks. */ declare const QUEUE_RECIPIENT_RECOMPUTE_PACKAGE = "plugin-sharing:queue-recipient-recompute"; interface MinimalEngine$1 { registerHook(event: string, handler: (ctx: any) => any | Promise, options?: { object?: string | string[]; priority?: number; packageId?: string; }): void; unregisterHooksByPackage(packageId: string): number; find?(object: string, options?: any): Promise; } /** * Field-level refusal for a queue row, on the data-API path. The same shape * `SharingCriteriaValidationError` uses (`code: 'VALIDATION_FAILED'`, a * `fields[]` entry), so REST answers it as a validation failure naming the * field. The entry's code is a member of the closed field-level catalog * (`FieldErrorCode`). */ declare class QueueValidationError extends Error { readonly code = "VALIDATION_FAILED"; readonly fields: Array<{ field: string; code: FieldErrorCode; message: string; }>; constructor(issue: { field: string; code: FieldErrorCode; message: string; }); } /** Bind the `sys_queue` name guard and the `sys_queue_member` queue-name guard. */ declare function bindQueueGuards(engine: MinimalEngine$1, queues: Pick): void; /** * Report, at boot, every `sys_queue` row whose name a package now declares. * The declared queue answers for the name (registry-first), so the row is * shadowed: its members still join the declared queue, its label does not. * Logged at `error`, naming the row's organization, because an administrator * has to act — rename the row — and nothing else will say so. */ declare function reportShadowedAuthoredQueues(engine: MinimalEngine$1, queues: Pick, logger?: { warn: (msg: string, meta?: Record) => void; error?: (msg: string, meta?: Record) => void; }): Promise; /** The slice of `SharingRuleService` the recompute drives. */ interface QueueRecipientRuleService { listRules(filter: { object?: string; activeOnly?: boolean; }, context: any): Promise; revokeRuleGrantsForRetiredRecipients(rule: SharingRuleRow): Promise; evaluateRule(idOrName: string, context: any): Promise; } /** Test seam: are any coalesced queue re-grants outstanding? */ declare function pendingQueueRecipientRegrants(): number; /** * Recompute the queue-recipient rules naming `queueNames`: revoke from the * members a rule no longer reaches now, queue the re-grant. Exported for the * two other recompute modules' look-through. */ declare function recomputeQueueRecipientRules(service: QueueRecipientRuleService, queueNames: ReadonlySet, logger: OptionalSharingLogger | undefined, source: { object: string; event: string; }): Promise; /** Bind the recompute on the queue's own tables and on the activation ledger's `queue` rows. */ declare function bindQueueRecipientRecompute(engine: MinimalEngine$1, service: QueueRecipientRuleService, logger?: OptionalSharingLogger): void; /** * [ADR-0142 D5, ruling A on organization-authored routing] The save guard an * organization's own `sys_assignment_rule` row carries, and the boot report of * a row a later declaration shadows. * * Authoring a rule in Setup is a plain data write, so the guard is a hook on * the table, the way the queue tables' guards are (`queue-hooks.ts`), never a * check inside a service method nobody calls. It refuses the write — one * `VALIDATION_FAILED` naming every field at fault — when the rule could not * route a record the way it reads: * * | field | refused when | * |-------------------------------|------------------------------------------------------------------------------| * | `organization_id` | the row lands in no organization (non-null: a deployment-wide rule is a declared one) | * | `name` | not snake_case, or a declared assignment rule's name (ADR-0131 D4, one namespace) | * | `object_name` | not a registered object, or one with no ownership-queue column to route by | * | the entry columns | the shape the stack schema refuses for a declared entry (`AssignmentRuleSchema`) | * | `criteria`, `load` | the engine's CEL paths cannot compile it (`assignmentExpressionRefusals`) | * | `recipient_id` (user target) | not an active member of the rule's organization (`organizationMemberStanding`) | * * The CEL compile and the membership predicate are imported from the engine's * assignment seam, so a row is judged on save by exactly what judges it at an * insert. At insert time the engine re-asks the membership — a member who * leaves later is a lapsed target there, logged, never a refused insert. * * An update is judged on the merged row (pre-image + patch) when the patch * touches a judged column; a patch of only the label, description, order or * active flag is not re-judged, so an administrator can always switch off or * rename a rule whose target lapsed. */ /** Package id of the `sys_assignment_rule` save guard. */ declare const ASSIGNMENT_RULE_GUARD_PACKAGE = "plugin-sharing:assignment-rule-guard"; interface MinimalEngine { registerHook(event: string, handler: (ctx: any) => any | Promise, options?: { object?: string | string[]; priority?: number; packageId?: string; }): void; unregisterHooksByPackage(packageId: string): number; find?(object: string, options?: any): Promise; registry?: { listItems?: (type: string) => unknown[]; getObject?: (name: string) => unknown; }; } type FieldIssue = { field: string; code: FieldErrorCode; message: string; }; /** * Field-level refusal for a `sys_assignment_rule` row, on the data-API path: * the shape `QueueValidationError` uses (`code: 'VALIDATION_FAILED'`, a * `fields[]` entry per column at fault), so REST answers it as a validation * failure naming the fields. */ declare class AssignmentRuleValidationError extends Error { readonly code = "VALIDATION_FAILED"; readonly fields: FieldIssue[]; constructor(issues: FieldIssue[]); } /** * Judge one row as it will be stored. `organizationId` is where it lands: the * row's own column, else the caller's active organization. */ declare function assignmentRuleRowIssues(engine: MinimalEngine, row: Record, organizationId: string | null): Promise; /** Bind the `sys_assignment_rule` save guard. */ declare function bindAssignmentRuleGuards(engine: MinimalEngine): void; /** * Report, at boot, every `sys_assignment_rule` row whose name a package now * declares. The declared rule answers for the name and the engine does not * evaluate the row, so an organization's routing stopped without a write * anyone made: logged at `error`, naming the row's organization, because an * administrator has to act — rename the row — and nothing else will say so. */ declare function reportShadowedAuthoredAssignmentRules(engine: MinimalEngine, logger?: { warn: (msg: string, meta?: Record) => void; error?: (msg: string, meta?: Record) => void; }): Promise; interface SharingPluginOptions { /** Extra object names that bypass sharing entirely. */ bypassObjects?: string[]; /** * Disable enforcement (read filter + canEdit) while still registering * the schema + service. Useful in development to flip enforcement on * via env var without rebuilding. */ enforce?: boolean; /** * Disable the public share-link REST routes. The `IShareLinkService` * is always registered (other services may depend on it); only the * HTTP surface is suppressed. */ registerShareLinkRoutes?: boolean; /** * Base path for the share-link REST surface. Defaults to * `/api/v1/share-links`. */ shareLinkBasePath?: string; } /** * [#2926 ③] Boot backfill: rule grants are materialized by the write hooks, * and this pass covers the rows those hooks did not reach. * * [#13533] It was originally written for seed rows, which are written with * `isSystem` and which the hooks used to skip — so a fresh deploy's seed data * carried no `sys_record_share` rows until each record was touched at runtime. * That skip is gone (see the retirement note in `rule-hooks.ts`), and this pass * is still owed: rows written while a rule was inactive or before its hooks * were bound are unreached by any hook, and this is the only pass that PURGES * a deactivated rule's grants (#4433). * * Reconcile every rule once per boot: `evaluateRule` is idempotent * (diff-based grant/update/revoke), so repeated boots are no-ops. * Best-effort per rule — one broken rule must not block startup or its * siblings. Returns the number of rules successfully reconciled. * * [#4433] Callers must pass EVERY rule, not just the active ones. This pass is * the last line of defence for withdrawal: `evaluateRule` purges the grants of * a rule it finds inactive, so an inactive rule in this list is what turns a * restart into a repair. Handed only active rules — as it was — the pass could * physically never revoke anything a deactivated rule had left behind, which * is why the #4433 repro survived a full restart with the rule reading * `active: false` and the grant still answering. */ declare function backfillRuleGrants(ruleService: SharingRuleService, rules: Array<{ id?: string; name?: string; }>, logger?: { info?: (msg: string, meta?: any) => void; warn?: (msg: string, meta?: any) => void; }): Promise; /** * [#3865] Boot backfill: normalise stored `access_level: 'full'` rows to * `'edit'` on `sys_sharing_rule` and `sys_record_share`. * * `full` was declared "Full Access (Transfer, Share, Delete)" but no code path * granted any of those verbs because of it — both enforcement gates matched * `access_level in ('edit','full')`, so it was byte-equivalent to `edit` * (ADR-0078 declared-but-unenforced). Having retired it from the authoring * surface, this closes the loop on rows already persisted. * * **Behaviour-preserving by construction**: the two levels were already * equivalent, so no principal gains or loses access. Contrast the OWD * `sharingModel: 'full'` retirement (ADR-0090 D4), which changed posture and * therefore had to be delegated to the author rather than auto-migrated. * * Writes with `isSystem` so the provenance stamp hook treats this as the * package door, not an admin edit — a package-seeded rule must NOT come out of * this marked `customized`, or the seeder would stop updating it forever * (#2909 T1). * * Best-effort and idempotent: a missing table or a failed row is logged and * skipped, never fatal to boot, and a second run finds nothing to do. */ declare function backfillRetiredAccessLevels(engine: SharingEngine, logger?: { info?: (msg: string, meta?: any) => void; warn?: (msg: string, meta?: any) => void; }): Promise<{ rules: number; shares: number; }>; /** * SharingServicePlugin — registers `sys_record_share`, the `sharing` * service, and the engine middleware that enforces * `object.sharingModel`. * * Enforcement is opt-in per object: * * - `sharingModel: 'private'` → reads filtered to `(owner_id == me) OR * (record explicitly shared with me)`. Writes require ownership or * an `edit` share. * - `sharingModel: 'public_read'` → reads unrestricted; writes gated as * above (typical "everyone can see, only owner can edit"). * - any other value (or no value) → no enforcement. This keeps * existing CRM behaviour identical until admins explicitly enable * sharing on a per-object basis. * * @example * ```ts * import { SharingServicePlugin } from '@objectstack/plugin-sharing'; * * kernel.use(new SharingServicePlugin()); * * // Mark an object private — middleware enforces from this point on. * defineObject({ * name: 'account', * sharingModel: 'private', * fields: { owner_id: Field.lookup('sys_user'), ... }, * }); * ``` */ declare class SharingServicePlugin implements Plugin { name: string; version: string; type: "standard"; dependencies: string[]; private readonly options; private service?; private ruleService?; private linkService?; /** Resolved once in `kernel:ready`; reused by the `kernel:bootstrapped` backfills. */ private engine?; /** * [ADR-0142 D1] The ownership-queue service, constructed and registered in * `init` — before any `kernel:ready` handler runs — so the engine's boot * refusal for a stack declaring `queues` / `assignmentRules` finds it. It * reaches the engine lazily, at use. */ private queues?; /** * [#4433] Has the `kernel:bootstrapped` rule-grant backfill finished? * * This is the real question the rule-write trigger needs to answer before it * decides to skip a reconcile — "is the boot pass going to cover this write * anyway?" It used to ask `session.isSystem` instead, which is a different * question with a very different answer: `SharingRuleService.defineRule` * writes `sys_sharing_rule` with SYSTEM_CTX **always** (it must, to reach a * platform table the sharing middleware otherwise gates), so every runtime * authoring write — including `POST /sharing/rules` with `active: false` — * looked exactly like boot seeding and was skipped. That is the whole of * #4433's first half: deactivation returned 200, and nothing reconciled. */ private ruleGrantsBootReconciled; constructor(options?: SharingPluginOptions); /** * Serializes rule-hook rebinds triggered by `sys_sharing_rule` data * changes, so two rapid writes can't interleave their unbind→bind * sequences and leave the older rule snapshot bound. */ private ruleRebindChain; /** * [#2592] Rebind rule hooks whenever `sys_sharing_rule` DATA changes. * * `bindRuleHooks` above runs once at `kernel:ready` and registers * lifecycle hooks only for the objects that had ≥1 rule at that moment. * Rule *evaluation* reads `sys_sharing_rule` live, but a rule created at * runtime for an object with no boot-time rule never got a hook — so it * silently no-oped until the next restart. And because authoring a rule * is a data INSERT (not a metadata publish), the `metadata:reloaded` * rebind pattern (#2576) never fires here — the trigger must be a * data-change hook on the rule table itself. * * The rebind mirrors boot exactly: unbind the whole rule-hook package, * re-bind from a fresh `listRules()`. Runs AFTER the write inside the * same lifecycle pipeline (awaited, so the rule is enforceable the moment * the authoring call returns), but never fails the write — a rebind * failure logs and leaves the previous bindings in place. * * [#3821] The rebind alone only makes the rule apply to records written * FROM NOW ON. Authoring in the Setup UI therefore looked inert: an admin * created a rule, switched it on, and the recipient still saw nothing — * the rule only reached a record once somebody happened to touch it. Worse * in the other direction, switching a rule OFF (or deleting it) left every * grant it had already issued in place, and boot backfill only reconciles * ACTIVE rules, so those grants survived restarts forever: the UI said * "disabled" while the access was still live. * * So each write now also reconciles THAT rule's grants — the same * `evaluateRule` the REST `/sharing/rules/:id/evaluate` endpoint runs, which * is diff-based and purges when the rule is inactive. Deletes can't go * through it (the row is gone, `RULE_NOT_FOUND`), so they purge directly. * * [#4433] The reconcile is skipped only until the `kernel:bootstrapped` * backfill has run — NOT for every `isSystem` write, as it was. #3821 built * this seam and then gated it on the one predicate that switches it off * everywhere it mattered: `defineRule` — the sole implementation behind * `POST /sharing/rules`, the documented way to deactivate a rule — writes * with SYSTEM_CTX unconditionally, so the `isSystem` skip caught 100% of * REST authoring. The withdrawal path was present, tested (against a mocked * `session` the real path never sends) and unreachable in production: an * admin saving `active: false` got a 200 and no reconcile, and because boot * backfill then only walked ACTIVE rules, the orphaned grant outlived every * restart. Boot phase is the honest predicate — before it, the backfill owes * this table a pass; after it, nothing else will do the work. */ private bindRuleRebindTriggers; /** * [#15349] The share-link ADMISSION seam's EFFECTIVE tenancy posture. * * ## What was open * * `resolveAuthzContext` gates every posture-conditional refusal on a posture * its CALLER supplies, and this door supplied none — so none of them ran: * * - `organization_required` (`core/security/api-key.ts`, `if (!tenantId && * tenancyPosture)`), * - `organization_membership_ended` (`core/security/resolve-authz-context.ts`, * `if (keyPrincipal?.tenantId && input.tenancyPosture)`), * - and the #15409 SESSION arm beside it, which drops an * `activeOrganizationId` claim no `sys_member` row backs. * * An API key's `tenantId` is `sys_api_key.active_organization_id` copied * verbatim — the caller's own stored claim, never vetted against current * membership. Under a wall-enforcing posture a key stamped with an * organization its owner has LEFT was therefore admitted here carrying that * organization as its tenant, and minted share links — capability tokens — * on that organization's records. * * ## ⛔ Why this plugin's EXISTING `tenancy` probes are the wrong value * * Two are already resolved a few hundred lines up, and BOTH swallow failure * as absence: the `tenancy: () => { try { … } catch { return null; } }` option * handed to `SharingService`, and `sharingPosture()`, whose own catch falls * through to the walled default. Reusing either * accessor here would re-introduce exactly the permissive-on-failure defect * #13906 exists to repair — a `tenancy` service that was WIRED and BROKE * reading as "this check does not apply". Those two are also answering a * different question: their fallback is *walled*, which is fail-closed for a * seeding/scope decision and would be fail-OPEN nonsense for an admission one * (`undefined` means "run no posture-conditional refusal at all", while * `'single'` is a posture that is present and simply enforces no wall). * * ## The classification — #13906 decision 1 option A, no longer written here * * [#16013] `classifyAdmissionTenancyPosture` (`@objectstack/core`) owns the * branded/unbranded decision for every admission seam: never registered ⇒ * quiet `undefined`; every other rejection ⇒ `AuthzStoreUnavailableError` * (ADR-0112 `SERVICE_UNAVAILABLE` / 503), because admission was never DECIDED * and must not be answered. One tested classification, so it cannot decay * into a silent `catch` at one seam while five others stay correct. * * ⚠️ What that decision MEANS at this door is still this door's own. Quiet * arm: an embedding with no `plugin-auth` is a SUPPORTED composition and its * behaviour here is exactly what it was. Loud arm: * `verifiedContextFromRequest`'s `catch` already re-raises this brand rather * than laundering it into a 401 (commit 6a180e42d), and the routes' own `catch` answers * `err.status` — so the outage reaches the wire as a 503. * * ⚠️ The brand exists only on the ASYNC resolution path: `PluginContext.getService` * throws two UNBRANDED plain `Error`s (`… not found` and `… is async - use * await`), so a synchronous read cannot tell the two facts apart and would * have to guess. Hence `getServiceAsync`, reached through `getKernel()`. * * ⚠️ The ASYNC ACCESSOR's presence is part of the wiring fact, exactly as on * the two sibling seams (`rest-server.ts`, `marketplace-install-local-plugin.ts`): * a `KernelBase`-shaped host (`LiteKernel`) exposes `getKernel()` but has no * `getServiceAsync` at all, so dereferencing it would raise an unbranded — * therefore LOUD — `TypeError`, turning "this host shape has no async * registry" into an outage. Such a host has no service factories either * (`registerServiceFactory` throws "not supported"), so absence is the only * fault it could report. It keeps the quiet answer, unchanged. */ private resolveAdmissionTenancyPosture; /** * [#30209 row 5 B] Mount `GET /api/v1/sharing/shareable-objects` * (`shareable-objects-routes.ts`, ledger `sharing-route-ledger.ts`). The * list is `SharingRuleService.listShareableObjects`, read at request time, * so a rule service that never started answers 501 there instead of the * path going unmounted. Canonical `http.server` first, the deprecated * `http-server` alias second, as the share-link mount reads them. */ private mountShareableObjectsRoute; init(ctx: PluginContext): Promise; start(ctx: PluginContext): Promise; } /** * Build the engine middleware that injects read filters and gates * write operations. Exported so it can be unit-tested without booting * a kernel. `log` is optional — the [ADR-0111 D10] delete-denial breadcrumb * is best-effort and absent in unit tests. * * [#5493] The by-id write gate DEFERS before it hard-refuses: a refusal is * checked against `service.probeAuthoredRowWrite`, the security service's * app-authored RLS verdict, and only stands when that verdict is not `admit`. * The probe is reached through the `security` late-binding the passed * {@link SharingService} already holds, so this builder's signature — and every * caller of it — is unchanged, and a stack without `@objectstack/plugin-security` * behaves exactly as before. */ declare function buildSharingMiddleware(service: SharingService, log?: { warn?: (msg: string, meta?: any) => void; }, /** * [#12260] Deployment i18n lookup for the by-id write refusal's user-facing * sentence — an `II18nService.t`-compatible function, resolved LAZILY per * refusal. Optional and additive: every existing caller (six suites in * `plugin-security`, two here) passes two arguments and is unchanged, and a * stack without it still renders the caller's locale from the built-in * catalog. See {@link userFacingWriteDenial}. */ messageTranslator?: () => ValidationMessageTranslator | undefined): EngineMiddleware; /** * Share access-level vocabulary — the one place `read` / `edit` (and the * retired `full`) are defined for this plugin. * * ## Why `full` is gone (#3865) * * `full` was declared as "Full Access (Transfer, Share, Delete)" but **no code * path ever granted transfer, re-share, or delete because of it**: the read * gate (`buildReadFilter`), the bulk-write gate (`buildWriteFilter`) and the * per-record gate (`canEdit`) all matched `access_level in ('edit','full')`, so * it was byte-equivalent to `edit`. An admin picking "Full Access" in Setup was * told they had granted delete rights and had not — declared-but-unenforced * metadata, the exact authoring trap ADR-0078 / ADR-0049 ban, and the reason * `recipient_type: 'queue'` was off the authoring surface until ADR-0142 D7 * gave it an evaluator. * * It is not coming back as an enum member. Record sharing widens **which rows** * a principal reaches, never **which verbs** they may use — the same split * Salesforce enforces (its sharing rules stop at Read-Only / Read-Write; Full * Access is owner / hierarchy / Modify All only, never grantable by a rule) and * Dataverse enforces by AND-ing every shared access right against the security * role's own privilege. Delete and transfer belong to ownership, the ADR-0057 * DEPTH scopes, and admin scope. A future per-record delete grant would be a * capability mask AND-ed with object CRUD, not a fourth level. * * ## The three-layer posture (ADR-0090 D4 idiom) * * 1. **Authoring rejects** — `SharingLevel` / the `Field.select` enums no longer * offer `full`; {@link normalizeAccessLevel} turns an explicit `full` from an * older client into `edit` and rejects anything unrecognised outright. * 2. **Runtime tolerates** — the enforcement gates keep matching * {@link WRITE_ACCESS_LEVELS}, so a row persisted before the backfill ran is * still honoured (it means `edit`; refusing it would silently REVOKE access). * 3. **Data normalises** — a boot backfill rewrites stored `full` rows to * `edit`. Behaviour-preserving by construction, because the two were already * equivalent. */ /** The authorable levels, in widening order. */ declare const ACCESS_LEVELS: readonly ShareAccessLevel[]; /** * Levels that open the write gate, INCLUDING the retired `full`. * * Deliberately wider than {@link ACCESS_LEVELS}: enforcement reads persisted * rows, which may predate normalisation. Dropping `full` here would silently * revoke access from every not-yet-migrated grant — a fail-open→fail-closed * flip nobody asked for. Authoring narrowness and enforcement tolerance are * different jobs. */ declare const WRITE_ACCESS_LEVELS: readonly string[]; /** `true` when `value` is a stored level this plugin still honours. */ declare function isKnownAccessLevel(value: unknown): boolean; /** * Normalise an inbound access level to the authorable vocabulary. * * - `read` / `edit` pass through. * - `full` normalises to `edit` — quietly, because it is what `full` already * meant; failing an old client's request would be a regression with no * security benefit. * - anything else (including `null`/`undefined` when no `fallback` is given) * throws `VALIDATION_FAILED`, which the REST layer maps to a 400. Silently * coercing an unrecognised level would be the same silent-inertness bug in a * new spot: a caller asking for `admin` must be told it does not exist, not * handed a `read` grant they did not request. * * @param value the inbound level (typically from an HTTP body or a rule row) * @param fallback level to use when `value` is null/undefined; omit to require one */ declare function normalizeAccessLevel(value: unknown, fallback?: ShareAccessLevel): ShareAccessLevel; /** * Normalise a level read back OUT of storage. Never throws. * * The write-path twin ({@link normalizeAccessLevel}) rejects an unrecognised * level so the caller learns immediately. A read path cannot do that: the row * already exists, and throwing while projecting it would take down the rule * evaluator or the admin list view over one bad byte. So this one fails * **closed** — an unrecognised stored level degrades to `read`, the narrowest * level, rather than being trusted or crashing (the same fail-closed posture * `effectiveSharingModel` takes for an unknown `sharingModel`). */ declare function normalizeStoredAccessLevel(value: unknown): ShareAccessLevel; export { ACCESS_LEVELS, AFFECTED_ROWS_STASH_KEY, ASSIGNMENT_RULE_GUARD_PACKAGE, type AffectedRows, AssignmentRuleValidationError, BU_GRAPH_OBJECTS, BU_TREE_RECIPIENT_TYPES, BU_TREE_RECOMPUTE_PACKAGE, type BuTreeRecomputeRuleService, type BusinessUnitGraphOptions, BusinessUnitGraphService, type CascadeEngine, type DeclaredSharingRule, type DeclaredSharingRuleSkip, MATCH_ALL_CRITERIA_MESSAGE, ORPHAN_SWEEP_MAX_ROWS, ORPHAN_SWEEP_PAGE_SIZE, type OrphanCleanupEngine, type OrphanShareSweepOptions, type OrphanShareSweepResult, type OrphanSweepSubject, type OwnershipQueueEngine, OwnershipQueueService, type OwnershipQueueServiceOptions, PHANTOM_ANCHOR_WRITE_DENY_NOTICE, QUEUE_ACTIVATION_TYPE, QUEUE_GUARD_PACKAGE, QUEUE_MEMBER_OBJECT, QUEUE_OBJECT, QUEUE_RECIPIENT_RECOMPUTE_PACKAGE, QueueValidationError, RECORD_SCOPED_DELETE_CHUNK, RECORD_SHARE_CASCADE_PACKAGE, RULE_CRITERIA_GUARD_PACKAGE, RULE_RECOMPUTE_ROW_CAP, type RecomputeEngine, RuleRegrantQueue, SHARING_RULE_HOOK_PACKAGE, SHARING_RULE_PROVENANCE_PACKAGE, type ShareLinkCascade, type ShareLinkRoutesOptions, ShareLinkService, type ShareLinkServiceOptions, SharingCriteriaValidationError, type SharingEngine, type SharingPluginOptions, type SharingRuleReconcilePassResult, SharingRuleService, type SharingRuleServiceOptions, SharingService, type SharingServiceOptions, SharingServicePlugin, SysAssignmentCursor, SysAssignmentRule, SysQueue, SysQueueMember, SysRecordShare, SysShareLink, SysSharingRule, type TeamGraphOptions, TeamGraphService, UNSERVED_OWNER_WRITE_DENY_NOTICE, type UnboundedReason, WRITE_ACCESS_LEVELS, assignmentRuleRowIssues, backfillRetiredAccessLevels, backfillRuleGrants, bindAssignmentRuleGuards, bindBusinessUnitTreeRecompute, bindQueueGuards, bindQueueRecipientRecompute, bindRecordShareCascade, bindRuleCriteriaGuard, bindRuleHooks, bindRuleProvenanceStamp, buildSharingMiddleware, deleteRowsForDeletedRecords, effectiveSharingModel, expandPrincipal, idsFromHookInput, isKnownAccessLevel, isMatchAllCriteria, normalizeAccessLevel, normalizeStoredAccessLevel, objectCanCarryRecordShares, objectCanCarryShareLinks, orphanShareSweepQueue, parseCriteria, pendingBuTreeRegrants, pendingQueueRecipientRegrants, readAffectedRows, recomputeQueueRecipientRules, registerShareLinkRoutes, reportShadowedAuthoredAssignmentRules, reportShadowedAuthoredQueues, resolveAffectedRows, ruleRegrantQueue, specsReadBusinessUnits, stashAffectedRows, sweepOrphanedRowsByRecordExistence, translateDeclaredSharingRule, unbindAllRuleHooks, unbindBusinessUnitTreeRecompute, unbindRecordShareCascade, unbindRuleProvenanceStamp, writeCanChangeExpansion };